Skip to content

Commit 31121d3

Browse files
authored
adding bcMap vs time hist
1 parent 86de22a commit 31121d3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

DPG/Tasks/AOTEvent/timeDependentQa.cxx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ struct TimeDependentQaTask {
6969
Configurable<float> confTimeBinWidthInSec{"TimeBinWidthInSec", 0.5, "Width of time bins in seconds"}; // o2-linter: disable=name/configurable (temporary fix)
7070
Configurable<float> confTimeWiderBinFactor{"TimeWideBinFactor", 4, "Factor for wider time bins for some 2D histograms"}; // o2-linter: disable=name/configurable (temporary fix)
7171
Configurable<float> confTimeMuchWiderBinFactor{"TimeMuchWiderBinFactor", 20, "Factor for even wider time bins for some 2D histograms"}; // o2-linter: disable=name/configurable (temporary fix)
72+
Configurable<float> confTimeMuchMuchWiderBinFactor{"TimeMuchMuchWiderBinFactor", 120, "Factor for super wide time bins for some 2D histograms"}; // o2-linter: disable=name/configurable (temporary fix)
7273
Configurable<int> confTakeVerticesWithUPCsettings{"ConsiderVerticesWithUPCsettings", 0, "Take vertices: 0 - all , 1 - only without UPC settings, 2 - only with UPC settings"}; // o2-linter: disable=name/configurable (temporary fix)
7374
Configurable<int> confFlagFillPhiVsTimeHist{"FlagFillPhiVsTimeHist", 2, "0 - don't fill , 1 - fill only for global/7cls/TRD/TOF tracks, 2 - fill also layer-by-layer"}; // o2-linter: disable=name/configurable (temporary fix)
7475
Configurable<int> confFlagFillEtaPhiVsTimeHist{"FlagFillEtaPhiVsTimeHist", 0, "0 - don't fill , 1 - fill"}; // o2-linter: disable=name/configurable (temporary fix)
@@ -205,11 +206,14 @@ struct TimeDependentQaTask {
205206
int nTimeBins = static_cast<int>((maxSec - minSec) / confTimeBinWidthInSec);
206207
int nTimeWideBins = static_cast<int>((maxSec - minSec) / confTimeBinWidthInSec / confTimeWiderBinFactor);
207208
int nTimeVeryWideBins = static_cast<int>((maxSec - minSec) / confTimeBinWidthInSec / confTimeMuchWiderBinFactor);
209+
int nTimeSuperWideBins = static_cast<int>((maxSec - minSec) / confTimeBinWidthInSec / confTimeMuchMuchWiderBinFactor);
208210
double timeInterval = nTimeBins * confTimeBinWidthInSec;
209211

210212
const AxisSpec axisSeconds{nTimeBins, 0, timeInterval, "seconds"};
211213
const AxisSpec axisSecondsWideBins{nTimeWideBins, 0, timeInterval, "seconds"};
212214
const AxisSpec axisSecondsVeryWideBins{nTimeVeryWideBins, 0, timeInterval, "seconds"};
215+
const AxisSpec axisSecondsSuperWideBins{nTimeSuperWideBins, 0, timeInterval, "seconds"};
216+
213217
histos.add("hSecondsBCsTVX", "", kTH1D, {axisSeconds});
214218
histos.add("hSecondsBCsTVXandTFborderCuts", "", kTH1D, {axisSeconds});
215219

@@ -234,6 +238,10 @@ struct TimeDependentQaTask {
234238
histos.add("hSecondsUPCverticesBeforeSel8", "", kTH2F, {axisSeconds, {2, -0.5, 1.5, "Is vertex with UPC settings after |vZ|<10 cut"}});
235239
histos.add("hSecondsUPCvertices", "", kTH2F, {axisSeconds, {2, -0.5, 1.5, "Is vertex with UPC settings after |vZ|<10 and sel8 cuts"}});
236240

241+
const int32_t nBCsPerOrbit = o2::constants::lhc::LHCMaxBunches;
242+
const AxisSpec axisBCs{nBCsPerOrbit, 0., static_cast<double>(nBCsPerOrbit), ""};
243+
histos.add("hSecondsBCsMap", "", kTH2F, {axisSecondsSuperWideBins, axisBCs});
244+
237245
// shapes of distributions (added for the O-O run monitoring)
238246
if (confIncludeMultDistrVsTimeHistos) {
239247
int maxNtracks = confMaxNtracksForTimeDepDistributions;
@@ -469,6 +477,11 @@ struct TimeDependentQaTask {
469477
double secFromSOR = ts / 1000. - minSec;
470478
if (bc.selection_bit(kIsTriggerTVX)) {
471479
histos.fill(HIST("hSecondsBCsTVX"), secFromSOR);
480+
481+
uint64_t globalBC = bc.globalBC();
482+
int localBC = globalBC % nBCsPerOrbit;
483+
histos.fill(HIST("hSecondsBCsMap"), secFromSOR, localBC);
484+
472485
if (bc.selection_bit(kNoTimeFrameBorder)) {
473486
histos.fill(HIST("hSecondsBCsTVXandTFborderCuts"), secFromSOR);
474487
}
@@ -568,7 +581,7 @@ struct TimeDependentQaTask {
568581
histos.fill(HIST("hSecondsEventSelBits"), secFromSOR, enIsLowOccupStdAlsoInPrevRofCut2000noDeadStaves, isLowOccupStdAlsoInPrevRofCut2000noDeadStaves);
569582

570583
// check RCT flags
571-
histos.fill(HIST("hSecondsRCTflags"), secFromSOR, 0); // n collisions sel8
584+
histos.fill(HIST("hSecondsRCTflags"), secFromSOR, 0); // n collisions sel8
572585
histos.fill(HIST("hSecondsRCTflags"), secFromSOR, 1, col.rct_bit(kCcdbObjectLoaded)); // CCDB object not loaded
573586
LOGP(debug, "i = 1, bitValue = {}, binLabel={}, binCenter={}", col.rct_bit(kCcdbObjectLoaded), axRctFlags->GetBinLabel(2), axRctFlags->GetBinCenter(2));
574587
for (int iFlag = 0; iFlag < kNRCTSelectionFlags; iFlag++) {

0 commit comments

Comments
 (0)