CMS 3D CMS Logo

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 
28 
36 
37 #include <vector>
38 #include <string>
39 #include <map>
40 
41 class DTGeometry;
42 class DTChamberId;
43 class DTTrigGeomUtils;
44 
46 
47  public:
48 
51 
53  ~DTTriggerEfficiencyTask() override;
54 
55  protected:
56 
58  void dqmBeginRun(const edm::Run& , const edm::EventSetup&) override;
59 
60  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
61 
63  void bookChamberHistos(DQMStore::IBooker & ibooker,const DTChamberId& dtCh, std::string histoTag, std::string folder="");
64 
66  void bookWheelHistos(DQMStore::IBooker & ibooker,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=="TM" ? "DT/03-LocalTrigger-TM/" : "DT/04-LocalTrigger-DDU/"; }
73 
75  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
76 
78 
79  private:
80 
81  int nevents;
82 
84 
86  std::vector<std::string> processTags;
88 
89  float phiAccRange;
91 
97 
101  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
102  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
103 
104 };
105 
106 #endif
107 
108 /* Local Variables: */
109 /* show-trailing-whitespace: t */
110 /* truncate-lines: t */
111 /* End: */
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
edm::EDGetTokenT< L1MuGMTReadoutCollection > gmt_Token_
edm::EDGetTokenT< reco::MuonCollection > muons_Token_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void bookWheelHistos(DQMStore::IBooker &ibooker, int wheel, std::string histoTag, std::string folder="")
Book wheel granularity histograms.
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_Token_
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
void bookChamberHistos(DQMStore::IBooker &ibooker, const DTChamberId &dtCh, std::string histoTag, std::string folder="")
Book chamber granularity histograms.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
edm::EDGetTokenT< DTLocalTriggerCollection > ddu_Token_
bool hasRPCTriggers(const edm::Event &e)
checks for RPC Triggers
edm::ESHandle< DTGeometry > muonGeom
int nevents
To reset the MEs.
std::vector< std::string > processTags
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:47
~DTTriggerEfficiencyTask() override
Destructor.
Definition: Run.h:45