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&) override;
61 
63  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
64 
66  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
67 
69  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
70 
71  private:
72 
74  void runTMAnalysis(std::vector<L1MuDTChambPhDigi> const* phInTrigs, std::vector<L1MuDTChambPhDigi> const* phOutTrigs, 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  void setQLabelsTheta(MonitorElement* me, short int iaxis);
96 
97  int nEvents;
99  int nLumis;
100 
102  bool tpMode;
104  bool processTM;
106 
110 
113  std::vector<std::string> theTypes;
114 
115  std::map<uint32_t,DTTPGCompareUnit> theCompMapIn;
116  std::map<uint32_t,DTTPGCompareUnit> theCompMapOut;
117  std::map<int,std::map<std::string,MonitorElement*> > wheelHistos;
118  std::map<uint32_t,std::map<std::string,MonitorElement*> > chamberHistos;
119  std::map<uint32_t,DTTimeEvolutionHisto* > trendHistos;
121 
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 runDDUvsTMAnalysis()
Run analysis on ROS data.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
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 endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
edm::EDGetTokenT< L1MuDTChambThContainer > tm_theta_Token_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< uint32_t, DTTPGCompareUnit > theCompMapOut
edm::EDGetTokenT< DTLocalTriggerCollection > trig_Token_
void runTMAnalysis(std::vector< L1MuDTChambPhDigi > const *phInTrigs, std::vector< L1MuDTChambPhDigi > const *phOutTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on TM data.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
std::map< uint32_t, DTTPGCompareUnit > theCompMapIn
std::string & topFolder(std::string const &type)
Get the Top folder (different between Physics and TP and TM/DDU)
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
void setQLabelsTheta(MonitorElement *me, short int iaxis)
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_phiIn_Token_
std::map< uint32_t, DTTimeEvolutionHisto * > trendHistos
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_phiOut_Token_
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
Definition: Run.h:42