42 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: Constructor"<<endl;
66 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: analyzed " <<
nevents <<
" events" << endl;
74 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: BeginJob" << endl;
82 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: BeginRun" << endl;
89 vector<string> trigSources;
91 trigSources.push_back(
"");
94 trigSources.push_back(
"_DTonly");
95 trigSources.push_back(
"_NoDT");
96 trigSources.push_back(
"_DTalso");
98 vector<string>::const_iterator trigSrcIt = trigSources.begin();
99 vector<string>::const_iterator trigSrcEnd = trigSources.end();
106 for (
int stat=1;stat<5;++stat){
107 for (
int wh=-2;wh<3;++wh){
108 for (
int sect=1;sect<13;++sect){
112 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_BXvsQual"+(*trigSrcIt));
113 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_QualvsPhirad"+(*trigSrcIt));
117 bookHistos(dtChId,
"LocalTriggerPhi",
"DDU_BXvsQual"+(*trigSrcIt));
125 for (;trigSrcIt!=trigSrcEnd;++trigSrcIt){
126 for (
int wh=-2;wh<3;++wh){
131 for (
int sect=1;sect<13;++sect){
132 for (
int stat=1;stat<5;++stat){
136 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_BXvsQual"+(*trigSrcIt));
138 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_QualvsPhirad"+(*trigSrcIt));
139 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_QualvsPhibend"+(*trigSrcIt));
141 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_Flag1stvsQual"+(*trigSrcIt));
142 bookHistos(dtChId,
"LocalTriggerPhi",
"DCC_BestQual"+(*trigSrcIt));
144 bookHistos(dtChId,
"LocalTriggerTheta",
"DCC_PositionvsBX"+(*trigSrcIt));
151 bookHistos(dtChId,
"Segment",
"DCC_PhitkvsPhitrig"+(*trigSrcIt));
152 bookHistos(dtChId,
"Segment",
"DCC_PhibtkvsPhibtrig"+(*trigSrcIt));
153 bookHistos(dtChId,
"Segment",
"DCC_PhiResidual"+(*trigSrcIt));
154 bookHistos(dtChId,
"Segment",
"DCC_PhiResidualvsLUTPhi"+(*trigSrcIt));
155 bookHistos(dtChId,
"Segment",
"DCC_PhibResidual"+(*trigSrcIt));
156 bookHistos(dtChId,
"Segment",
"DCC_HitstkvsQualtrig"+(*trigSrcIt));
157 bookHistos(dtChId,
"Segment",
"DCC_TrackPosvsAngle"+(*trigSrcIt));
158 bookHistos(dtChId,
"Segment",
"DCC_TrackPosvsAngleandTrig"+(*trigSrcIt));
159 bookHistos(dtChId,
"Segment",
"DCC_TrackPosvsAngleandTrigHHHL"+(*trigSrcIt));
161 bookHistos(dtChId,
"Segment",
"DCC_TrackThetaPosvsAngle"+(*trigSrcIt));
162 bookHistos(dtChId,
"Segment",
"DCC_TrackThetaPosvsAngleandTrig"+(*trigSrcIt));
171 bookHistos(dtChId,
"LocalTriggerPhi",
"DDU_BXvsQual"+(*trigSrcIt));
172 bookHistos(dtChId,
"LocalTriggerPhi",
"DDU_Flag1stvsQual"+(*trigSrcIt));
173 bookHistos(dtChId,
"LocalTriggerPhi",
"DDU_BestQual"+(*trigSrcIt));
175 bookHistos(dtChId,
"LocalTriggerTheta",
"DDU_ThetaBXvsQual"+(*trigSrcIt));
176 bookHistos(dtChId,
"LocalTriggerTheta",
"DDU_ThetaBestQual"+(*trigSrcIt));
180 bookHistos(dtChId,
"Segment",
"DDU_HitstkvsQualtrig"+(*trigSrcIt));
181 bookHistos(dtChId,
"Segment",
"DDU_TrackPosvsAngle"+(*trigSrcIt));
182 bookHistos(dtChId,
"Segment",
"DDU_TrackPosvsAngleandTrig"+(*trigSrcIt));
183 bookHistos(dtChId,
"Segment",
"DDU_TrackPosvsAngleandTrigHHHL"+(*trigSrcIt));
185 bookHistos(dtChId,
"Segment",
"DDU_TrackThetaPosvsAngle"+(*trigSrcIt));
186 bookHistos(dtChId,
"Segment",
"DDU_TrackThetaPosvsAngleandTrig"+(*trigSrcIt));
187 bookHistos(dtChId,
"Segment",
"DDU_TrackThetaPosvsAngleandTrigH"+(*trigSrcIt));
195 bookHistos(dtChId,
"LocalTriggerPhi",
"COM_QualDDUvsQualDCC"+(*trigSrcIt));
200 for (
int sect=13;sect<15;++sect){
204 bookHistos(dtChId,
"Segment",
"DCC_PhitkvsPhitrig"+(*trigSrcIt));
205 bookHistos(dtChId,
"Segment",
"DCC_PhibtkvsPhibtrig"+(*trigSrcIt));
206 bookHistos(dtChId,
"Segment",
"DCC_PhiResidual"+(*trigSrcIt));
207 bookHistos(dtChId,
"Segment",
"DCC_PhiResidualvsLUTPhi"+(*trigSrcIt));
208 bookHistos(dtChId,
"Segment",
"DCC_PhibResidual"+(*trigSrcIt));
222 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: Begin of LS transition" << endl;
225 for(
map<uint32_t, map<string, MonitorElement*> > ::const_iterator
histo =
digiHistos.begin();
228 for(map<string, MonitorElement*> ::const_iterator ht = (*histo).second.begin();
229 ht != (*histo).second.end();
231 (*ht).second->Reset();
241 LogVerbatim(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: analyzed " <<
nevents <<
" events" << endl;
279 vector<L1MuDTChambPhDigi>* l1PhTrig = l1DTTPGPh->getContainer();
283 vector<L1MuDTChambThDigi>* l1ThTrig = l1DTTPGTh->getContainer();
308 bool isDCC = histoTag.substr(0,3) ==
"DCC";
310 if (histoTag ==
"DCC_ErrorsChamberID") {
323 stringstream wheel; wheel << wh;
325 stringstream sector; sector << sc;
331 string histoType = histoTag.substr(4,histoTag.find(
"_",4)-4);
332 bool isDCC = histoTag.substr(0,3) ==
"DCC";
335 "/Sector" + sector.str() +
336 "/Station" + station.str() +
"/" + folder);
338 string histoName = histoTag +
"_W" + wheel.str() +
"_Sec" + sector.str() +
"_St" + station.str();
340 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: booking " <<
topFolder(isDCC) <<
"Wheel" << wheel.str()
341 <<
"/Sector" << sector.str()
342 <<
"/Station"<< station.str() <<
"/" << folder <<
"/" << histoName << endl;
344 if (histoType.find(
"BX") != string::npos){
345 if (histoTag.substr(0,3) ==
"DCC"){
353 rangeBX = (int)(maxBX-minBX);
356 if ( folder ==
"LocalTriggerPhi") {
358 if( histoType ==
"BXvsQual" ){
360 dbe->
book2D(histoName,
"BX vs trigger quality",7,-0.5,6.5,rangeBX,minBX,maxBX);
364 if( histoType ==
"BestQual" ){
366 dbe->
book1D(histoName,
"Trigger quality of best primitives",7,-0.5,6.5);
370 if( histoType ==
"QualvsPhirad" ){
372 dbe->
book2D(histoName,
"Trigger quality vs local position",100,-500.,500.,7,-0.5,6.5);
376 if( histoType ==
"QualvsPhibend" ) {
378 dbe->
book2D(histoName,
"Trigger quality vs local direction",200,-40.,40.,7,-0.5,6.5);
382 if( histoType ==
"Flag1stvsQual" ) {
384 dbe->
book2D(histoName,
"1st/2nd trig flag vs quality",7,-0.5,6.5,2,-0.5,1.5);
388 if( histoType ==
"QualDDUvsQualDCC" ){
390 dbe->
book2D(histoName,
"DDU quality vs DCC quality",8,-1.5,6.5,8,-1.5,6.5);
397 else if ( folder ==
"LocalTriggerTheta") {
399 if( histoType ==
"PositionvsBX" ) {
401 dbe->
book2D(histoName,
"Theta trigger position vs BX",rangeBX,minBX,maxBX,7,-0.5,6.5);
404 if( histoType ==
"PositionvsQual" ) {
406 dbe->
book2D(histoName,
"Theta trigger position vs quality",7,-0.5,6.5,7,-0.5,6.5);
410 if( histoType ==
"ThetaBXvsQual" ) {
412 dbe->
book2D(histoName,
"BX vs trigger quality",7,-0.5,6.5,rangeBX,minBX,maxBX);
415 if( histoType ==
"ThetaBestQual" ){
417 dbe->
book1D(histoName,
"Trigger quality of best primitives (theta)",7,-0.5,6.5);
423 else if ( folder ==
"Segment") {
425 if( histoType.find(
"TrackThetaPosvsAngle" ) == 0 ) {
427 string histoLabel =
"Position vs Angle (theta)";
428 if (histoType.find(
"andTrigH") != string::npos) histoLabel +=
" for H triggers";
429 else if (histoType.find(
"andTrig") != string::npos) histoLabel +=
" for triggers";
435 dbe->
book2D(histoName,histoLabel,16,-40.,40.,nbins,min,max);
438 if( histoType.find(
"TrackPosvsAngle") == 0 ){
444 string histoLabel =
"Position vs Angle (phi)";
445 if (histoType.find(
"andTrigHHHL") != string::npos) histoLabel +=
" for HH/HL triggers";
446 else if (histoType.find(
"andTrig") != string::npos) histoLabel +=
" for triggers";
449 dbe->
book2D(histoName,histoLabel,16,-40.,40.,nbins,min,max);
452 if( histoType ==
"PhitkvsPhitrig" ){
454 dbe->
book2D(histoName,
"Local position: segment vs trigger",100,-500.,500.,100,-500.,500.);
457 if( histoType ==
"PhibtkvsPhibtrig" ){
459 dbe->
book2D(histoName,
"Local direction : segment vs trigger",200,-40.,40.,200,-40.,40.);
462 if( histoType ==
"PhiResidual" ){
464 dbe->
book1D(histoName,
"Trigger local position - Segment local position (correlated triggers)",400,-10.,10.);
467 if( histoType ==
"PhibResidual" ){
469 dbe->
book1D(histoName,
"Trigger local direction - Segment local direction (correlated triggers)",500,-10.,10.);
472 if( histoType ==
"HitstkvsQualtrig" ){
474 dbe->
book2D(histoName,
"Segment hits (phi) vs trigger quality",7,-0.5,6.5,10,0.5,10.5);
485 stringstream wheel; wheel << wh;
487 string histoType = histoTag.substr(4,histoTag.find(
"_",4)-4);
488 bool isDCC = histoTag.substr(0,3) ==
"DCC";
492 string histoName = histoTag +
"_W" + wheel.str();
494 LogTrace(
"DTDQM|DTMonitorModule|DTLocalTriggerTask") <<
"[DTLocalTriggerTask]: booking " <<
topFolder(isDCC)
495 <<
"Wheel" << wheel.str() <<
"/" << histoName << endl;
497 if( histoType.find(
"BXDiff") != string::npos ){
508 std::vector<L1MuDTChambThDigi>* thTrigs ){
515 for (
int i=0;
i<5;++
i){
516 for (
int j=0;
j<6;++
j){
517 for (
int k=0;
k<13;++
k){
524 vector<L1MuDTChambPhDigi>::const_iterator iph = phTrigs->begin();
525 vector<L1MuDTChambPhDigi>::const_iterator iphe = phTrigs->end();
526 for(; iph !=iphe ; ++iph) {
528 int phwheel = iph->whNum();
529 int phsec = iph->scNum() + 1;
530 int phst = iph->stNum();
531 int phbx = iph->bxNum();
532 int phcode = iph->code();
533 int phi1st = iph->Ts2Tag();
541 if(phcode>
phcode_best[phwheel+3][phst][phsec] && phcode<7) {
543 iphbest[phwheel+3][phst][phsec] = &(*iph);
550 uint32_t indexCh = dtChId.
rawId();
552 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
553 if (innerME.find(
"DCC_BXvsQual"+
trigsrc) == innerME.end()){
569 innerME.find(
"DCC_BXvsQual"+
trigsrc)->second->Fill(phcode,phbx-phi1st);
570 innerME.find(
"DCC_QualvsPhirad"+
trigsrc)->second->Fill(x,phcode);
573 innerME.find(
"DCC_BXvsQual"+
trigsrc)->second->Fill(phcode,phbx-phi1st);
574 innerME.find(
"DCC_Flag1stvsQual"+
trigsrc)->second->Fill(phcode,phi1st);
576 innerME.find(
"DCC_QualvsPhirad"+
trigsrc)->second->Fill(x,phcode);
577 innerME.find(
"DCC_QualvsPhibend"+
trigsrc)->second->Fill(angle,phcode);
585 vector<L1MuDTChambThDigi>::const_iterator ith = thTrigs->begin();
586 vector<L1MuDTChambThDigi>::const_iterator ithe = thTrigs->end();
587 for(; ith != ithe; ++ith) {
588 int thwheel = ith->whNum();
589 int thsec = ith->scNum() + 1;
590 int thst = ith->stNum();
591 int thbx = ith->bxNum();
594 thcode[
pos] = ith->code(
pos);
598 ithbest[thwheel+3][thst][thsec] = &(*ith);
603 uint32_t indexCh = dtChId.
rawId();
605 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
606 if (innerME.find(
"DCC_PositionvsBX"+
trigsrc) == innerME.end()){
616 innerME.find(
"DCC_PositionvsBX"+
trigsrc)->second->Fill(thbx,
pos);
630 for (
int st=1;st<5;++st){
631 for (
int wh=-2;wh<3;++wh){
632 for (
int sc=1;sc<13;++sc){
635 uint32_t indexCh =
id.rawId();
636 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
637 if (innerME.find(
"DCC_BestQual"+
trigsrc) == innerME.end())
660 for (
int i=0;
i<5;++
i){
661 for (
int j=0;
j<6;++
j){
662 for (
int k=0;
k<13;++
k){
669 for (detUnitIt=trigsDDU->begin();
670 detUnitIt!=trigsDDU->end();
675 uint32_t indexCh =
id.
rawId();
676 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
679 int sec =
id.sector();
680 int st =
id.station();
683 trigIt!=range.second;
686 int bx = trigIt->bx();
687 int quality = trigIt->quality();
688 int thqual = trigIt->trTheta();
689 int flag1st = trigIt->secondTrack() ? 1 : 0;
692 if( quality>-1 && quality<7 ) {
699 if (innerME.find(
"DDU_BXvsQual"+
trigsrc) == innerME.end()){
705 innerME.find(
"DDU_BXvsQual"+
trigsrc)->second->Fill(quality,bx-flag1st);
708 innerME.find(
"DDU_BXvsQual"+
trigsrc)->second->Fill(quality,bx-flag1st);
709 innerME.find(
"DDU_Flag1stvsQual"+
trigsrc)->second->Fill(quality,flag1st);
712 if( thqual>0 && !
tpMode ) {
717 if (innerME.find(
"DDU_ThetaBXvsQual"+
trigsrc) == innerME.end())
719 innerME.find(
"DDU_ThetaBXvsQual"+
trigsrc)->second->Fill(thqual,bx);
728 if (innerME.find(
"DDU_BestQual"+
trigsrc) == innerME.end())
733 if (innerME.find(
"DDU_ThetaBestQual"+
trigsrc) == innerME.end())
748 memset(
track_ok,
false,450*
sizeof(
bool));
751 vector<const DTRecSegment4D*> best4DSegments;
754 for (chamberId = segments4D->id_begin(); chamberId != segments4D->id_end(); ++chamberId){
761 for ( track = range.first; track != range.second; ++track){
763 if( (*track).hasPhi() ) {
771 int sector = (*track).chamberId().sector();
772 int station = (*track).chamberId().station();
776 else if (sector==14){
784 if (tmpBest) best4DSegments.push_back(tmpBest);
787 vector<const DTRecSegment4D*>::const_iterator btrack;
789 for ( btrack = best4DSegments.begin(); btrack != best4DSegments.end(); ++btrack ){
791 if( (*btrack)->hasPhi() ) {
793 int wheel = (*btrack)->chamberId().wheel();
794 int station = (*btrack)->chamberId().station();
795 int sector = (*btrack)->chamberId().sector();
797 float x_track, y_track, x_angle, y_angle;
799 int nHitsPhi = (*btrack)->phiSegment()->degreesOfFreedom()+2;
802 uint32_t indexCh = dtChId.
rawId();
803 map<string, MonitorElement*> &innerMECh =
digiHistos[indexCh];
806 indexCh = dtChIdSC.
rawId();
807 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
814 if (innerME.find(
"DDU_HitstkvsQualtrig"+
trigsrc) == innerME.end())
816 innerME.find(
"DDU_HitstkvsQualtrig"+
trigsrc)->second->Fill(
dduphcode_best[wheel+3][station][scsector],nHitsPhi);
824 if (innerME.find(
"DCC_HitstkvsQualtrig"+
trigsrc) == innerME.end()){
827 innerME.find(
"DCC_HitstkvsQualtrig"+
trigsrc)->second->Fill(
phcode_best[wheel+3][station][scsector],nHitsPhi);
829 if (
phcode_best[wheel+3][station][scsector]>3 && nHitsPhi>=7){
835 if (innerMECh.find(
"DCC_PhibResidual"+
trigsrc) == innerMECh.end()){
843 innerMECh.find(
"DCC_PhitkvsPhitrig"+
trigsrc)->second->Fill(x_trigger,x_track);
844 innerMECh.find(
"DCC_PhibtkvsPhibtrig"+
trigsrc)->second->Fill(angle_trigger,x_angle);
845 innerMECh.find(
"DCC_PhiResidual"+
trigsrc)->second->Fill(x_trigger-x_track);
846 innerMECh.find(
"DCC_PhibResidual"+
trigsrc)->second->Fill(angle_trigger-x_angle);
857 bool trigFlagDCC =
false;
858 for (
int ist=1; ist<5; ist++){
862 track_ok[wheel+3][ist][scsector]==
true){
868 if (trigFlagDCC && fabs(x_angle)<40. && nHitsPhi>=7){
870 if (innerME.find(
"DCC_TrackPosvsAngle"+
trigsrc) == innerME.end()){
877 innerME.find(
"DCC_TrackPosvsAngle"+
trigsrc)->second->Fill(x_angle,x_track);
879 innerME.find(
"DCC_TrackPosvsAngleandTrig"+
trigsrc)->second->Fill(x_angle,x_track);
881 innerME.find(
"DCC_TrackPosvsAngleandTrigHHHL"+
trigsrc)->second->Fill(x_angle,x_track);
887 if ((*btrack)->hasZed() && trigFlagDCC && fabs(y_angle)<40. && (*btrack)->zSegment()->degreesOfFreedom()>=1){
889 if (innerME.find(
"DCC_TrackThetaPosvsAngle"+
trigsrc) == innerME.end()){
896 innerME.find(
"DCC_TrackThetaPosvsAngle"+
trigsrc)->second->Fill(y_angle,y_track);
898 innerME.find(
"DCC_TrackThetaPosvsAngleandTrig"+
trigsrc)->second->Fill(y_angle,y_track);
910 bool trigFlagDDU =
false;
911 for (
int ist=1; ist<5; ist++){
915 track_ok[wheel+3][ist][scsector]==
true){
921 if (trigFlagDDU && fabs(x_angle)<40. && nHitsPhi>=7){
923 if (innerME.find(
"DDU_TrackPosvsAngle"+
trigsrc) == innerME.end()){
930 innerME.find(
"DDU_TrackPosvsAngle"+
trigsrc)->second->Fill(x_angle,x_track);
932 innerME.find(
"DDU_TrackPosvsAngleandTrig"+
trigsrc)->second->Fill(x_angle,x_track);
934 innerME.find(
"DDU_TrackPosvsAngleandTrigHHHL"+
trigsrc)->second->Fill(x_angle,x_track);
940 if ((*btrack)->hasZed() && trigFlagDDU && fabs(y_angle)<40. && (*btrack)->zSegment()->degreesOfFreedom()>=1){
942 if (innerME.find(
"DDU_TrackThetaPosvsAngle"+
trigsrc) == innerME.end()){
949 innerME.find(
"DDU_TrackThetaPosvsAngle"+
trigsrc)->second->Fill(y_angle,y_track);
951 innerME.find(
"DDU_TrackThetaPosvsAngleandTrig"+
trigsrc)->second->Fill(y_angle,y_track);
953 innerME.find(
"DDU_TrackThetaPosvsAngleandTrigH"+
trigsrc)->second->Fill(y_angle,y_track);
970 for (
int st=1;st<5;++st){
971 for (
int wh=-2;wh<3;++wh){
972 for (
int sc=1;sc<13;++sc){
976 uint32_t indexCh =
id.rawId();
977 map<string, MonitorElement*> &innerME =
digiHistos[indexCh];
978 if (innerME.find(
"COM_QualDDUvsQualDCC"+trigsrc) == innerME.end())
979 bookHistos(
id,
"LocalTriggerPhi",
"COM_QualDDUvsQualDCC"+trigsrc);
985 (
wheelHistos[wh]).
find(
"COM_BXDiff"+trigsrc)->second->Fill(sc,st,bxDDU-bxDCC);
1001 axis=histo->GetXaxis();
1004 axis=histo->GetYaxis();
1008 string labels[7] = {
"LI",
"LO",
"HI",
"HO",
"LL",
"HL",
"HH"};
1009 int istart = axis->GetXmin()<-1 ? 2 : 1;
1010 for (
int i=0;
i<7;
i++) {
1011 axis->SetBinLabel(
i+istart,labels[
i].c_str());
1024 for (std::vector<LTCDigi>::const_iterator ltc_it = ltcdigis->begin(); ltc_it != ltcdigis->end(); ltc_it++){
1026 size_t otherTriggerSum=0;
1027 for (
size_t i = 1;
i < 6;
i++) {
1028 otherTriggerSum += size_t((*ltc_it).HasTriggered(
i));
1030 if ((*ltc_it).HasTriggered(0) && otherTriggerSum == 0)
1032 else if (!(*ltc_it).HasTriggered(0))
1034 else if ((*ltc_it).HasTriggered(0) && otherTriggerSum > 0)
LuminosityBlockID id() const
T getUntrackedParameter(std::string const &, T const &) const
void bookWheelHistos(int wh, std::string histoTag)
Book the histograms.
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
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
virtual int degreesOfFreedom() const
return the DOF of the segment
void rmdir(const std::string &fullpath)
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
int thcode_best[6][5][13]
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.
int dduphcode_best[6][5][13]
void bookBarrelHistos(std::string histoTag)
Book the histograms.
void runDDUvsDCCAnalysis(std::string &trigsrc)
Run analysis on ROS data.
bool getByType(Handle< PROD > &result) const
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 runDCCAnalysis(std::vector< L1MuDTChambPhDigi > *phTrigs, std::vector< L1MuDTChambThDigi > *thTrigs)
Run analysis on DCC data.
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
C::const_iterator const_iterator
constant access iterator type
const T & max(const T &a, const T &b)
std::string baseFolderDCC
void bookHistos(const DTChamberId &dtCh, std::string folder, std::string histoTag)
Book the histograms.
void trigToSeg(int st, float &x, float dir)
Compute Trigger x coordinate in chamber RF.
DTLocalTriggerTask(const edm::ParameterSet &ps)
Constructor.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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.
const DTLocalTrigger * iphbestddu[6][5][13]
const L1MuDTChambThDigi * ithbest[6][5][13]
LuminosityBlockNumber_t luminosityBlock() const
void setQLabels(MonitorElement *me, short int iaxis)
Set Quality labels.
std::vector< DigiType >::const_iterator const_iterator
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 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.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
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)
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 beginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
void setCurrentFolder(const std::string &fullpath)
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)
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")