Import Geant4 8.2.0 source tree
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4FieldTrackUpdator.hh,v 1.2 2006/12/13 15:49:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
// M. Asai - first implementation Apr/28/2006
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
// G4FieldTrackUpdator.hh
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
#ifndef G4FieldTrackUpdator_h
|
||||
#define G4FieldTrackUpdator_h 1
|
||||
|
||||
class G4FieldTrack;
|
||||
class G4Track;
|
||||
|
||||
class G4FieldTrackUpdator
|
||||
{
|
||||
private:
|
||||
G4FieldTrackUpdator() {;}
|
||||
~G4FieldTrackUpdator() {;}
|
||||
|
||||
public:
|
||||
static G4FieldTrack* CreateFieldTrack(const G4Track*);
|
||||
static void Update(G4FieldTrack*,const G4Track*);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ForceCondition.hh,v 1.5 2006/06/29 21:14:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4GPILSelection.hh,v 1.4 2006/06/29 21:14:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChange.hh,v 1.12 2006/06/29 21:14:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChange.icc,v 1.13 2006/06/29 21:14:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
inline
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForDecay.hh,v 1.9 2006/06/29 21:14:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForGamma.hh,v 1.5 2006/06/29 21:14:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4ParticleChangeForGamma.hh,v 1.8 2006/08/28 16:10:06 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -38,6 +38,9 @@
|
||||
// Modified:
|
||||
// 30.05.05 : add UpdateStepForAtRest (V.Ivanchenko)
|
||||
// 04.12.05 : apply UpdateStepForPostStep in any case (mma)
|
||||
// 26.08.06 : Add->Set polarization;
|
||||
// add const method to access track;
|
||||
// add weight modification (V.Ivanchenko)
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
//
|
||||
@@ -90,6 +93,8 @@ public:
|
||||
void ProposePolarization(const G4ThreeVector& dir);
|
||||
void ProposePolarization(G4double Px, G4double Py, G4double Pz);
|
||||
|
||||
const G4Track* GetCurrentTrack() const;
|
||||
|
||||
virtual void DumpInfo() const;
|
||||
|
||||
// for Debug
|
||||
@@ -112,7 +117,7 @@ private:
|
||||
// The final momentum direction of the current particle.
|
||||
|
||||
G4ThreeVector proposedPolarization;
|
||||
// The final momentum direction of the current particle.
|
||||
// The final polarization of the current particle.
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------
|
||||
@@ -147,6 +152,11 @@ inline
|
||||
proposedMomentumDirection.setZ(Pz);
|
||||
}
|
||||
|
||||
inline const G4Track* G4ParticleChangeForGamma::GetCurrentTrack() const
|
||||
{
|
||||
return currentTrack;
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ThreeVector& G4ParticleChangeForGamma::GetProposedPolarization() const
|
||||
{
|
||||
@@ -187,6 +197,8 @@ inline G4Step* G4ParticleChangeForGamma::UpdateStepForAtRest(G4Step* pStep)
|
||||
{
|
||||
pStep->AddTotalEnergyDeposit( theLocalEnergyDeposit );
|
||||
pStep->SetStepLength( 0.0 );
|
||||
if (!fSetParentWeightByProcess)
|
||||
pStep->GetPostStepPoint()->SetWeight( theParentWeight );
|
||||
return pStep;
|
||||
}
|
||||
|
||||
@@ -195,12 +207,13 @@ inline G4Step* G4ParticleChangeForGamma::UpdateStepForPostStep(G4Step* pStep)
|
||||
G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
|
||||
pPostStepPoint->SetKineticEnergy( proposedKinEnergy );
|
||||
pPostStepPoint->SetMomentumDirection( proposedMomentumDirection );
|
||||
pPostStepPoint->AddPolarization( proposedPolarization );
|
||||
pPostStepPoint->SetPolarization( proposedPolarization );
|
||||
|
||||
// update weight
|
||||
// this feature is commented out, it should be overwritten in case
|
||||
// if energy loss processes will use biasing
|
||||
// pPostStepPoint->SetWeight( theProposedWeight );
|
||||
if (!fSetParentWeightByProcess)
|
||||
pPostStepPoint->SetWeight( theParentWeight );
|
||||
|
||||
pStep->AddTotalEnergyDeposit( theLocalEnergyDeposit );
|
||||
return pStep;
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForLoss.hh,v 1.18 2006/06/29 21:14:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4ParticleChangeForLoss.hh,v 1.19 2006/08/28 16:10:06 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -41,6 +41,7 @@
|
||||
// 30.01.06 V.Ivanchenko add ProposedMomentumDirection for AlongStep
|
||||
// and ProposeWeight for PostStep
|
||||
// 07.06.06 V.Ivanchenko RemoveProposedMomentumDirection from AlongStep
|
||||
// 28.08.06 V.Ivanchenko Add access to current track and polarizaion
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
//
|
||||
@@ -100,6 +101,12 @@ public:
|
||||
void ProposeMomentumDirection(const G4ThreeVector& Pfinal);
|
||||
// Get/Propose the MomentumDirection vector: it is the final momentum direction.
|
||||
|
||||
const G4ThreeVector& GetProposedPolarization() const;
|
||||
void ProposePolarization(const G4ThreeVector& dir);
|
||||
void ProposePolarization(G4double Px, G4double Py, G4double Pz);
|
||||
|
||||
const G4Track* GetCurrentTrack() const;
|
||||
|
||||
virtual void DumpInfo() const;
|
||||
|
||||
// for Debug
|
||||
@@ -123,6 +130,9 @@ private:
|
||||
|
||||
G4ThreeVector proposedMomentumDirection;
|
||||
// The final momentum direction of the current particle.
|
||||
|
||||
G4ThreeVector proposedPolarization;
|
||||
// The final polarization of the current particle.
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------
|
||||
@@ -189,6 +199,31 @@ inline
|
||||
proposedMomentumDirection.setZ(Pz);
|
||||
}
|
||||
|
||||
inline const G4Track* G4ParticleChangeForLoss::GetCurrentTrack() const
|
||||
{
|
||||
return currentTrack;
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ThreeVector& G4ParticleChangeForLoss::GetProposedPolarization() const
|
||||
{
|
||||
return proposedPolarization;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChangeForLoss::ProposePolarization(const G4ThreeVector& dir)
|
||||
{
|
||||
proposedPolarization = dir;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChangeForLoss::ProposePolarization(G4double Px, G4double Py, G4double Pz)
|
||||
{
|
||||
proposedPolarization.setX(Px);
|
||||
proposedPolarization.setY(Py);
|
||||
proposedPolarization.setZ(Pz);
|
||||
}
|
||||
|
||||
inline void G4ParticleChangeForLoss::InitializeForAlongStep(const G4Track& track)
|
||||
{
|
||||
theStatusChange = track.GetTrackStatus();
|
||||
@@ -208,6 +243,7 @@ inline void G4ParticleChangeForLoss::InitializeForPostStep(const G4Track& track)
|
||||
proposedKinEnergy = track.GetKineticEnergy();
|
||||
currentCharge = track.GetDynamicParticle()->GetCharge();
|
||||
proposedMomentumDirection = track.GetMomentumDirection();
|
||||
proposedPolarization = track.GetPolarization();
|
||||
currentTrack = &track;
|
||||
}
|
||||
|
||||
@@ -235,7 +271,8 @@ inline G4Step* G4ParticleChangeForLoss::UpdateStepForAlongStep(G4Step* pStep)
|
||||
// update weight
|
||||
// this feature is commented out, it should be overwritten in case
|
||||
// if energy loss processes will use biasing
|
||||
// G4double newWeight = theParentWeight/(pPreStepPoint->GetWeight())*(pPostStepPoint->GetWeight());
|
||||
// G4double newWeight = theParentWeight*(pPostStepPoint->GetWeight())
|
||||
// /(pPreStepPoint->GetWeight());
|
||||
// pPostStepPoint->SetWeight( newWeight );
|
||||
pStep->AddTotalEnergyDeposit( theLocalEnergyDeposit );
|
||||
return pStep;
|
||||
@@ -247,10 +284,11 @@ inline G4Step* G4ParticleChangeForLoss::UpdateStepForPostStep(G4Step* pStep)
|
||||
pPostStepPoint->SetCharge( currentCharge );
|
||||
pPostStepPoint->SetMomentumDirection( proposedMomentumDirection );
|
||||
pPostStepPoint->SetKineticEnergy( proposedKinEnergy );
|
||||
// update weight
|
||||
// this feature is commented out, it should be overwritten in case
|
||||
// if energy loss processes will use biasing
|
||||
pPostStepPoint->SetWeight( theParentWeight );
|
||||
pPostStepPoint->SetPolarization( proposedPolarization );
|
||||
// update weight if process cannot do that
|
||||
if (!fSetParentWeightByProcess)
|
||||
pPostStepPoint->SetWeight( theParentWeight );
|
||||
|
||||
pStep->AddTotalEnergyDeposit( theLocalEnergyDeposit );
|
||||
return pStep;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForMSC.icc,v 1.7 2006/06/29 21:14:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForRadDecay.hh,v 1.7 2006/06/29 21:14:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForTransport.hh,v 1.16 2006/06/29 21:14:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChangeForTransport.icc,v 1.13 2006/06/29 21:14:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
inline
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Step.hh,v 1.12.2.1 2006/06/29 21:14:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4Step.hh,v 1.16 2006/10/30 09:50:13 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -70,7 +70,7 @@
|
||||
#include "G4StepStatus.hh" // Include from 'track'
|
||||
class G4Polyline; // Forward declaration.
|
||||
class G4Track; // Forward declaration.
|
||||
|
||||
#include "G4TrackVector.hh" // Include from 'tracking'
|
||||
|
||||
////////////
|
||||
class G4Step
|
||||
@@ -123,6 +123,15 @@ class G4Step
|
||||
void ResetTotalEnergyDeposit();
|
||||
|
||||
|
||||
// Get/Set/Clear flag for initial/last step
|
||||
G4bool IsFirstStepInVolume() const;
|
||||
G4bool IsLastStepInVolume() const;
|
||||
|
||||
void SetFirstStepFlag();
|
||||
void ClearFirstStepFlag();
|
||||
void SetLastStepFlag();
|
||||
void ClearLastStepFlag();
|
||||
|
||||
// Other member functions
|
||||
void InitializeStep( G4Track* aValue );
|
||||
// initiaize contents of G4Step
|
||||
@@ -159,6 +168,19 @@ class G4Step
|
||||
G4SteppingControl fpSteppingControlFlag;
|
||||
// A flag to control SteppingManager behavier from process
|
||||
|
||||
// flag for initial/last step
|
||||
G4bool fFirstStepInVolume;
|
||||
G4bool fLastStepInVolume;
|
||||
|
||||
// Secondary buckets
|
||||
public:
|
||||
G4TrackVector* GetSecondary() const;
|
||||
G4TrackVector* GetfSecondary();
|
||||
G4TrackVector* NewSecondaryVector();
|
||||
void DeleteSecondaryVector();
|
||||
void SetSecondary( G4TrackVector* value);
|
||||
private:
|
||||
G4TrackVector* fSecondary;
|
||||
|
||||
// Prototyping implementation of smooth representation of curved
|
||||
// trajectories. (jacek 30/10/2002)
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Step.icc,v 1.11.2.1 2006/06/29 21:14:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4Step.icc,v 1.15 2006/10/30 09:50:13 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -228,15 +228,51 @@ inline
|
||||
fpPostStepPoint->SetVelocity(fpTrack->GetVelocity());
|
||||
}
|
||||
|
||||
inline G4TrackVector* G4Step::GetfSecondary() {
|
||||
return fSecondary;
|
||||
}
|
||||
inline G4TrackVector* G4Step::GetSecondary() const {
|
||||
return fSecondary;
|
||||
}
|
||||
inline void G4Step::SetSecondary(G4TrackVector* value) {
|
||||
fSecondary=value;
|
||||
}
|
||||
inline G4TrackVector* G4Step::NewSecondaryVector() {
|
||||
fSecondary=new G4TrackVector();
|
||||
return fSecondary;
|
||||
}
|
||||
inline void G4Step::DeleteSecondaryVector() {
|
||||
delete fSecondary;
|
||||
}
|
||||
|
||||
inline G4bool G4Step::IsFirstStepInVolume() const
|
||||
{
|
||||
return fFirstStepInVolume;
|
||||
}
|
||||
|
||||
inline G4bool G4Step::IsLastStepInVolume() const
|
||||
{
|
||||
return fLastStepInVolume;
|
||||
}
|
||||
|
||||
|
||||
inline void G4Step::SetFirstStepFlag()
|
||||
{
|
||||
fFirstStepInVolume = true;
|
||||
}
|
||||
|
||||
inline void G4Step::ClearFirstStepFlag()
|
||||
{
|
||||
fFirstStepInVolume = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
inline void G4Step::SetLastStepFlag()
|
||||
{
|
||||
fLastStepInVolume = true;
|
||||
}
|
||||
|
||||
inline void G4Step::ClearLastStepFlag()
|
||||
{
|
||||
fLastStepInVolume = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4StepPoint.hh,v 1.16 2006/06/29 21:14:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4StepPoint.hh,v 1.17 2006/10/31 10:01:43 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -75,103 +75,103 @@ class G4StepPoint
|
||||
// Constructor/Destructor
|
||||
G4StepPoint();
|
||||
|
||||
~G4StepPoint(){};
|
||||
~G4StepPoint(){}
|
||||
|
||||
//--------
|
||||
|
||||
public: // with description
|
||||
|
||||
// Get/Set functions
|
||||
const G4ThreeVector& GetPosition() const;
|
||||
void SetPosition(const G4ThreeVector& aValue);
|
||||
void AddPosition(const G4ThreeVector& aValue);
|
||||
inline const G4ThreeVector& GetPosition() const;
|
||||
inline void SetPosition(const G4ThreeVector& aValue);
|
||||
inline void AddPosition(const G4ThreeVector& aValue);
|
||||
|
||||
G4double GetLocalTime() const;
|
||||
void SetLocalTime(const G4double aValue);
|
||||
void AddLocalTime(const G4double aValue);
|
||||
inline G4double GetLocalTime() const;
|
||||
inline void SetLocalTime(const G4double aValue);
|
||||
inline void AddLocalTime(const G4double aValue);
|
||||
// Time since the track is created.
|
||||
|
||||
G4double GetGlobalTime() const;
|
||||
void SetGlobalTime(const G4double aValue);
|
||||
void AddGlobalTime(const G4double aValue);
|
||||
inline G4double GetGlobalTime() const;
|
||||
inline void SetGlobalTime(const G4double aValue);
|
||||
inline void AddGlobalTime(const G4double aValue);
|
||||
// Time since the event in which the track belongs is created.
|
||||
|
||||
G4double GetProperTime() const;
|
||||
void SetProperTime(const G4double aValue);
|
||||
void AddProperTime(const G4double aValue);
|
||||
inline G4double GetProperTime() const;
|
||||
inline void SetProperTime(const G4double aValue);
|
||||
inline void AddProperTime(const G4double aValue);
|
||||
// Proper time of the particle.
|
||||
|
||||
const G4ThreeVector& GetMomentumDirection() const;
|
||||
void SetMomentumDirection(const G4ThreeVector& aValue);
|
||||
void AddMomentumDirection(const G4ThreeVector& aValue);
|
||||
inline const G4ThreeVector& GetMomentumDirection() const;
|
||||
inline void SetMomentumDirection(const G4ThreeVector& aValue);
|
||||
inline void AddMomentumDirection(const G4ThreeVector& aValue);
|
||||
// Direction of momentum (should be an unit vector)
|
||||
|
||||
G4ThreeVector GetMomentum() const;
|
||||
inline G4ThreeVector GetMomentum() const;
|
||||
// Total momentum of the track
|
||||
|
||||
|
||||
G4double GetTotalEnergy() const;
|
||||
inline G4double GetTotalEnergy() const;
|
||||
// Total energy of the track
|
||||
|
||||
G4double GetKineticEnergy() const;
|
||||
void SetKineticEnergy(const G4double aValue);
|
||||
void AddKineticEnergy(const G4double aValue);
|
||||
inline G4double GetKineticEnergy() const;
|
||||
inline void SetKineticEnergy(const G4double aValue);
|
||||
inline void AddKineticEnergy(const G4double aValue);
|
||||
// Kinetic Energy of the track
|
||||
|
||||
G4double GetVelocity() const;
|
||||
void SetVelocity(G4double v);
|
||||
inline G4double GetVelocity() const;
|
||||
inline void SetVelocity(G4double v);
|
||||
//
|
||||
|
||||
G4double GetBeta() const;
|
||||
inline G4double GetBeta() const;
|
||||
// Velocity of the track in unit of c(light velocity)
|
||||
|
||||
G4double GetGamma() const;
|
||||
inline G4double GetGamma() const;
|
||||
// Gamma factor (1/sqrt[1-beta*beta]) of the track
|
||||
|
||||
G4VPhysicalVolume* GetPhysicalVolume() const;
|
||||
inline G4VPhysicalVolume* GetPhysicalVolume() const;
|
||||
|
||||
const G4VTouchable* GetTouchable() const;
|
||||
const G4TouchableHandle& GetTouchableHandle() const;
|
||||
void SetTouchableHandle(const G4TouchableHandle& apValue);
|
||||
inline const G4VTouchable* GetTouchable() const;
|
||||
inline const G4TouchableHandle& GetTouchableHandle() const;
|
||||
inline void SetTouchableHandle(const G4TouchableHandle& apValue);
|
||||
|
||||
G4Material* GetMaterial() const;
|
||||
void SetMaterial(G4Material*);
|
||||
inline G4Material* GetMaterial() const;
|
||||
inline void SetMaterial(G4Material*);
|
||||
|
||||
const G4MaterialCutsCouple* GetMaterialCutsCouple() const;
|
||||
void SetMaterialCutsCouple(const G4MaterialCutsCouple*);
|
||||
inline const G4MaterialCutsCouple* GetMaterialCutsCouple() const;
|
||||
inline void SetMaterialCutsCouple(const G4MaterialCutsCouple*);
|
||||
|
||||
G4VSensitiveDetector* GetSensitiveDetector() const;
|
||||
void SetSensitiveDetector(G4VSensitiveDetector*);
|
||||
inline G4VSensitiveDetector* GetSensitiveDetector() const;
|
||||
inline void SetSensitiveDetector(G4VSensitiveDetector*);
|
||||
|
||||
G4double GetSafety() const;
|
||||
void SetSafety(const G4double aValue);
|
||||
inline G4double GetSafety() const;
|
||||
inline void SetSafety(const G4double aValue);
|
||||
|
||||
const G4ThreeVector& GetPolarization() const;
|
||||
void SetPolarization(const G4ThreeVector& aValue);
|
||||
void AddPolarization(const G4ThreeVector& aValue);
|
||||
inline const G4ThreeVector& GetPolarization() const;
|
||||
inline void SetPolarization(const G4ThreeVector& aValue);
|
||||
inline void AddPolarization(const G4ThreeVector& aValue);
|
||||
|
||||
G4StepStatus GetStepStatus() const;
|
||||
void SetStepStatus(const G4StepStatus aValue);
|
||||
inline G4StepStatus GetStepStatus() const;
|
||||
inline void SetStepStatus(const G4StepStatus aValue);
|
||||
|
||||
const G4VProcess* GetProcessDefinedStep() const;
|
||||
inline const G4VProcess* GetProcessDefinedStep() const;
|
||||
// If the pointer is 0, this means the Step is defined
|
||||
// by the user defined limit in the current volume.
|
||||
void SetProcessDefinedStep(G4VProcess* aValue);
|
||||
inline void SetProcessDefinedStep(G4VProcess* aValue);
|
||||
|
||||
|
||||
G4double GetMass() const;
|
||||
void SetMass(G4double value);
|
||||
inline G4double GetMass() const;
|
||||
inline void SetMass(G4double value);
|
||||
|
||||
G4double GetCharge() const;
|
||||
void SetCharge(G4double value);
|
||||
inline G4double GetCharge() const;
|
||||
inline void SetCharge(G4double value);
|
||||
|
||||
void SetWeight(G4double aValue);
|
||||
G4double GetWeight() const;
|
||||
inline void SetWeight(G4double aValue);
|
||||
inline G4double GetWeight() const;
|
||||
|
||||
public:
|
||||
// copy constructor and assignment operaor as protected
|
||||
// copy constructor and assignment operator as protected
|
||||
G4StepPoint(const G4StepPoint &right);
|
||||
G4StepPoint & operator=(const G4StepPoint &right);
|
||||
inline G4StepPoint & operator=(const G4StepPoint &right);
|
||||
|
||||
|
||||
|
||||
@@ -213,5 +213,5 @@ class G4StepPoint
|
||||
};
|
||||
|
||||
#include "G4StepPoint.icc"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,10 +24,36 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4StepPoint.icc,v 1.11 2006/06/29 21:14:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4StepPoint.icc,v 1.12 2006/10/31 10:01:43 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
|
||||
inline G4StepPoint & G4StepPoint::operator=(const G4StepPoint &right)
|
||||
{
|
||||
if (this != &right) {
|
||||
fPosition = right.fPosition;
|
||||
fGlobalTime = right.fGlobalTime;
|
||||
fLocalTime = right.fLocalTime;
|
||||
fProperTime = right.fProperTime;
|
||||
fMomentumDirection = right.fMomentumDirection;
|
||||
fKineticEnergy = right.fKineticEnergy;
|
||||
fpTouchable = right.fpTouchable;
|
||||
fpMaterial = right.fpMaterial;
|
||||
fpMaterialCutsCouple = right.fpMaterialCutsCouple;
|
||||
fpSensitiveDetector = right.fpSensitiveDetector;
|
||||
fSafety = right.fSafety;
|
||||
fPolarization = right.fPolarization;
|
||||
fStepStatus = right.fStepStatus;
|
||||
fpProcessDefinedStep = right.fpProcessDefinedStep;
|
||||
fMass = right.fMass;
|
||||
fCharge = right.fCharge;
|
||||
fWeight = right.fWeight;
|
||||
fVelocity = right.fVelocity;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const G4ThreeVector& G4StepPoint::GetPosition() const
|
||||
{ return fPosition; }
|
||||
inline void G4StepPoint::SetPosition(const G4ThreeVector& aValue)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4StepStatus.hh,v 1.4 2006/06/29 21:14:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4SteppingControl.hh,v 1.4 2006/06/29 21:14:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Track.hh,v 1.18 2006/06/29 21:14:47 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Track.icc,v 1.14 2006/06/29 21:14:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//-----------------------------------------------------------------
|
||||
// Definitions of inline functions
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4TrackFastVector.hh,v 1.5 2006/06/29 21:14:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4TrackStatus.hh,v 1.4 2006/06/29 21:14:53 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TrackVector.hh,v 1.2 2006/07/17 13:48:28 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
// G4TrackVector.hh
|
||||
//
|
||||
// class description:
|
||||
// This class keeps a List of G4Track objects. It is implemented
|
||||
// as a RougeWave pointer ordered vector.
|
||||
//
|
||||
// Contact:
|
||||
// Questions and comments to this code should be sent to
|
||||
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
|
||||
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
#ifndef G4TrackVector_h
|
||||
#define G4TrackVector_h 1
|
||||
|
||||
#include <vector>
|
||||
//#include "G4Track.hh" // Include form 'tracking'
|
||||
class G4Track;
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
typedef std::vector<G4Track*> G4TrackVector;
|
||||
///////////////////////////////////////////////////
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VParticleChange.hh,v 1.14 2006/06/29 21:14:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4VParticleChange.hh,v 1.15 2006/10/30 09:50:13 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -71,6 +71,8 @@
|
||||
// add check secondaries 11 June, 03 H.Kurashige
|
||||
// add new methods of ProposeXXX 08 May, 04 H.Kurashige
|
||||
// remove obsolete methods of SetXXX 19 Sep, 04 H.Kurashige
|
||||
// add flag for first/last step in volume 30 Oct. 2006 H.Kurashige
|
||||
//
|
||||
|
||||
#ifndef G4VParticleChange_h
|
||||
#define G4VParticleChange_h 1
|
||||
@@ -134,6 +136,7 @@ class G4VParticleChange
|
||||
|
||||
void InitializeStatusChange(const G4Track&);
|
||||
void InitializeSecondaries(const G4Track&);
|
||||
void InitializeStepInVolumeFlags(const G4Track&);
|
||||
// ------------------------------------------------------
|
||||
|
||||
public: // with description
|
||||
@@ -158,6 +161,12 @@ class G4VParticleChange
|
||||
void ProposeSteppingControl(G4SteppingControl StepControlFlag);
|
||||
// Set/Propose a flag to control stepping manager behavier
|
||||
// ------------------------------------------------------
|
||||
|
||||
//---- the following methods are for managements of initial/last step
|
||||
G4bool GetFirstStepInVolume() const;
|
||||
G4bool GetLastStepInVolume() const;
|
||||
void ProposeFirstStepInVolume(G4bool flag);
|
||||
void ProposeLastStepInVolume(G4bool flag);
|
||||
|
||||
//---- the following methods are for managements of secondaries --
|
||||
void Clear();
|
||||
@@ -236,6 +245,12 @@ class G4VParticleChange
|
||||
G4double theTrueStepLength;
|
||||
// The value of "True" Step Length
|
||||
|
||||
|
||||
// flag for initial/last step
|
||||
G4bool theFirstStepInVolume;
|
||||
G4bool theLastStepInVolume;
|
||||
|
||||
|
||||
G4int verboseLevel;
|
||||
// The Verbose level
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VParticleChange.icc,v 1.13 2006/06/29 21:14:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// $Id: G4VParticleChange.icc,v 1.15 2006/11/03 17:46:08 japost Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
// remove obsolete methods of SetXXX 19 Sep, 04 H.Kurashige
|
||||
//----------------------------------------------------------------
|
||||
@@ -38,6 +38,12 @@ inline G4Step* G4VParticleChange::UpdateStepInfo(G4Step* pStep)
|
||||
pStep->SetStepLength( theTrueStepLength );
|
||||
pStep->AddTotalEnergyDeposit( theLocalEnergyDeposit );
|
||||
pStep->SetControlFlag( theSteppingControlFlag );
|
||||
|
||||
if (theFirstStepInVolume) {pStep->SetFirstStepFlag();}
|
||||
else {pStep->ClearFirstStepFlag();}
|
||||
if (theLastStepInVolume) {pStep->SetLastStepFlag();}
|
||||
else {pStep->ClearLastStepFlag();}
|
||||
|
||||
return pStep;
|
||||
}
|
||||
|
||||
@@ -108,6 +114,30 @@ void G4VParticleChange::ProposeSteppingControl(G4SteppingControl StepControlFlag
|
||||
theSteppingControlFlag = StepControlFlag;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4VParticleChange::GetFirstStepInVolume() const
|
||||
{
|
||||
return theFirstStepInVolume;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4VParticleChange::GetLastStepInVolume() const
|
||||
{
|
||||
return theLastStepInVolume;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4VParticleChange::ProposeFirstStepInVolume(G4bool flag)
|
||||
{
|
||||
theFirstStepInVolume = flag;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4VParticleChange::ProposeLastStepInVolume(G4bool flag)
|
||||
{
|
||||
theLastStepInVolume = flag;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// Set/Get inline functions
|
||||
//
|
||||
@@ -177,6 +207,8 @@ inline
|
||||
void G4VParticleChange::Clear()
|
||||
{
|
||||
theNumberOfSecondaries = 0;
|
||||
theFirstStepInVolume = false;
|
||||
theLastStepInVolume = false;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
@@ -204,6 +236,16 @@ inline void G4VParticleChange::InitializeTrueStepLength(const G4Track& track)
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// methods for initialize
|
||||
inline
|
||||
void G4VParticleChange::InitializeStepInVolumeFlags(const G4Track& track)
|
||||
{
|
||||
const G4Step* aStep = track.GetStep();
|
||||
theFirstStepInVolume = aStep-> IsFirstStepInVolume();
|
||||
theLastStepInVolume = aStep-> IsLastStepInVolume();
|
||||
}
|
||||
|
||||
inline void G4VParticleChange::InitializeSecondaries(const G4Track&)
|
||||
{
|
||||
// clear secondaries
|
||||
@@ -259,6 +301,7 @@ inline void G4VParticleChange::Initialize(const G4Track& track)
|
||||
InitializeTrueStepLength(track);
|
||||
InitializeSecondaries(track);
|
||||
InitializeParentWeight(track);
|
||||
InitializeStepInVolumeFlags(track);
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUserTrackInformation.hh,v 1.6 2006/06/29 21:14:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user