CMS 3D CMS Logo

DTChamberEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTChamberEfficiencyTask_H
2 #define DTChamberEfficiencyTask_H
3 
20 
25 
28 
30 
31 #include <string>
32 #include <map>
33 #include <vector>
34 
35 class DTChamberEfficiencyTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
36 public:
39 
41  ~DTChamberEfficiencyTask() override;
42 
44  void dqmBeginRun(const edm::Run& run, const edm::EventSetup& setup) override;
45 
47  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
48  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
49 
50  // Operations
51  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
52 
53 protected:
54  // Book the histograms
55  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
56 
57 private:
59  const DTRecSegment4D* getBestSegment(const DTRecSegment4D* s1, const DTRecSegment4D* s2) const;
60  bool isGoodSegment(const DTRecSegment4D& seg) const;
61  LocalPoint interpolate(const DTRecSegment4D& seg1, const DTRecSegment4D& seg3, const DTChamberId& MB2) const;
62 
63  void bookHistos(DQMStore::IBooker& ibooker, DTChamberId chId);
64 
65  // Switch for verbosity
66  bool debug;
67  // The running mode
69  // The analysis mode
71 
72  // Lable of 4D segments in the event
74 
76 
77  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
78 
79  unsigned int theMinHitsSegment;
82 
85 };
86 #endif
87 
88 /* Local Variables: */
89 /* show-trailing-whitespace: t */
90 /* truncate-lines: t */
91 /* End: */
DTRecSegment4D
Definition: DTRecSegment4D.h:23
Handle.h
DTChamberEfficiencyTask::detailedAnalysis
bool detailedAnalysis
Definition: DTChamberEfficiencyTask.h:70
DTChamberEfficiencyTask::parameters
edm::ParameterSet parameters
Definition: DTChamberEfficiencyTask.h:75
DTChamberEfficiencyTask::recHits4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTChamberEfficiencyTask.h:73
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTChamberEfficiencyTask::theMinChi2NormSegment
double theMinChi2NormSegment
Definition: DTChamberEfficiencyTask.h:80
edm::Run
Definition: Run.h:45
DTLayerId.h
edm::EDGetTokenT< DTRecSegment4DCollection >
LuminosityBlock.h
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
EDAnalyzer.h
indexGen.s2
s2
Definition: indexGen.py:107
DTChamberEfficiencyTask::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
Definition: DTChamberEfficiencyTask.h:48
edm::Handle< DTRecSegment4DCollection >
DTChamberEfficiencyTask::theMinCloseDist
double theMinCloseDist
Definition: DTChamberEfficiencyTask.h:81
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:70
DTChamberEfficiencyTask::~DTChamberEfficiencyTask
~DTChamberEfficiencyTask() override
Destructor.
Definition: DTChamberEfficiencyTask.cc:50
DTChamberEfficiencyTask::interpolate
LocalPoint interpolate(const DTRecSegment4D &seg1, const DTRecSegment4D &seg3, const DTChamberId &MB2) const
Definition: DTChamberEfficiencyTask.cc:332
Service.h
DTChamberEfficiencyTask::segs
edm::Handle< DTRecSegment4DCollection > segs
Definition: DTChamberEfficiencyTask.h:84
DTChamberEfficiencyTask::onlineMonitor
bool onlineMonitor
Definition: DTChamberEfficiencyTask.h:68
edm::ESHandle< DTGeometry >
DTChamberEfficiencyTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
Definition: DTChamberEfficiencyTask.cc:54
Point3DBase< float, LocalTag >
DTChamberEfficiencyTask::debug
bool debug
Definition: DTChamberEfficiencyTask.h:66
DTGeometry.h
DTChamberEfficiencyTask::histosPerCh
std::map< DTChamberId, std::vector< MonitorElement * > > histosPerCh
Definition: DTChamberEfficiencyTask.h:77
edm::ParameterSet
Definition: ParameterSet.h:47
DTChamberEfficiencyTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTChamberEfficiencyTask.cc:75
DTChamberEfficiencyTask::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTChamberEfficiencyTask.cc:147
DTChamberEfficiencyTask::getBestSegment
const DTRecSegment4D & getBestSegment(const DTRecSegment4DCollection::range &segs) const
Definition: DTChamberEfficiencyTask.cc:289
DTChamberEfficiencyTask::dtGeom
edm::ESHandle< DTGeometry > dtGeom
Definition: DTChamberEfficiencyTask.h:83
edm::EventSetup
Definition: EventSetup.h:57
DTChamberEfficiencyTask::isGoodSegment
bool isGoodSegment(const DTRecSegment4D &seg) const
Definition: DTChamberEfficiencyTask.cc:366
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:35
DTChamberEfficiencyTask::DTChamberEfficiencyTask
DTChamberEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
Definition: DTChamberEfficiencyTask.cc:26
DTChamberEfficiencyTask::bookHistos
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Definition: DTChamberEfficiencyTask.cc:90
Frameworkfwd.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
DTChamberEfficiencyTask::theMinHitsSegment
unsigned int theMinHitsSegment
Definition: DTChamberEfficiencyTask.h:79
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTRecSegment4DCollection.h