Belle II Software development
|
Bundles information for a single hit to be stored by EventInfo (needed for HitExporter, which is needed by NonRootDataExportModule) More...
#include <ExporterHitInfo.h>
Public Types | |
typedef unsigned short int | uShort |
shortcut for unsigned int short | |
typedef unsigned int | uInt |
shortcut for unsigned int | |
Public Member Functions | |
ExporterHitInfo (B2Vector3D globalHitPosition, B2Vector3D covValues, int layerID, uShort vID, uInt sID, double angleOfSensor, int hitID, int hitType, int classification=-1, int particleID=-1, int pdg=-1) | |
Standard constructor. | |
~ExporterHitInfo () | |
Destructor. | |
std::string | getPositionFormatted () |
Output of position in a string file: it is a line with Xpos[empty space]Ypos[empty space]Zpos. | |
std::string | getSimpleHitFormatted () |
Output of simple hit info in a string file: | |
std::string | getCovValuesFormatted () |
Output of covValues in a string file: it is a line with CovUU[empty space]CovUV[empty space]CovVV. | |
std::string | getAdditionalInfoFormatted () |
Output of additional information in a string file: it is a line with layerID[empty space]hitID[empty space]sensorAngle. | |
int | getType () const |
returns type of hit. | |
int | getHitID () const |
returns modified index number of truehit attahed to this hit (means that the iD is unique, so pxd and svd can be stored without overlap) | |
int | getParticleID () const |
returns particleID of linked particle for recognition. | |
uShort | getVxdID () |
returns vxdID of hit | |
uInt | getSectorID () |
returns sectorID of hit (this is NOT a FullSecID but only a part of it!) | |
Protected Attributes | |
B2Vector3D | m_hitPos |
global coordinates of hit | |
B2Vector3D | m_covVal |
carries relevant values of the covariance matrix for the hit. | |
int | m_layerID |
layerID, for PXD, this is normally 1 or 2, for SVD its typically 3-6 | |
uShort | m_vxdID |
vxdID for sensor-identification | |
uInt | m_sectorID |
stores the sector ID on current sensor for current hit | |
double | m_sensorAngle |
the angle between the orthogonal vector of the sensor plane of the hit and the x-axis. | |
int | m_hitID |
an event wise unique ID for the hit, which is a modified index number of truehit attached to this hit (means that the iD is unique, so pxd and svd can be stored without overlap) | |
int | m_hitType |
defines whether it is a truehit (0=PXDTrueHit, 1=SVDTrueHit) or a cluster (2=PXDCluster, 3=SVDCluster) | |
int | m_classification |
defines whether the particle is primary = 0, secondary=1 (background) or ghost=2 (only for SVDClusters), if unknown, it is -1 | |
int | m_particleID |
attaches the hit to a particle for recognition. | |
int | m_pdg |
pdgCode of particle causing hit | |
Bundles information for a single hit to be stored by EventInfo (needed for HitExporter, which is needed by NonRootDataExportModule)
Definition at line 23 of file ExporterHitInfo.h.
typedef unsigned int uInt |
shortcut for unsigned int
Definition at line 28 of file ExporterHitInfo.h.
typedef unsigned short int uShort |
shortcut for unsigned int short
Definition at line 26 of file ExporterHitInfo.h.
|
inline |
Standard constructor.
Definition at line 31 of file ExporterHitInfo.h.
|
inline |
std::string getAdditionalInfoFormatted | ( | ) |
Output of additional information in a string file: it is a line with layerID[empty space]hitID[empty space]sensorAngle.
Output of additional information in a std::string file: it is a line with layerID[empty space]hitID[empty space]sensorAngle.
Definition at line 49 of file ExporterHitInfo.cc.
std::string getCovValuesFormatted | ( | ) |
Output of covValues in a string file: it is a line with CovUU[empty space]CovUV[empty space]CovVV.
Output of covValues in a std::string file: it is a line with CovUU[empty space]CovUV[empty space]CovVV.
Definition at line 39 of file ExporterHitInfo.cc.
|
inline |
returns modified index number of truehit attahed to this hit (means that the iD is unique, so pxd and svd can be stored without overlap)
Definition at line 74 of file ExporterHitInfo.h.
|
inline |
returns particleID of linked particle for recognition.
It's -1 if particle ID is unknown
Definition at line 78 of file ExporterHitInfo.h.
std::string getPositionFormatted | ( | ) |
Output of position in a string file: it is a line with Xpos[empty space]Ypos[empty space]Zpos.
Output of position in a std::string file: it is a line with Xpos[empty space]Ypos[empty space]Zpos.
Definition at line 19 of file ExporterHitInfo.cc.
|
inline |
returns sectorID of hit (this is NOT a FullSecID but only a part of it!)
Definition at line 86 of file ExporterHitInfo.h.
std::string getSimpleHitFormatted | ( | ) |
Output of simple hit info in a string file:
it is a line with particleID[empty space]Xpos[empty space]Ypos[empty space]Zpos[empty space]fullSecID.
Definition at line 28 of file ExporterHitInfo.cc.
|
inline |
returns type of hit.
(0=PXDTrueHit, 1=SVDTrueHit), (2=PXDCluster, 3=SVDCluster)
Definition at line 70 of file ExporterHitInfo.h.
|
inline |
|
protected |
defines whether the particle is primary = 0, secondary=1 (background) or ghost=2 (only for SVDClusters), if unknown, it is -1
Definition at line 101 of file ExporterHitInfo.h.
|
protected |
carries relevant values of the covariance matrix for the hit.
entries are (CovUU, CovUV, CoVV)
Definition at line 93 of file ExporterHitInfo.h.
|
protected |
an event wise unique ID for the hit, which is a modified index number of truehit attached to this hit (means that the iD is unique, so pxd and svd can be stored without overlap)
Definition at line 98 of file ExporterHitInfo.h.
|
protected |
global coordinates of hit
Definition at line 92 of file ExporterHitInfo.h.
|
protected |
defines whether it is a truehit (0=PXDTrueHit, 1=SVDTrueHit) or a cluster (2=PXDCluster, 3=SVDCluster)
Definition at line 100 of file ExporterHitInfo.h.
|
protected |
layerID, for PXD, this is normally 1 or 2, for SVD its typically 3-6
Definition at line 94 of file ExporterHitInfo.h.
|
protected |
attaches the hit to a particle for recognition.
It's -1 if particle ID is unknown
Definition at line 102 of file ExporterHitInfo.h.
|
protected |
pdgCode of particle causing hit
Definition at line 103 of file ExporterHitInfo.h.
|
protected |
stores the sector ID on current sensor for current hit
Definition at line 96 of file ExporterHitInfo.h.
|
protected |
the angle between the orthogonal vector of the sensor plane of the hit and the x-axis.
It is measured clockwise 0-2pi
Definition at line 97 of file ExporterHitInfo.h.
|
protected |
vxdID for sensor-identification
Definition at line 95 of file ExporterHitInfo.h.