Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
DMXMaxTimeCuts Class Reference

#include <DMXMaxTimeCuts.hh>

Inheritance diagram for DMXMaxTimeCuts:
DMXSpecialCuts G4VProcess

Public Member Functions

 DMXMaxTimeCuts (const G4String &processName="DMXMaxTimeCuts")
 
virtual ~DMXMaxTimeCuts ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
- Public Member Functions inherited from DMXSpecialCuts
 DMXSpecialCuts (const G4String &processName="DMXSpecialCut")
 
virtual ~DMXSpecialCuts ()
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 
 G4VProcess (const G4VProcess &right)
 
virtual ~G4VProcess ()
 
G4int operator== (const G4VProcess &right) const
 
G4int operator!= (const G4VProcess &right) const
 
G4double GetCurrentInteractionLength () const
 
void SetPILfactor (G4double value)
 
G4double GetPILfactor () const
 
G4double AlongStepGPIL (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
 
G4double AtRestGPIL (const G4Track &track, G4ForceCondition *condition)
 
G4double PostStepGPIL (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void PreparePhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
virtual G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
const G4StringGetPhysicsTableFileName (const G4ParticleDefinition *, const G4String &directory, const G4String &tableName, G4bool ascii=false)
 
const G4StringGetProcessName () const
 
G4ProcessType GetProcessType () const
 
void SetProcessType (G4ProcessType)
 
G4int GetProcessSubType () const
 
void SetProcessSubType (G4int)
 
virtual void StartTracking (G4Track *)
 
virtual void EndTracking ()
 
virtual void SetProcessManager (const G4ProcessManager *)
 
virtual const G4ProcessManagerGetProcessManager ()
 
virtual void ResetNumberOfInteractionLengthLeft ()
 
G4double GetNumberOfInteractionLengthLeft () const
 
G4double GetTotalNumberOfInteractionLengthTraversed () const
 
G4bool isAtRestDoItIsEnabled () const
 
G4bool isAlongStepDoItIsEnabled () const
 
G4bool isPostStepDoItIsEnabled () const
 
virtual void DumpInfo () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
virtual void SetMasterProcess (G4VProcess *masterP)
 
const G4VProcessGetMasterProcess () const
 
virtual void BuildWorkerPhysicsTable (const G4ParticleDefinition &part)
 
virtual void PrepareWorkerPhysicsTable (const G4ParticleDefinition &)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 
- Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager
 
G4VParticleChangepParticleChange
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft
 
G4double currentInteractionLength
 
G4double theInitialNumberOfInteractionLength
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType
 
G4int theProcessSubType
 
G4double thePILfactor
 
G4bool enableAtRestDoIt
 
G4bool enableAlongStepDoIt
 
G4bool enablePostStepDoIt
 
G4int verboseLevel
 

Detailed Description

Definition at line 50 of file DMXMaxTimeCuts.hh.

Constructor & Destructor Documentation

DMXMaxTimeCuts::DMXMaxTimeCuts ( const G4String processName = "DMXMaxTimeCuts")

Definition at line 49 of file DMXMaxTimeCuts.cc.

References fUserDefined, G4cout, G4endl, G4VProcess::GetProcessName(), G4VProcess::SetProcessType(), and G4VProcess::verboseLevel.

50  : DMXSpecialCuts(aName)
51 {
52  if (verboseLevel>1) {
53  G4cout << GetProcessName() << " is created "<< G4endl;
54  }
56 }
G4int verboseLevel
Definition: G4VProcess.hh:368
G4GLOB_DLL std::ostream G4cout
DMXSpecialCuts(const G4String &processName="DMXSpecialCut")
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
#define G4endl
Definition: G4ios.hh:61
void SetProcessType(G4ProcessType)
Definition: G4VProcess.hh:420
DMXMaxTimeCuts::~DMXMaxTimeCuts ( )
virtual

Definition at line 58 of file DMXMaxTimeCuts.cc.

59 {}

Member Function Documentation

G4double DMXMaxTimeCuts::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition condition 
)
virtual

Reimplemented from DMXSpecialCuts.

Definition at line 66 of file DMXMaxTimeCuts.cc.

References python.hepunit::c_light, DBL_MAX, G4Track::GetDynamicParticle(), G4Track::GetGlobalTime(), G4VPhysicalVolume::GetLogicalVolume(), G4DynamicParticle::GetTotalEnergy(), G4DynamicParticle::GetTotalMomentum(), G4LogicalVolume::GetUserLimits(), G4UserLimits::GetUserMaxTime(), G4Track::GetVolume(), and NotForced.

71 {
72  // condition is set to "Not Forced"
74 
75  G4double proposedStep = DBL_MAX;
76  // get the pointer to UserLimits
77  G4UserLimits* pUserLimits = aTrack.GetVolume()->GetLogicalVolume()->GetUserLimits();
78  const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
79 
80  // can apply cuts for specific particles - use if(particleDef):
81  // G4ParticleDefinition* aParticleDef = aTrack.GetDefinition();
82 
83  // G4cout << " Time: " << pUserLimits->GetUserMaxTime(aTrack) << G4endl;
84 
85  if (pUserLimits) {
86  G4double temp = DBL_MAX;
87  //max time limit
88  G4double dTime= (pUserLimits->GetUserMaxTime(aTrack) - aTrack.GetGlobalTime());
89  if (dTime < 0. ) {
90  proposedStep = 0.;
91  } else {
92  G4double beta = (aParticle->GetTotalMomentum())/(aParticle->GetTotalEnergy());
93  temp = beta*c_light*dTime;
94  if (proposedStep > temp) proposedStep = temp;
95  }
96 
97  }
98  return proposedStep;
99 }
G4double condition(const G4ErrorSymMatrix &m)
G4double GetTotalEnergy() const
G4double GetTotalMomentum() const
virtual G4double GetUserMaxTime(const G4Track &)
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
float c_light
Definition: hepunit.py:257

The documentation for this class was generated from the following files: