Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TrackState.hh File Reference
#include <map>
#include "G4memory.hh"

Go to the source code of this file.

Classes

class  G4VTrackStateID
 
class  G4TrackStateID< T >
 
class  G4VTrackState
 
class  G4TrackStateBase< T >
 
class  G4TrackState< T >
 
class  G4TrackStateManager
 
class  G4VTrackStateDependent
 
class  G4TrackStateDependent< T >
 

Macros

#define G4TrackStateHandle(T)   G4shared_ptr<G4TrackState<T> >
 
#define RegisterTrackState(CLASS, STATE)
 

Typedefs

typedef G4shared_ptr< G4VTrackStateG4VTrackStateHandle
 

Functions

template<class OriginalType >
G4shared_ptr< G4VTrackStateConvertToAbstractTrackState (G4shared_ptr< G4TrackState< OriginalType > > state)
 
template<class FinalType >
G4shared_ptr< G4TrackState< FinalType > > ConvertToConcreteTrackState (G4VTrackStateHandle state)
 

Macro Definition Documentation

◆ G4TrackStateHandle

#define G4TrackStateHandle (   T)    G4shared_ptr<G4TrackState<T> >

Definition at line 210 of file G4TrackState.hh.

◆ RegisterTrackState

#define RegisterTrackState (   CLASS,
  STATE 
)
Value:
template<> \
class G4TrackState<CLASS> : public G4TrackStateBase<CLASS>, \
public CLASS::STATE \
{ \
friend class G4TrackStateDependent<CLASS>; \
public: \
typedef CLASS::STATE State; \
G4TrackState() : G4TrackStateBase<CLASS>(), CLASS::STATE(){}\
virtual ~G4TrackState(){}\
virtual int GetID()\
{\
}\
static int ID()\
{\
}\
protected:\
};
#define State(X)
virtual int GetID()
static int GetID()
Definition: G4TrackState.hh:69
static int ID()
virtual ~G4TrackState()

Definition at line 333 of file G4TrackState.hh.

Typedef Documentation

◆ G4VTrackStateHandle

Definition at line 93 of file G4TrackState.hh.

Function Documentation

◆ ConvertToAbstractTrackState()

template<class OriginalType >
G4shared_ptr< G4VTrackState > ConvertToAbstractTrackState ( G4shared_ptr< G4TrackState< OriginalType > >  state)

Definition at line 214 of file G4TrackState.hh.

215{
216
217 G4shared_ptr<G4VTrackState> output =
218 G4dynamic_pointer_cast<G4VTrackState>(state);
219 return output;
220}

Referenced by G4TrackStateDependent< T >::SaveTrackState().

◆ ConvertToConcreteTrackState()

template<class FinalType >
G4shared_ptr< G4TrackState< FinalType > > ConvertToConcreteTrackState ( G4VTrackStateHandle  state)

Definition at line 224 of file G4TrackState.hh.

225{
226
227 G4shared_ptr<G4TrackState<FinalType> > output =
228 G4dynamic_pointer_cast<G4TrackState<FinalType>>(state);
229 return output;
230}