CMS 3D CMS Logo

DTNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTNoiseTask_H
2 #define DTNoiseTask_H
3 
11 
14 
19 
21 
22 // RecHit
24 
27 
28 namespace edm {
29  class ParameterSet;
30  class EventSetup;
31  class Event;
32 } // namespace edm
33 
34 class DTGeometry;
35 
36 //-class DTNoiseTask : public edm::EDAnalyzer {
37 class DTNoiseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
38 public:
40  DTNoiseTask(const edm::ParameterSet& ps);
41 
43  ~DTNoiseTask() override;
44 
45  // Operations
46  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
47 
48 protected:
49  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
50 
51  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) final {}
52  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
53 
55  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
56 
57 private:
60 
61  // The label to retrieve the digis
63  // counter of processed events
64  int evtNumber;
65  //switch for time boxes filling
67  // Lable of 4D segments in the event
69  //switch for segment veto
71 
74 
75  //tTrig map per Station
76  std::map<DTChamberId, double> tTrigStMap;
77 
78  //the noise histos (Hz)
79  std::map<DTChamberId, MonitorElement*> noiseHistos;
80 
81  //map for histo normalization
82  std::map<DTChamberId, int> mapEvt;
83 
84  //the time boxes
85  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
86 
88 
89  // safe margin (ns) between ttrig and beginning of counting area
90  double safeMargin;
91 };
92 #endif
93 
94 /* Local Variables: */
95 /* show-trailing-whitespace: t */
96 /* truncate-lines: t */
97 /* End: */
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:82
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:87
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
bool doSegmentVeto
Definition: DTNoiseTask.h:70
void bookHistos()
Definition: Histogram.h:33
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:72
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:68
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTask.h:73
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) final
Definition: DTNoiseTask.h:51
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:62
double safeMargin
Definition: DTNoiseTask.h:90
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:85
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:76
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
HLT enums.
bool doTimeBoxHistos
Definition: DTNoiseTask.h:66
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:79
Definition: Run.h:45