Belle II Software development
SecMapTrainerTC Class Reference

simple Hit class used for sectorMap-training. More...

#include <SecMapTrainerTC.h>

Public Types

using ConstIterator = typename std::vector< SecMapTrainerHit >::const_iterator
 typedef for more readable iterator-type
 

Public Member Functions

 SecMapTrainerTC (int trackID, float pT, int pdg)
 Constructor of class SecMapTrainerTC.
 
void addHit (SecMapTrainerHit hit)
 adds hit to Track.
 
const std::vector< SecMapTrainerHit > & getHits () const
 returns hits of track.
 
ConstIterator outermostHit () const
 returns the iterator-position pointing to the outermost hit.
 
ConstIterator innerEnd () const
 returns the iterator-position pointing after the innermost hit.
 
int getTrackID () const
 returns indexNumber of current track.
 
int getPDG () const
 returns pdgCode of current track.
 
unsigned size () const
 returns number of hits attached to curren track.
 
float getPt () const
 get Pt of track.
 

Protected Attributes

int m_index
 stores index number of track.
 
float m_pT
 stores transverse momentum value for track classification.
 
int m_pdg
 stores pdGCode of particle.
 
std::vector< SecMapTrainerHitm_hits
 contains hits attached to track.
 

Detailed Description

simple Hit class used for sectorMap-training.

Definition at line 22 of file SecMapTrainerTC.h.

Member Typedef Documentation

◆ ConstIterator

using ConstIterator = typename std::vector<SecMapTrainerHit>::const_iterator

typedef for more readable iterator-type

Definition at line 32 of file SecMapTrainerTC.h.

Constructor & Destructor Documentation

◆ SecMapTrainerTC()

SecMapTrainerTC ( int  trackID,
float  pT,
int  pdg 
)
inline

Constructor of class SecMapTrainerTC.

Definition at line 26 of file SecMapTrainerTC.h.

26 :
27 m_index(trackID),
28 m_pT(pT),
29 m_pdg(pdg) {}
float m_pT
stores transverse momentum value for track classification.
int m_pdg
stores pdGCode of particle.
int m_index
stores index number of track.

Member Function Documentation

◆ addHit()

void addHit ( SecMapTrainerHit  hit)
inline

adds hit to Track.

Always add from outer to inner hits, the TC-Class can not detect that by itself!

Definition at line 36 of file SecMapTrainerTC.h.

36{ m_hits.push_back(hit); }
std::vector< SecMapTrainerHit > m_hits
contains hits attached to track.

◆ getHits()

const std::vector< SecMapTrainerHit > & getHits ( ) const
inline

returns hits of track.

Definition at line 39 of file SecMapTrainerTC.h.

39{ return m_hits; }

◆ getPDG()

int getPDG ( ) const
inline

returns pdgCode of current track.

Definition at line 52 of file SecMapTrainerTC.h.

52{ return m_pdg; }

◆ getPt()

float getPt ( ) const
inline

get Pt of track.

Definition at line 58 of file SecMapTrainerTC.h.

58{ return m_pT; }

◆ getTrackID()

int getTrackID ( ) const
inline

returns indexNumber of current track.

Definition at line 49 of file SecMapTrainerTC.h.

49{ return m_index; }

◆ innerEnd()

ConstIterator innerEnd ( ) const
inline

returns the iterator-position pointing after the innermost hit.

Definition at line 46 of file SecMapTrainerTC.h.

46{ return m_hits.end(); }

◆ outermostHit()

ConstIterator outermostHit ( ) const
inline

returns the iterator-position pointing to the outermost hit.

'++' moves the iterator inwards.

Definition at line 43 of file SecMapTrainerTC.h.

43{ return m_hits.begin(); }

◆ size()

unsigned size ( ) const
inline

returns number of hits attached to curren track.

Definition at line 55 of file SecMapTrainerTC.h.

55{ return m_hits.size(); }

Member Data Documentation

◆ m_hits

std::vector<SecMapTrainerHit> m_hits
protected

contains hits attached to track.

Definition at line 64 of file SecMapTrainerTC.h.

◆ m_index

int m_index
protected

stores index number of track.

Definition at line 61 of file SecMapTrainerTC.h.

◆ m_pdg

int m_pdg
protected

stores pdGCode of particle.

Definition at line 63 of file SecMapTrainerTC.h.

◆ m_pT

float m_pT
protected

stores transverse momentum value for track classification.

Definition at line 62 of file SecMapTrainerTC.h.


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