test
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 
27 
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 L1MuDTChambPhDigi;
41 class L1MuDTChambThDigi;
42 class DTTPGCompareUnit;
44 
46 
47  friend class DTMonitorModule;
48 
49  public:
50 
53 
55  virtual ~DTLocalTriggerBaseTask();
56 
57  protected:
58 
60  void dqmBeginRun(const edm::Run& , const edm::EventSetup&);
61 
63  void analyze(const edm::Event& e, const edm::EventSetup& c);
64 
66  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
67 
69  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
70 
71  private:
72 
74  void runTMAnalysis(std::vector<L1MuDTChambPhDigi> const* phTrigs, std::vector<L1MuDTChambThDigi> const* thTrigs);
75 
78 
80  void runDDUvsTMAnalysis();
81 
83  std::string& topFolder(std::string const& type) { return baseFolder[type == "TM"]; }
84 
85  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
86 
88  void bookHistos(DQMStore::IBooker &, const DTChamberId& chamb);
89 
91  void bookHistos(DQMStore::IBooker &, int wh);
92 
94  void setQLabels(MonitorElement* me, short int iaxis);
95 
96  int nEvents;
98  int nLumis;
99 
101  bool tpMode;
103  bool processTM;
105 
109 
112  std::vector<std::string> theTypes;
113 
114  std::map<uint32_t,DTTPGCompareUnit> theCompMap;
115  std::map<int,std::map<std::string,MonitorElement*> > wheelHistos;
116  std::map<uint32_t,std::map<std::string,MonitorElement*> > chamberHistos;
117  std::map<uint32_t,DTTimeEvolutionHisto* > trendHistos;
119 
123 };
124 
125 #endif
126 
127 /* Local Variables: */
128 /* show-trailing-whitespace: t */
129 /* truncate-lines: t */
130 /* End: */
type
Definition: HCALResponse.h:21
void runDDUvsTMAnalysis()
Run analysis on ROS data.
void bookHistos(DQMStore::IBooker &, const DTChamberId &chamb)
Book the histograms.
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
virtual ~DTLocalTriggerBaseTask()
Destructor.
std::vector< std::string > theTypes
DTTrigGeomUtils * theTrigGeomUtils
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< L1MuDTChambThContainer > dcc_theta_Token_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
edm::EDGetTokenT< DTLocalTriggerCollection > trig_Token_
std::string & topFolder(std::string const &type)
Get the Top folder (different between Physics and TP and TM/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 runTMAnalysis(std::vector< L1MuDTChambPhDigi > const *phTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on TM data.
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:43
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.