test
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 
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  virtual ~DTTriggerEfficiencyTask();
54 
55  protected:
56 
58  void dqmBeginRun(const edm::Run& , const edm::EventSetup&);
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);
76 
78  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
79 
80  private:
81 
82  int nevents;
83 
85 
87  std::vector<std::string> processTags;
89 
90  float phiAccRange;
92 
98 
102  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
103  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
104 
105 };
106 
107 #endif
108 
109 /* Local Variables: */
110 /* show-trailing-whitespace: t */
111 /* truncate-lines: t */
112 /* End: */
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_Token_
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.
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 bookChamberHistos(DQMStore::IBooker &ibooker, const DTChamberId &dtCh, std::string histoTag, std::string folder="")
Book chamber granularity histograms.
edm::EDGetTokenT< DTLocalTriggerCollection > ddu_Token_
bool hasRPCTriggers(const edm::Event &e)
checks for RPC Triggers
edm::ESHandle< DTGeometry > muonGeom
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
virtual ~DTTriggerEfficiencyTask()
Destructor.
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:43
tuple folder
Histograms Source for live online DQM in P5
Definition: Run.h:43