CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTriggerEfficiencyTask.h
Go to the documentation of this file.
1 #ifndef DTTriggerEfficiencyTask_H
2 #define DTTriggerEfficiencyTask_H
3 
4 /*
5  * \file DTTriggerEfficiencyTask.h
6  *
7  * $Date: 2011/10/21 18:10:23 $
8  * $Revision: 1.4 $
9  * \author C. Battilana - CIEMAT
10  *
11 */
12 
18 
21 
23 
25 
29 
34 
35 #include <vector>
36 #include <string>
37 #include <map>
38 
39 class DTGeometry;
40 class DTChamberId;
41 class DTTrigGeomUtils;
42 
44 
45  public:
46 
49 
51  virtual ~DTTriggerEfficiencyTask();
52 
53  protected:
54 
55  // BeginJob
56  void beginJob();
57 
59  void beginRun(const edm::Run& run, const edm::EventSetup& context);
60 
62  void bookChamberHistos(const DTChamberId& dtCh, std::string histoTag, std::string folder="");
63 
65  void bookWheelHistos(int wheel, std::string histoTag, std::string folder="");
66 
68  bool hasRPCTriggers(const edm::Event& e);
69 
71  std::string topFolder(std::string source) { return source=="DCC" ? "DT/03-LocalTrigger-DCC/" : "DT/04-LocalTrigger-DDU/"; }
72 
74  void analyze(const edm::Event& e, const edm::EventSetup& c);
75 
77  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
78 
80  void endJob(void);
81 
82  private:
83 
84  int nevents;
85 
86  std::string SegmArbitration;
87 
89  std::vector<std::string> processTags;
91 
92  float phiAccRange;
94 
96 
100 
102 
107  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
108  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
109 
110 };
111 
112 #endif
void bookChamberHistos(const DTChamberId &dtCh, std::string histoTag, std::string folder="")
Book chamber granularity histograms.
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void beginRun(const edm::Run &run, const edm::EventSetup &context)
BeginRun.
bool hasRPCTriggers(const edm::Event &e)
checks for RPC Triggers
edm::ESHandle< DTGeometry > muonGeom
virtual ~DTTriggerEfficiencyTask()
Destructor.
std::vector< std::string > processTags
void bookWheelHistos(int wheel, std::string histoTag, std::string folder="")
Book wheel granularity histograms.
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
DTTriggerEfficiencyTask(const edm::ParameterSet &ps)
Constructor.
std::string topFolder(std::string source)
return the top folder
Definition: Run.h:33