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 
22 
23 // RecHit
25 
28 
29 namespace edm {
30  class ParameterSet;
31  class EventSetup;
32  class Event;
33 } // namespace edm
34 
35 class DTGeometry;
36 class DTTtrig;
37 
38 //-class DTNoiseTask : public edm::EDAnalyzer {
39 class DTNoiseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
40 public:
42  DTNoiseTask(const edm::ParameterSet& ps);
43 
45  ~DTNoiseTask() override;
46 
47  // Operations
48  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
49 
50 protected:
51  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
52 
53  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) final {}
54  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
55 
57  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
58 
59 private:
62 
63  // The label to retrieve the digis
65  // counter of processed events
66  int evtNumber;
67  //switch for time boxes filling
69  // Lable of 4D segments in the event
71  //switch for segment veto
73 
77  const DTTtrig* tTrigMap;
78 
79  //tTrig map per Station
80  std::map<DTChamberId, double> tTrigStMap;
81 
82  //the noise histos (Hz)
83  std::map<DTChamberId, MonitorElement*> noiseHistos;
84 
85  //map for histo normalization
86  std::map<DTChamberId, int> mapEvt;
87 
88  //the time boxes
89  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
90 
92 
93  // safe margin (ns) between ttrig and beginning of counting area
94  double safeMargin;
95 };
96 #endif
97 
98 /* Local Variables: */
99 /* show-trailing-whitespace: t */
100 /* truncate-lines: t */
101 /* End: */
DTNoiseTask::noiseHistos
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:83
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTNoiseTask::tTrigMap
const DTTtrig * tTrigMap
Definition: DTNoiseTask.h:77
DTTtrig
Definition: DTTtrig.h:68
DTTtrigRcd.h
DTNoiseTask::~DTNoiseTask
~DTNoiseTask() override
Destructor.
Definition: DTNoiseTask.cc:59
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< DTDigiCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
DTNoiseTask::mapEvt
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:86
DTNoiseTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTNoiseTask.cc:217
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
DTNoiseTask::nEventMonitor
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:91
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DTNoiseTask::doSegmentVeto
bool doSegmentVeto
Definition: DTNoiseTask.h:72
DQMOneEDAnalyzer.h
DTNoiseTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) final
Definition: DTNoiseTask.h:53
DTNoiseTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTNoiseTask.cc:62
DTNoiseTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTNoiseTask.cc:227
Event
DTNoiseTask::bookHistos
void bookHistos(DQMStore::IBooker &, DTChamberId chId)
Definition: DTNoiseTask.cc:133
DTChamberId.h
DTNoiseTask::recHits4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:70
DTNoiseTask::tbHistos
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:89
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
DTNoiseTask::tTrigStMap
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:80
DTNoiseTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) override
Definition: DTNoiseTask.cc:256
edm::EventSetup
Definition: EventSetup.h:58
DTNoiseTask::doTimeBoxHistos
bool doTimeBoxHistos
Definition: DTNoiseTask.h:68
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
DTNoiseTask::dtDigiToken_
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:64
InputTag.h
DTNoiseTask::safeMargin
double safeMargin
Definition: DTNoiseTask.h:94
DTNoiseTask::tTrigMapToken_
edm::ESGetToken< DTTtrig, DTTtrigRcd > tTrigMapToken_
Definition: DTNoiseTask.h:76
DTNoiseTask::DTNoiseTask
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:37
DTNoiseTask::dtGeom
const DTGeometry * dtGeom
Definition: DTNoiseTask.h:75
DTNoiseTask
Definition: DTNoiseTask.h:39
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTDigi.h
DTDigiCollection.h
DTChamberId
Definition: DTChamberId.h:14
EventSetup
DTSuperLayerId.h
DTNoiseTask::evtNumber
int evtNumber
Definition: DTNoiseTask.h:66
DTNoiseTask::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTNoiseTask.h:74
MuonGeometryRecord.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition: Event.h:73
DTRecSegment4DCollection.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37