CMS 3D CMS Logo

DTNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTNoiseTask_H
2 #define DTNoiseTask_H
3 
11 
13 
18 
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 class DTTtrig;
36 
37 //-class DTNoiseTask : public edm::EDAnalyzer {
38 class DTNoiseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
39 public:
41  DTNoiseTask(const edm::ParameterSet& ps);
42 
44  ~DTNoiseTask() override;
45 
46  // Operations
47  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
48 
49 protected:
50  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
51 
52  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) final {}
53  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
54 
56  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
57 
58 private:
61 
62  // The label to retrieve the digis
64  // counter of processed events
65  int evtNumber;
66  //switch for time boxes filling
68  // Lable of 4D segments in the event
70  //switch for segment veto
72 
76  const DTTtrig* tTrigMap;
77 
78  //tTrig map per Station
79  std::map<DTChamberId, double> tTrigStMap;
80 
81  //the noise histos (Hz)
82  std::map<DTChamberId, MonitorElement*> noiseHistos;
83 
84  //map for histo normalization
85  std::map<DTChamberId, int> mapEvt;
86 
87  //the time boxes
88  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
89 
91 
92  // safe margin (ns) between ttrig and beginning of counting area
93  double safeMargin;
94 };
95 #endif
96 
97 /* Local Variables: */
98 /* show-trailing-whitespace: t */
99 /* truncate-lines: t */
100 /* End: */
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:85
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:90
bool doSegmentVeto
Definition: DTNoiseTask.h:71
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTNoiseTask.cc:218
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTNoiseTask.cc:63
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:69
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) final
Definition: DTNoiseTask.h:52
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) override
Definition: DTNoiseTask.cc:257
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:63
double safeMargin
Definition: DTNoiseTask.h:93
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTNoiseTask.cc:228
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:88
void bookHistos(DQMStore::IBooker &, DTChamberId chId)
Definition: DTNoiseTask.cc:134
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:79
const DTGeometry * dtGeom
Definition: DTNoiseTask.h:74
edm::ESGetToken< DTTtrig, DTTtrigRcd > tTrigMapToken_
Definition: DTNoiseTask.h:75
HLT enums.
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:37
bool doTimeBoxHistos
Definition: DTNoiseTask.h:67
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:82
const DTTtrig * tTrigMap
Definition: DTNoiseTask.h:76
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTNoiseTask.h:73
Definition: Run.h:45
~DTNoiseTask() override
Destructor.
Definition: DTNoiseTask.cc:60