1111
1212// / \file timeScan.cxx
1313// / \brief Example task to scan data vs time TF-by-TF in single AO2D.root
14- // / Run as: o2-analysis-ud-time-structure --aod-file AO2D.root
14+ // / Run as: o2-analysis-ud-time-structure --aod-file AO2D.root
1515// / Filling 1D histos (fill1D=1) might require large shm size: --shm-segment-size 14000000000
1616// / \author Evgeny Kryshen
1717
3434#include < TH2.h>
3535#include < TString.h>
3636
37- #include < cstdint>
3837#include < bitset>
38+ #include < cstdint>
3939#include < map>
4040#include < memory>
4141#include < numeric>
@@ -132,7 +132,7 @@ struct TimeScan {
132132 LOGP (debug, " Fill maps of 1D histograms for new TF" );
133133 const AxisSpec axisBCinTF{nBCsPerTF, 0 ., static_cast <double >(nBCsPerTF), " BC in TF" };
134134 mapHistoCollidingBCs[tfID] = histosCollidingBCs.add <TH1 >(Form (" %d/hCollidingBCs" , tfID), " Colliding BCs" , HistType::kTH1D , {axisBCinTF});
135- if (fill1D> 0 ) {
135+ if (fill1D > 0 ) {
136136 mapHistoBCs[tfID] = histosBCs.add <TH1 >(Form (" %d/hBCs" , tfID), " Non-empty BCs" , HistType::kTH1D , {axisBCinTF});
137137 mapHistoCols[tfID] = histosCols.add <TH1 >(Form (" %d/hCols" , tfID), " Number of contributors" , HistType::kTH1D , {axisBCinTF});
138138 mapHistoFT0A[tfID] = histosFT0A.add <TH1 >(Form (" %d/hFT0A" , tfID), " FT0A amplitude" , HistType::kTH1D , {axisBCinTF});
@@ -161,7 +161,7 @@ struct TimeScan {
161161 const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF;
162162 LOGP (debug, " globalBC={} tfID={} bcInTF={}" , globalBC, tfID, bcInTF);
163163 histos.get <TH2 >(HIST (" hBCs" ))->Fill (Form (" %d" , tfID), bcInTF, 1 .);
164- if (fill1D> 0 ) {
164+ if (fill1D > 0 ) {
165165 mapHistoBCs[tfID]->Fill (bcInTF);
166166 }
167167 }
@@ -175,7 +175,7 @@ struct TimeScan {
175175 LOGP (debug, " globalBC={} nContributors={}" , globalBC, nContributors);
176176 histos.get <TH2 >(HIST (" hCols" ))->Fill (Form (" %d" , tfID), bcInTF, nContributors);
177177 histos.get <TH1 >(HIST (" hNumContrib" ))->Fill (nContributors);
178- if (fill1D> 0 ) {
178+ if (fill1D > 0 ) {
179179 mapHistoCols[tfID]->Fill (bcInTF, nContributors);
180180 }
181181 }
@@ -192,7 +192,7 @@ struct TimeScan {
192192 histos.get <TH2 >(HIST (" hFT0C" ))->Fill (Form (" %d" , tfID), bcInTF, sumAmpFT0C);
193193 histos.get <TH1 >(HIST (" hSumAmpFT0A" ))->Fill (sumAmpFT0A);
194194 histos.get <TH1 >(HIST (" hSumAmpFT0C" ))->Fill (sumAmpFT0C);
195- if (fill1D> 0 ) {
195+ if (fill1D > 0 ) {
196196 mapHistoFT0A[tfID]->Fill (bcInTF, sumAmpFT0A);
197197 mapHistoFT0C[tfID]->Fill (bcInTF, sumAmpFT0C);
198198 }
@@ -207,7 +207,7 @@ struct TimeScan {
207207 LOGP (debug, " globalBC={} sumAmpFV0A={}" , globalBC, sumAmpFV0A);
208208 histos.get <TH2 >(HIST (" hFV0A" ))->Fill (Form (" %d" , tfID), bcInTF, sumAmpFV0A);
209209 histos.get <TH1 >(HIST (" hSumAmpFV0A" ))->Fill (sumAmpFV0A);
210- if (fill1D> 0 ) {
210+ if (fill1D > 0 ) {
211211 mapHistoFV0A[tfID]->Fill (bcInTF, sumAmpFV0A);
212212 }
213213 }
@@ -224,7 +224,7 @@ struct TimeScan {
224224 histos.get <TH2 >(HIST (" hFDDC" ))->Fill (Form (" %d" , tfID), bcInTF, sumAmpFDDC);
225225 histos.get <TH1 >(HIST (" hSumAmpFDDA" ))->Fill (sumAmpFDDA);
226226 histos.get <TH1 >(HIST (" hSumAmpFDDC" ))->Fill (sumAmpFDDC);
227- if (fill1D> 0 ) {
227+ if (fill1D > 0 ) {
228228 mapHistoFDDA[tfID]->Fill (bcInTF, sumAmpFDDA);
229229 mapHistoFDDC[tfID]->Fill (bcInTF, sumAmpFDDC);
230230 }
@@ -242,7 +242,7 @@ struct TimeScan {
242242 histos.get <TH2 >(HIST (" hZNC" ))->Fill (Form (" %d" , tfID), bcInTF, sumAmpZNC);
243243 histos.get <TH1 >(HIST (" hSumAmpZNA" ))->Fill (sumAmpZNA);
244244 histos.get <TH1 >(HIST (" hSumAmpZNC" ))->Fill (sumAmpZNC);
245- if (fill1D> 0 ) {
245+ if (fill1D > 0 ) {
246246 mapHistoZNA[tfID]->Fill (bcInTF, sumAmpZNA);
247247 mapHistoZNC[tfID]->Fill (bcInTF, sumAmpZNC);
248248 }
0 commit comments