CMS 3D CMS Logo

TrackletParametersMemory.h
Go to the documentation of this file.
1 // TrackletParametersMemory: This class holds the tracklet parameters for selected stub pairs.
2 // This class owns the tracklets. Further modules only holds pointers.
3 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackletParametersMemory_h
4 #define L1Trigger_TrackFindingTracklet_interface_TrackletParametersMemory_h
5 
7 
8 #include <string>
9 #include <vector>
10 
11 namespace trklet {
12 
13  class Settings;
14  class Globals;
15  class Tracklet;
16 
18  public:
19  TrackletParametersMemory(std::string name, Settings const &settings, unsigned int iSector);
20 
21  ~TrackletParametersMemory() override = default;
22 
23  void addTracklet(Tracklet *tracklet) { tracklets_.push_back(tracklet); }
24 
25  unsigned int nTracklets() const { return tracklets_.size(); }
26 
27  Tracklet *getTracklet(unsigned int i) { return tracklets_[i]; }
28 
29  void clean() override;
30 
31  void writeMatches(Globals *globals, int &matchesL1, int &matchesL3, int &matchesL5);
32 
33  void writeTPAR(bool first);
34 
35  private:
36  std::vector<Tracklet *> tracklets_;
37  };
38 
39 }; // namespace trklet
40 #endif
trklet::TrackletParametersMemory
Definition: TrackletParametersMemory.h:17
mps_fire.i
i
Definition: mps_fire.py:355
trklet::TrackletParametersMemory::addTracklet
void addTracklet(Tracklet *tracklet)
Definition: TrackletParametersMemory.h:23
trklet::Settings
Definition: Settings.h:26
trklet::TrackletParametersMemory::getTracklet
Tracklet * getTracklet(unsigned int i)
Definition: TrackletParametersMemory.h:27
trklet::TrackletParametersMemory::writeTPAR
void writeTPAR(bool first)
Definition: TrackletParametersMemory.cc:36
trklet::Globals
Definition: Globals.h:32
dqmdumpme.first
first
Definition: dqmdumpme.py:55
trklet::Tracklet
Definition: Tracklet.h:28
trklet::TrackletParametersMemory::writeMatches
void writeMatches(Globals *globals, int &matchesL1, int &matchesL3, int &matchesL5)
Definition: TrackletParametersMemory.cc:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::TrackletParametersMemory::clean
void clean() override
Definition: TrackletParametersMemory.cc:13
trklet
Definition: AllProjectionsMemory.h:9
trklet::TrackletParametersMemory::nTracklets
unsigned int nTracklets() const
Definition: TrackletParametersMemory.h:25
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::TrackletParametersMemory::~TrackletParametersMemory
~TrackletParametersMemory() override=default
trklet::TrackletParametersMemory::TrackletParametersMemory
TrackletParametersMemory(std::string name, Settings const &settings, unsigned int iSector)
Definition: TrackletParametersMemory.cc:10
trklet::TrackletParametersMemory::tracklets_
std::vector< Tracklet * > tracklets_
Definition: TrackletParametersMemory.h:36