@@ -75,7 +75,7 @@ static const std::vector<std::string> tableNames{
7575 " Vtx3BodyCovs" ,
7676 " McVtx3BodyDatas" };
7777
78- static constexpr int nTablesConst = 5 ;
78+ static constexpr int nTablesConst = 4 ;
7979
8080static const std::vector<std::string> parameterNames{" enable" };
8181static const int defaultParameters[nTablesConst][nParameters]{
@@ -373,7 +373,7 @@ struct decay3bodyBuilder {
373373
374374 // print base cuts
375375 LOGF (info, " *+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*" );
376- LOGF (info, " -~> max daughter eta ..............: %i " , decay3bodyBuilderOpts.maxEtaDaughters .value );
376+ LOGF (info, " -~> max daughter eta ..............: %f " , decay3bodyBuilderOpts.maxEtaDaughters .value );
377377 LOGF (info, " -~> min TPC ncls proton ...........: %i" , decay3bodyBuilderOpts.minTPCNClProton .value );
378378 LOGF (info, " -~> min TPC ncls pion .............: %i" , decay3bodyBuilderOpts.minTPCNClPion .value );
379379 LOGF (info, " -~> min TPC ncls bach .............: %i" , decay3bodyBuilderOpts.minTPCNClDeuteron .value );
@@ -403,20 +403,20 @@ struct decay3bodyBuilder {
403403 LOGF (info, " *+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*" );
404404
405405 // bookkeeping histograms
406- auto h = registry.add <TH1>(" hTableBuildingStatistics" , " hTableBuildingStatistics" , kTH1D , {{nTablesConst, -0 .5f , static_cast <float >(nTablesConst)}});
407- auto h2 = registry.add <TH1>(" hInputStatistics" , " hInputStatistics" , kTH1D , {{nTablesConst, -0 .5f , static_cast <float >(nTablesConst)}});
406+ auto h = registry.add <TH1>(" Counters/ hTableBuildingStatistics" , " hTableBuildingStatistics" , kTH1D , {{nTablesConst, -0 .5f , static_cast <float >(nTablesConst)}});
407+ auto h2 = registry.add <TH1>(" Counters/ hInputStatistics" , " hInputStatistics" , kTH1D , {{nTablesConst, -0 .5f , static_cast <float >(nTablesConst)}});
408408 h2->SetTitle (" Input table sizes" );
409409
410410 // configure tables to generate
411411 for (int i = 0 ; i < nTables; i++) {
412412 h->GetXaxis ()->SetBinLabel (i + 1 , tableNames[i].c_str ());
413413 h2->GetXaxis ()->SetBinLabel (i + 1 , tableNames[i].c_str ());
414- h->SetBinContent (i + 1 , - 1 ); // mark all as disabled to start
414+ h->SetBinContent (i + 1 , 0 ); // mark all as disabled to start
415415
416416 int f = enabledTables->get (tableNames[i].c_str (), " enable" );
417417 if (f == 1 ) {
418418 mEnabledTables [i] = 1 ;
419- h->SetBinContent (i + 1 , 0 ); // mark enabled
419+ h->SetBinContent (i + 1 , 1 ); // mark enabled
420420 }
421421 }
422422
@@ -441,6 +441,7 @@ struct decay3bodyBuilder {
441441 registry.add (" QA/Tracks/hTrackProtonHasTPC" , " hTrackProtonHasTPC" , HistType::kTH1F , {{2 , -0.5 , 1.5 , " has TPC" }});
442442 registry.add (" QA/Tracks/hTrackPionHasTPC" , " hTrackPionHasTPC" , HistType::kTH1F , {{2 , -0.5 , 1.5 , " has TPC" }});
443443 registry.add (" QA/Tracks/hTrackDeuteronHasTPC" , " hTrackDeuteronHasTPC" , HistType::kTH1F , {{2 , -0.5 , 1.5 , " has TPC" }});
444+ registry.add (" QA/Tracks/hTrackDeuteronITSClusSizes" , " hTrackDeuteronITSClusSizes" , HistType::kTH1F , {{10 , 0 ., 10 ., " ITS cluster sizes" }});
444445 registry.add (" QA/Tracks/hTrackProtonTPCPID" , " hTrackProtonTPCPID" , HistType::kTH2F , {{100 , -10 .0f , 10 .0f , " p/z (GeV/c)" }, {100 , -10 .0f , 10 .0f , " TPC n#sigma" }});
445446 registry.add (" QA/Tracks/hTrackPionTPCPID" , " hTrackPionTPCPID" , HistType::kTH2F , {{100 , -10 .0f , 10 .0f , " p/z (GeV/c)" }, {100 , -10 .0f , 10 .0f , " TPC n#sigma" }});
446447 registry.add (" QA/Tracks/hTrackDeuteronTPCPID" , " hTrackDeuteronTPCPID" , HistType::kTH2F , {{100 , -10 .0f , 10 .0f , " p/z (GeV/c)" }, {100 , -10 .0f , 10 .0f , " TPC n#sigma" }});
@@ -647,6 +648,7 @@ struct decay3bodyBuilder {
647648 TMCCollisions const & mcCollisions)
648649 {
649650 if (!(mEnabledTables [kVtx3BodyDatas ] || mEnabledTables [kMcVtx3BodyDatas ])) {
651+ LOG (info) << " No request for candidate analysis table in place, skipping candidate building." << std::endl;
650652 return ; // don't do if no request for decay3bodys in place
651653 }
652654
@@ -704,12 +706,12 @@ struct decay3bodyBuilder {
704706 isGoodCollision[collision.mcCollisionId ()] = true ;
705707 }
706708 }
707- }
709+ } // loop over collisions
708710
709711 int nDecay3Bodys = 0 ;
710712
711713 // Loop over all decay3bodys in same time frame
712- registry.fill (HIST (" hInputStatistics" ), kVtx3BodyDatas , decay3bodys.size ());
714+ registry.fill (HIST (" Counters/ hInputStatistics" ), kVtx3BodyDatas , decay3bodys.size ());
713715 int lastRunNumber = -1 ;
714716 for (const auto & decay3body : decay3bodys) {
715717 // skip decay3body without assigned collision
@@ -1092,7 +1094,7 @@ struct decay3bodyBuilder {
10921094 products.decay3bodyindices (helper.decay3body .decay3bodyID ,
10931095 helper.decay3body .protonID , helper.decay3body .pionID , helper.decay3body .deuteronID ,
10941096 helper.decay3body .collisionID );
1095- registry.fill (HIST (" hTableBuildingStatistics" ), kDecay3BodyIndices );
1097+ registry.fill (HIST (" Counters/ hTableBuildingStatistics" ), kDecay3BodyIndices );
10961098 }
10971099 if (mEnabledTables [kVtx3BodyDatas ]) {
10981100 products.vtx3bodydatas (helper.decay3body .sign ,
@@ -1113,14 +1115,14 @@ struct decay3bodyBuilder {
11131115 helper.decay3body .averageITSClSize [0 ], helper.decay3body .averageITSClSize [1 ], helper.decay3body .averageITSClSize [2 ], // 0 - proton, 1 - pion, 2 - deuteron
11141116 helper.decay3body .tpcNCl [0 ], helper.decay3body .tpcNCl [1 ], helper.decay3body .tpcNCl [2 ], // 0 - proton, 1 - pion, 2 - deuteron
11151117 helper.decay3body .pidForTrackingDeuteron );
1116- registry.fill (HIST (" hTableBuildingStatistics" ), kVtx3BodyDatas );
1118+ registry.fill (HIST (" Counters/ hTableBuildingStatistics" ), kVtx3BodyDatas );
11171119 }
11181120 if (mEnabledTables [kVtx3BodyCovs ]) {
11191121 products.vtx3bodycovs (helper.decay3body .covProton ,
11201122 helper.decay3body .covPion ,
11211123 helper.decay3body .covDeuteron ,
11221124 helper.decay3body .covariance );
1123- registry.fill (HIST (" hTableBuildingStatistics" ), kVtx3BodyCovs );
1125+ registry.fill (HIST (" Counters/ hTableBuildingStatistics" ), kVtx3BodyCovs );
11241126 }
11251127 if (mEnabledTables [kMcVtx3BodyDatas ]) {
11261128 products.mcvtx3bodydatas (helper.decay3body .sign ,
@@ -1153,7 +1155,7 @@ struct decay3bodyBuilder {
11531155 this3BodyMCInfo.daughterPrPdgCode , this3BodyMCInfo.daughterPiPdgCode , this3BodyMCInfo.daughterDePdgCode ,
11541156 this3BodyMCInfo.isDeuteronPrimary ,
11551157 this3BodyMCInfo.survivedEventSel );
1156- registry.fill (HIST (" hTableBuildingStatistics" ), kMcVtx3BodyDatas );
1158+ registry.fill (HIST (" Counters/ hTableBuildingStatistics" ), kMcVtx3BodyDatas );
11571159 }
11581160 }
11591161
@@ -1256,6 +1258,7 @@ struct decay3bodyBuilder {
12561258 {
12571259 // initialise CCDB from BCs
12581260 if (!initCCDB (bcs, collisions)) {
1261+ LOG (info) << " CCDB initialisation failed, skipping candidate building." << std::endl;
12591262 return ;
12601263 }
12611264
@@ -1333,6 +1336,7 @@ struct decay3bodyBuilder {
13331336 {
13341337 // initialise CCDB from BCs
13351338 if (!initCCDB (bcs, collisions)) {
1339+ LOG (info) << " CCDB initialisation failed, skipping candidate building." << std::endl;
13361340 return ;
13371341 }
13381342
0 commit comments