test
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  * \author M. Zanetti - INFN Padova
8  *
9 */
10 
16 
19 
22 
26 
28 
34 
35 #include <vector>
36 #include <string>
37 #include <map>
38 
39 class DTGeometry;
40 class DTTrigGeomUtils;
41 class DTChamberId;
42 class DTRecSegment4D;
43 class DTLocalTrigger;
44 class L1MuDTChambPhDigi;
45 class L1MuDTChambThDigi;
46 
47 
49 
50  friend class DTMonitorModule;
51 
52  public:
53 
56 
58  virtual ~DTLocalTriggerTask();
59 
60  protected:
61 
63  void dqmBeginRun(const edm::Run& , const edm::EventSetup&);
64 
66 
67  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
68  void bookHistos(DQMStore::IBooker &, const DTChamberId& dtCh, std::string folder, std::string histoTag );
69 
71  void bookWheelHistos(DQMStore::IBooker &, int wh, std::string histoTag );
72 
75 
77  void setQLabels(MonitorElement* me, short int iaxis);
78  void setQLabelsTheta(MonitorElement* me, short int iaxis);
79 
81  void runTMAnalysis(std::vector<L1MuDTChambPhDigi> const* phTrigs, std::vector<L1MuDTChambThDigi> const* thTrigs);
82 
85 
88 
91 
93  void analyze(const edm::Event& e, const edm::EventSetup& c);
94 
96  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) ;
97 
99  void triggerSource(const edm::Event& e);
100 
102  std::string& topFolder(bool isTM) { return isTM ? baseFolderTM : baseFolderDDU; }
103 
104  private:
105 
107 
113 
116  int nevents;
117  bool tpMode;
120  bool doTMTheta;
122 
123 
124  int phcode_best[6][5][13];
125  int dduphcode_best[6][5][13];
126  int thcode_best[6][5][13];
127  int dduthcode_best[6][5][13];
128  int mapDTTF[6][13][2];
129  const L1MuDTChambPhDigi* iphbest[6][5][13];
130  const DTLocalTrigger* iphbestddu[6][5][13];
131  const L1MuDTChambThDigi* ithbest[6][5][13];
132  bool track_ok[6][5][15];
133 
137  std::map<uint32_t, std::map<std::string, MonitorElement*> > digiHistos;
138  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
139 
141 
143 };
144 
145 #endif
146 
147 /* Local Variables: */
148 /* show-trailing-whitespace: t */
149 /* truncate-lines: t */
150 /* End: */
int phcode_best[6][5][13]
friend class DTMonitorModule
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
void runTMAnalysis(std::vector< L1MuDTChambPhDigi > const *phTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on TM data.
edm::EDGetTokenT< LTCDigiCollection > ltcDigiCollectionToken_
int thcode_best[6][5][13]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Book the histograms.
int dduphcode_best[6][5][13]
void setQLabelsTheta(MonitorElement *me, short int iaxis)
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
edm::InputTag tmTh_label_
MonitorElement * tm_IDDataErrorPlot
bool track_ok[6][5][15]
std::string & topFolder(bool isTM)
Get the Top folder (different between Physics and TP and TM/DDU)
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.
edm::EDGetTokenT< DTRecSegment4DCollection > seg_Token_
edm::EDGetTokenT< L1MuDTChambPhContainer > tm_Token_
edm::EDGetTokenT< L1MuDTChambThContainer > tmTh_Token_
DTLocalTriggerTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< DTLocalTriggerCollection > ros_Token_
edm::ESHandle< DTGeometry > muonGeom
void bookHistos(DQMStore::IBooker &, const DTChamberId &dtCh, std::string folder, std::string histoTag)
const DTLocalTrigger * iphbestddu[6][5][13]
void runDDUvsTMAnalysis(std::string &trigsrc)
Run analysis on ROS data.
const L1MuDTChambThDigi * ithbest[6][5][13]
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
edm::ParameterSet parameters
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 bookWheelHistos(DQMStore::IBooker &, int wh, std::string histoTag)
Book the histograms.
void triggerSource(const edm::Event &e)
Get the L1A source.
void bookBarrelHistos(DQMStore::IBooker &, std::string histoTag)
Book the histograms.
std::map< uint32_t, std::map< std::string, MonitorElement * > > digiHistos
tuple folder
Histograms Source for live online DQM in P5
Definition: Run.h:43
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.