CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTEfficiencyTask_H
2 #define DTEfficiencyTask_H
3 
4 
22 
23 #include <string>
24 #include <map>
25 #include <vector>
26 
27 class DQMStore;
28 class MonitorElement;
29 
30 
32 public:
35 
37  virtual ~DTEfficiencyTask();
38 
40  void beginJob();
41 
43  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
44 
46  void endJob();
47 
48  // Operations
49  void analyze(const edm::Event& event, const edm::EventSetup& setup);
50 
51 protected:
52 
53 
54 private:
56 
57  // Switch for verbosity
58  bool debug;
59 
60  // Lable of 4D segments in the event
62 
63  // Lable of 1D rechits in the event
65 
67 
68  // Book a set of histograms for a give chamber
69  void bookHistos(DTLayerId lId, int fisrtWire, int lastWire);
70 
71  // Fill a set of histograms for a given L
72  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire);
73  void fillHistos(DTLayerId lId, int firstWire, int lastWire, int missingWire, bool UnassHit);
74 
75  std::map<DTLayerId, std::vector<MonitorElement*> > histosPerL;
76 
77 };
78 #endif
79 
80 
81 /* Local Variables: */
82 /* show-trailing-whitespace: t */
83 /* truncate-lines: t */
84 /* End: */
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
To reset the MEs.
std::map< DTLayerId, std::vector< MonitorElement * > > histosPerL
void fillHistos(DTLayerId lId, int firstWire, int lastWire, int numWire)
edm::EDGetTokenT< DTRecHitCollection > recHitToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
void beginJob()
BeginJob.
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
void bookHistos(DTLayerId lId, int fisrtWire, int lastWire)
virtual ~DTEfficiencyTask()
Destructor.
void analyze(const edm::Event &event, const edm::EventSetup &setup)
void endJob()
Endjob.
DTEfficiencyTask(const edm::ParameterSet &pset)
Constructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
edm::ParameterSet parameters