39 #ifndef G4VITProcess_H
40 #define G4VITProcess_H
54 #define DowncastProcessState(destinationType) \
55 G4::dynamic_pointer_cast<destinationType>(G4VITProcess::fpState)
57 #define UpcastProcessState(destinationType) \
58 G4::dynamic_pointer_cast<destinationType>(G4VITProcess::fpState)
60 #define DowncastState(destinationType,source) \
61 G4::dynamic_pointer_cast<destinationType>(source)
63 #define UpcastState(destinationType,source) \
64 G4::dynamic_pointer_cast<destinationType>(source)
157 return dynamic_cast<T*
>(
this);
203 fpState->theInteractionTimeLeft = -1.0;
208 fpState->theNumberOfInteractionLengthLeft = -1.0;
219 return fpState->theInteractionTimeLeft ;
234 #endif // G4VITProcess_H
G4IT is a interface which allows the inheriting object :
#define DowncastState(destinationType, source)
virtual void ClearNumberOfInteractionLengthLeft()
static const size_t & GetMaxProcessIndex()
void RetrieveProcessInfo()
G4double currentInteractionLength
#define G4IT_TO_BE_CLONED(parent_class)
virtual void ResetNumberOfInteractionLengthLeft()
WARNING : Redefine the method of G4VProcess reset (determine the value of)NumberOfInteractionLengthLe...
G4VITProcess(const G4String &name, G4ProcessType type=fNotDefined)
#define UpcastProcessState(destinationType)
G4double theInteractionTimeLeft
void SetInstantiateProcessState(G4bool flag)
virtual void ClearInteractionTimeLeft()
G4int operator==(const G4VITProcess &right) const
G4VITProcess & operator=(const G4VITProcess &other)
virtual ~G4ProcessState_Lock()
virtual ~G4ProcessState()
virtual void StartTracking(G4Track *)
G4double GetInteractionTimeLeft()
G4::shared_ptr< G4ProcessState > fpState
G4double * theNumberOfInteractionLengthLeft
void SetProcessState(G4::shared_ptr< G4ProcessState_Lock > aProcInfo)
G4bool fInstantiateProcessState
G4::shared_ptr< G4ProcessState_Lock > GetProcessState()
G4bool InstantiateProcessState()
static size_t * fNbProcess
G4int operator!=(const G4VITProcess &right) const
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
G4bool ProposesTimeStep() const
G4VITProcess inherits from G4VProcess.
G4double * currentInteractionLength
size_t GetProcessID() const
G4double * theInteractionTimeLeft
G4double theNumberOfInteractionLengthLeft