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  * $Date: 2010/03/15 09:42:52 $
8  * $Revision: 1.4 $
9  * \author M. Zanetti - INFN Padova
10  *
11 */
12 
18 
21 
23 
27 
30 
31 #include <vector>
32 #include <string>
33 #include <map>
34 
35 class DTGeometry;
36 class DTTrigGeomUtils;
37 class DTChamberId;
38 class DTRecSegment4D;
39 class DTLocalTrigger;
40 class L1MuDTChambPhDigi;
41 class L1MuDTChambThDigi;
42 
43 
45 
46  friend class DTMonitorModule;
47 
48  public:
49 
52 
54  virtual ~DTLocalTriggerTask();
55 
56  protected:
57 
58  // BeginJob
59  void beginJob();
60 
62  void beginRun(const edm::Run& , const edm::EventSetup&);
63 
65  void bookHistos(const DTChamberId& dtCh, std::string folder, std::string histoTag );
66 
68  void bookWheelHistos(int wh, std::string histoTag );
69 
71  void bookBarrelHistos(std::string histoTag);
72 
74  void setQLabels(MonitorElement* me, short int iaxis);
75 
77  void runDCCAnalysis(std::vector<L1MuDTChambPhDigi>* phTrigs, std::vector<L1MuDTChambThDigi>* thTrigs);
78 
81 
84 
86  void runDDUvsDCCAnalysis(std::string& trigsrc);
87 
89  void analyze(const edm::Event& e, const edm::EventSetup& c);
90 
92  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
93 
95  void endJob(void);
96 
98  void triggerSource(const edm::Event& e);
99 
101  std::string& topFolder(bool isDCC) { return isDCC ? baseFolderDCC : baseFolderDDU; }
102 
103  private:
104 
106  std::string trigsrc;
107  int nevents;
108  bool tpMode;
109  std::string baseFolderDCC;
110  std::string baseFolderDDU;
113 
114 
115  int phcode_best[6][5][13];
116  int dduphcode_best[6][5][13];
117  int thcode_best[6][5][13];
118  int dduthcode_best[6][5][13];
119  int mapDTTF[6][13][2];
120  const L1MuDTChambPhDigi* iphbest[6][5][13];
121  const DTLocalTrigger* iphbestddu[6][5][13];
122  const L1MuDTChambThDigi* ithbest[6][5][13];
123  bool track_ok[6][5][15];
124 
129  std::map<uint32_t, std::map<std::string, MonitorElement*> > digiHistos;
130  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
131 
133 };
134 
135 #endif
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
int thcode_best[6][5][13]
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 runDCCAnalysis(std::vector< L1MuDTChambPhDigi > *phTrigs, std::vector< L1MuDTChambThDigi > *thTrigs)
Run analysis on DCC data.
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.
void bookHistos(const DTChamberId &dtCh, std::string folder, std::string histoTag)
Book the histograms.
DTLocalTriggerTask(const edm::ParameterSet &ps)
Constructor.
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:33
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.