Belle II Software  release-08-01-10
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>

Collaboration diagram for ExporterTcInfo:

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. More...
 
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. More...
 
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. More...
 
std::vector< int > m_hitIDs
 Stores the hitIDs of the hits attached to this TC, can be treated independently of hits themselves. More...
 
std::string m_tcInfo
 contains Info about the tc itself. More...
 

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.

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.

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

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_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: