@@ -264,10 +264,10 @@ struct Derivedcascadeanalysis {
264264 TH1F * hOmegaLambdaPointingAngleSelection = nullptr ;
265265
266266 o2::ccdb::CcdbApi ccdbApi;
267- Service<o2::ccdb::BasicCCDBManager> ccdb;
267+ Service<o2::ccdb::BasicCCDBManager> ccdb{} ;
268268 ctpRateFetcher rateFetcher;
269269
270- Service<o2::framework::O2DatabasePDG> pdgDB;
270+ Service<o2::framework::O2DatabasePDG> pdgDB{} ;
271271
272272 uint16_t selectionCheckMask = 0 ;
273273 double selectionCheck = -1 ;
@@ -581,7 +581,7 @@ struct Derivedcascadeanalysis {
581581 }
582582 }
583583 }
584- void initCosPASelectionHistograms (float timeStamp)
584+ void initCosPASelectionHistograms (long timeStamp)
585585 {
586586
587587 auto * listHistograms = ccdb->getForTimeStamp <TList>(histoCCDBPath, timeStamp);
@@ -1170,15 +1170,23 @@ struct Derivedcascadeanalysis {
11701170
11711171 return true ;
11721172 }
1173- void fillHistOccupancyCheck (double pt, double mass, float occup, float centrality, bool isPos)
1173+ void fillHistOccupancyCheck (double pt, double mass, float occup, float centrality, bool isPos, bool isMC )
11741174 {
11751175 static_for<0 , 9 >([&](auto i) {
11761176 constexpr int In = i.value ;
11771177 if (centrality < CentralityIntervals[In + 1 ] && centrality > CentralityIntervals[In]) {
11781178 if (isPos) {
1179- histos.fill (HIST (" InvMassAfterSelCent" ) + HIST (CentIndex[In]) + HIST (" /hPositiveCascade" ), pt, mass, occup);
1179+ if (isMC) {
1180+ histos.fill (HIST (" InvMassAfterSelCent" ) + HIST (CentIndex[In]) + HIST (" /hPositiveCascadeMCTruth" ), pt, mass, occup);
1181+ } else {
1182+ histos.fill (HIST (" InvMassAfterSelCent" ) + HIST (CentIndex[In]) + HIST (" /hPositiveCascade" ), pt, mass, occup);
1183+ }
11801184 } else {
1181- histos.fill (HIST (" InvMassAfterSelCent" ) + HIST (CentIndex[In]) + HIST (" /hNegativeCascade" ), pt, mass, occup);
1185+ if (isMC) {
1186+ histos.fill (HIST (" InvMassAfterSelCent" ) + HIST (CentIndex[In]) + HIST (" /hNegativeCascadeMCTruth" ), pt, mass, occup);
1187+ } else {
1188+ histos.fill (HIST (" InvMassAfterSelCent" ) + HIST (CentIndex[In]) + HIST (" /hNegativeCascade" ), pt, mass, occup);
1189+ }
11821190 }
11831191 }
11841192 });
@@ -1637,9 +1645,9 @@ struct Derivedcascadeanalysis {
16371645 }
16381646
16391647 if (qaFlags.doOccupancyCheck ) {
1640- fillHistOccupancyCheck (recoPt, invmass, occupancy, centrality, isPositive);
1648+ fillHistOccupancyCheck (recoPt, invmass, occupancy, centrality, isPositive, false );
16411649 if (isTrueMCCascadeDecay) {
1642- fillHistOccupancyCheckMC (ptmc, invmass, occupancy, centrality, isPositive);
1650+ fillHistOccupancyCheck (ptmc, invmass, occupancy, centrality, isPositive, true );
16431651 }
16441652 }
16451653 if (isPositive) {
@@ -1909,8 +1917,8 @@ struct Derivedcascadeanalysis {
19091917 PROCESS_SWITCH (Derivedcascadeanalysis, processCascadesMCforEffRun2, " cascade analysis, run2 rec MC" , false );
19101918};
19111919
1912- WorkflowSpec defineDataProcessing (ConfigContext const & cfgc )
1920+ WorkflowSpec defineDataProcessing (ConfigContext const & context )
19131921{
19141922 return WorkflowSpec{
1915- adaptAnalysisTask<Derivedcascadeanalysis>(cfgc )};
1923+ adaptAnalysisTask<Derivedcascadeanalysis>(context )};
19161924}
0 commit comments