@@ -378,9 +378,8 @@ struct LumiStabilityTask {
378378 histos.fill (HIST (" TFsPerMinute" ), timeSinceSOF);
379379 }
380380
381- if (trgFDD) {
382- histos.fill (HIST (" FDD/bcVertexTriggerCTP" ), localBC + 7 );
383- if (bcPatternB[localBC]) {
381+ // if (bcPatternB[localBC]) {
382+ if (trgFDD) {
384383 histos.fill (HIST (" FDD/nBCsVsTime" ), timeSinceSOF);
385384 histos.fill (HIST (" FDD/hTimeForRateCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
386385 }
@@ -397,30 +396,28 @@ struct LumiStabilityTask {
397396 if (bcPatternB[localBC]) {
398397 histos.fill (HIST (" FV0/hTimeForRateCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
399398 }
400- }
401- bool isLeadBC = true ;
402- for (int jbit = localBC - minEmpty; jbit < localBC; jbit++) {
403- int kbit = jbit;
404- if (kbit < 0 )
405- kbit += nbin;
406- if (bcPatternB[kbit]) {
407- isLeadBC = false ;
408- break ;
409- }
410- }
411- if (isLeadBC) {
412- if (trgFDD) {
413- histos.fill (HIST (" FDD/nBCsVsTimeLeadingBC" ), timeSinceSOF);
414- histos.fill (HIST (" FDD/hTimeForRateLeadingBCCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
415- }
416- if (trgFT0) {
417- histos.fill (HIST (" FT0/nBCsVsTimeLeadingBC" ), timeSinceSOF);
418- histos.fill (HIST (" FT0/hTimeForRateLeadingBCCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
419- }
420- if (trgFV0) {
421- histos.fill (HIST (" FV0/hTimeForRateLeadingBCCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
399+ bool isLeadBC = true ;
400+ for (int jbit = localBC - minEmpty; jbit < localBC; jbit++) {
401+ int kbit = jbit;
402+ if (kbit < 0 )
403+ kbit += nbin;
404+ if (bcPatternB[kbit]) {
405+ isLeadBC = false ;
406+ break ;
407+ }
422408 }
423- }
409+ if (isLeadBC) {
410+ if (trgFDD) {
411+ histos.fill (HIST (" FDD/nBCsVsTimeLeadingBCe" ), timeSinceSOF);
412+ histos.fill (HIST (" FDD/hTimeForRateLeadingBCCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
413+ }
414+ if (trgFT0) {
415+ histos.fill (HIST (" FT0/nBCsVsTimeLeadingBCe" ), timeSinceSOF);
416+ histos.fill (HIST (" FT0/hTimeForRateLeadingBCCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
417+ }
418+ if (trgFV0) {
419+ histos.fill (HIST (" FV0/hTimeForRateLeadingBCCTP" ), (bc.timestamp () - tsSOR) * 1 .e -3 );
420+ }
424421 // }
425422 } // loop over bcs
426423
0 commit comments