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: 2012/09/24 16:08:07 $
8  * $Revision: 1.5 $
9  * \author M. Zanetti - INFN Padova
10  *
11 */
12 
18 
21 
24 
28 
31 
32 #include <vector>
33 #include <string>
34 #include <map>
35 
36 class DTGeometry;
37 class DTTrigGeomUtils;
38 class DTChamberId;
39 class DTRecSegment4D;
40 class DTLocalTrigger;
41 class L1MuDTChambPhDigi;
42 class L1MuDTChambThDigi;
43 
44 
46 
47  friend class DTMonitorModule;
48 
49  public:
50 
53 
55  virtual ~DTLocalTriggerTask();
56 
57  protected:
58 
59  // BeginJob
60  void beginJob();
61 
63  void beginRun(const edm::Run& , const edm::EventSetup&);
64 
66  void bookHistos(const DTChamberId& dtCh, std::string folder, std::string histoTag );
67 
69  void bookWheelHistos(int wh, std::string histoTag );
70 
72  void bookBarrelHistos(std::string histoTag);
73 
75  void setQLabels(MonitorElement* me, short int iaxis);
76 
78  void runDCCAnalysis(std::vector<L1MuDTChambPhDigi>* phTrigs, std::vector<L1MuDTChambThDigi>* thTrigs);
79 
82 
85 
88 
90  void analyze(const edm::Event& e, const edm::EventSetup& c);
91 
93  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
94 
96  void endJob(void);
97 
99  void triggerSource(const edm::Event& e);
100 
102  std::string& topFolder(bool isDCC) { return isDCC ? baseFolderDCC : baseFolderDDU; }
103 
104  private:
105 
108  int nevents;
109  bool tpMode;
114 
115 
116  int phcode_best[6][5][13];
117  int dduphcode_best[6][5][13];
118  int thcode_best[6][5][13];
119  int dduthcode_best[6][5][13];
120  int mapDTTF[6][13][2];
121  const L1MuDTChambPhDigi* iphbest[6][5][13];
122  const DTLocalTrigger* iphbestddu[6][5][13];
123  const L1MuDTChambThDigi* ithbest[6][5][13];
124  bool track_ok[6][5][15];
125 
130  std::map<uint32_t, std::map<std::string, MonitorElement*> > digiHistos;
131  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
132 
134 
137 };
138 
139 #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.
edm::InputTag ltcDigiCollectionTag
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:36
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.