Belle II Software  release-08-01-10
ExporterHitInfo Class Reference

Bundles information for a single hit to be stored by EventInfo (needed for HitExporter, which is needed by NonRootDataExportModule) More...

#include <ExporterHitInfo.h>

Collaboration diagram for ExporterHitInfo:

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. More...
 
std::string getSimpleHitFormatted ()
 Output of simple hit info in a string file: More...
 
std::string getCovValuesFormatted ()
 Output of covValues in a string file: it is a line with CovUU[empty space]CovUV[empty space]CovVV. More...
 
std::string getAdditionalInfoFormatted ()
 Output of additional information in a string file: it is a line with layerID[empty space]hitID[empty space]sensorAngle. More...
 
int getType () const
 returns type of hit. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
int m_pdg
 pdgCode of particle causing hit
 

Detailed Description

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.

Member Function Documentation

◆ getAdditionalInfoFormatted()

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.

50 {
51  std::string output = lexical_cast<std::string>(m_layerID) + " " + lexical_cast<std::string>(m_hitID) + " " +
52  lexical_cast<std::string>
53  (m_sensorAngle) + "\n";
54  return output;
55 }
int m_hitID
an event wise unique ID for the hit, which is a modified index number of truehit attached to this hit...
double m_sensorAngle
the angle between the orthogonal vector of the sensor plane of the hit and the x-axis.
int m_layerID
layerID, for PXD, this is normally 1 or 2, for SVD its typically 3-6

◆ getCovValuesFormatted()

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.

◆ getParticleID()

int getParticleID ( ) const
inline

returns particleID of linked particle for recognition.

It's -1 if particle ID is unknown

Definition at line 78 of file ExporterHitInfo.h.

78 { return m_particleID; }
int m_particleID
attaches the hit to a particle for recognition.

◆ getPositionFormatted()

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.

◆ getSimpleHitFormatted()

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.

◆ getType()

int getType ( ) const
inline

returns type of hit.

(0=PXDTrueHit, 1=SVDTrueHit), (2=PXDCluster, 3=SVDCluster)

Definition at line 70 of file ExporterHitInfo.h.

Member Data Documentation

◆ m_covVal

B2Vector3D m_covVal
protected

carries relevant values of the covariance matrix for the hit.

entries are (CovUU, CovUV, CoVV)

Definition at line 93 of file ExporterHitInfo.h.

◆ m_particleID

int m_particleID
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.

◆ m_sensorAngle

double m_sensorAngle
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.


The documentation for this class was generated from the following files: