CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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: */
DTGeometry
Definition: DTGeometry.h:28
DTRecSegment4D
Definition: DTRecSegment4D.h:23
Handle.h
DTLocalTriggerBaseTask::setQLabels
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
Definition: DTLocalTriggerBaseTask.cc:469
DTLocalTriggerBaseTask::DTLocalTriggerBaseTask
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTLocalTriggerBaseTask.cc:53
DTLocalTriggerBaseTask::m_detailedAnalysis
bool m_detailedAnalysis
Definition: DTLocalTriggerBaseTask.h:102
DTLocalTriggerBaseTask::setQLabelsPh2
void setQLabelsPh2(MonitorElement *me, short int iaxis)
Definition: DTLocalTriggerBaseTask.cc:511
DTLocalTriggerCollection.h
ESHandle.h
DTLocalTriggerBaseTask::m_chamberHistos
std::map< uint32_t, std::map< std::string, MonitorElement * > > m_chamberHistos
Definition: DTLocalTriggerBaseTask.h:119
DTLocalTriggerBaseTask::m_tpMode
bool m_tpMode
Definition: DTLocalTriggerBaseTask.h:101
DTLocalTriggerBaseTask::runTMAnalysis
void runTMAnalysis(std::vector< L1MuDTChambPhDigi > const *phInTrigs, std::vector< L1MuDTChambPhDigi > const *phOutTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on TM data.
Definition: DTLocalTriggerBaseTask.cc:318
DTLocalTriggerBaseTask::m_compMapIn
std::map< uint32_t, DTTPGCompareUnit > m_compMapIn
Definition: DTLocalTriggerBaseTask.h:117
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< L1MuDTChambPhContainer >
LuminosityBlock.h
DTLocalTriggerBaseTask::m_tm_phiIn_Token
edm::EDGetTokenT< L1MuDTChambPhContainer > m_tm_phiIn_Token
Definition: DTLocalTriggerBaseTask.h:123
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
L1MuDTChambThContainer.h
DTLocalTriggerBaseTask::m_processAB7
bool m_processAB7
Definition: DTLocalTriggerBaseTask.h:105
DTLocalTriggerBaseTask::~DTLocalTriggerBaseTask
~DTLocalTriggerBaseTask() override
Destructor.
Definition: DTLocalTriggerBaseTask.cc:88
DQMOneEDAnalyzer.h
DTLocalTriggerBaseTask::m_trendHistos
std::map< uint32_t, DTTimeEvolutionHisto * > m_trendHistos
Definition: DTLocalTriggerBaseTask.h:120
DTLocalTriggerBaseTask::m_nEventMonitor
MonitorElement * m_nEventMonitor
Definition: DTLocalTriggerBaseTask.h:121
visDQMUpload.context
context
Definition: visDQMUpload.py:37
DTLocalTriggerBaseTask::geom
const DTGeometry * geom
Definition: DTLocalTriggerBaseTask.h:113
DTLocalTriggerBaseTask::m_tm_theta_Token
edm::EDGetTokenT< L1MuDTChambThContainer > m_tm_theta_Token
Definition: DTLocalTriggerBaseTask.h:125
DTLocalTriggerBaseTask::m_nEvents
int m_nEvents
Definition: DTLocalTriggerBaseTask.h:96
MakerMacros.h
DTLocalTriggerBaseTask::topFolder
std::string & topFolder(std::string const &type)
Get the Top folder (different between Physics and TP and TM)
Definition: DTLocalTriggerBaseTask.h:81
DTLocalTriggerBaseTask::bookHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &chamb)
Book the histograms.
Definition: DTLocalTriggerBaseTask.cc:176
DTLocalTriggerBaseTask::m_compMapOut
std::map< uint32_t, DTTPGCompareUnit > m_compMapOut
Definition: DTLocalTriggerBaseTask.h:118
DTLocalTriggerBaseTask::m_targetBXTM
int m_targetBXTM
Definition: DTLocalTriggerBaseTask.h:107
Service.h
DTLocalTriggerBaseTask::m_nLumis
int m_nLumis
Definition: DTLocalTriggerBaseTask.h:98
DTLocalTriggerBaseTask::m_params
edm::ParameterSet m_params
Definition: DTLocalTriggerBaseTask.h:110
DTLocalTriggerBaseTask::m_bestAccRange
int m_bestAccRange
Definition: DTLocalTriggerBaseTask.h:108
DTLocalTriggerBaseTask::runAB7Analysis
void runAB7Analysis(std::vector< L1Phase2MuDTPhDigi > const *phTrigs)
Run analysis on Phase2 readout for SliceTest.
Definition: DTLocalTriggerBaseTask.cc:451
DTLocalTriggerBaseTask::m_processTM
bool m_processTM
Definition: DTLocalTriggerBaseTask.h:104
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTLocalTriggerBaseTask::DTMonitorModule
friend class DTMonitorModule
Definition: DTLocalTriggerBaseTask.h:49
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
DTLocalTriggerBaseTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTLocalTriggerBaseTask.cc:137
DTLocalTriggerBaseTask::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTLocalTriggerBaseTask.h:112
L1Phase2MuDTPhContainer.h
DTLocalTriggerBaseTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTLocalTriggerBaseTask.cc:95
edm::EventSetup
Definition: EventSetup.h:58
DTLocalTriggerBaseTask::m_baseFolder
std::string m_baseFolder[2]
Definition: DTLocalTriggerBaseTask.h:100
L1MuDTChambPhContainer.h
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTTPGCompareUnit
Definition: DTLocalTriggerBaseTask.cc:36
DTLocalTriggerBaseTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
Definition: DTLocalTriggerBaseTask.cc:130
L1MuDTChambThDigi
Definition: L1MuDTChambThDigi.h:33
Frameworkfwd.h
L1Phase2MuDTPhDigi
Definition: L1Phase2MuDTPhDigi.h:32
DTTrigGeomUtils
Definition: DTTrigGeomUtils.h:21
DTTimeEvolutionHisto
Definition: DTTimeEvolutionHisto.h:15
DTLocalTriggerBaseTask::m_nEventsInLS
int m_nEventsInLS
Definition: DTLocalTriggerBaseTask.h:97
DTLocalTriggerBaseTask::m_trigGeomUtils
DTTrigGeomUtils * m_trigGeomUtils
Definition: DTLocalTriggerBaseTask.h:111
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTLocalTriggerBaseTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
Definition: DTLocalTriggerBaseTask.cc:109
DTLocalTriggerBaseTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
Definition: DTLocalTriggerBaseTask.cc:123
DTLocalTriggerBaseTask::m_tm_phiOut_Token
edm::EDGetTokenT< L1MuDTChambPhContainer > m_tm_phiOut_Token
Definition: DTLocalTriggerBaseTask.h:124
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
MuonGeometryRecord.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
DTLocalTriggerBaseTask
Definition: DTLocalTriggerBaseTask.h:48
DTLocalTriggerBaseTask::m_types
std::vector< std::string > m_types
Definition: DTLocalTriggerBaseTask.h:115
DTLocalTriggerBaseTask::setQLabelsTheta
void setQLabelsTheta(MonitorElement *me, short int iaxis)
Definition: DTLocalTriggerBaseTask.cc:490
edm::Event
Definition: Event.h:73
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
DTLocalTriggerBaseTask::m_ab7_phi_Token
edm::EDGetTokenT< L1Phase2MuDTPhContainer > m_ab7_phi_Token
Definition: DTLocalTriggerBaseTask.h:126
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37