13#include <framework/geometry/B2Vector3.h>
33 int hitType,
int classification = -1,
int particleID = -1,
int pdg = -1):
Bundles information for a single hit to be stored by EventInfo (needed for HitExporter,...
unsigned short int uShort
shortcut for unsigned int short
std::string getPositionFormatted()
Output of position in a string file: it is a line with Xpos[empty space]Ypos[empty space]Zpos.
int getHitID() const
returns modified index number of truehit attahed to this hit (means that the iD is unique,...
int m_particleID
attaches the hit to a particle for recognition.
int m_hitType
defines whether it is a truehit (0=PXDTrueHit, 1=SVDTrueHit) or a cluster (2=PXDCluster,...
int m_hitID
an event wise unique ID for the hit, which is a modified index number of truehit attached to this hit...
uShort m_vxdID
vxdID for sensor-identification
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
std::string getSimpleHitFormatted()
Output of simple hit info in a string file:
int m_pdg
pdgCode of particle causing hit
~ExporterHitInfo()
Destructor.
uInt getSectorID()
returns sectorID of hit (this is NOT a FullSecID but only a part of it!)
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.
uInt m_sectorID
stores the sector ID on current sensor for current hit
unsigned int uInt
shortcut for unsigned int
B2Vector3D m_covVal
carries relevant values of the covariance matrix for the hit.
std::string getAdditionalInfoFormatted()
Output of additional information in a string file: it is a line with layerID[empty space]hitID[empty ...
uShort getVxdID()
returns vxdID of hit
int getType() const
returns type of hit.
int getParticleID() const
returns particleID of linked particle for recognition.
std::string getCovValuesFormatted()
Output of covValues in a string file: it is a line with CovUU[empty space]CovUV[empty space]CovVV.
int m_classification
defines whether the particle is primary = 0, secondary=1 (background) or ghost=2 (only for SVDCluster...
B2Vector3D m_hitPos
global coordinates of hit
Abstract base class for different kinds of events.