CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
34 class DTGeometry;
35 class DTTrigGeomUtils;
36 class DTChamberId;
37 class L1MuDTChambPhDigi;
38 
39 
41 
42  friend class DTMonitorModule;
43 
44  public:
45 
48 
50  virtual ~DTLocalTriggerLutTask();
51 
52  protected:
53 
54  // BeginJob
55  void beginJob();
56 
58  void beginRun(const edm::Run& , const edm::EventSetup&);
59 
61  void searchDccBest(std::vector<L1MuDTChambPhDigi> const* trigs);
62 
64  void analyze(const edm::Event& e, const edm::EventSetup& c);
65 
67  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
68 
70  void endJob(void);
71 
72  private:
73 
76 
78  void bookHistos(DTChamberId chId);
79 
80  private :
81 
82  int nEvents;
83  int nLumis;
86 
90 
93 
94  int trigQualBest[6][5][13];
95  const L1MuDTChambPhDigi* trigBest[6][5][13];
96  bool track_ok[6][5][15]; // CB controlla se serve
97 
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 
109 #endif
110 
111 /* Local Variables: */
112 /* show-trailing-whitespace: t */
113 /* truncate-lines: t */
114 /* End: */
std::map< int, std::map< std::string, MonitorElement * > > whHistos
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
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_
virtual ~DTLocalTriggerLutTask()
Destructor.
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_Token_
std::map< uint32_t, std::map< std::string, MonitorElement * > > chHistos
DTTrigGeomUtils * trigGeomUtils
void beginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
void bookHistos(DTChamberId chId)
Book histos.
const L1MuDTChambPhDigi * trigBest[6][5][13]
Definition: Run.h:41
void searchDccBest(std::vector< L1MuDTChambPhDigi > const *trigs)
Find best (highest qual) DCC trigger segments.