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:
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 writeTPAR(bool first, unsigned int iSector);
32 
33  private:
34  std::vector<Tracklet *> tracklets_;
35  };
36 
37 }; // namespace trklet
38 #endif
trklet::TrackletParametersMemory::TrackletParametersMemory
TrackletParametersMemory(std::string name, Settings const &settings)
Definition: TrackletParametersMemory.cc:11
trklet::TrackletParametersMemory
Definition: TrackletParametersMemory.h:17
mps_fire.i
i
Definition: mps_fire.py:428
trklet::TrackletParametersMemory::addTracklet
void addTracklet(Tracklet *tracklet)
Definition: TrackletParametersMemory.h:23
trklet::Settings
Definition: Settings.h:52
trklet::TrackletParametersMemory::getTracklet
Tracklet * getTracklet(unsigned int i)
Definition: TrackletParametersMemory.h:27
trklet::Tracklet
Definition: Tracklet.h:27
trklet::TrackletParametersMemory::writeTPAR
void writeTPAR(bool first, unsigned int iSector)
Definition: TrackletParametersMemory.cc:21
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::TrackletParametersMemory::clean
void clean() override
Definition: TrackletParametersMemory.cc:14
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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::tracklets_
std::vector< Tracklet * > tracklets_
Definition: TrackletParametersMemory.h:34