CMS 3D CMS Logo

DTChamberEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTChamberEfficiencyTask_H
2 #define DTChamberEfficiencyTask_H
3 
4 
23 
28 
32 
34 
35 #include <string>
36 #include <map>
37 #include <vector>
38 
39 class DQMStore;
40 class MonitorElement;
41 
42 
43 class DTChamberEfficiencyTask: public one::DQMEDAnalyzer<edm::one::WatchLuminosityBlocks> {
44 public:
47 
49  ~DTChamberEfficiencyTask() override;
50 
52  void dqmBeginRun(const edm::Run& run, const edm::EventSetup& setup) override;
53 
55  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
56  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
57 
58  // Operations
59  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
60 
61  protected:
62 // Book the histograms
63 void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
64 
65 private:
66 
69  const DTRecSegment4D* s2) const;
70  bool isGoodSegment(const DTRecSegment4D& seg) const;
72  const DTRecSegment4D& seg3,
73  const DTChamberId& MB2) const;
74 
75  void bookHistos(DQMStore::IBooker & ibooker, DTChamberId chId);
76 
77  // Switch for verbosity
78  bool debug;
79  // The running mode
81  // The analysis mode
83 
84  // Lable of 4D segments in the event
86 
88 
89  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
90 
91  unsigned int theMinHitsSegment;
94 
97 
98 };
99 #endif
100 
101 /* Local Variables: */
102 /* show-trailing-whitespace: t */
103 /* truncate-lines: t */
104 /* End: */
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &setup) override
BeginRun.
edm::Handle< DTRecSegment4DCollection > segs
~DTChamberEfficiencyTask() override
Destructor.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
LocalPoint interpolate(const DTRecSegment4D &seg1, const DTRecSegment4D &seg3, const DTChamberId &MB2) const
DTChamberEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
edm::ESHandle< DTGeometry > dtGeom
bool isGoodSegment(const DTRecSegment4D &seg) const
std::map< DTChamberId, std::vector< MonitorElement * > > histosPerCh
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const DTRecSegment4D & getBestSegment(const DTRecSegment4DCollection::range &segs) const
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Definition: event.py:1
Definition: Run.h:45