37 isLocalRun(ps.getUntrackedParameter<bool>(
"localrun",
true))
44 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: Constructor"<<endl;
56 ros_Token_ = consumes<DTLocalTriggerCollection>(
58 seg_Token_ = consumes<DTRecSegment4DCollection>(
77 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: analyzed " <<
nevents <<
" events" << endl;
92 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: bookHistograms" << endl;
96 vector<string> trigSources;
98 trigSources.push_back(
"");
101 trigSources.push_back(
"_DTonly");
102 trigSources.push_back(
"_NoDT");
103 trigSources.push_back(
"_DTalso");
105 vector<string>::const_iterator trigSrcIt = trigSources.begin();
106 vector<string>::const_iterator trigSrcEnd = trigSources.end();
113 for (
int stat=1;stat<5;++stat){
114 for (
int wh=-2;wh<3;++wh){
115 for (
int sect=1;sect<13;++sect){
119 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_BXvsQual"+(*trigSrcIt));
120 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_QualvsPhirad"+(*trigSrcIt));
124 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DDU_BXvsQual"+(*trigSrcIt));
132 for (;trigSrcIt!=trigSrcEnd;++trigSrcIt){
133 for (
int wh=-2;wh<3;++wh){
138 for (
int sect=1;sect<13;++sect){
139 for (
int stat=1;stat<5;++stat){
143 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_BXvsQual"+(*trigSrcIt));
145 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_QualvsPhirad"+(*trigSrcIt));
146 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_QualvsPhibend"+(*trigSrcIt));
148 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_Flag1stvsQual"+(*trigSrcIt));
149 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DCC_BestQual"+(*trigSrcIt));
151 bookHistos(ibooker, dtChId,
"LocalTriggerTheta",
"DCC_PositionvsBX"+(*trigSrcIt));
155 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhitkvsPhitrig"+(*trigSrcIt));
156 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhibtkvsPhibtrig"+(*trigSrcIt));
157 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhiResidual"+(*trigSrcIt));
158 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhiResidualvsLUTPhi"+(*trigSrcIt));
159 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhibResidual"+(*trigSrcIt));
160 bookHistos(ibooker, dtChId,
"Segment",
"DCC_HitstkvsQualtrig"+(*trigSrcIt));
161 bookHistos(ibooker, dtChId,
"Segment",
"DCC_TrackPosvsAngle"+(*trigSrcIt));
162 bookHistos(ibooker, dtChId,
"Segment",
"DCC_TrackPosvsAngleandTrig"+(*trigSrcIt));
163 bookHistos(ibooker, dtChId,
"Segment",
"DCC_TrackPosvsAngleandTrigHHHL"+(*trigSrcIt));
165 bookHistos(ibooker, dtChId,
"Segment",
"DCC_TrackThetaPosvsAngle"+(*trigSrcIt));
166 bookHistos(ibooker, dtChId,
"Segment",
"DCC_TrackThetaPosvsAngleandTrig"+(*trigSrcIt));
175 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DDU_BXvsQual"+(*trigSrcIt));
176 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DDU_Flag1stvsQual"+(*trigSrcIt));
177 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"DDU_BestQual"+(*trigSrcIt));
179 bookHistos(ibooker, dtChId,
"LocalTriggerTheta",
"DDU_ThetaBXvsQual"+(*trigSrcIt));
180 bookHistos(ibooker, dtChId,
"LocalTriggerTheta",
"DDU_ThetaBestQual"+(*trigSrcIt));
184 bookHistos(ibooker, dtChId,
"Segment",
"DDU_HitstkvsQualtrig"+(*trigSrcIt));
185 bookHistos(ibooker, dtChId,
"Segment",
"DDU_TrackPosvsAngle"+(*trigSrcIt));
186 bookHistos(ibooker, dtChId,
"Segment",
"DDU_TrackPosvsAngleandTrig"+(*trigSrcIt));
187 bookHistos(ibooker, dtChId,
"Segment",
"DDU_TrackPosvsAngleandTrigHHHL"+(*trigSrcIt));
189 bookHistos(ibooker, dtChId,
"Segment",
"DDU_TrackThetaPosvsAngle"+(*trigSrcIt));
190 bookHistos(ibooker, dtChId,
"Segment",
"DDU_TrackThetaPosvsAngleandTrig"+(*trigSrcIt));
191 bookHistos(ibooker, dtChId,
"Segment",
"DDU_TrackThetaPosvsAngleandTrigH"+(*trigSrcIt));
199 bookHistos(ibooker, dtChId,
"LocalTriggerPhi",
"COM_QualDDUvsQualDCC"+(*trigSrcIt));
204 for (
int sect=13;sect<15;++sect){
208 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhitkvsPhitrig"+(*trigSrcIt));
209 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhibtkvsPhibtrig"+(*trigSrcIt));
210 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhiResidual"+(*trigSrcIt));
211 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhiResidualvsLUTPhi"+(*trigSrcIt));
212 bookHistos(ibooker, dtChId,
"Segment",
"DCC_PhibResidual"+(*trigSrcIt));
227 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: Begin of LS transition" << endl;
230 for(
map<uint32_t, map<string, MonitorElement*> > ::const_iterator
histo =
digiHistos.begin();
233 for(map<string, MonitorElement*> ::const_iterator ht = (*histo).second.begin();
234 ht != (*histo).second.end();
236 (*ht).second->Reset();
271 vector<L1MuDTChambPhDigi>
const* l1PhTrig = l1DTTPGPh->getContainer();
277 vector<L1MuDTChambThDigi>
const* l1ThTrig = l1DTTPGTh->getContainer();
302 bool isDCC = histoTag.substr(0,3) ==
"DCC";
304 if (histoTag ==
"DCC_ErrorsChamberID") {
317 stringstream wheel; wheel << wh;
319 stringstream sector; sector << sc;
325 string histoType = histoTag.substr(4,histoTag.find(
"_",4)-4);
326 bool isDCC = histoTag.substr(0,3) ==
"DCC";
329 "/Sector" + sector.str() +
330 "/Station" + station.str() +
"/" + folder);
332 string histoName = histoTag +
"_W" + wheel.str() +
"_Sec" + sector.str() +
"_St" + station.str();
334 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: booking " <<
topFolder(isDCC) <<
"Wheel" << wheel.str()
335 <<
"/Sector" << sector.str()
336 <<
"/Station"<< station.str() <<
"/" << folder <<
"/" << histoName << endl;
338 if (histoType.find(
"BX") != string::npos){
339 if (histoTag.substr(0,3) ==
"DCC"){
347 rangeBX = (int)(maxBX-minBX);
350 if ( folder ==
"LocalTriggerPhi") {
352 if( histoType ==
"BXvsQual" ){
354 ibooker.
book2D(histoName,
"BX vs trigger quality",7,-0.5,6.5,rangeBX,minBX,maxBX);
358 if( histoType ==
"BestQual" ){
360 ibooker.
book1D(histoName,
"Trigger quality of best primitives",7,-0.5,6.5);
364 if( histoType ==
"QualvsPhirad" ){
366 ibooker.
book2D(histoName,
"Trigger quality vs local position",100,-500.,500.,7,-0.5,6.5);
370 if( histoType ==
"QualvsPhibend" ) {
372 ibooker.
book2D(histoName,
"Trigger quality vs local direction",200,-40.,40.,7,-0.5,6.5);
376 if( histoType ==
"Flag1stvsQual" ) {
378 ibooker.
book2D(histoName,
"1st/2nd trig flag vs quality",7,-0.5,6.5,2,-0.5,1.5);
382 if( histoType ==
"QualDDUvsQualDCC" ){
384 ibooker.
book2D(histoName,
"DDU quality vs DCC quality",8,-1.5,6.5,8,-1.5,6.5);
391 else if ( folder ==
"LocalTriggerTheta") {
393 if( histoType ==
"PositionvsBX" ) {
395 ibooker.
book2D(histoName,
"Theta trigger position vs BX",rangeBX,minBX,maxBX,7,-0.5,6.5);
398 if( histoType ==
"PositionvsQual" ) {
400 ibooker.
book2D(histoName,
"Theta trigger position vs quality",7,-0.5,6.5,7,-0.5,6.5);
404 if( histoType ==
"ThetaBXvsQual" ) {
406 ibooker.
book2D(histoName,
"BX vs trigger quality",7,-0.5,6.5,rangeBX,minBX,maxBX);
409 if( histoType ==
"ThetaBestQual" ){
411 ibooker.
book1D(histoName,
"Trigger quality of best primitives (theta)",7,-0.5,6.5);
417 else if ( folder ==
"Segment") {
419 if( histoType.find(
"TrackThetaPosvsAngle" ) == 0 ) {
421 string histoLabel =
"Position vs Angle (theta)";
422 if (histoType.find(
"andTrigH") != string::npos) histoLabel +=
" for H triggers";
423 else if (histoType.find(
"andTrig") != string::npos) histoLabel +=
" for triggers";
429 ibooker.
book2D(histoName,histoLabel,16,-40.,40.,nbins,min,max);
432 if( histoType.find(
"TrackPosvsAngle") == 0 ){
438 string histoLabel =
"Position vs Angle (phi)";
439 if (histoType.find(
"andTrigHHHL") != string::npos) histoLabel +=
" for HH/HL triggers";
440 else if (histoType.find(
"andTrig") != string::npos) histoLabel +=
" for triggers";
443 ibooker.
book2D(histoName,histoLabel,16,-40.,40.,nbins,min,max);
446 if( histoType ==
"PhitkvsPhitrig" ){
448 ibooker.
book2D(histoName,
"Local position: segment vs trigger",100,-500.,500.,100,-500.,500.);
451 if( histoType ==
"PhibtkvsPhibtrig" ){
453 ibooker.
book2D(histoName,
"Local direction : segment vs trigger",200,-40.,40.,200,-40.,40.);
456 if( histoType ==
"PhiResidual" ){
458 ibooker.
book1D(histoName,
"Trigger local position - Segment local position (correlated triggers)",400,-10.,10.);
461 if( histoType ==
"PhibResidual" ){
463 ibooker.
book1D(histoName,
"Trigger local direction - Segment local direction (correlated triggers)",500,-10.,10.);
466 if( histoType ==
"HitstkvsQualtrig" ){
468 ibooker.
book2D(histoName,
"Segment hits (phi) vs trigger quality",7,-0.5,6.5,10,0.5,10.5);
479 stringstream wheel; wheel << wh;
481 string histoType = histoTag.substr(4,histoTag.find(
"_",4)-4);
482 bool isDCC = histoTag.substr(0,3) ==
"DCC";
486 string histoName = histoTag +
"_W" + wheel.str();
488 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: booking " <<
topFolder(isDCC)
489 <<
"Wheel" << wheel.str() <<
"/" << histoName << endl;
491 if( histoType.find(
"BXDiff") != string::npos ){
502 std::vector<L1MuDTChambThDigi>
const* thTrigs ) {
509 for (
int i=0;
i<5;++
i){
510 for (
int j=0;
j<6;++
j){
511 for (
int k=0;
k<13;++
k){
518 vector<L1MuDTChambPhDigi>::const_iterator iph = phTrigs->begin();
519 vector<L1MuDTChambPhDigi>::const_iterator iphe = phTrigs->end();
520 for(; iph !=iphe ; ++iph) {
522 int phwheel = iph->whNum();
523 int phsec = iph->scNum() + 1;
524 int phst = iph->stNum();
525 int phbx = iph->bxNum();
526 int phcode = iph->code();
527 int phi1st = iph->Ts2Tag();
535 if(phcode>
phcode_best[phwheel+3][phst][phsec] && phcode<7) {
537 iphbest[phwheel+3][phst][phsec] = &(*iph);
544 uint32_t indexCh = dtChId.
rawId();
546 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
549 innerME.find(
"DCC_BXvsQual"+
trigsrc)->second->Fill(phcode,phbx-phi1st);
550 innerME.find(
"DCC_QualvsPhirad"+
trigsrc)->second->Fill(x,phcode);
553 innerME.find(
"DCC_BXvsQual"+
trigsrc)->second->Fill(phcode,phbx-phi1st);
554 innerME.find(
"DCC_Flag1stvsQual"+
trigsrc)->second->Fill(phcode,phi1st);
556 innerME.find(
"DCC_QualvsPhirad"+
trigsrc)->second->Fill(x,phcode);
557 innerME.find(
"DCC_QualvsPhibend"+
trigsrc)->second->Fill(angle,phcode);
565 vector<L1MuDTChambThDigi>::const_iterator ith = thTrigs->begin();
566 vector<L1MuDTChambThDigi>::const_iterator ithe = thTrigs->end();
567 for(; ith != ithe; ++ith) {
568 int thwheel = ith->whNum();
569 int thsec = ith->scNum() + 1;
570 int thst = ith->stNum();
571 int thbx = ith->bxNum();
573 for (
int pos=0; pos<7; pos++) {
574 thcode[pos] = ith->code(pos);
576 if(thcode[pos]>
thcode_best[thwheel+3][thst][thsec] ) {
578 ithbest[thwheel+3][thst][thsec] = &(*ith);
583 uint32_t indexCh = dtChId.
rawId();
585 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
587 for (
int pos=0; pos<7; pos++) {
589 innerME.find(
"DCC_PositionvsBX"+
trigsrc)->second->Fill(thbx,pos);
598 for (
int st=1;st<5;++st){
599 for (
int wh=-2;wh<3;++wh){
600 for (
int sc=1;sc<13;++sc){
603 uint32_t indexCh =
id.rawId();
604 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
619 for (
int i=0;
i<5;++
i){
620 for (
int j=0;
j<6;++
j){
621 for (
int k=0;
k<13;++
k){
628 for (detUnitIt=trigsDDU->begin();
629 detUnitIt!=trigsDDU->end();
634 uint32_t indexCh =
id.
rawId();
635 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
638 int sec =
id.sector();
639 int st =
id.station();
642 trigIt!=range.second;
645 int bx = trigIt->bx();
646 int quality = trigIt->quality();
647 int thqual = trigIt->trTheta();
648 int flag1st = trigIt->secondTrack() ? 1 : 0;
651 if( quality>-1 && quality<7 ) {
659 innerME.find(
"DDU_BXvsQual"+
trigsrc)->second->Fill(quality,bx-flag1st);
662 innerME.find(
"DDU_BXvsQual"+
trigsrc)->second->Fill(quality,bx-flag1st);
663 innerME.find(
"DDU_Flag1stvsQual"+
trigsrc)->second->Fill(quality,flag1st);
666 if( thqual>0 && !
tpMode ) {
672 innerME.find(
"DDU_ThetaBXvsQual"+
trigsrc)->second->Fill(thqual,bx);
696 memset(
track_ok,
false,450*
sizeof(
bool));
698 DTRecSegment4DCollection::id_iterator chamberId;
699 vector<const DTRecSegment4D*> best4DSegments;
702 for (chamberId = segments4D->id_begin(); chamberId != segments4D->id_end(); ++chamberId){
709 for ( track = range.first; track != range.second; ++track){
711 if( (*track).hasPhi() ) {
719 int sector = (*track).chamberId().sector();
720 int station = (*track).chamberId().station();
724 else if (sector==14){
732 if (tmpBest) best4DSegments.push_back(tmpBest);
735 vector<const DTRecSegment4D*>::const_iterator btrack;
737 for ( btrack = best4DSegments.begin(); btrack != best4DSegments.end(); ++btrack ){
739 if( (*btrack)->hasPhi() ) {
741 int wheel = (*btrack)->chamberId().wheel();
742 int station = (*btrack)->chamberId().station();
743 int sector = (*btrack)->chamberId().sector();
745 float x_track, y_track, x_angle, y_angle;
747 int nHitsPhi = (*btrack)->phiSegment()->degreesOfFreedom()+2;
750 uint32_t indexCh = dtChId.
rawId();
751 map<string, MonitorElement*> &innerMECh =
digiHistos[indexCh];
754 indexCh = dtChIdSC.
rawId();
755 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
762 innerME.find(
"DDU_HitstkvsQualtrig"+
trigsrc)->second->Fill(
dduphcode_best[wheel+3][station][scsector],nHitsPhi);
770 innerME.find(
"DCC_HitstkvsQualtrig"+
trigsrc)->second->Fill(
phcode_best[wheel+3][station][scsector],nHitsPhi);
772 if (
phcode_best[wheel+3][station][scsector]>3 && nHitsPhi>=7){
778 innerMECh.find(
"DCC_PhitkvsPhitrig"+
trigsrc)->second->Fill(x_trigger,x_track);
779 innerMECh.find(
"DCC_PhibtkvsPhibtrig"+
trigsrc)->second->Fill(angle_trigger,x_angle);
780 innerMECh.find(
"DCC_PhiResidual"+
trigsrc)->second->Fill(x_trigger-x_track);
781 innerMECh.find(
"DCC_PhibResidual"+
trigsrc)->second->Fill(angle_trigger-x_angle);
789 bool trigFlagDCC =
false;
790 for (
int ist=1; ist<5; ist++){
794 track_ok[wheel+3][ist][scsector]==
true){
800 if (trigFlagDCC && fabs(x_angle)<40. && nHitsPhi>=7){
803 innerME.find(
"DCC_TrackPosvsAngle"+
trigsrc)->second->Fill(x_angle,x_track);
805 innerME.find(
"DCC_TrackPosvsAngleandTrig"+
trigsrc)->second->Fill(x_angle,x_track);
807 innerME.find(
"DCC_TrackPosvsAngleandTrigHHHL"+
trigsrc)->second->Fill(x_angle,x_track);
813 if ((*btrack)->hasZed() && trigFlagDCC && fabs(y_angle)<40. && (*btrack)->zSegment()->degreesOfFreedom()>=1){
816 innerME.find(
"DCC_TrackThetaPosvsAngle"+
trigsrc)->second->Fill(y_angle,y_track);
818 innerME.find(
"DCC_TrackThetaPosvsAngleandTrig"+
trigsrc)->second->Fill(y_angle,y_track);
827 bool trigFlagDDU =
false;
828 for (
int ist=1; ist<5; ist++){
832 track_ok[wheel+3][ist][scsector]==
true){
838 if (trigFlagDDU && fabs(x_angle)<40. && nHitsPhi>=7){
841 innerME.find(
"DDU_TrackPosvsAngle"+
trigsrc)->second->Fill(x_angle,x_track);
843 innerME.find(
"DDU_TrackPosvsAngleandTrig"+
trigsrc)->second->Fill(x_angle,x_track);
845 innerME.find(
"DDU_TrackPosvsAngleandTrigHHHL"+
trigsrc)->second->Fill(x_angle,x_track);
851 if ((*btrack)->hasZed() && trigFlagDDU && fabs(y_angle)<40. && (*btrack)->zSegment()->degreesOfFreedom()>=1){
854 innerME.find(
"DDU_TrackThetaPosvsAngle"+
trigsrc)->second->Fill(y_angle,y_track);
856 innerME.find(
"DDU_TrackThetaPosvsAngleandTrig"+
trigsrc)->second->Fill(y_angle,y_track);
858 innerME.find(
"DDU_TrackThetaPosvsAngleandTrigH"+
trigsrc)->second->Fill(y_angle,y_track);
875 for (
int st=1;st<5;++st){
876 for (
int wh=-2;wh<3;++wh){
877 for (
int sc=1;sc<13;++sc){
881 uint32_t indexCh =
id.rawId();
882 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
889 (
wheelHistos[wh]).
find(
"COM_BXDiff"+trigsrc)->second->Fill(sc,st,bxDDU-bxDCC);
905 axis=histo->GetXaxis();
908 axis=histo->GetYaxis();
912 string labels[7] = {
"LI",
"LO",
"HI",
"HO",
"LL",
"HL",
"HH"};
913 int istart = axis->GetXmin()<-1 ? 2 : 1;
914 for (
int i=0;
i<7;
i++) {
915 axis->SetBinLabel(
i+istart,labels[
i].c_str());
928 for (std::vector<LTCDigi>::const_iterator ltc_it = ltcdigis->begin(); ltc_it != ltcdigis->end(); ltc_it++){
930 size_t otherTriggerSum=0;
931 for (
size_t i = 1;
i < 6;
i++) {
932 otherTriggerSum += size_t((*ltc_it).HasTriggered(
i));
934 if ((*ltc_it).HasTriggered(0) && otherTriggerSum == 0)
936 else if (!(*ltc_it).HasTriggered(0))
938 else if ((*ltc_it).HasTriggered(0) && otherTriggerSum > 0)
LuminosityBlockID id() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::pair< const_iterator, const_iterator > range
iterator range
void thetaRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute theta range in local chamber coordinates.
int phcode_best[6][5][13]
std::string baseFolderDDU
virtual int degreesOfFreedom() const
return the DOF of the segment
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
edm::EDGetTokenT< LTCDigiCollection > ltcDigiCollectionToken_
int thcode_best[6][5][13]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void runDCCAnalysis(std::vector< L1MuDTChambPhDigi > const *phTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
Run analysis on DCC data.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Book the histograms.
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
float trigDir(const L1MuDTChambPhDigi *trig)
Return local direction (trigger RF) for a given trigger primitive.
edm::EDGetTokenT< L1MuDTChambPhContainer > dcc_Token_
int dduphcode_best[6][5][13]
void runDDUvsDCCAnalysis(std::string &trigsrc)
Run analysis on ROS data.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
virtual DTChamberId chamberId() const
The (specific) DetId of the chamber on which the segment resides.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
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.
uint32_t rawId() const
get the raw id
edm::EDGetTokenT< DTRecSegment4DCollection > seg_Token_
std::string baseFolderDCC
MonitorElement * bookProfile2D(Args &&...args)
void trigToSeg(int st, float &x, float dir)
Compute Trigger x coordinate in chamber RF.
MonitorElement * book1D(Args &&...args)
DTLocalTriggerTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< DTLocalTriggerCollection > ros_Token_
edm::ESHandle< DTGeometry > muonGeom
void phiRange(const DTChamberId &id, float &min, float &max, int &nbins, float step=15)
Compute phi range in local chamber coordinates.
void bookHistos(DQMStore::IBooker &, const DTChamberId &dtCh, std::string folder, std::string histoTag)
const DTLocalTrigger * iphbestddu[6][5][13]
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
const L1MuDTChambThDigi * ithbest[6][5][13]
LuminosityBlockNumber_t luminosityBlock() const
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
std::vector< DTLocalTrigger >::const_iterator const_iterator
edm::EDGetTokenT< L1MuDTChambThContainer > dccTh_Token_
edm::ParameterSet parameters
std::string & topFolder(bool isDCC)
Get the Top folder (different between Physics and TP and DCC/DDU)
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.
std::pair< const_iterator, const_iterator > Range
float trigPos(const L1MuDTChambPhDigi *trig)
Return local position (trigger RF) for a given trigger primitive.
int station() const
Return the station number.
int wheel() const
Return the wheel number.
MonitorElement * dcc_IDDataErrorPlot
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void bookBarrelHistos(DQMStore::IBooker &, std::string histoTag)
Book the histograms.
std::map< uint32_t, std::map< std::string, MonitorElement * > > digiHistos
void computeSCCoordinates(const DTRecSegment4D *track, int &scsec, float &x, float &xdir, float &y, float &ydir)
Compute track coordinates with SC sector numbering.
void runDDUAnalysis(edm::Handle< DTLocalTriggerCollection > &trigsDDU)
Run analysis on ROS data.
T angle(T x1, T y1, T z1, T x2, T y2, T z2)