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 
29 #include <string>
30 #include <map>
31 #include <vector>
32 
33 class DQMStore;
34 class MonitorElement;
35 
36 
38 public:
41 
43  virtual ~DTChamberEfficiencyTask();
44 
46  void beginJob();
47 
49  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
50 
52  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
53 
55  void endJob();
56 
57  // Operations
58  void analyze(const edm::Event& event, const edm::EventSetup& setup);
59 
60 protected:
61 
62 
63 private:
64 
67  const DTRecSegment4D* s2) const;
68  bool isGoodSegment(const DTRecSegment4D& seg) const;
70  const DTRecSegment4D& seg3,
71  const DTChamberId& MB2) const;
72  void bookHistos(DTChamberId chId);
73 
74 
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
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:41
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
To reset the MEs.