CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLocalTriggerTask.h
Go to the documentation of this file.
1 #ifndef DTLocalTriggerTask_H
2 #define DTLocalTriggerTask_H
3 
4 /*
5  * \file DTLocalTriggerTask.h
6  *
7  * \author M. Zanetti - INFN Padova
8  *
9 */
10 
16 
19 
22 
26 
32 
33 #include <vector>
34 #include <string>
35 #include <map>
36 
37 class DTGeometry;
38 class DTTrigGeomUtils;
39 class DTChamberId;
40 class DTRecSegment4D;
41 class DTLocalTrigger;
42 class L1MuDTChambPhDigi;
43 class L1MuDTChambThDigi;
44 
45 
47 
48  friend class DTMonitorModule;
49 
50  public:
51 
54 
56  virtual ~DTLocalTriggerTask();
57 
58  protected:
59 
60  // BeginJob
61  void beginJob();
62 
64  void beginRun(const edm::Run& , const edm::EventSetup&);
65 
67  void bookHistos(const DTChamberId& dtCh, std::string folder, std::string histoTag );
68 
70  void bookWheelHistos(int wh, std::string histoTag );
71 
73  void bookBarrelHistos(std::string histoTag);
74 
76  void setQLabels(MonitorElement* me, short int iaxis);
77 
79  void runDCCAnalysis(std::vector<L1MuDTChambPhDigi> const* phTrigs, std::vector<L1MuDTChambThDigi> const* thTrigs);
80 
83 
86 
89 
91  void analyze(const edm::Event& e, const edm::EventSetup& c);
92 
94  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
95 
97  void endJob(void);
98 
100  void triggerSource(const edm::Event& e);
101 
103  std::string& topFolder(bool isDCC) { return isDCC ? baseFolderDCC : baseFolderDDU; }
104 
105  private:
106 
111 
114  int nevents;
115  bool tpMode;
120 
121 
122  int phcode_best[6][5][13];
123  int dduphcode_best[6][5][13];
124  int thcode_best[6][5][13];
125  int dduthcode_best[6][5][13];
126  int mapDTTF[6][13][2];
127  const L1MuDTChambPhDigi* iphbest[6][5][13];
128  const DTLocalTrigger* iphbestddu[6][5][13];
129  const L1MuDTChambThDigi* ithbest[6][5][13];
130  bool track_ok[6][5][15];
131 
136  std::map<uint32_t, std::map<std::string, MonitorElement*> > digiHistos;
137  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
138 
140 
142 };
143 
144 #endif
145 
146 /* Local Variables: */
147 /* show-trailing-whitespace: t */
148 /* truncate-lines: t */
149 /* End: */
void bookWheelHistos(int wh, std::string histoTag)
Book the histograms.
int phcode_best[6][5][13]
friend class DTMonitorModule
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
edm::EDGetTokenT< LTCDigiCollection > ltcDigiCollectionToken_
int thcode_best[6][5][13]
void runDCCAnalysis(std::vector< L1MuDTChambPhDigi > const *phTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on DCC data.
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_Token_
int dduphcode_best[6][5][13]
void bookBarrelHistos(std::string histoTag)
Book the histograms.
void runDDUvsDCCAnalysis(std::string &trigsrc)
Run analysis on ROS data.
bool track_ok[6][5][15]
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
int dduthcode_best[6][5][13]
void runSegmentAnalysis(edm::Handle< DTRecSegment4DCollection > &segments4D)
Run analysis using DT 4D segments.
edm::EDGetTokenT< DTRecSegment4DCollection > seg_Token_
void bookHistos(const DTChamberId &dtCh, std::string folder, std::string histoTag)
Book the histograms.
DTLocalTriggerTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< DTLocalTriggerCollection > ros_Token_
edm::ESHandle< DTGeometry > muonGeom
const DTLocalTrigger * iphbestddu[6][5][13]
const L1MuDTChambThDigi * ithbest[6][5][13]
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
void endJob(void)
EndJob.
edm::ParameterSet parameters
std::string & topFolder(bool isDCC)
Get the Top folder (different between Physics and TP and DCC/DDU)
DTTrigGeomUtils * trigGeomUtils
const L1MuDTChambPhDigi * iphbest[6][5][13]
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
virtual ~DTLocalTriggerTask()
Destructor.
void triggerSource(const edm::Event &e)
Get the L1A source.
MonitorElement * dcc_IDDataErrorPlot
std::map< uint32_t, std::map< std::string, MonitorElement * > > digiHistos
void beginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
Definition: Run.h:41
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.