CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
36 
37 #include <vector>
38 #include <string>
39 #include <map>
40 
41 class DTGeometry;
42 class DTChamberId;
43 class DTTrigGeomUtils;
44 
46 public:
49 
51  ~DTTriggerEfficiencyTask() override;
52 
53 protected:
55  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
56 
57  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
58 
61  const DTChamberId& dtCh,
62  std::string histoTag,
63  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 
73  return "DT/03-LocalTrigger-TM/"; //DDU no longer existing, leaving folder here for past references
74  }
75 
77  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
78 
80 
81 private:
82  int nevents;
83 
85 
87  std::vector<std::string> processTags;
88 
89  float phiAccRange;
91 
96 
101  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
102  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
103 };
104 
105 #endif
106 
107 /* Local Variables: */
108 /* show-trailing-whitespace: t */
109 /* truncate-lines: t */
110 /* End: */
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
const edm::EventSetup & c
edm::EDGetTokenT< L1MuGMTReadoutCollection > gmt_Token_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
edm::EDGetTokenT< reco::MuonCollection > muons_Token_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::string topFolder()
return the top folder
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.
bool hasRPCTriggers(const edm::Event &e)
checks for RPC Triggers
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.
~DTTriggerEfficiencyTask() override
Destructor.
Definition: Run.h:45