![]() |
Belle II Software
release-08-02-04
|
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. More... | |
| Payload | getData () |
| Returns the payloaded data. More... | |
| int | getStatus () |
| Get status of optical photon (used for performance speed-ups) 0 initial 1 prescaled in StackingAction 2 quantum efficiency has been applied. More... | |
| 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. More... | |
| MCParticleTrajectory * | getTrajectory () |
| Get optional particle trajectory. | |
| void | setStatus (int status) |
| Set status of optical photon (used for performance speed-ups) More... | |
| void | setFraction (double fraction) |
| Store optical photon propagation fraction (used for performance speed-ups) More... | |
| 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. More... | |
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 |
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.