CMS 3D CMS Logo

CleanTrackMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_CleanTrackMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_CleanTrackMemory_h
3 
5 
6 #include <vector>
7 
8 namespace trklet {
9 
10  class Settings;
11  class Tracklet;
12 
13  class CleanTrackMemory : public MemoryBase {
14  public:
15  CleanTrackMemory(std::string name, Settings const& settings, unsigned int iSector, double phimin, double phimax);
16 
17  ~CleanTrackMemory() override = default;
18 
19  void addTrack(Tracklet* tracklet) { tracks_.push_back(tracklet); }
20 
21  unsigned int nTracks() const { return tracks_.size(); }
22 
23  void clean() override { tracks_.clear(); }
24 
25  void writeCT(bool first);
26 
27  private:
28  double phimin_;
29  double phimax_;
30  std::vector<Tracklet*> tracks_;
31  };
32 
33 }; // namespace trklet
34 #endif
trklet::CleanTrackMemory::nTracks
unsigned int nTracks() const
Definition: CleanTrackMemory.h:21
phimin
float phimin
Definition: ReggeGribovPartonMCHadronizer.h:107
trklet::Settings
Definition: Settings.h:31
trklet::Tracklet
Definition: Tracklet.h:28
trklet::CleanTrackMemory::clean
void clean() override
Definition: CleanTrackMemory.h:23
trklet::CleanTrackMemory::~CleanTrackMemory
~CleanTrackMemory() override=default
trklet::CleanTrackMemory::phimin_
double phimin_
Definition: CleanTrackMemory.h:28
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
trklet::CleanTrackMemory::phimax_
double phimax_
Definition: CleanTrackMemory.h:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::CleanTrackMemory
Definition: CleanTrackMemory.h:13
trklet::CleanTrackMemory::addTrack
void addTrack(Tracklet *tracklet)
Definition: CleanTrackMemory.h:19
trklet::CleanTrackMemory::writeCT
void writeCT(bool first)
Definition: CleanTrackMemory.cc:17
trklet::CleanTrackMemory::CleanTrackMemory
CleanTrackMemory(std::string name, Settings const &settings, unsigned int iSector, double phimin, double phimax)
Definition: CleanTrackMemory.cc:10
trklet::CleanTrackMemory::tracks_
std::vector< Tracklet * > tracks_
Definition: CleanTrackMemory.h:30
trklet
Definition: AllProjectionsMemory.h:9
phimax
float phimax
Definition: ReggeGribovPartonMCHadronizer.h:106
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17