Belle II Software development
SecMapTrainerTC.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10#include <tracking/trackFindingVXD/sectorMapTools/SecMapTrainerHit.h>
11
12#include <vector>
13
14
15namespace Belle2 {
23 public:
24
26 SecMapTrainerTC(int trackID, float pT, int pdg):
27 m_index(trackID),
28 m_pT(pT),
29 m_pdg(pdg) {}
30
32 using ConstIterator = typename std::vector<SecMapTrainerHit>::const_iterator;
33
36 void addHit(SecMapTrainerHit hit) { m_hits.push_back(hit); }
37
39 const std::vector<SecMapTrainerHit>& getHits() const { return m_hits; }
40
43 ConstIterator outermostHit() const { return m_hits.begin(); }
44
46 ConstIterator innerEnd() const { return m_hits.end(); }
47
49 int getTrackID() const { return m_index; }
50
52 int getPDG() const { return m_pdg; }
53
55 unsigned size() const { return m_hits.size(); }
56
58 float getPt() const { return m_pT; }
59
60 protected:
61 int m_index;
62 float m_pT;
63 int m_pdg;
64 std::vector<SecMapTrainerHit> m_hits;
65 };
67}
68
simple Hit class used for sectorMap-training.
simple Hit class used for sectorMap-training.
unsigned size() const
returns number of hits attached to current track.
float getPt() const
get Pt of track.
SecMapTrainerTC(int trackID, float pT, int pdg)
Constructor of class SecMapTrainerTC.
ConstIterator innerEnd() const
returns the iterator-position pointing after the innermost hit.
const std::vector< SecMapTrainerHit > & getHits() const
returns hits of track.
float m_pT
stores transverse momentum value for track classification.
int m_pdg
stores pdGCode of particle.
std::vector< SecMapTrainerHit > m_hits
contains hits attached to track.
int getTrackID() const
returns indexNumber of current track.
int getPDG() const
returns pdgCode of current track.
void addHit(SecMapTrainerHit hit)
adds hit to Track.
int m_index
stores index number of track.
typename std::vector< SecMapTrainerHit >::const_iterator ConstIterator
typedef for more readable iterator-type
ConstIterator outermostHit() const
returns the iterator-position pointing to the outermost hit.
Abstract base class for different kinds of events.