CMS 3D CMS Logo

DTLocalTriggerBaseTask.h
Go to the documentation of this file.
1 #ifndef DTLocalTriggerBaseTask_H
2 #define DTLocalTriggerBaseTask_H
3 
4 /*
5  * \file DTLocalTriggerBaseTask.h
6  *
7  * \author C. Battilana - CIEMAT
8  *
9 */
10 
16 
19 
21 
24 
26 
30 
31 #include <vector>
32 #include <string>
33 #include <map>
34 
35 class DTGeometry;
36 class DTTrigGeomUtils;
37 class DTChamberId;
38 class DTRecSegment4D;
39 class L1MuDTChambPhDigi;
40 class L1MuDTChambThDigi;
41 class DTTPGCompareUnit;
43 
44 class DTLocalTriggerBaseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
45  friend class DTMonitorModule;
46 
47 public:
50 
52  ~DTLocalTriggerBaseTask() override;
53 
54 protected:
56  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
57 
59  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
60 
62  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
63 
65  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
66 
67 private:
69  void runTMAnalysis(std::vector<L1MuDTChambPhDigi> const* phInTrigs,
70  std::vector<L1MuDTChambPhDigi> const* phOutTrigs,
71  std::vector<L1MuDTChambThDigi> const* thTrigs);
72 
74  std::string& topFolder(std::string const& type) { return baseFolder[type == "TM"]; }
75 
76  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
77 
79  void bookHistos(DQMStore::IBooker&, const DTChamberId& chamb);
80 
82  void bookHistos(DQMStore::IBooker&, int wh);
83 
85  void setQLabels(MonitorElement* me, short int iaxis);
86  void setQLabelsTheta(MonitorElement* me, short int iaxis);
87 
88  int nEvents;
90  int nLumis;
91 
93  bool tpMode;
95  bool processTM;
96 
99 
102  std::vector<std::string> theTypes;
103 
104  std::map<uint32_t, DTTPGCompareUnit> theCompMapIn;
105  std::map<uint32_t, DTTPGCompareUnit> theCompMapOut;
106  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
107  std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
108  std::map<uint32_t, DTTimeEvolutionHisto*> trendHistos;
110 
115 };
116 
117 #endif
118 
119 /* Local Variables: */
120 /* show-trailing-whitespace: t */
121 /* truncate-lines: t */
122 /* End: */
type
Definition: HCALResponse.h:21
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
std::map< uint32_t, DTTimeEvolutionHisto * > trendHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &chamb)
Book the histograms.
std::vector< std::string > theTypes
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
DTTrigGeomUtils * theTrigGeomUtils
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
~DTLocalTriggerBaseTask() override
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
edm::EDGetTokenT< L1MuDTChambThContainer > tm_theta_Token_
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< DTLocalTriggerCollection > trig_Token_
void runTMAnalysis(std::vector< L1MuDTChambPhDigi > const *phInTrigs, std::vector< L1MuDTChambPhDigi > const *phOutTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on TM data.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
std::string & topFolder(std::string const &type)
Get the Top folder (different between Physics and TP and TM)
void setQLabelsTheta(MonitorElement *me, short int iaxis)
std::map< uint32_t, DTTPGCompareUnit > theCompMapIn
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_phiIn_Token_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_phiOut_Token_
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
std::map< uint32_t, DTTPGCompareUnit > theCompMapOut
Definition: Run.h:45