CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLocalTriggerBaseTask.h
Go to the documentation of this file.
1 #ifndef DTLocalTriggerBaseTask_H
2 #define DTLocalTriggerBaseTask_H
3 
4 /*
5  * \file DTLocalTriggerBaseTask.h
6  *
7  * $Date: 2011/06/10 13:23:26 $
8  * $Revision: 1.1 $
9  * \author C. Battilana - CIEMAT
10  *
11 */
12 
18 
21 
23 
27 
29 
30 #include <vector>
31 #include <string>
32 #include <map>
33 
34 class DTGeometry;
35 class DTTrigGeomUtils;
36 class DTChamberId;
37 class DTRecSegment4D;
38 class L1MuDTChambPhDigi;
39 class L1MuDTChambThDigi;
40 class DTTPGCompareUnit;
42 
44 
45  friend class DTMonitorModule;
46 
47  public:
48 
51 
53  virtual ~DTLocalTriggerBaseTask();
54 
55  protected:
56 
57  // BeginJob
58  void beginJob();
59 
61  void beginRun(const edm::Run& , const edm::EventSetup&);
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 endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
71 
73  void endJob(void);
74 
75  private:
76 
78  void runDCCAnalysis(std::vector<L1MuDTChambPhDigi>* phTrigs, std::vector<L1MuDTChambThDigi>* thTrigs);
79 
82 
84  void runDDUvsDCCAnalysis();
85 
87  std::string& topFolder(std::string type) { return baseFolder[type == "DCC"]; }
88 
90  void bookHistos(const DTChamberId& chamb);
91 
93  void bookHistos(int wh);
94 
96  void setQLabels(MonitorElement* me, short int iaxis);
97 
98  int nEvents;
100  int nLumis;
101 
103  bool tpMode;
107 
111 
115  std::vector<std::string> theTypes;
116 
117  std::map<uint32_t,DTTPGCompareUnit> theCompMap;
118  std::map<int,std::map<std::string,MonitorElement*> > wheelHistos;
119  std::map<uint32_t,std::map<std::string,MonitorElement*> > chamberHistos;
120  std::map<uint32_t,DTTimeEvolutionHisto* > trendHistos;
122 
123 };
124 
125 #endif
type
Definition: HCALResponse.h:21
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
virtual ~DTLocalTriggerBaseTask()
Destructor.
std::vector< std::string > theTypes
DTTrigGeomUtils * theTrigGeomUtils
void runDDUvsDCCAnalysis()
Run analysis on ROS data.
void bookHistos(const DTChamberId &chamb)
Book the histograms.
void beginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
Perform trend plot operations.
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
std::map< uint32_t, DTTPGCompareUnit > theCompMap
std::map< uint32_t, DTTimeEvolutionHisto * > trendHistos
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
std::string & topFolder(std::string type)
Get the Top folder (different between Physics and TP and DCC/DDU)
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
void runDCCAnalysis(std::vector< L1MuDTChambPhDigi > *phTrigs, std::vector< L1MuDTChambThDigi > *thTrigs)
Run analysis on DCC data.
Definition: Run.h:36
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.