Belle II Software  release-06-01-15
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 (TVector3 globalHitPosition, TVector3 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: More...
 
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. 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

TVector3 m_hitPos
 global coordinates of hit
 
TVector3 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

◆ getParticleID()

int getParticleID ( ) const
inline

returns particleID of linked particle for recognition.

It's -1 if particle ID is unknown

Definition at line 77 of file ExporterHitInfo.h.

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

◆ 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.

29 {
30  string output = lexical_cast<string>(getParticleID()) + " " + lexical_cast<string>(float(m_hitPos.X())) + " " +
31  lexical_cast<string>(float(m_hitPos.Y())) + " " + lexical_cast<string>(float(m_hitPos.Z())) + " " + lexical_cast<string>(FullSecID(
32  m_sectorID)) + "\n";
33  return output;
34 }
TVector3 m_hitPos
global coordinates of hit
uInt m_sectorID
stores the sector ID on current sensor for current hit
int getParticleID() const
returns particleID of linked particle for recognition.
Class to identify a sector inside of the VXD.
Definition: FullSecID.h:33

◆ getType()

int getType ( ) const
inline

returns type of hit.

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

Definition at line 69 of file ExporterHitInfo.h.

Member Data Documentation

◆ m_covVal

TVector3 m_covVal
protected

carries relevant values of the covariance matrix for the hit.

entries are (CovUU, CovUV, CoVV)

Definition at line 92 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 101 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 96 of file ExporterHitInfo.h.


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