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 
14 
17 
19 
23 
27 
28 #include <vector>
29 #include <string>
30 #include <map>
31 #include <array>
32 
33 class DTGeometry;
34 class DTTrigGeomUtils;
35 class DTChamberId;
37 
38 typedef std::array<std::array<std::array<int, 13>, 5>, 6> DTArr3int;
39 typedef std::array<std::array<std::array<int, 15>, 5>, 6> DTArr3bool;
40 typedef std::array<std::array<std::array<const L1MuDTChambPhDigi*, 15>, 5>, 6> DTArr3Digi;
41 
42 class DTLocalTriggerLutTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
43  friend class DTMonitorModule;
44 
45 public:
48 
50  ~DTLocalTriggerLutTask() override;
51 
53  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
54 
55 protected:
57  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
58 
60  void searchTMBestIn(std::vector<L1MuDTChambPhDigi> const* trigs);
61  void searchTMBestOut(std::vector<L1MuDTChambPhDigi> const* trigs);
62 
64  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
65 
67  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
68  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) final {}
69 
70  const int wheelArrayShift = 3;
71 
72 private:
75 
77  void bookHistos(DQMStore::IBooker& ibooker, DTChamberId chId);
78 
79 private:
80  int nEvents;
81  int nLumis;
84 
88 
92 
97  DTArr3bool track_ok; // CB controlla se serve
98 
103 
104  std::map<uint32_t, std::map<std::string, MonitorElement*> > chHistos;
105  std::map<int, std::map<std::string, MonitorElement*> > whHistos;
106 };
107 
108 #endif
109 
110 /* Local Variables: */
111 /* show-trailing-whitespace: t */
112 /* truncate-lines: t */
113 /* End: */
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Book histos.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
std::map< int, std::map< std::string, MonitorElement * > > whHistos
~DTLocalTriggerLutTask() override
Destructor.
void searchTMBestOut(std::vector< L1MuDTChambPhDigi > const *trigs)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) final
std::string & topFolder()
Get the top folder.
const DTGeometry * muonGeom
DTLocalTriggerLutTask(const edm::ParameterSet &ps)
Constructor.
edm::ParameterSet parameters
edm::EDGetTokenT< DTRecSegment4DCollection > seg_Token_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_TokenOut_
void searchTMBestIn(std::vector< L1MuDTChambPhDigi > const *trigs)
Find best (highest qual) TM trigger segments.
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_TokenIn_
std::map< uint32_t, std::map< std::string, MonitorElement * > > chHistos
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
DTTrigGeomUtils * trigGeomUtils
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bookHistograms
std::array< std::array< std::array< int, 15 >, 5 >, 6 > DTArr3bool
std::array< std::array< std::array< int, 13 >, 5 >, 6 > DTArr3int
std::array< std::array< std::array< const L1MuDTChambPhDigi *, 15 >, 5 >, 6 > DTArr3Digi
Definition: Run.h:45