CMS 3D CMS Logo

DTLocalTriggerLutTask.h
Go to the documentation of this file.
1 #ifndef DTLocalTriggerLutTask_H
2 #define DTLocalTriggerLutTask_H
3 
4 /*
5  * \file DTLocalTriggerLutTask.h
6  *
7  * \author D. Fasanella - INFN Bologna
8  *
9 */
10 
16 
19 
21 
26 
29 
30 #include <vector>
31 #include <string>
32 #include <map>
33 #include <array>
34 
35 class DTGeometry;
36 class DTTrigGeomUtils;
37 class DTChamberId;
39 
40 typedef std::array<std::array<std::array<int, 13>, 5>, 6> DTArr3int;
41 typedef std::array<std::array<std::array<int, 15>, 5>, 6> DTArr3bool;
42 typedef std::array<std::array<std::array<const L1MuDTChambPhDigi*, 15>, 5>, 6> DTArr3Digi;
43 
44 class DTLocalTriggerLutTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
45  friend class DTMonitorModule;
46 
47 public:
50 
52  ~DTLocalTriggerLutTask() override;
53 
55  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
56 
57 protected:
59  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
60 
62  void searchTMBestIn(std::vector<L1MuDTChambPhDigi> const* trigs);
63  void searchTMBestOut(std::vector<L1MuDTChambPhDigi> const* trigs);
64 
66  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
67 
69  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
70  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) final {}
71 
72  const int wheelArrayShift = 3;
73 
74 private:
77 
79  void bookHistos(DQMStore::IBooker& ibooker, DTChamberId chId);
80 
81 private:
82  int nEvents;
83  int nLumis;
86 
90 
94 
99  DTArr3bool track_ok; // CB controlla se serve
100 
105 
106  std::map<uint32_t, std::map<std::string, MonitorElement*> > chHistos;
107  std::map<int, std::map<std::string, MonitorElement*> > whHistos;
108 };
109 
110 #endif
111 
112 /* Local Variables: */
113 /* show-trailing-whitespace: t */
114 /* truncate-lines: t */
115 /* End: */
DTGeometry
Definition: DTGeometry.h:28
DTLocalTriggerLutTask::trigBestOut
DTArr3Digi trigBestOut
Definition: DTLocalTriggerLutTask.h:98
DTLocalTriggerLutTask::searchTMBestIn
void searchTMBestIn(std::vector< L1MuDTChambPhDigi > const *trigs)
Find best (highest qual) TM trigger segments.
Definition: DTLocalTriggerLutTask.cc:273
DTLocalTriggerLutTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTLocalTriggerLutTask.cc:175
Handle.h
DTLocalTriggerLutTask::whHistos
std::map< int, std::map< std::string, MonitorElement * > > whHistos
Definition: DTLocalTriggerLutTask.h:107
DTLocalTriggerLutTask
Definition: DTLocalTriggerLutTask.h:44
ESHandle.h
DTLocalTriggerLutTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
Definition: DTLocalTriggerLutTask.cc:156
DTLocalTriggerLutTask::chHistos
std::map< uint32_t, std::map< std::string, MonitorElement * > > chHistos
Definition: DTLocalTriggerLutTask.h:106
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< L1MuDTChambPhContainer >
LuminosityBlock.h
DTLocalTriggerLutTask::parameters
edm::ParameterSet parameters
Definition: DTLocalTriggerLutTask.h:101
DTLocalTriggerLutTask::wheelArrayShift
const int wheelArrayShift
Definition: DTLocalTriggerLutTask.h:72
DTLocalTriggerLutTask::rangePhi
double rangePhi
Definition: DTLocalTriggerLutTask.h:85
DTLocalTriggerLutTask::detailedAnalysis
bool detailedAnalysis
Definition: DTLocalTriggerLutTask.h:88
DTLocalTriggerLutTask::nPhibBins
int nPhibBins
Definition: DTLocalTriggerLutTask.h:84
DTLocalTriggerLutTask::trigBestIn
DTArr3Digi trigBestIn
Definition: DTLocalTriggerLutTask.h:97
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
DTLocalTriggerLutTask::DTMonitorModule
friend class DTMonitorModule
Definition: DTLocalTriggerLutTask.h:45
EDAnalyzer.h
DTArr3Digi
std::array< std::array< std::array< const L1MuDTChambPhDigi *, 15 >, 5 >, 6 > DTArr3Digi
Definition: DTLocalTriggerLutTask.h:42
DQMOneEDAnalyzer.h
DTLocalTriggerLutTask::nPhiBins
int nPhiBins
Definition: DTLocalTriggerLutTask.h:84
MakerMacros.h
DTLocalTriggerLutTask::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTLocalTriggerLutTask.h:102
Service.h
DTLocalTriggerLutTask::baseFolder
std::string baseFolder
Definition: DTLocalTriggerLutTask.h:87
edm::ESHandle< DTGeometry >
DTArr3bool
std::array< std::array< std::array< int, 15 >, 5 >, 6 > DTArr3bool
Definition: DTLocalTriggerLutTask.h:41
DTLocalTriggerLutTask::trigQualBestIn
DTArr3int trigQualBestIn
Definition: DTLocalTriggerLutTask.h:95
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTLocalTriggerLutTask::track_ok
DTArr3bool track_ok
Definition: DTLocalTriggerLutTask.h:99
DTLocalTriggerLutTask::trigQualBestOut
DTArr3int trigQualBestOut
Definition: DTLocalTriggerLutTask.h:96
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTLocalTriggerLutTask::trigGeomUtils
DTTrigGeomUtils * trigGeomUtils
Definition: DTLocalTriggerLutTask.h:104
DTLocalTriggerLutTask::searchTMBestOut
void searchTMBestOut(std::vector< L1MuDTChambPhDigi > const *trigs)
Definition: DTLocalTriggerLutTask.cc:299
DTLocalTriggerLutTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) final
Definition: DTLocalTriggerLutTask.h:70
DTLocalTriggerLutTask::nEvents
int nEvents
Definition: DTLocalTriggerLutTask.h:82
DTLocalTriggerLutTask::overUnderIn
bool overUnderIn
Definition: DTLocalTriggerLutTask.h:89
DTLocalTriggerLutTask::tm_TokenIn_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_TokenIn_
Definition: DTLocalTriggerLutTask.h:91
DTLocalTriggerLutTask::bookHistos
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Book histos.
Definition: DTLocalTriggerLutTask.cc:78
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
DTLocalTriggerLutTask::seg_Token_
edm::EDGetTokenT< DTRecSegment4DCollection > seg_Token_
Definition: DTLocalTriggerLutTask.h:93
L1MuDTChambPhContainer.h
InputTag.h
DTLocalTriggerLutTask::topFolder
std::string & topFolder()
Get the top folder.
Definition: DTLocalTriggerLutTask.h:76
DTLocalTriggerLutTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bookHistograms
Definition: DTLocalTriggerLutTask.cc:144
Frameworkfwd.h
DTLocalTriggerLutTask::theGeomLabel
std::string theGeomLabel
Definition: DTLocalTriggerLutTask.h:103
DTTrigGeomUtils
Definition: DTTrigGeomUtils.h:21
DTLocalTriggerLutTask::rangePhiB
double rangePhiB
Definition: DTLocalTriggerLutTask.h:85
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
DTLocalTriggerLutTask::tm_TokenOut_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_TokenOut_
Definition: DTLocalTriggerLutTask.h:92
DTLocalTriggerLutTask::DTLocalTriggerLutTask
DTLocalTriggerLutTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTLocalTriggerLutTask.cc:34
ParameterSet.h
DTLocalTriggerLutTask::nLumis
int nLumis
Definition: DTLocalTriggerLutTask.h:83
edm::Event
Definition: Event.h:73
DTLocalTriggerLutTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
Definition: DTLocalTriggerLutTask.cc:72
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
DTRecSegment4DCollection.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
DTArr3int
std::array< std::array< std::array< int, 13 >, 5 >, 6 > DTArr3int
Definition: DTLocalTriggerLutTask.h:38
DTLocalTriggerLutTask::~DTLocalTriggerLutTask
~DTLocalTriggerLutTask() override
Destructor.
Definition: DTLocalTriggerLutTask.cc:64