Geant4 11.2.2
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)
 
#define RegisterTrackState(CLASS, STATE)
 

Typedefs

using G4VTrackStateHandle = std::shared_ptr<G4VTrackState>
 

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)
Value:

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)
int GetID() override
static int GetID()
virtual ~G4TrackState()=default
static int ID()

Definition at line 333 of file G4TrackState.hh.

333#define RegisterTrackState(CLASS,STATE) \
334 template<> \
335 class G4TrackState<CLASS> : public G4TrackStateBase<CLASS>, \
336 public CLASS::STATE \
337 { \
338 friend class G4TrackStateDependent<CLASS>; \
339 public: \
340 typedef CLASS::STATE State; \
341 G4TrackState() : G4TrackStateBase<CLASS>(), CLASS::STATE(){}\
342 virtual ~G4TrackState(){}\
343 virtual int GetID()\
344 {\
345 return G4TrackStateID<CLASS>::GetID();\
346 }\
347 static int ID()\
348 {\
349 return G4TrackStateID<CLASS>::GetID();\
350 }\
351 protected:\
352 };

Typedef Documentation

◆ G4VTrackStateHandle

using G4VTrackStateHandle = std::shared_ptr<G4VTrackState>

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
219 return output;
220}
#define G4dynamic_pointer_cast
Definition G4memory.hh:36

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
229 return output;
230}

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