Belle II Software development
|
UserInfo class which is used to attach additional information to Geant4 particles and tracks. More...
#include <UserInfo.h>
Public Member Functions | |
UserInfo (Payload data) | |
The constructor of the user info class. | |
Payload | getData () |
Returns the payloaded data. | |
int | getStatus () |
Get status of optical photon (used for performance speed-ups) 0 initial 1 prescaled in StackingAction 2 quantum efficiency has been applied. | |
double | getFraction () |
Get optical photon propagation fraction (used for performance speed-ups) status=0: fraction=1 status=1: fraction=PhotonFraction as set in FullSim status=2: fraction=quantum efficiency. | |
MCParticleTrajectory * | getTrajectory () |
Get optional particle trajectory. | |
void | setStatus (int status) |
Set status of optical photon (used for performance speed-ups) | |
void | setFraction (double fraction) |
Store optical photon propagation fraction (used for performance speed-ups) | |
void | setTrajectory (MCParticleTrajectory *trajectory) |
Set the optional particle trajectory. | |
virtual void | Print () const |
Prints information, not implemented in this class. | |
Static Public Member Functions | |
template<class Carrier > | |
static Payload | getInfo (Carrier &obj) |
Static function to just return UserInformation attached to the obj of type Carrier. | |
Protected Attributes | |
Payload | m_data |
The data which is payloaded to the specified class. | |
int | m_status |
optical photon: status | |
double | m_fraction |
optical photon: propagation fraction | |
MCParticleTrajectory * | m_trajectory |
Particle trajectory, if any. | |
UserInfo class which is used to attach additional information to Geant4 particles and tracks.
This class is designed as a template based payload class.
Definition at line 36 of file UserInfo.h.
|
inlineexplicit |
The constructor of the user info class.
data | The data which should be payloaded to the class. |
Definition at line 44 of file UserInfo.h.
|
inline |
Returns the payloaded data.
Definition at line 50 of file UserInfo.h.
|
inline |
Get optical photon propagation fraction (used for performance speed-ups) status=0: fraction=1 status=1: fraction=PhotonFraction as set in FullSim status=2: fraction=quantum efficiency.
Definition at line 68 of file UserInfo.h.
|
inlinestatic |
Static function to just return UserInformation attached to the obj of type Carrier.
Throws an exception of type CouldNotFindUserInfo if no information was found.
obj | Reference to the carrier. |
Definition at line 100 of file UserInfo.h.
|
inline |
Get status of optical photon (used for performance speed-ups) 0 initial 1 prescaled in StackingAction 2 quantum efficiency has been applied.
Definition at line 59 of file UserInfo.h.
|
inline |
|
inlinevirtual |
|
inline |
Store optical photon propagation fraction (used for performance speed-ups)
fraction | fraction |
Definition at line 83 of file UserInfo.h.
|
inline |
Set status of optical photon (used for performance speed-ups)
status | status |
Definition at line 77 of file UserInfo.h.
|
inline |
Set the optional particle trajectory.
Definition at line 86 of file UserInfo.h.
|
protected |
The data which is payloaded to the specified class.
Definition at line 109 of file UserInfo.h.
|
protected |
optical photon: propagation fraction
Definition at line 112 of file UserInfo.h.
|
protected |
optical photon: status
Definition at line 111 of file UserInfo.h.
|
protected |
Particle trajectory, if any.
Definition at line 113 of file UserInfo.h.