CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
DTChamberEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTChamberEfficiencyTask_H
2 #define DTChamberEfficiencyTask_H
3 
20 
26 
29 
31 
32 #include <string>
33 #include <map>
34 #include <vector>
35 
36 class DTChamberEfficiencyTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
37 public:
40 
42  ~DTChamberEfficiencyTask() override;
43 
45  void dqmBeginRun(const edm::Run& run, const edm::EventSetup& setup) override;
46 
48  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
49  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
50 
51  // Operations
52  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
53 
54 protected:
55  // Book the histograms
56  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
57 
58 private:
60  const DTRecSegment4D* getBestSegment(const DTRecSegment4D* s1, const DTRecSegment4D* s2) const;
61  bool isGoodSegment(const DTRecSegment4D& seg) const;
62  LocalPoint interpolate(const DTRecSegment4D& seg1, const DTRecSegment4D& seg3, const DTChamberId& MB2) const;
63 
64  void bookHistos(DQMStore::IBooker& ibooker, DTChamberId chId);
65 
66  // Switch for verbosity
67  bool debug;
68  // The running mode
70  // The analysis mode
72 
73  // Lable of 4D segments in the event
75 
77 
78  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
79 
80  unsigned int theMinHitsSegment;
83 
84  //Load geometry
88 };
89 #endif
90 
91 /* Local Variables: */
92 /* show-trailing-whitespace: t */
93 /* truncate-lines: t */
94 /* End: */
DTGeometry
Definition: DTGeometry.h:28
DTRecSegment4D
Definition: DTRecSegment4D.h:23
Handle.h
DTChamberEfficiencyTask::detailedAnalysis
bool detailedAnalysis
Definition: DTChamberEfficiencyTask.h:71
DTChamberEfficiencyTask::parameters
edm::ParameterSet parameters
Definition: DTChamberEfficiencyTask.h:76
DTChamberEfficiencyTask::recHits4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTChamberEfficiencyTask.h:74
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTChamberEfficiencyTask::theMinChi2NormSegment
double theMinChi2NormSegment
Definition: DTChamberEfficiencyTask.h:81
edm::Run
Definition: Run.h:45
DTLayerId.h
edm::EDGetTokenT< DTRecSegment4DCollection >
LuminosityBlock.h
DTChamberEfficiencyTask::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTChamberEfficiencyTask.h:85
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
EDAnalyzer.h
DTChamberEfficiencyTask::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
Definition: DTChamberEfficiencyTask.h:49
edm::Handle< DTRecSegment4DCollection >
DTChamberEfficiencyTask::theMinCloseDist
double theMinCloseDist
Definition: DTChamberEfficiencyTask.h:82
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DQMOneEDAnalyzer.h
DTChamberEfficiencyTask::dqmBeginRun
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &setup) override
BeginRun.
Definition: DTChamberEfficiencyTask.cc:68
visDQMUpload.context
context
Definition: visDQMUpload.py:37
DTChamberEfficiencyTask::~DTChamberEfficiencyTask
~DTChamberEfficiencyTask() override
Destructor.
Definition: DTChamberEfficiencyTask.cc:48
DTChamberEfficiencyTask::interpolate
LocalPoint interpolate(const DTRecSegment4D &seg1, const DTRecSegment4D &seg3, const DTChamberId &MB2) const
Definition: DTChamberEfficiencyTask.cc:330
Service.h
DTChamberEfficiencyTask::segs
edm::Handle< DTRecSegment4DCollection > segs
Definition: DTChamberEfficiencyTask.h:87
DTChamberEfficiencyTask::onlineMonitor
bool onlineMonitor
Definition: DTChamberEfficiencyTask.h:69
DTChamberEfficiencyTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
Definition: DTChamberEfficiencyTask.cc:52
Point3DBase< float, LocalTag >
DTChamberEfficiencyTask::debug
bool debug
Definition: DTChamberEfficiencyTask.h:67
DTGeometry.h
DTChamberEfficiencyTask::histosPerCh
std::map< DTChamberId, std::vector< MonitorElement * > > histosPerCh
Definition: DTChamberEfficiencyTask.h:78
edm::ParameterSet
Definition: ParameterSet.h:47
DTChamberEfficiencyTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTChamberEfficiencyTask.cc:73
DTChamberEfficiencyTask::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTChamberEfficiencyTask.cc:145
DTChamberEfficiencyTask::getBestSegment
const DTRecSegment4D & getBestSegment(const DTRecSegment4DCollection::range &segs) const
Definition: DTChamberEfficiencyTask.cc:287
DTChamberEfficiencyTask::dtGeom
const DTGeometry * dtGeom
Definition: DTChamberEfficiencyTask.h:86
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
DTChamberEfficiencyTask::isGoodSegment
bool isGoodSegment(const DTRecSegment4D &seg) const
Definition: DTChamberEfficiencyTask.cc:364
edm::RangeMap::range
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DTChamberEfficiencyTask
Definition: DTChamberEfficiencyTask.h:36
DTChamberEfficiencyTask::DTChamberEfficiencyTask
DTChamberEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
Definition: DTChamberEfficiencyTask.cc:23
DTChamberEfficiencyTask::bookHistos
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Definition: DTChamberEfficiencyTask.cc:88
Frameworkfwd.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
MuonGeometryRecord.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
DTChamberEfficiencyTask::theMinHitsSegment
unsigned int theMinHitsSegment
Definition: DTChamberEfficiencyTask.h:80
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTRecSegment4DCollection.h