CMS 3D CMS Logo

AllProjectionsMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_AllProjectionsMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_AllProjectionsMemory_h
3 
5 
6 #include <string>
7 #include <vector>
8 
9 namespace trklet {
10 
11  class Settings;
12  class Tracklet;
13 
15  public:
17 
18  ~AllProjectionsMemory() override = default;
19 
20  void addTracklet(Tracklet* tracklet) { tracklets_.push_back(tracklet); }
21 
22  unsigned int nTracklets() const { return tracklets_.size(); }
23 
24  const Tracklet* getTracklet(unsigned int i) const { return tracklets_[i]; }
25 
26  void clean() override { tracklets_.clear(); }
27 
28  void writeAP(bool first, unsigned int iSector);
29 
30  private:
31  std::vector<Tracklet*> tracklets_;
32 
33  int layer_;
34  int disk_;
35  };
36 }; // namespace trklet
37 #endif
trklet::AllProjectionsMemory::AllProjectionsMemory
AllProjectionsMemory(std::string name, Settings const &settings)
Definition: AllProjectionsMemory.cc:13
mps_fire.i
i
Definition: mps_fire.py:428
trklet::AllProjectionsMemory::disk_
int disk_
Definition: AllProjectionsMemory.h:34
trklet::AllProjectionsMemory::addTracklet
void addTracklet(Tracklet *tracklet)
Definition: AllProjectionsMemory.h:20
trklet::Settings
Definition: Settings.h:52
trklet::AllProjectionsMemory::layer_
int layer_
Definition: AllProjectionsMemory.h:33
trklet::AllProjectionsMemory
Definition: AllProjectionsMemory.h:14
trklet::Tracklet
Definition: Tracklet.h:27
trklet::AllProjectionsMemory::nTracklets
unsigned int nTracklets() const
Definition: AllProjectionsMemory.h:22
trklet::AllProjectionsMemory::tracklets_
std::vector< Tracklet * > tracklets_
Definition: AllProjectionsMemory.h:31
trklet::AllProjectionsMemory::clean
void clean() override
Definition: AllProjectionsMemory.h:26
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::AllProjectionsMemory::getTracklet
const Tracklet * getTracklet(unsigned int i) const
Definition: AllProjectionsMemory.h:24
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::AllProjectionsMemory::~AllProjectionsMemory
~AllProjectionsMemory() override=default
trklet::AllProjectionsMemory::writeAP
void writeAP(bool first, unsigned int iSector)
Definition: AllProjectionsMemory.cc:17