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 
30 
31 #include <vector>
32 #include <string>
33 #include <map>
34 #include <array>
35 
36 class DTGeometry;
37 class DTTrigGeomUtils;
38 class DTChamberId;
40 
41 typedef std::array<std::array<std::array<int, 13>, 5>, 6> DTArr3int;
42 typedef std::array<std::array<std::array<int, 15>, 5>, 6> DTArr3bool;
43 typedef std::array<std::array<std::array<const L1MuDTChambPhDigi*, 15>, 5>, 6> DTArr3Digi;
44 
45 class DTLocalTriggerLutTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
46  friend class DTMonitorModule;
47 
48 public:
51 
53  ~DTLocalTriggerLutTask() override;
54 
56  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
57 
58 protected:
60  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
61 
63  void searchTMBestIn(std::vector<L1MuDTChambPhDigi> const* trigs);
64  void searchTMBestOut(std::vector<L1MuDTChambPhDigi> const* trigs);
65 
67  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
68 
70  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
71  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) final {}
72 
73  const int wheelArrayShift = 3;
74 
75 private:
78 
80  void bookHistos(DQMStore::IBooker& ibooker, DTChamberId chId);
81 
82 private:
83  int nEvents;
84  int nLumis;
87 
91 
95 
100  DTArr3bool track_ok; // CB controlla se serve
101 
106 
107  std::map<uint32_t, std::map<std::string, MonitorElement*> > chHistos;
108  std::map<int, std::map<std::string, MonitorElement*> > whHistos;
109 };
110 
111 #endif
112 
113 /* Local Variables: */
114 /* show-trailing-whitespace: t */
115 /* truncate-lines: t */
116 /* End: */
DTGeometry
Definition: DTGeometry.h:28
DTLocalTriggerLutTask::trigBestOut
DTArr3Digi trigBestOut
Definition: DTLocalTriggerLutTask.h:99
DTLocalTriggerLutTask::searchTMBestIn
void searchTMBestIn(std::vector< L1MuDTChambPhDigi > const *trigs)
Find best (highest qual) TM trigger segments.
Definition: DTLocalTriggerLutTask.cc:274
DTLocalTriggerLutTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTLocalTriggerLutTask.cc:176
Handle.h
DTLocalTriggerLutTask::whHistos
std::map< int, std::map< std::string, MonitorElement * > > whHistos
Definition: DTLocalTriggerLutTask.h:108
DTLocalTriggerLutTask
Definition: DTLocalTriggerLutTask.h:45
ESHandle.h
DTLocalTriggerLutTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
Definition: DTLocalTriggerLutTask.cc:157
DTLocalTriggerLutTask::chHistos
std::map< uint32_t, std::map< std::string, MonitorElement * > > chHistos
Definition: DTLocalTriggerLutTask.h:107
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:102
DTLocalTriggerLutTask::wheelArrayShift
const int wheelArrayShift
Definition: DTLocalTriggerLutTask.h:73
DTLocalTriggerLutTask::rangePhi
double rangePhi
Definition: DTLocalTriggerLutTask.h:86
DTLocalTriggerLutTask::detailedAnalysis
bool detailedAnalysis
Definition: DTLocalTriggerLutTask.h:89
DTLocalTriggerLutTask::nPhibBins
int nPhibBins
Definition: DTLocalTriggerLutTask.h:85
DTLocalTriggerLutTask::trigBestIn
DTArr3Digi trigBestIn
Definition: DTLocalTriggerLutTask.h:98
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
DTLocalTriggerLutTask::DTMonitorModule
friend class DTMonitorModule
Definition: DTLocalTriggerLutTask.h:46
EDAnalyzer.h
DTArr3Digi
std::array< std::array< std::array< const L1MuDTChambPhDigi *, 15 >, 5 >, 6 > DTArr3Digi
Definition: DTLocalTriggerLutTask.h:43
DQMOneEDAnalyzer.h
visDQMUpload.context
context
Definition: visDQMUpload.py:37
DTLocalTriggerLutTask::nPhiBins
int nPhiBins
Definition: DTLocalTriggerLutTask.h:85
MakerMacros.h
Service.h
DTLocalTriggerLutTask::baseFolder
std::string baseFolder
Definition: DTLocalTriggerLutTask.h:88
DTArr3bool
std::array< std::array< std::array< int, 15 >, 5 >, 6 > DTArr3bool
Definition: DTLocalTriggerLutTask.h:42
DTLocalTriggerLutTask::trigQualBestIn
DTArr3int trigQualBestIn
Definition: DTLocalTriggerLutTask.h:96
DTLocalTriggerLutTask::track_ok
DTArr3bool track_ok
Definition: DTLocalTriggerLutTask.h:100
DTLocalTriggerLutTask::trigQualBestOut
DTArr3int trigQualBestOut
Definition: DTLocalTriggerLutTask.h:97
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTLocalTriggerLutTask::trigGeomUtils
DTTrigGeomUtils * trigGeomUtils
Definition: DTLocalTriggerLutTask.h:105
DTLocalTriggerLutTask::searchTMBestOut
void searchTMBestOut(std::vector< L1MuDTChambPhDigi > const *trigs)
Definition: DTLocalTriggerLutTask.cc:300
DTLocalTriggerLutTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) final
Definition: DTLocalTriggerLutTask.h:71
DTLocalTriggerLutTask::nEvents
int nEvents
Definition: DTLocalTriggerLutTask.h:83
DTLocalTriggerLutTask::overUnderIn
bool overUnderIn
Definition: DTLocalTriggerLutTask.h:90
DTLocalTriggerLutTask::tm_TokenIn_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_TokenIn_
Definition: DTLocalTriggerLutTask.h:92
DTLocalTriggerLutTask::bookHistos
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Book histos.
Definition: DTLocalTriggerLutTask.cc:79
DTLocalTriggerLutTask::muonGeom
const DTGeometry * muonGeom
Definition: DTLocalTriggerLutTask.h:104
edm::EventSetup
Definition: EventSetup.h:58
DTLocalTriggerLutTask::seg_Token_
edm::EDGetTokenT< DTRecSegment4DCollection > seg_Token_
Definition: DTLocalTriggerLutTask.h:94
L1MuDTChambPhContainer.h
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
DTLocalTriggerLutTask::topFolder
std::string & topFolder()
Get the top folder.
Definition: DTLocalTriggerLutTask.h:77
DTLocalTriggerLutTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bookHistograms
Definition: DTLocalTriggerLutTask.cc:145
Frameworkfwd.h
DTLocalTriggerLutTask::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTLocalTriggerLutTask.h:103
DTTrigGeomUtils
Definition: DTTrigGeomUtils.h:21
DTLocalTriggerLutTask::rangePhiB
double rangePhiB
Definition: DTLocalTriggerLutTask.h:86
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
DTLocalTriggerLutTask::tm_TokenOut_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_TokenOut_
Definition: DTLocalTriggerLutTask.h:93
DTLocalTriggerLutTask::DTLocalTriggerLutTask
DTLocalTriggerLutTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTLocalTriggerLutTask.cc:33
ParameterSet.h
DTLocalTriggerLutTask::nLumis
int nLumis
Definition: DTLocalTriggerLutTask.h:84
MuonGeometryRecord.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition: Event.h:73
DTLocalTriggerLutTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
Definition: DTLocalTriggerLutTask.cc:73
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:39
DTLocalTriggerLutTask::~DTLocalTriggerLutTask
~DTLocalTriggerLutTask() override
Destructor.
Definition: DTLocalTriggerLutTask.cc:65