CMS 3D CMS Logo

TrackFitMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackFitMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_TrackFitMemory_h
3 
5 
6 #include <vector>
7 
8 namespace trklet {
9 
10  class Settings;
11  class Stub;
12  class L1TStub;
13  class Tracklet;
14 
15  class TrackFitMemory : public MemoryBase {
16  public:
17  TrackFitMemory(std::string name, Settings const& settings, double phimin, double phimax);
18 
19  ~TrackFitMemory() override = default;
20 
21  void addTrack(Tracklet* tracklet) { tracks_.push_back(tracklet); }
22  void addStubList(std::vector<const Stub*> stublist) { stublists_.push_back(stublist); }
23  void addStubidsList(std::vector<std::pair<int, int>> stubidslist) { stubidslists_.push_back(stubidslist); }
24 
25  unsigned int nTracks() const { return tracks_.size(); }
26  unsigned int nStublists() const { return stublists_.size(); }
27  unsigned int nStubidslists() const { return stubidslists_.size(); }
28 
29  Tracklet* getTrack(unsigned int i) { return tracks_[i]; }
30  std::vector<const Stub*> getStublist(unsigned int i) const { return stublists_[i]; }
31  std::vector<std::pair<int, int>> getStubidslist(unsigned int i) const { return stubidslists_[i]; }
32 
33  void clean() override {
34  tracks_.clear();
35  stublists_.clear();
36  stubidslists_.clear();
37  }
38 
39  void writeTF(bool first, unsigned int iSector);
40 
41  private:
42  double phimin_;
43  double phimax_;
44  std::vector<Tracklet*> tracks_;
45  std::vector<std::vector<const Stub*>> stublists_;
46  std::vector<std::vector<std::pair<int, int>>> stubidslists_;
47  };
48 
49 }; // namespace trklet
50 #endif
trklet::TrackFitMemory::phimax_
double phimax_
Definition: TrackFitMemory.h:43
mps_fire.i
i
Definition: mps_fire.py:428
trklet::TrackFitMemory::addStubidsList
void addStubidsList(std::vector< std::pair< int, int >> stubidslist)
Definition: TrackFitMemory.h:23
phimin
float phimin
Definition: ReggeGribovPartonMCHadronizer.h:107
trklet::TrackFitMemory::TrackFitMemory
TrackFitMemory(std::string name, Settings const &settings, double phimin, double phimax)
Definition: TrackFitMemory.cc:10
trklet::TrackFitMemory::stublists_
std::vector< std::vector< const Stub * > > stublists_
Definition: TrackFitMemory.h:45
trklet::Settings
Definition: Settings.h:52
trklet::TrackFitMemory::~TrackFitMemory
~TrackFitMemory() override=default
trklet::TrackFitMemory::getTrack
Tracklet * getTrack(unsigned int i)
Definition: TrackFitMemory.h:29
trklet::Tracklet
Definition: Tracklet.h:27
trklet::TrackFitMemory::phimin_
double phimin_
Definition: TrackFitMemory.h:42
trklet::TrackFitMemory::clean
void clean() override
Definition: TrackFitMemory.h:33
trklet::TrackFitMemory
Definition: TrackFitMemory.h:15
trklet::TrackFitMemory::getStublist
std::vector< const Stub * > getStublist(unsigned int i) const
Definition: TrackFitMemory.h:30
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::TrackFitMemory::nStubidslists
unsigned int nStubidslists() const
Definition: TrackFitMemory.h:27
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
trklet::TrackFitMemory::addTrack
void addTrack(Tracklet *tracklet)
Definition: TrackFitMemory.h:21
trklet::TrackFitMemory::getStubidslist
std::vector< std::pair< int, int > > getStubidslist(unsigned int i) const
Definition: TrackFitMemory.h:31
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
phimax
float phimax
Definition: ReggeGribovPartonMCHadronizer.h:106
trklet::TrackFitMemory::nTracks
unsigned int nTracks() const
Definition: TrackFitMemory.h:25
trklet::TrackFitMemory::tracks_
std::vector< Tracklet * > tracks_
Definition: TrackFitMemory.h:44
trklet::TrackFitMemory::stubidslists_
std::vector< std::vector< std::pair< int, int > > > stubidslists_
Definition: TrackFitMemory.h:46
trklet::TrackFitMemory::nStublists
unsigned int nStublists() const
Definition: TrackFitMemory.h:26
trklet::TrackFitMemory::addStubList
void addStubList(std::vector< const Stub * > stublist)
Definition: TrackFitMemory.h:22
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::TrackFitMemory::writeTF
void writeTF(bool first, unsigned int iSector)
Definition: TrackFitMemory.cc:16