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: */
void bookHistos(DQMStore::IBooker &ibooker, DTChamberId chId)
Book histos.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
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.
DTLocalTriggerLutTask(const edm::ParameterSet &ps)
Constructor.
edm::ParameterSet parameters
edm::ESHandle< DTGeometry > muonGeom
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