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 
44 public:
47 
49  virtual ~DTChamberEfficiencyTask();
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 
57  // Operations
58  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
59 
60  protected:
61 // Book the histograms
62 void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
63 
64 private:
65 
68  const DTRecSegment4D* s2) const;
69  bool isGoodSegment(const DTRecSegment4D& seg) const;
71  const DTRecSegment4D& seg3,
72  const DTChamberId& MB2) const;
73 
74  void bookHistos(DQMStore::IBooker & ibooker, DTChamberId chId);
75 
76  // Switch for verbosity
77  bool debug;
78  // The running mode
80  // The analysis mode
82 
83  // Lable of 4D segments in the event
85 
87 
88  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
89 
90  unsigned int theMinHitsSegment;
93 
96 
97 };
98 #endif
99 
100 /* Local Variables: */
101 /* show-trailing-whitespace: t */
102 /* truncate-lines: t */
103 /* End: */
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &setup) override
BeginRun.
edm::Handle< DTRecSegment4DCollection > segs
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
virtual ~DTChamberEfficiencyTask()
Destructor.
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Definition: event.py:1
Definition: Run.h:42