CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
28 
33 
34 #include <vector>
35 #include <string>
36 #include <map>
37 
38 class DTGeometry;
39 class DTTrigGeomUtils;
40 class DTChamberId;
41 class DTRecSegment4D;
42 class L1MuDTChambPhDigi;
43 class L1MuDTChambThDigi;
44 class L1Phase2MuDTPhDigi;
45 class DTTPGCompareUnit;
47 
48 class DTLocalTriggerBaseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
49  friend class DTMonitorModule;
50 
51 public:
54 
56  ~DTLocalTriggerBaseTask() override;
57 
58 protected:
60  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
61 
63  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
64 
66  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
67 
69  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
70 
71 private:
73  void runTMAnalysis(std::vector<L1MuDTChambPhDigi> const* phInTrigs,
74  std::vector<L1MuDTChambPhDigi> const* phOutTrigs,
75  std::vector<L1MuDTChambThDigi> const* thTrigs);
76 
78  void runAB7Analysis(std::vector<L1Phase2MuDTPhDigi> const* phTrigs);
79 
81  std::string& topFolder(std::string const& type) { return m_baseFolder[type == "TM"]; }
82 
83  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
84 
86  void bookHistos(DQMStore::IBooker&, const DTChamberId& chamb);
87 
89  void bookHistos(DQMStore::IBooker&, int wh);
90 
92  void setQLabels(MonitorElement* me, short int iaxis);
93  void setQLabelsTheta(MonitorElement* me, short int iaxis);
94  void setQLabelsPh2(MonitorElement* me, short int iaxis);
95 
96  int m_nEvents;
98  int m_nLumis;
99 
101  bool m_tpMode;
103 
106 
109 
113  const DTGeometry* geom;
114 
115  std::vector<std::string> m_types;
116 
117  std::map<uint32_t, DTTPGCompareUnit> m_compMapIn;
118  std::map<uint32_t, DTTPGCompareUnit> m_compMapOut;
119  std::map<uint32_t, std::map<std::string, MonitorElement*> > m_chamberHistos;
120  std::map<uint32_t, DTTimeEvolutionHisto*> m_trendHistos;
122 
127 };
128 
129 #endif
130 
131 /* Local Variables: */
132 /* show-trailing-whitespace: t */
133 /* truncate-lines: t */
134 /* End: */
edm::EDGetTokenT< L1MuDTChambPhContainer > m_tm_phiOut_Token
void runAB7Analysis(std::vector< L1Phase2MuDTPhDigi > const *phTrigs)
Run analysis on Phase2 readout for SliceTest.
const edm::EventSetup & c
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
void bookHistos(DQMStore::IBooker &, const DTChamberId &chamb)
Book the histograms.
DTTrigGeomUtils * m_trigGeomUtils
std::vector< std::string > m_types
std::map< uint32_t, DTTPGCompareUnit > m_compMapIn
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.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< uint32_t, std::map< std::string, MonitorElement * > > m_chamberHistos
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)
edm::EDGetTokenT< L1MuDTChambThContainer > m_tm_theta_Token
edm::EDGetTokenT< L1Phase2MuDTPhContainer > m_ab7_phi_Token
std::map< uint32_t, DTTimeEvolutionHisto * > m_trendHistos
edm::EDGetTokenT< L1MuDTChambPhContainer > m_tm_phiIn_Token
void setQLabelsPh2(MonitorElement *me, short int iaxis)
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
std::map< uint32_t, DTTPGCompareUnit > m_compMapOut
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
Definition: Run.h:45