test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
53 
55  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
56 
57  // Operations
58  void analyze(const edm::Event& event, const edm::EventSetup& setup);
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
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &setup)
BeginRun.
tuple s2
Definition: indexGen.py:106
edm::Handle< DTRecSegment4DCollection > segs
void analyze(const edm::Event &event, const edm::EventSetup &setup)
LocalPoint interpolate(const DTRecSegment4D &seg1, const DTRecSegment4D &seg3, const DTChamberId &MB2) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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: Run.h:43
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
To reset the MEs.