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 
25 
30 
31 #include <string>
32 #include <map>
33 #include <vector>
34 
35 class DQMStore;
36 class MonitorElement;
37 
38 
40 public:
43 
45  virtual ~DTChamberEfficiencyTask();
46 
48  void beginJob();
49 
51  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
52 
54  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
55 
57  void endJob();
58 
59  // Operations
60  void analyze(const edm::Event& event, const edm::EventSetup& setup);
61 
62 protected:
63 
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  void bookHistos(DTChamberId chId);
75 
76 
78 
79  // Switch for verbosity
80  bool debug;
81  // The running mode
83  // The analysis mode
85 
86  // Lable of 4D segments in the event
87  std::string theRecHits4DLabel;
88 
90 
91  std::map<DTChamberId, std::vector<MonitorElement*> > histosPerCh;
92 
93  unsigned int theMinHitsSegment;
96 
99 
100 };
101 #endif
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:52
tuple s2
Definition: indexGen.py:106
void bookHistos(DTChamberId chId)
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
const DTRecSegment4D & getBestSegment(const DTRecSegment4DCollection::range &segs) const
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
BeginRun.
virtual ~DTChamberEfficiencyTask()
Destructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:33
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
To reset the MEs.