Belle II Software  release-05-02-19
SecMapTrainerTC.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler (jakob.lettenbichler@oeaw.ac.at) *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <tracking/trackFindingVXD/sectorMapTools/SecMapTrainerHit.h>
13 
14 #include <vector>
15 
16 
17 namespace Belle2 {
24  class SecMapTrainerTC {
25  public:
26 
28  SecMapTrainerTC(int trackID, float pT, int pdg):
29  m_index(trackID),
30  m_pT(pT),
31  m_pdg(pdg) {}
32 
34  using ConstIterator = typename std::vector<SecMapTrainerHit>::const_iterator;
35 
38  void addHit(SecMapTrainerHit hit) { m_hits.push_back(hit); }
39 
41  const std::vector<SecMapTrainerHit>& getHits() const { return m_hits; }
42 
45  ConstIterator outermostHit() const { return m_hits.begin(); }
46 
48  ConstIterator innerEnd() const { return m_hits.end(); }
49 
51  int getTrackID() const { return m_index; }
52 
54  int getPDG() const { return m_pdg; }
55 
57  unsigned size() const { return m_hits.size(); }
58 
60  float getPt() const { return m_pT; }
61 
62  protected:
63  int m_index;
64  float m_pT;
65  int m_pdg;
66  std::vector<SecMapTrainerHit> m_hits;
67  };
69 }
70 
Belle2::SecMapTrainerTC::getPt
float getPt() const
get Pt of track.
Definition: SecMapTrainerTC.h:68
Belle2::SecMapTrainerTC::getTrackID
int getTrackID() const
returns indexNumber of current track.
Definition: SecMapTrainerTC.h:59
Belle2::SecMapTrainerTC::outermostHit
ConstIterator outermostHit() const
returns the iterator-position pointing to the outermost hit.
Definition: SecMapTrainerTC.h:53
Belle2::SecMapTrainerTC::innerEnd
ConstIterator innerEnd() const
returns the iterator-position pointing after the innermost hit.
Definition: SecMapTrainerTC.h:56
Belle2::SecMapTrainerTC::getHits
const std::vector< SecMapTrainerHit > & getHits() const
returns hits of track.
Definition: SecMapTrainerTC.h:49
Belle2::SecMapTrainerTC::addHit
void addHit(SecMapTrainerHit hit)
adds hit to Track.
Definition: SecMapTrainerTC.h:46
Belle2::SecMapTrainerTC::size
unsigned size() const
returns number of hits attached to curren track.
Definition: SecMapTrainerTC.h:65
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SecMapTrainerTC::SecMapTrainerTC
SecMapTrainerTC(int trackID, float pT, int pdg)
Constructor of class SecMapTrainerTC.
Definition: SecMapTrainerTC.h:36
Belle2::SecMapTrainerTC::m_pT
float m_pT
stores transverse momentum value for track classification.
Definition: SecMapTrainerTC.h:72
Belle2::SecMapTrainerHit
simple Hit class used for sectorMap-training.
Definition: SecMapTrainerHit.h:35
Belle2::SecMapTrainerTC::m_pdg
int m_pdg
stores pdGCode of particle.
Definition: SecMapTrainerTC.h:73
Belle2::SecMapTrainerTC::m_index
int m_index
stores index number of track.
Definition: SecMapTrainerTC.h:71
Belle2::SecMapTrainerTC::getPDG
int getPDG() const
returns pdgCode of current track.
Definition: SecMapTrainerTC.h:62
Belle2::SecMapTrainerTC::ConstIterator
typename std::vector< SecMapTrainerHit >::const_iterator ConstIterator
typedef for more readable iterator-type
Definition: SecMapTrainerTC.h:42
Belle2::SecMapTrainerTC::m_hits
std::vector< SecMapTrainerHit > m_hits
contains hits attached to track.
Definition: SecMapTrainerTC.h:74