@@ -299,7 +299,7 @@ struct LumiStabilityTask {
299299 }
300300 }
301301
302- /* EventSelectionParams* par = ccdb->getForTimeStamp<EventSelectionParams>("EventSelection/EventSelectionParams", ts);
302+ EventSelectionParams* par = ccdb->getForTimeStamp <EventSelectionParams>(" EventSelection/EventSelectionParams" , ts);
303303 // access orbit-reset timestamp
304304 auto ctpx = ccdb->getForTimeStamp <std::vector<int64_t >>(" CTP/Calib/OrbitReset" , ts);
305305 int64_t tsOrbitReset = (*ctpx)[0 ]; // us
@@ -330,7 +330,6 @@ struct LumiStabilityTask {
330330 hTsValues->GetXaxis ()->SetBinLabel (2 , " tsEOR" );
331331 hTsValues->SetBinContent (1 , tsSOR / 1000 ); // seconds
332332 hTsValues->SetBinContent (2 , tsEOR / 1000 ); // seconds
333- std::cout << "<<<<<<<<<<<<<<<<<<<<<<<<< Orbits per second: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << nOrbits << std::endl;*/
334333 }
335334
336335 // create orbit-axis histograms on the fly with binning based on info from GRP if GRP is available
@@ -443,22 +442,6 @@ struct LumiStabilityTask {
443442 histos.fill (HIST (" FDD/hTimeForRateLeadingBC" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
444443 }
445444
446- if (bcPatternB[localBC]) {
447- histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
448- bool isLeadBC = true ;
449- for (int jbit = localBC - minEmpty; jbit < localBC; jbit++) {
450- int kbit = jbit;
451- if (kbit < 0 )
452- kbit += nbin;
453- if (bcPatternB[kbit]) {
454- isLeadBC = false ;
455- break ;
456- }
457- }
458- if (isLeadBC)
459- histos.fill (HIST (" FDD/hTimeForRateLeadingBC" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
460- }
461-
462445 int deltaIndex = 0 ; // backward move counts
463446 int deltaBC = 0 ; // current difference wrt globalBC
464447 bool pastActivityFDDVertex = false ;
@@ -541,21 +524,14 @@ struct LumiStabilityTask {
541524 }
542525 }
543526
544- if (deltaBC < myMaxDeltaBCFDD) {
545- std::bitset<8 > fddTriggersPast = fdd_past.triggerMask ();
546- bool vertexPast = fddTriggersPast[o2::fdd::Triggers::bitVertex];
547- pastActivityFDDVertex |= (vertexPast);
548- }
549- }
550- deltaIndex = 0 ;
551- deltaBC = 0 ;
527+ if (isCoinA && isCoinC) {
528+ histos.fill (HIST (" FDD/bcVertexTriggerCoincidence" ), localBC);
529+ histos.fill (HIST (" FDD/hCounts" ), 3 );
530+ histos.fill (HIST (" hOrbitFDDVertexCoinc" ), orbit - minOrbit);
552531
553- if (pastActivityFDDVertex == false ) {
554- histos.fill (HIST (" FDD/hCounts" ), 2 );
555- histos.fill (HIST (" FDD/bcVertexTriggerPP" ), localBC);
556532 if (bcPatternA[localBC]) {
557- histos.fill (HIST (" FDD/timeACbcAVertex " ), fdd.timeA (), fdd.timeC ());
558- histos.fill (HIST (" FDD/hBcAVertex " ), localBC);
533+ histos.fill (HIST (" FDD/timeACbcA " ), fdd.timeA (), fdd.timeC ());
534+ histos.fill (HIST (" FDD/hBcA " ), localBC);
559535 }
560536 if (bcPatternC[localBC]) {
561537 histos.fill (HIST (" FDD/timeACbcC" ), fdd.timeA (), fdd.timeC ());
@@ -605,28 +581,6 @@ struct LumiStabilityTask {
605581 }
606582 }
607583 }
608- }
609-
610-
611- if (isCoinA && isCoinC) {
612- histos.fill (HIST (" FDD/bcVertexTriggerCoincidence" ), localBC);
613- histos.fill (HIST (" FDD/hCounts" ), 3 );
614- histos.fill (HIST (" hOrbitFDDVertexCoinc" ), orbit - minOrbit);
615-
616- if (bcPatternA[localBC]) {
617- histos.fill (HIST (" FDD/timeACbcA" ), fdd.timeA (), fdd.timeC ());
618- histos.fill (HIST (" FDD/hBcA" ), localBC);
619- }
620- if (bcPatternC[localBC]) {
621- histos.fill (HIST (" FDD/timeACbcC" ), fdd.timeA (), fdd.timeC ());
622- histos.fill (HIST (" FDD/hBcC" ), localBC);
623- }
624- if (bcPatternB[localBC]) {
625- histos.fill (HIST (" FDD/timeACbcB" ), fdd.timeA (), fdd.timeC ());
626- histos.fill (HIST (" FDD/hBcB" ), localBC);
627- histos.fill (HIST (" FDD/hTimeACoinc" ), fdd.timeA ());
628- histos.fill (HIST (" FDD/hTimeCCoinc" ), fdd.timeC ());
629- }
630584 if (bcPatternE[localBC]) {
631585 histos.fill (HIST (" FDD/timeACbcE" ), fdd.timeA (), fdd.timeC ());
632586 histos.fill (HIST (" FDD/hBcE" ), localBC);
@@ -830,15 +784,6 @@ struct LumiStabilityTask {
830784 histos.fill (HIST (" FT0/hCounts" ), 3 );
831785 histos.fill (HIST (" FT0/bcVertexTriggerBothSidesPP" ), localBC);
832786 }
833- if (pastActivityFT0Vertex == true ) {
834- histos.fill (HIST (" FT0/hCounts" ), 3 );
835- } else {
836- histos.fill (HIST (" FT0/bcVertexTriggerPP" ), localBC);
837- }
838- if (pastActivityFT0TriggerA == false || pastActivityFT0TriggerC == false ) {
839- histos.fill (HIST (" FT0/hCounts" ), 3 );
840- histos.fill (HIST (" FT0/bcVertexTriggerBothSidesPP" ), localBC);
841- }
842787 } // vertex true
843788
844789 if (sCentral ) {
0 commit comments