Belle II Software development
ExporterTcInfo Class Reference

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

#include <ExporterTcInfo.h>

Public Member Functions

 ExporterTcInfo (int pdg, int motherID)
 Standard constructor.
 
 ~ExporterTcInfo ()
 Destructor.
 
void addHit (std::pair< double, std::string > hit)
 adds already formatted hit information.
 
void addHitIDs (const std::vector< int > &ids)
 adds IDs of hits for unique identification
 
int getNHits ()
 returns number of Hits attached to this tc
 
std::vector< std::pair< double, std::string > > * getHits ()
 returns the hits added one by one using addHit
 
std::vector< int > * getHitIDs ()
 returns hitIDs of the hits attached to this TC (in no particular order!)
 
void addInfo (const std::string &info)
 Adds Info about the tc itself.
 
std::string getInfo ()
 returns info about tc in formatted without having the last piece of the Information
 
int getPdgCode ()
 returns pdgCode of tc in the tc-file
 
int getMotherID ()
 returns index of the mother particle in the simulation
 

Protected Attributes

int m_pdgCode
 pdgCode of tc in the tc-file. TODO: implement a check which proves that suggested and real fileIndex are the same!
 
int m_motherID
 Index of the mother particle in the simulation.
 
std::vector< std::pair< double, std::string > > m_hits
 Contains already formatted hit information.
 
std::vector< int > m_hitIDs
 Stores the hitIDs of the hits attached to this TC, can be treated independently of hits themselves.
 
std::string m_tcInfo
 contains Info about the tc itself.
 

Detailed Description

Bundles information for a single track candidate to be stored by EventInfo (needed for HitExporter, which is needed by NonRootDataExportModule)

Definition at line 22 of file ExporterTcInfo.h.

Constructor & Destructor Documentation

◆ ExporterTcInfo()

ExporterTcInfo ( int  pdg,
int  motherID 
)
inline

Standard constructor.

Definition at line 25 of file ExporterTcInfo.h.

25 :
26 m_pdgCode(pdg),
27 m_motherID(motherID) {}
int m_motherID
Index of the mother particle in the simulation.
int m_pdgCode
pdgCode of tc in the tc-file. TODO: implement a check which proves that suggested and real fileIndex ...

◆ ~ExporterTcInfo()

~ExporterTcInfo ( )
inline

Destructor.

Definition at line 31 of file ExporterTcInfo.h.

31{}

Member Function Documentation

◆ addHit()

void addHit ( std::pair< double, std::string >  hit)
inline

adds already formatted hit information.

The .first value of the pair is the radius of the hit, so the vector can be sorted using it

Definition at line 36 of file ExporterTcInfo.h.

36{ m_hits.push_back(hit); }
std::vector< std::pair< double, std::string > > m_hits
Contains already formatted hit information.

◆ addHitIDs()

void addHitIDs ( const std::vector< int > &  ids)
inline

adds IDs of hits for unique identification

Definition at line 40 of file ExporterTcInfo.h.

40{ m_hitIDs = ids; }
std::vector< int > m_hitIDs
Stores the hitIDs of the hits attached to this TC, can be treated independently of hits themselves.

◆ addInfo()

void addInfo ( const std::string &  info)
inline

Adds Info about the tc itself.

It is already formatted but lacks of the last information needed, the index of the first McPoint

Definition at line 58 of file ExporterTcInfo.h.

58{ m_tcInfo = info; }
std::string m_tcInfo
contains Info about the tc itself.

◆ getHitIDs()

std::vector< int > * getHitIDs ( )
inline

returns hitIDs of the hits attached to this TC (in no particular order!)

Definition at line 52 of file ExporterTcInfo.h.

52{ return &m_hitIDs; }

◆ getHits()

std::vector< std::pair< double, std::string > > * getHits ( )
inline

returns the hits added one by one using addHit

Definition at line 48 of file ExporterTcInfo.h.

48{ return &m_hits; }

◆ getInfo()

std::string getInfo ( )
inline

returns info about tc in formatted without having the last piece of the Information

Definition at line 62 of file ExporterTcInfo.h.

62{ return m_tcInfo; }

◆ getMotherID()

int getMotherID ( )
inline

returns index of the mother particle in the simulation

Definition at line 70 of file ExporterTcInfo.h.

70{ return m_motherID; }

◆ getNHits()

int getNHits ( )
inline

returns number of Hits attached to this tc

Definition at line 44 of file ExporterTcInfo.h.

44{ return m_hits.size(); }

◆ getPdgCode()

int getPdgCode ( )
inline

returns pdgCode of tc in the tc-file

Definition at line 66 of file ExporterTcInfo.h.

66{ return m_pdgCode; }

Member Data Documentation

◆ m_hitIDs

std::vector<int> m_hitIDs
protected

Stores the hitIDs of the hits attached to this TC, can be treated independently of hits themselves.

It's only important to know, which tc had which hits.

Definition at line 86 of file ExporterTcInfo.h.

◆ m_hits

std::vector<std::pair<double, std::string> > m_hits
protected

Contains already formatted hit information.

The .first value of the pair is the radius of the hit, so the vector can be sorted using it.

Definition at line 82 of file ExporterTcInfo.h.

◆ m_motherID

int m_motherID
protected

Index of the mother particle in the simulation.

Definition at line 78 of file ExporterTcInfo.h.

◆ m_pdgCode

int m_pdgCode
protected

pdgCode of tc in the tc-file. TODO: implement a check which proves that suggested and real fileIndex are the same!

Definition at line 75 of file ExporterTcInfo.h.

◆ m_tcInfo

std::string m_tcInfo
protected

contains Info about the tc itself.

It is already formatted but lacks of the last information needed, the index of the first McPoint.

Definition at line 90 of file ExporterTcInfo.h.


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