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  * \author C. Battilana - CIEMAT
8  *
9 */
10 
16 
19 
21 
23 
27 
35 
36 #include <vector>
37 #include <string>
38 #include <map>
39 
40 class DTGeometry;
41 class DTChamberId;
42 class DTTrigGeomUtils;
43 
45 
46  public:
47 
50 
52  virtual ~DTTriggerEfficiencyTask();
53 
54  protected:
55 
56  // BeginJob
57  void beginJob();
58 
60  void beginRun(const edm::Run& run, const edm::EventSetup& context);
61 
63  void bookChamberHistos(const DTChamberId& dtCh, std::string histoTag, std::string folder="");
64 
66  void bookWheelHistos(int wheel, std::string histoTag, std::string folder="");
67 
69  bool hasRPCTriggers(const edm::Event& e);
70 
72  std::string topFolder(std::string source) { return source=="DCC" ? "DT/03-LocalTrigger-DCC/" : "DT/04-LocalTrigger-DDU/"; }
73 
75  void analyze(const edm::Event& e, const edm::EventSetup& c);
76 
78  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
79 
81  void endJob(void);
82 
83  private:
84 
85  int nevents;
86 
88 
90  std::vector<std::string> processTags;
92 
93  float phiAccRange;
95 
101 
106  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
107  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
108 
109 };
110 
111 #endif
112 
113 /* Local Variables: */
114 /* show-trailing-whitespace: t */
115 /* truncate-lines: t */
116 /* End: */
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_Token_
edm::EDGetTokenT< L1MuGMTReadoutCollection > gmt_Token_
void bookChamberHistos(const DTChamberId &dtCh, std::string histoTag, std::string folder="")
Book chamber granularity histograms.
edm::EDGetTokenT< reco::MuonCollection > muons_Token_
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.
edm::EDGetTokenT< DTLocalTriggerCollection > ddu_Token_
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
static std::string const source
Definition: EdmProvDump.cc:43
Definition: Run.h:41