CMS 3D CMS Logo

DTEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTask_H
2 #define DTEfficiencyTask_H
3 
23 
27 
28 #include <string>
29 #include <map>
30 #include <vector>
31 
32 class DTGeometry;
33 
34 class DTEfficiencyTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
35 public:
38 
40  ~DTEfficiencyTask() override;
41 
43  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
44  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
45 
46  // Operations
47  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
48 
49 protected:
51  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
52 
53  // Book the histograms
54  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
55 
56 private:
61 
62  // Switch for verbosity
63  bool debug;
64 
65  // Lable of 4D segments in the event
67 
68  // Lable of 1D rechits in the event
70 
72 
73  // Fill a set of histograms for a given L
74  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
75  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
76 
77  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
78 };
79 #endif
80 
81 /* Local Variables: */
82 /* show-trailing-whitespace: t */
83 /* truncate-lines: t */
84 /* End: */
DTGeometry
Definition: DTGeometry.h:28
Handle.h
DTEfficiencyTask::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTEfficiencyTask.h:57
DTEfficiencyTask::DTEfficiencyTask
DTEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
Definition: DTEfficiencyTask.cc:33
DTEfficiencyTask::fillHistos
void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire)
Definition: DTEfficiencyTask.cc:408
ESHandle.h
DTRecHitCollection.h
DTEfficiencyTask
Definition: DTEfficiencyTask.h:34
DTEfficiencyTask::dtGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
Definition: DTEfficiencyTask.h:59
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
DTLayerId.h
edm::EDGetTokenT< DTRecSegment4DCollection >
LuminosityBlock.h
DTEfficiencyTask::recHitToken_
edm::EDGetTokenT< DTRecHitCollection > recHitToken_
Definition: DTEfficiencyTask.h:69
DTEfficiencyTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
Definition: DTEfficiencyTask.cc:132
DTEfficiencyTask::dtGeom
const DTGeometry * dtGeom
Definition: DTEfficiencyTask.h:60
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
DTEfficiencyTask::recHits4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTEfficiencyTask.h:66
DTEfficiencyTask::muonGeom
const DTGeometry * muonGeom
Definition: DTEfficiencyTask.h:58
EDAnalyzer.h
DTEfficiencyTask::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTEfficiencyTask.cc:144
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DQMOneEDAnalyzer.h
visDQMUpload.context
context
Definition: visDQMUpload.py:37
DTEfficiencyTask::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
Definition: DTEfficiencyTask.h:44
Service.h
DTLayerId
Definition: DTLayerId.h:12
DTEfficiencyTask::parameters
edm::ParameterSet parameters
Definition: DTEfficiencyTask.h:71
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
DTEfficiencyTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
Definition: DTEfficiencyTask.cc:46
DTEfficiencyTask::debug
bool debug
Definition: DTEfficiencyTask.h:63
DTEfficiencyTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTEfficiencyTask.cc:51
Frameworkfwd.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
DTEfficiencyTask::histosPerL
std::map< DTLayerId, std::vector< MonitorElement * > > histosPerL
Definition: DTEfficiencyTask.h:77
MuonGeometryRecord.h
DTEfficiencyTask::~DTEfficiencyTask
~DTEfficiencyTask() override
Destructor.
Definition: DTEfficiencyTask.cc:44
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTRecSegment4DCollection.h