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: */
DTGeometry
Definition: DTGeometry.h:28
DTLocalTriggerBaseTask::trig_Token_
edm::EDGetTokenT< DTLocalTriggerCollection > trig_Token_
Definition: DTLocalTriggerBaseTask.h:114
DTLocalTriggerBaseTask::detailedAnalysis
bool detailedAnalysis
Definition: DTLocalTriggerBaseTask.h:94
DTRecSegment4D
Definition: DTRecSegment4D.h:23
Handle.h
DTLocalTriggerBaseTask::setQLabels
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
Definition: DTLocalTriggerBaseTask.cc:448
DTLocalTriggerBaseTask::DTLocalTriggerBaseTask
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTLocalTriggerBaseTask.cc:54
DTLocalTriggerBaseTask::processTM
bool processTM
Definition: DTLocalTriggerBaseTask.h:95
DTLocalTriggerCollection.h
ESHandle.h
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:316
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTLocalTriggerBaseTask::wheelHistos
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
Definition: DTLocalTriggerBaseTask.h:106
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< L1MuDTChambPhContainer >
LuminosityBlock.h
DTLocalTriggerBaseTask::theCompMapIn
std::map< uint32_t, DTTPGCompareUnit > theCompMapIn
Definition: DTLocalTriggerBaseTask.h:104
DTLocalTriggerBaseTask::chamberHistos
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
Definition: DTLocalTriggerBaseTask.h:107
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
L1MuDTChambThContainer.h
DTLocalTriggerBaseTask::~DTLocalTriggerBaseTask
~DTLocalTriggerBaseTask() override
Destructor.
Definition: DTLocalTriggerBaseTask.cc:82
DTLocalTriggerBaseTask::bestAccRange
int bestAccRange
Definition: DTLocalTriggerBaseTask.h:98
DQMOneEDAnalyzer.h
DTLocalTriggerBaseTask::nLumis
int nLumis
Definition: DTLocalTriggerBaseTask.h:90
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
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:74
DTLocalTriggerBaseTask::bookHistos
void bookHistos(DQMStore::IBooker &, const DTChamberId &chamb)
Book the histograms.
Definition: DTLocalTriggerBaseTask.cc:174
Service.h
DTLocalTriggerBaseTask::nEventsInLS
int nEventsInLS
Definition: DTLocalTriggerBaseTask.h:89
DTLocalTriggerBaseTask::trendHistos
std::map< uint32_t, DTTimeEvolutionHisto * > trendHistos
Definition: DTLocalTriggerBaseTask.h:108
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTLocalTriggerBaseTask::theParams
edm::ParameterSet theParams
Definition: DTLocalTriggerBaseTask.h:100
edm::ParameterSet
Definition: ParameterSet.h:36
DTLocalTriggerBaseTask::tm_phiIn_Token_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_phiIn_Token_
Definition: DTLocalTriggerBaseTask.h:111
Event.h
DTLocalTriggerBaseTask::DTMonitorModule
friend class DTMonitorModule
Definition: DTLocalTriggerBaseTask.h:45
DTLocalTriggerBaseTask::baseFolder
std::string baseFolder[2]
Definition: DTLocalTriggerBaseTask.h:92
DTLocalTriggerBaseTask::theCompMapOut
std::map< uint32_t, DTTPGCompareUnit > theCompMapOut
Definition: DTLocalTriggerBaseTask.h:105
DTLocalTriggerBaseTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTLocalTriggerBaseTask.cc:145
DTLocalTriggerBaseTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTLocalTriggerBaseTask.cc:90
edm::EventSetup
Definition: EventSetup.h:57
DTLocalTriggerBaseTask::theTrigGeomUtils
DTTrigGeomUtils * theTrigGeomUtils
Definition: DTLocalTriggerBaseTask.h:101
DTLocalTriggerBaseTask::nEvents
int nEvents
Definition: DTLocalTriggerBaseTask.h:88
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
L1MuDTChambPhContainer.h
DTTPGCompareUnit
Definition: DTLocalTriggerBaseTask.cc:37
DTLocalTriggerBaseTask::tpMode
bool tpMode
Definition: DTLocalTriggerBaseTask.h:93
DTLocalTriggerBaseTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
Definition: DTLocalTriggerBaseTask.cc:137
DTLocalTriggerBaseTask::tm_phiOut_Token_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_phiOut_Token_
Definition: DTLocalTriggerBaseTask.h:112
type
type
Definition: HCALResponse.h:21
DTLocalTriggerBaseTask::nEventMonitor
MonitorElement * nEventMonitor
Definition: DTLocalTriggerBaseTask.h:109
L1MuDTChambThDigi
Definition: L1MuDTChambThDigi.h:33
Frameworkfwd.h
DTTrigGeomUtils
Definition: DTTrigGeomUtils.h:21
DTTimeEvolutionHisto
Definition: DTTimeEvolutionHisto.h:15
DTLocalTriggerBaseTask::theTypes
std::vector< std::string > theTypes
Definition: DTLocalTriggerBaseTask.h:102
DTLocalTriggerBaseTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
Definition: DTLocalTriggerBaseTask.cc:104
DTLocalTriggerBaseTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
Definition: DTLocalTriggerBaseTask.cc:125
DTLocalTriggerBaseTask::targetBXTM
int targetBXTM
Definition: DTLocalTriggerBaseTask.h:97
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
DTLocalTriggerBaseTask
Definition: DTLocalTriggerBaseTask.h:44
DTLocalTriggerBaseTask::setQLabelsTheta
void setQLabelsTheta(MonitorElement *me, short int iaxis)
Definition: DTLocalTriggerBaseTask.cc:469
edm::Event
Definition: Event.h:73
DTLocalTriggerBaseTask::tm_theta_Token_
edm::EDGetTokenT< L1MuDTChambThContainer > tm_theta_Token_
Definition: DTLocalTriggerBaseTask.h:113
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37