CMS 3D CMS Logo

TrackletProjectionsMemory.h
Go to the documentation of this file.
1 // TrackletProjectionsMemory: this class holds the
2 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackletProjectionsMemory_h
3 #define L1Trigger_TrackFindingTracklet_interface_TrackletProjectionsMemory_h
4 
6 
7 #include <string>
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Tracklet;
14 
16  public:
18 
20  if (settings_.writeMonitorData("WriteEmptyProj") && (!hasProj_)) {
21  edm::LogPrint("Tracklet") << "Empty Projection Memory : " << getName() << std::endl;
22  }
23  };
24 
25  void addProj(Tracklet* tracklet);
26 
27  unsigned int nTracklets() const { return tracklets_.size(); }
28 
29  Tracklet* getTracklet(unsigned int i) { return tracklets_[i]; }
30 
31  void clean() override;
32 
33  void writeTPROJ(bool first, unsigned int iSector);
34 
35  int layer() const { return layer_; }
36  int disk() const { return disk_; }
37 
38  private:
39  std::vector<Tracklet*> tracklets_;
40 
41  bool hasProj_;
42  int layer_;
43  int disk_;
44  };
45 
46 }; // namespace trklet
47 #endif
void writeTPROJ(bool first, unsigned int iSector)
Settings const & settings_
Definition: MemoryBase.h:53
std::string const & getName() const
Definition: MemoryBase.h:19
bool writeMonitorData(std::string module) const
Definition: Settings.h:116
Log< level::Warning, true > LogPrint
TrackletProjectionsMemory(std::string name, Settings const &settings)