CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLocalTriggerBaseTask.cc
Go to the documentation of this file.
1 /*
2  * \file DTLocalTriggerBaseTask.cc
3  *
4  * \author C. Battilana - CIEMAT
5  *
6 */
7 
9 
10 // Framework
12 
13 // DT DQM
15 
16 // DT trigger
18 
19 // Geometry
25 
26 //Root
27 #include"TH1.h"
28 #include"TAxis.h"
29 
30 #include <sstream>
31 #include <iostream>
32 #include <fstream>
33 
34 using namespace edm;
35 using namespace std;
36 
38 
39 public:
40 
41  DTTPGCompareUnit() { theQual[0]=-1 ; theQual[1]=-1; }
43 
44  void setDDU(int qual, int bx) { theQual[0] = qual; theBX[0] = bx; }
45  void setDCC(int qual, int bx) { theQual[1] = qual; theBX[1] = bx; }
46 
47  bool hasOne() const { return theQual[0]!=-1 || theQual[1]!=-1; };
48  bool hasBoth() const { return theQual[0]!=-1 && theQual[1]!=-1; };
49  bool hasSameQual() const { return hasBoth() && theQual[0]==theQual[1]; };
50  int deltaBX() const { return theBX[0] - theBX[1]; }
51  int qualDDU() const { return theQual[0]; }
52  int qualDCC() const { return theQual[1]; }
53 
54 private:
55 
56  int theQual[2]; // 0=DDU 1=DCC
57  int theBX[2]; // 0=DDU 1=DCC
58 
59 };
60 
61 
62 
64  nEvents(0), nLumis(0), theTrigGeomUtils(0) {
65 
66  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
67  << "[DTLocalTriggerBaseTask]: Constructor"<<endl;
68 
69  tpMode = ps.getUntrackedParameter<bool>("testPulseMode");
70  detailedAnalysis = ps.getUntrackedParameter<bool>("detailedAnalysis");
71 
72  targetBXDCC = ps.getUntrackedParameter<int>("targetBXDCC");
73  targetBXDDU = ps.getUntrackedParameter<int>("targetBXDDU");
74  bestAccRange = ps.getUntrackedParameter<int>("bestTrigAccRange");
75 
76  processDCC = ps.getUntrackedParameter<bool>("processDCC");
77  processDDU = ps.getUntrackedParameter<bool>("processDDU");
78 
79  dcc_phi_Token_ = consumes<L1MuDTChambPhContainer>(
80  ps.getUntrackedParameter<InputTag>("inputTagDCC"));
81  dcc_theta_Token_ = consumes<L1MuDTChambThContainer>(
82  ps.getUntrackedParameter<InputTag>("inputTagDCC"));
83  trig_Token_ = consumes<DTLocalTriggerCollection>(
84  ps.getUntrackedParameter<InputTag>("inputTagDDU"));
85 
86  if (processDCC) theTypes.push_back("DCC");
87  if (processDDU) theTypes.push_back("DDU");
88 
89  if (tpMode) {
90  topFolder("DCC") = "DT/11-LocalTriggerTP-DCC/";
91  topFolder("DDU") = "DT/12-LocalTriggerTP-DDU/";
92  } else {
93  topFolder("DCC") = "DT/03-LocalTrigger-DCC/";
94  topFolder("DDU") = "DT/04-LocalTrigger-DDU/";
95  }
96 
97  theParams = ps;
98 
99 }
100 
101 
103 
104  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
105  << "[DTLocalTriggerBaseTask]: analyzed " << nEvents << " events" << endl;
106  if (theTrigGeomUtils) { delete theTrigGeomUtils; }
107 
108 }
109 
111 
112  ibooker.setCurrentFolder("DT/EventInfo/Counters");
113  nEventMonitor = ibooker.bookFloat("nProcessedEventsTrigger");
114  for (int wh=-2;wh<3;++wh){
115  for (int stat=1;stat<5;++stat){
116  for (int sect=1;sect<13;++sect){
117  bookHistos(ibooker, DTChamberId(wh,stat,sect));
118  }
119  }
120  bookHistos(ibooker, wh);
121  }
122 }
123 
124 
126 
127  nEventsInLS=0;
128  nLumis++;
129  int resetCycle = theParams.getUntrackedParameter<int>("ResetCycle");
130 
131  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
132  << "[DTLocalTriggerBaseTask]: Begin of LS transition" << endl;
133 
134  if( nLumis%resetCycle == 0 ) {
135  map<uint32_t,map<string,MonitorElement*> >::const_iterator chambIt = chamberHistos.begin();
136  map<uint32_t,map<string,MonitorElement*> >::const_iterator chambEnd = chamberHistos.end();
137  for(;chambIt!=chambEnd;++chambIt) {
138  map<string,MonitorElement*>::const_iterator histoIt = chambIt->second.begin();
139  map<string,MonitorElement*>::const_iterator histoEnd = chambIt->second.end();
140  for(;histoIt!=histoEnd;++histoIt) {
141  histoIt->second->Reset();
142  }
143  }
144  }
145 
146 }
147 
149 
150  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
151  << "[DTLocalTriggerBaseTask]: End of LS transition" << endl;
152 
153  map<uint32_t,DTTimeEvolutionHisto* >::const_iterator chambIt = trendHistos.begin();
154  map<uint32_t,DTTimeEvolutionHisto* >::const_iterator chambEnd = trendHistos.end();
155  for(;chambIt!=chambEnd;++chambIt) {
156  chambIt->second->updateTimeSlot(lumiSeg.luminosityBlock(), nEventsInLS);
157  }
158 
159 }
160 
161 
163 
164  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
165  << "[DTLocalTriggerBaseTask]: BeginRun" << endl;
166 
167  ESHandle<DTGeometry> theGeom;
168  context.get<MuonGeometryRecord>().get(theGeom);
169  theTrigGeomUtils = new DTTrigGeomUtils(theGeom);
170 
171 }
172 
173 
175 
176  nEvents++;
177  nEventsInLS++;
179 
180  theCompMap.clear();
181 
182  Handle<L1MuDTChambPhContainer> phiTrigsDCC;
183  Handle<L1MuDTChambThContainer> thetaTrigsDCC;
185 
186  if (processDCC) {
187  InputTag inputTagDCC = theParams.getUntrackedParameter<InputTag>("inputTagDCC");
188 
189  e.getByToken(dcc_phi_Token_, phiTrigsDCC);
190  e.getByToken(dcc_theta_Token_, thetaTrigsDCC);
191 
192  if (phiTrigsDCC.isValid() && thetaTrigsDCC.isValid()) {
193  runDCCAnalysis(phiTrigsDCC->getContainer(),thetaTrigsDCC->getContainer());
194  } else {
195  LogVerbatim("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
196  << "[DTLocalTriggerBaseTask]: one or more DCC handles for Input Tag "
197  << inputTagDCC <<" not found!" << endl;
198  return;
199  }
200  }
201 
202  if (processDDU) {
203  InputTag inputTagDDU = theParams.getUntrackedParameter<InputTag>("inputTagDDU");
204  e.getByToken(trig_Token_, trigsDDU);
205 
206  if (trigsDDU.isValid()) {
207  runDDUAnalysis(trigsDDU);
208  } else {
209  LogVerbatim("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
210  << "[DTLocalTriggerBaseTask]: one or more DDU handles for Input Tag "
211  << inputTagDDU <<" not found!" << endl;
212  return;
213  }
214  }
215 
216  if (processDCC && processDDU)
218 
219 }
220 
221 
223 
224  uint32_t rawId = dtCh.rawId();
225 
226  stringstream wheel; wheel << dtCh.wheel();
227  stringstream station; station << dtCh.station();
228  stringstream sector; sector << dtCh.sector();
229 
230  map<string,int> minBX;
231  map<string,int> maxBX;
232 
233  minBX["DCC"] = theParams.getUntrackedParameter<int>("minBXDCC");
234  maxBX["DCC"] = theParams.getUntrackedParameter<int>("maxBXDCC");
235  minBX["DDU"] = theParams.getUntrackedParameter<int>("minBXDDU");
236  maxBX["DDU"] = theParams.getUntrackedParameter<int>("maxBXDDU");
237 
238  int nTimeBins = theParams.getUntrackedParameter<int>("nTimeBins");
239  int nLSTimeBin = theParams.getUntrackedParameter<int>("nLSTimeBin");
240 
241  string chTag = "_W" + wheel.str() + "_Sec" + sector.str() + "_St" + station.str();
242 
243  vector<string>::const_iterator typeIt = theTypes.begin();
244  vector<string>::const_iterator typeEnd = theTypes.end();
245 
246  for (; typeIt!=typeEnd; ++typeIt) {
247 
248  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
249  << "[DTLocalTriggerBaseTask]: booking histos for " << topFolder((*typeIt)) << "Wheel"
250  << wheel.str() << "/Sector" << sector.str() << "/Station"<< station.str() << endl;
251 
252  // Book Phi View Related Plots
253  ibooker.setCurrentFolder(topFolder(*typeIt) + "Wheel" + wheel.str() + "/Sector"
254  + sector.str() + "/Station" + station.str() + "/LocalTriggerPhi");
255 
256  string histoTag = (*typeIt) + "_BXvsQual";
257  chamberHistos[rawId][histoTag] = ibooker.book2D(histoTag+chTag,"BX vs trigger quality",
258  7,-0.5,6.5,(int)(maxBX[(*typeIt)]-minBX[*typeIt]+1),minBX[*typeIt]-.5,maxBX[*typeIt]+.5);
259  setQLabels((chamberHistos[rawId])[histoTag],1);
260 
261  if (!tpMode) {
262  histoTag = (*typeIt) + "_BestQual";
263  chamberHistos[rawId][histoTag] = ibooker.book1D(histoTag+chTag,
264  "Trigger quality of best primitives",7,-0.5,6.5);
265  setQLabels(chamberHistos[rawId][histoTag],1);
266 
267  histoTag = (*typeIt) + "_Flag1stvsQual";
268  chamberHistos[dtCh.rawId()][histoTag] = ibooker.book2D(histoTag+chTag,
269  "1st/2nd trig flag vs quality",7,-0.5,6.5,2,-0.5,1.5);
270  setQLabels(chamberHistos[rawId][histoTag],1);
271  }
272 
273  if (*typeIt=="DCC") {
274  float minPh, maxPh; int nBinsPh;
275  theTrigGeomUtils->phiRange(dtCh,minPh,maxPh,nBinsPh);
276 
277  histoTag = (*typeIt) + "_QualvsPhirad";
278  chamberHistos[rawId][histoTag] = ibooker.book2D(histoTag+chTag,
279  "Trigger quality vs local position",nBinsPh,minPh,maxPh,7,-0.5,6.5);
280  setQLabels(chamberHistos[rawId][histoTag],2);
281 
282  if (detailedAnalysis && !tpMode) {
283  histoTag = (*typeIt) + "_QualvsPhibend";
284  chamberHistos[rawId][histoTag] = ibooker.book2D(histoTag+chTag,
285  "Trigger quality vs local direction",200,-40.,40.,7,-0.5,6.5);
286  setQLabels((chamberHistos[dtCh.rawId()])[histoTag],2);
287  }
288  }
289 
290  // Book Theta View Related Plots
291  ibooker.setCurrentFolder(topFolder(*typeIt) + "Wheel" + wheel.str() + "/Sector"
292  + sector.str() + "/Station" + station.str() + "/LocalTriggerTheta");
293 
294  if((*typeIt)=="DCC") {
295  histoTag = (*typeIt) + "_PositionvsBX";
296  chamberHistos[rawId][histoTag] = ibooker.book2D(histoTag+chTag,"Theta trigger position vs BX",
297  (int)(maxBX[(*typeIt)]-minBX[*typeIt]+1),minBX[*typeIt]-.5,maxBX[*typeIt]+.5,7,-0.5,6.5);
298  } else {
299  histoTag = (*typeIt) + "_ThetaBXvsQual";
300  chamberHistos[rawId][histoTag] = ibooker.book2D(histoTag+chTag,"BX vs trigger quality",7,-0.5,6.5,
301  (int)(maxBX[(*typeIt)]-minBX[*typeIt]+1),minBX[*typeIt]-.5,maxBX[*typeIt]+.5);
302  setQLabels((chamberHistos[dtCh.rawId()])[histoTag],1);
303 
304  histoTag = (*typeIt) + "_ThetaBestQual";
305  chamberHistos[rawId][histoTag] = ibooker.book1D(histoTag+chTag,
306  "Trigger quality of best primitives (theta)",7,-0.5,6.5);
307  setQLabels((chamberHistos[dtCh.rawId()])[histoTag],1);
308  }
309 
310  }
311 
312  if (processDCC && processDDU) {
313  // Book DCC/DDU Comparison Plots
314  ibooker.setCurrentFolder(topFolder("DDU") + "Wheel" + wheel.str() + "/Sector"
315  + sector.str() + "/Station" + station.str() + "/LocalTriggerPhi");
316 
317  string histoTag = "COM_QualDDUvsQualDCC";
318  chamberHistos[rawId][histoTag] = ibooker.book2D(histoTag+chTag,
319  "DDU quality vs DCC quality",8,-1.5,6.5,8,-1.5,6.5);
320  setQLabels((chamberHistos[rawId])[histoTag],1);
321  setQLabels((chamberHistos[rawId])[histoTag],2);
322 
323  histoTag = "COM_MatchingTrend";
324  trendHistos[rawId] = new DTTimeEvolutionHisto(ibooker,histoTag+chTag,
325  "Fraction of DDU-DCC matches w.r.t. proc evts",
326  nTimeBins,nLSTimeBin,true,0);
327  }
328 
329 }
330 
332 
333  stringstream wheel; wheel << wh;
334  ibooker.setCurrentFolder(topFolder("DDU") + "Wheel" + wheel.str() + "/");
335  string whTag = "_W" + wheel.str();
336 
337  LogTrace("DTDQM|DTMonitorModule|DTLocalTriggerBaseTask")
338  << "[DTLocalTriggerBaseTask]: booking wheel histos for "
339  << topFolder("DDU") << "Wheel" << wh << endl;
340 
341  string histoTag = "COM_BXDiff";
342  MonitorElement *me = ibooker.bookProfile2D(histoTag+whTag,
343  "DDU-DCC BX Difference",12,1,13,4,1,5,0.,20.);
344  me->setAxisTitle("Sector",1);
345  me->setAxisTitle("station",2);
346  wheelHistos[wh][histoTag] = me;
347 
348 }
349 
350 
351 void DTLocalTriggerBaseTask::runDCCAnalysis( std::vector<L1MuDTChambPhDigi> const* phTrigs,
352  std::vector<L1MuDTChambThDigi> const* thTrigs )
353 {
354  vector<L1MuDTChambPhDigi>::const_iterator iph = phTrigs->begin();
355  vector<L1MuDTChambPhDigi>::const_iterator iphe = phTrigs->end();
356 
357  for(; iph !=iphe ; ++iph) {
358 
359  int wh = iph->whNum();
360  int sec = iph->scNum() + 1; // DTTF->DT Convention
361  int st = iph->stNum();
362  int qual = iph->code();
363  int is1st = iph->Ts2Tag() ? 1 : 0;
364  int bx = iph->bxNum() - is1st;
365 
366  if (qual <0 || qual>6) continue; // Check that quality is in a valid range
367 
368  DTChamberId dtChId(wh,st,sec);
369  uint32_t rawId = dtChId.rawId();
370 
371  float pos = theTrigGeomUtils->trigPos(&(*iph));
372  float dir = theTrigGeomUtils->trigDir(&(*iph));
373 
374  if (abs(bx-targetBXDCC)<= bestAccRange &&
375  theCompMap[rawId].qualDCC() <= qual)
376  theCompMap[rawId].setDCC(qual,bx);
377 
378  map<string, MonitorElement*> &innerME = chamberHistos[rawId];
379  if (tpMode) {
380  innerME["DCC_BXvsQual"]->Fill(qual,bx); // SM BX vs Qual Phi view (1st tracks)
381  innerME["DCC_QualvsPhirad"]->Fill(pos,qual); // SM Qual vs radial angle Phi view
382  } else {
383  innerME["DCC_BXvsQual"]->Fill(qual,bx); // SM BX vs Qual Phi view (1st tracks)
384  innerME["DCC_Flag1stvsQual"]->Fill(qual,is1st); // SM Qual 1st/2nd track flag Phi view
385  if (!is1st) innerME["DCC_QualvsPhirad"]->Fill(pos,qual); // SM Qual vs radial angle Phi view ONLY for 1st tracks
386  if (detailedAnalysis) {
387  innerME["DCC_QualvsPhibend"]->Fill(dir,qual); // SM Qual vs bending Phi view
388  }
389  }
390 
391  }
392 
393  vector<L1MuDTChambThDigi>::const_iterator ith = thTrigs->begin();
394  vector<L1MuDTChambThDigi>::const_iterator ithe = thTrigs->end();
395 
396  for(; ith != ithe; ++ith) {
397  int wh = ith->whNum();
398  int sec = ith->scNum() + 1; // DTTF -> DT Convention
399  int st = ith->stNum();
400  int bx = ith->bxNum();
401 
402  int thcode[7];
403 
404  for (int pos=0; pos<7; pos++)
405  thcode[pos] = ith->code(pos);
406 
407  DTChamberId dtChId(wh,st,sec);
408  uint32_t rawId = dtChId.rawId();
409 
410  map<string, MonitorElement*> &innerME = chamberHistos[rawId];
411 
412  for (int pos=0; pos<7; pos++)
413  if (thcode[pos])
414  innerME["DCC_PositionvsBX"]->Fill(bx,pos); // SM BX vs Position Theta view
415 
416  }
417 
418  // Fill Quality plots with best DCC triggers (phi view)
419  if (!tpMode) {
420  map<uint32_t,DTTPGCompareUnit>::const_iterator compIt = theCompMap.begin();
421  map<uint32_t,DTTPGCompareUnit>::const_iterator compEnd = theCompMap.end();
422  for (; compIt!=compEnd; ++compIt) {
423  int bestQual = compIt->second.qualDCC();
424  if (bestQual > -1)
425  chamberHistos[compIt->first]["DCC_BestQual"]->Fill(bestQual); // SM Best Qual Trigger Phi view
426  }
427  }
428 
429 }
430 
431 
433 
434  DTLocalTriggerCollection::DigiRangeIterator detUnitIt = trigsDDU->begin();
435  DTLocalTriggerCollection::DigiRangeIterator detUnitEnd = trigsDDU->end();
436 
437  for (; detUnitIt!=detUnitEnd; ++detUnitIt){
438 
439  const DTChamberId& chId = (*detUnitIt).first;
440  uint32_t rawId = chId.rawId();
441 
442  const DTLocalTriggerCollection::Range& range = (*detUnitIt).second;
443  DTLocalTriggerCollection::const_iterator trigIt = range.first;
444  map<string, MonitorElement*> &innerME = chamberHistos[rawId];
445 
446  int bestQualTheta = -1;
447 
448  for (; trigIt!=range.second; ++trigIt){
449 
450  int qualPhi = trigIt->quality();
451  int qualTheta = trigIt->trTheta();
452  int flag1st = trigIt->secondTrack() ? 1 : 0;
453  int bx = trigIt->bx();
454  int bxPhi = bx - flag1st; // phi BX assign is different for 1st & 2nd tracks
455 
456  if( qualPhi>-1 && qualPhi<7 ) { // it is a phi trigger
457  if (abs(bx-targetBXDDU) <= bestAccRange &&
458  theCompMap[rawId].qualDDU()<= qualPhi)
459  theCompMap[rawId].setDDU(qualPhi,bxPhi);
460  if(tpMode) {
461  innerME["DDU_BXvsQual"]->Fill(qualPhi,bxPhi); // SM BX vs Qual Phi view
462  } else {
463  innerME["DDU_BXvsQual"]->Fill(qualPhi,bxPhi); // SM BX vs Qual Phi view
464  innerME["DDU_Flag1stvsQual"]->Fill(qualPhi,flag1st); // SM Quality vs 1st/2nd track flag Phi view
465  }
466  }
467 
468  if( qualTheta>0 && !tpMode ){// it is a theta trigger & is not TP
469  if (qualTheta > bestQualTheta){
470  bestQualTheta = qualTheta;
471  }
472  innerME["DDU_ThetaBXvsQual"]->Fill(qualTheta,bx); // SM BX vs Qual Theta view
473  }
474  }
475 
476  // Fill Quality plots with best ddu triggers
477  if (!tpMode && theCompMap.find(rawId)!= theCompMap.end()) {
478  int bestQualPhi = theCompMap[rawId].qualDDU();
479  if (bestQualPhi>-1)
480  innerME["DDU_BestQual"]->Fill(bestQualPhi); // SM Best Qual Trigger Phi view
481  if(bestQualTheta>0) {
482  innerME["DDU_ThetaBestQual"]->Fill(bestQualTheta); // SM Best Qual Trigger Theta view
483  }
484  }
485  }
486 
487 }
488 
489 
491 
492  map<uint32_t,DTTPGCompareUnit>::const_iterator compIt = theCompMap.begin();
493  map<uint32_t,DTTPGCompareUnit>::const_iterator compEnd = theCompMap.end();
494 
495  for (; compIt!=compEnd; ++compIt) {
496 
497  uint32_t rawId = compIt->first;
498  DTChamberId chId(rawId);
499  map<string, MonitorElement*> &innerME = chamberHistos[rawId];
500 
501  const DTTPGCompareUnit & compUnit = compIt->second;
502  if ( compUnit.hasOne() ){
503  innerME["COM_QualDDUvsQualDCC"]->Fill(compUnit.qualDCC(),compUnit.qualDDU());
504  }
505  if ( compUnit.hasBoth() ){
506  wheelHistos[chId.wheel()]["COM_BXDiff"]->Fill(chId.sector(),chId.station(),compUnit.deltaBX());
507  if ( compUnit.hasSameQual() ) {
508  trendHistos[rawId]->accumulateValueTimeSlot(1);
509  }
510  }
511  }
512 
513 }
514 
515 
517 
518  TH1* histo = me->getTH1();
519  if (!histo) return;
520 
521  TAxis* axis=0;
522  if (iaxis==1) {
523  axis=histo->GetXaxis();
524  }
525  else if(iaxis==2) {
526  axis=histo->GetYaxis();
527  }
528  if (!axis) return;
529 
530  string labels[7] = {"LI","LO","HI","HO","LL","HL","HH"};
531  int istart = axis->GetXmin()<-1 ? 2 : 1;
532  for (int i=0;i<7;i++) {
533  axis->SetBinLabel(i+istart,labels[i].c_str());
534  }
535 
536 }
537 
538 // Local Variables:
539 // show-trailing-whitespace: t
540 // truncate-lines: t
541 // End:
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
void runDCCAnalysis(std::vector< L1MuDTChambPhDigi > const *phTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on DCC data.
void bookHistos(DQMStore::IBooker &, const DTChamberId &chamb)
Book the histograms.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:464
float trigDir(const L1MuDTChambPhDigi *trig)
Return local direction (trigger RF) for a given trigger primitive.
void setDDU(int qual, int bx)
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
virtual ~DTLocalTriggerBaseTask()
Destructor.
std::vector< std::string > theTypes
void Fill(long long x)
LuminosityBlockNumber_t luminosityBlock() const
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
DTTrigGeomUtils * theTrigGeomUtils
void runDDUvsDCCAnalysis()
Run analysis on ROS data.
void setDCC(int qual, int bx)
MonitorElement * bookProfile2D(Args &&...args)
Definition: DQMStore.h:163
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::EDGetTokenT< L1MuDTChambThContainer > dcc_theta_Token_
TH1 * getTH1(void) const
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
edm::EDGetTokenT< DTLocalTriggerCollection > trig_Token_
bool isValid() const
Definition: HandleBase.h:75
#define LogTrace(id)
void phiRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute phi range in local chamber coordinates.
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 setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
const T & get() const
Definition: EventSetup.h:56
std::vector< DTLocalTrigger >::const_iterator const_iterator
int sector() const
Definition: DTChamberId.h:61
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
std::map< uint32_t, DTTPGCompareUnit > theCompMap
std::map< uint32_t, DTTimeEvolutionHisto * > trendHistos
std::pair< const_iterator, const_iterator > Range
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:109
dbl *** dir
Definition: mlp_gen.cc:35
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.
float trigPos(const L1MuDTChambPhDigi *trig)
Return local position (trigger RF) for a given trigger primitive.
int station() const
Return the station number.
Definition: DTChamberId.h:51
UInt_t nEvents
Definition: hcalCalib.cc:42
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
DTLocalTriggerBaseTask(const edm::ParameterSet &ps)
Constructor.
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_phi_Token_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition: Run.h:43
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.