1313// \email: prottay.das@cern.ch
1414
1515// C++/ROOT includes.
16- #include < TH1F.h>
17- #include < chrono>
18- #include < string>
19- #include < vector>
16+ #include " Math/Vector4D.h"
17+ #include " TF1.h"
18+ #include " TRandom3.h"
2019#include < TComplex.h>
20+ #include < TH1F.h>
2121#include < TMath.h>
22+
2223#include < array>
24+ #include < chrono>
2325#include < cmath>
2426#include < iostream>
25- #include " Math/Vector4D.h"
26- #include " TRandom3.h"
27- #include " TF1.h"
27+ #include < string>
28+ #include < vector>
2829
2930// o2Physics includes.
30- #include " Framework/AnalysisDataModel.h"
31- #include " Framework/AnalysisTask.h"
32- #include " Framework/runDataProcessing.h"
33- #include " Framework/HistogramRegistry.h"
34- #include " Framework/StepTHn.h"
35- #include " Common/DataModel/Multiplicity.h"
36- #include " Common/DataModel/TrackSelectionTables.h"
37- #include " CommonConstants/PhysicsConstants.h"
31+ #include " PWGLF/DataModel/SPCalibrationTables.h"
32+
33+ #include " Common/CCDB/ctpRateFetcher.h"
34+ #include " Common/Core/EventPlaneHelper.h"
35+ #include " Common/Core/PID/PIDTOF.h"
3836#include " Common/Core/TrackSelection.h"
39- #include " Common/DataModel/FT0Corrected.h"
40- #include " FT0Base/Geometry.h"
41- #include " FV0Base/Geometry.h"
4237#include " Common/Core/trackUtilities.h"
4338#include " Common/DataModel/Centrality.h"
4439#include " Common/DataModel/EventSelection.h"
40+ #include " Common/DataModel/FT0Corrected.h"
41+ #include " Common/DataModel/Multiplicity.h"
4542#include " Common/DataModel/PIDResponse.h"
46- #include " Common/Core/PID/PIDTOF.h"
47- #include " Common/TableProducer/PID/pidTOFBase.h"
48- #include " Common/Core/EventPlaneHelper.h"
4943#include " Common/DataModel/Qvectors.h"
50- #include " Common/CCDB/ctpRateFetcher.h"
44+ #include " Common/DataModel/TrackSelectionTables.h"
45+ #include " Common/TableProducer/PID/pidTOFBase.h"
46+
47+ #include " CommonConstants/PhysicsConstants.h"
5148#include " DataFormatsParameters/GRPMagField.h"
5249#include " DataFormatsParameters/GRPObject.h"
5350#include " DataFormatsTPC/BetheBlochAleph.h"
5451#include " DetectorsBase/GeometryManager.h"
5552#include " DetectorsBase/Propagator.h"
53+ #include " FT0Base/Geometry.h"
54+ #include " FV0Base/Geometry.h"
5655#include " Framework/ASoAHelpers.h"
56+ #include " Framework/AnalysisDataModel.h"
57+ #include " Framework/AnalysisTask.h"
58+ #include " Framework/HistogramRegistry.h"
59+ #include " Framework/StepTHn.h"
60+ #include " Framework/runDataProcessing.h"
5761#include " ReconstructionDataFormats/Track.h"
58- #include " PWGLF/DataModel/SPCalibrationTables.h"
5962// #include "SPCalibrationTableswrite.h"
6063
6164// o2 includes.
62- #include " CCDB/CcdbApi.h"
6365#include " CCDB/BasicCCDBManager.h"
66+ #include " CCDB/CcdbApi.h"
6467#include " DetectorsCommonDataFormats/AlignParam.h"
6568
6669using namespace o2 ;
@@ -227,6 +230,7 @@ struct spvector {
227230 AxisSpec basisAxis = {2 , 0 , 2 , " basis" };
228231 AxisSpec VxyAxis = {2 , 0 , 2 , " Vxy" };
229232
233+ histos.add (" hEvtSelInfo" , " hEvtSelInfo" , kTH1F , {{10 , 0 , 10.0 }});
230234 histos.add (" hCentrality" , " hCentrality" , kTH1F , {{centfineAxis}});
231235 histos.add (" Vz" , " Vz" , kTH1F , {vzfineAxis});
232236 histos.add (" hpQxZDCAC" , " hpQxZDCAC" , kTProfile , {centfineAxis});
@@ -410,6 +414,7 @@ struct spvector {
410414 void process (MyCollisions::iterator const & collision, aod::FT0s const & /* ft0s*/ , aod::FV0As const & /* fv0s*/ , BCsRun3 const & bcs, aod::Zdcs const &)
411415 {
412416
417+ histos.fill (HIST (" hEvtSelInfo" ), 0.5 );
413418 auto centrality = collision.centFT0C ();
414419 bool triggerevent = false ;
415420
@@ -439,6 +444,8 @@ struct spvector {
439444 return ;
440445 }
441446
447+ histos.fill (HIST (" hEvtSelInfo" ), 1.5 );
448+
442449 auto zdc = bc.zdc ();
443450 auto zncEnergy = zdc.energySectorZNC ();
444451 auto znaEnergy = zdc.energySectorZNA ();
@@ -451,35 +458,47 @@ struct spvector {
451458 return ;
452459 }
453460
461+ histos.fill (HIST (" hEvtSelInfo" ), 2.5 );
462+
454463 if (znaEnergy[0 ] <= 0.0 || znaEnergy[1 ] <= 0.0 || znaEnergy[2 ] <= 0.0 || znaEnergy[3 ] <= 0.0 ) {
455464 triggerevent = false ;
456465 spcalibrationtable (triggerevent, currentRunNumber, centrality, vx, vy, vz, znaEnergycommon, zncEnergycommon, znaEnergy[0 ], znaEnergy[1 ], znaEnergy[2 ], znaEnergy[3 ], zncEnergy[0 ], zncEnergy[1 ], zncEnergy[2 ], zncEnergy[3 ], qxZDCA, qxZDCC, qyZDCA, qyZDCC, psiZDCC, psiZDCA);
457466 return ;
458467 }
468+ histos.fill (HIST (" hEvtSelInfo" ), 3.5 );
469+
459470 if (zncEnergy[0 ] <= 0.0 || zncEnergy[1 ] <= 0.0 || zncEnergy[2 ] <= 0.0 || zncEnergy[3 ] <= 0.0 ) {
460471 triggerevent = false ;
461472 spcalibrationtable (triggerevent, currentRunNumber, centrality, vx, vy, vz, znaEnergycommon, zncEnergycommon, znaEnergy[0 ], znaEnergy[1 ], znaEnergy[2 ], znaEnergy[3 ], zncEnergy[0 ], zncEnergy[1 ], zncEnergy[2 ], zncEnergy[3 ], qxZDCA, qxZDCC, qyZDCA, qyZDCC, psiZDCC, psiZDCA);
462473 return ;
463474 }
464475
476+ histos.fill (HIST (" hEvtSelInfo" ), 4.5 );
477+
465478 if (rctCut.requireRCTFlagChecker && !rctChecker (collision)) {
466479 triggerevent = false ;
467480 spcalibrationtable (triggerevent, currentRunNumber, centrality, vx, vy, vz, znaEnergycommon, zncEnergycommon, znaEnergy[0 ], znaEnergy[1 ], znaEnergy[2 ], znaEnergy[3 ], zncEnergy[0 ], zncEnergy[1 ], zncEnergy[2 ], zncEnergy[3 ], qxZDCA, qxZDCC, qyZDCA, qyZDCC, psiZDCC, psiZDCA);
468481 return ;
469482 }
470483
484+ histos.fill (HIST (" hEvtSelInfo" ), 5.5 );
485+
471486 if (additionalEvSel && (!collision.selection_bit (aod::evsel::kIsGoodZvtxFT0vsPV ))) {
472487 triggerevent = false ;
473488 spcalibrationtable (triggerevent, currentRunNumber, centrality, vx, vy, vz, znaEnergycommon, zncEnergycommon, znaEnergy[0 ], znaEnergy[1 ], znaEnergy[2 ], znaEnergy[3 ], zncEnergy[0 ], zncEnergy[1 ], zncEnergy[2 ], zncEnergy[3 ], qxZDCA, qxZDCC, qyZDCA, qyZDCC, psiZDCC, psiZDCA);
474489 return ;
475490 }
476491
492+ histos.fill (HIST (" hEvtSelInfo" ), 6.5 );
493+
477494 if (collision.sel8 () && centrality > cfgCutCentralityMin && centrality < cfgCutCentralityMax && TMath::Abs (vz) < cfgCutVertex && collision.has_foundFT0 () && collision.selection_bit (aod::evsel::kNoTimeFrameBorder ) && collision.selection_bit (aod::evsel::kNoITSROFrameBorder )) {
478495 triggerevent = true ;
479496 if (useGainCallib && (currentRunNumber != lastRunNumber)) {
480497 gainprofile = ccdb->getForTimeStamp <TH2D>(ConfGainPath.value , bc.timestamp ());
481498 }
482499
500+ histos.fill (HIST (" hEvtSelInfo" ), 7.5 );
501+
483502 auto gainequal = 1.0 ;
484503 auto alphaZDC = 0.395 ;
485504 constexpr double x[4 ] = {-1.75 , 1.75 , -1.75 , 1.75 };
@@ -547,6 +566,7 @@ struct spvector {
547566 return ;
548567 }
549568
569+ histos.fill (HIST (" hEvtSelInfo" ), 8.5 );
550570 histos.fill (HIST (" hCentrality" ), centrality);
551571 histos.fill (HIST (" Vz" ), vz);
552572
0 commit comments