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 
27 
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 
46 
47  friend class DTMonitorModule;
48 
49  public:
50 
53 
55  ~DTLocalTriggerLutTask() override;
56 
58  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59 
60  protected:
61 
63  void dqmBeginRun(const edm::Run& , const edm::EventSetup&) override;
64 
66  void searchTMBestIn(std::vector<L1MuDTChambPhDigi> const* trigs);
67  void searchTMBestOut(std::vector<L1MuDTChambPhDigi> const* trigs);
68 
70  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
71 
73  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override ;
74 
75  const int wheelArrayShift = 3;
76 
77  private:
78 
81 
83  void bookHistos(DQMStore::IBooker & ibooker,DTChamberId chId);
84 
85  private :
86 
87  int nEvents;
88  int nLumis;
91 
95 
99 
104  DTArr3bool track_ok; // CB controlla se serve
105 
110 
111  std::map<uint32_t, std::map<std::string, MonitorElement*> > chHistos;
112  std::map<int, std::map<std::string, MonitorElement*> > whHistos;
113 
114 };
115 
116 #endif
117 
118 /* Local Variables: */
119 /* show-trailing-whitespace: t */
120 /* truncate-lines: t */
121 /* 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)
std::string & topFolder()
Get the top folder.
DTLocalTriggerLutTask(const edm::ParameterSet &ps)
Constructor.
edm::ParameterSet parameters
std::array< std::array< std::array< int, 15 >, 5 >,6 > DTArr3bool
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
std::array< std::array< std::array< const L1MuDTChambPhDigi *, 15 >, 5 >,6 > DTArr3Digi
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, 13 >, 5 >,6 > DTArr3int
Definition: Run.h:44