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  * \author C. Battilana - CIEMAT
8  *
9 */
10 
16 
19 
21 
25 
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> const* phTrigs, std::vector<L1MuDTChambThDigi> const* thTrigs);
79 
82 
84  void runDDUvsDCCAnalysis();
85 
87  std::string& topFolder(std::string const& 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 
126 };
127 
128 #endif
129 
130 /* Local Variables: */
131 /* show-trailing-whitespace: t */
132 /* truncate-lines: t */
133 /* End: */
type
Definition: HCALResponse.h:21
void runDCCAnalysis(std::vector< L1MuDTChambPhDigi > const *phTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on DCC data.
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.
edm::EDGetTokenT< L1MuDTChambThContainer > dcc_theta_Token_
edm::EDGetTokenT< DTLocalTriggerCollection > trig_Token_
std::string & topFolder(std::string const &type)
Get the Top folder (different between Physics and TP and DCC/DDU)
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.
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_phi_Token_
Definition: Run.h:41
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.