@@ -66,19 +66,22 @@ namespace full
6666{
6767DECLARE_SOA_COLUMN (M, m, float ); // ! Invariant mass of candidate (GeV/c2)
6868DECLARE_SOA_COLUMN (Pt, pt, float ); // ! Transverse momentum of candidate (GeV/c)
69- // ML scores
7069DECLARE_SOA_COLUMN (MlScore0, mlScore0, float ); // ! ML score of the first configured index
7170DECLARE_SOA_COLUMN (MlScore1, mlScore1, float ); // ! ML score of the second configured index
7271DECLARE_SOA_COLUMN (ScalarProd, scalarProd, float ); // ! Scalar product
7372DECLARE_SOA_COLUMN (Cent, cent, float ); // ! Centrality
7473} // namespace full
75- DECLARE_SOA_TABLE (HfCandMassPts , " AOD" , " HFCANDMASSPT " ,
74+ DECLARE_SOA_TABLE (HfCandMPtInfos , " AOD" , " HFCANDMPTINFO " ,
7675 full::M,
77- full::Pt);
78- DECLARE_SOA_TABLE (HfCandScores, " AOD" , " HFCANDSCORE" ,
76+ full::Pt,
7977 full::MlScore0,
8078 full::MlScore1);
81- DECLARE_SOA_TABLE (HfCandSPCents, " AOD" , " HFCANDSPCENT" ,
79+
80+ DECLARE_SOA_TABLE (HfCandFlowInfos, " AOD" , " HFCANDFLOWINFO" ,
81+ full::M,
82+ full::Pt,
83+ full::MlScore0,
84+ full::MlScore1,
8285 full::ScalarProd,
8386 full::Cent);
8487} // namespace o2::aod
@@ -104,9 +107,8 @@ enum QvecEstimator { FV0A = 0,
104107 TPCTot };
105108
106109struct HfTaskFlowCharmHadrons {
107- Produces<o2::aod::HfCandMassPts> rowCandMassPt;
108- Produces<o2::aod::HfCandScores> rowCandMlScores;
109- Produces<o2::aod::HfCandSPCents> rowCandSpCent;
110+ Produces<o2::aod::HfCandMPtInfos> rowCandMassPtMl;
111+ Produces<o2::aod::HfCandFlowInfos> rowCandMassPtMlSpCent;
110112
111113 Configurable<int > harmonic{" harmonic" , 2 , " harmonic number" };
112114 Configurable<int > qvecDetector{" qvecDetector" , 3 , " Detector for Q vector estimation (FV0A: 0, FT0M: 1, FT0A: 2, FT0C: 3, TPC Pos: 4, TPC Neg: 5, TPC Tot: 6)" };
@@ -116,9 +118,8 @@ struct HfTaskFlowCharmHadrons {
116118 Configurable<float > centralityMax{" centralityMax" , 100 ., " Maximum centrality accepted in SP/EP computation (not applied in resolution process)" };
117119 Configurable<bool > storeEP{" storeEP" , false , " Flag to store EP-related axis" };
118120 Configurable<bool > storeMl{" storeMl" , false , " Flag to store ML scores" };
119- Configurable<bool > fillMassPtTree{" fillMassPtTree" , false , " Flag to fill mass and pt tree" };
120- Configurable<bool > fillMlTree{" fillMlTree" , false , " Flag to fill ML scores tree" };
121- Configurable<bool > fillSpCentTree{" fillSpCentTree" , false , " Flag to fill SP and centrality tree" };
121+ Configurable<bool > fillMassPtMlTree{" fillMassPtMlTree" , false , " Flag to fill mass, pt and ML scores tree" };
122+ Configurable<bool > fillMassPtMlSpCentTree{" fillMassPtMlSpCentTree" , false , " Flag to fill mass, pt, ML scores, SP and centrality tree" };
122123 Configurable<bool > fillSparse{" fillSparse" , true , " Flag to fill sparse" };
123124 Configurable<float > downSampleFactor{" downSampleFactor" , 1 ., " Fraction of candidates to keep in TTree" };
124125 Configurable<float > ptDownSampleMax{" ptDownSampleMax" , 10 ., " Maximum pt for the application of the downsampling factor" };
@@ -695,21 +696,18 @@ struct HfTaskFlowCharmHadrons {
695696 float const scalprodCand = cosNPhi * xQVec + sinNPhi * yQVec;
696697 float const cosDeltaPhi = std::cos (harmonic * (phiCand - evtPl));
697698
698- if (fillMassPtTree || fillMlTree || fillSpCentTree ) {
699+ if (fillMassPtMlTree || fillMassPtMlSpCentTree ) {
699700 if (downSampleFactor < 1 .) {
700701 float const pseudoRndm = ptCand * 1000 . - static_cast <int64_t >(ptCand * 1000 );
701702 if (ptCand < ptDownSampleMax && pseudoRndm >= downSampleFactor) {
702703 continue ;
703704 }
704705 }
705- if (fillMassPtTree) {
706- rowCandMassPt (massCand, ptCand);
707- }
708- if (fillMlTree) {
709- rowCandMlScores (outputMl[0 ], outputMl[1 ]);
706+ if (fillMassPtMlTree) {
707+ rowCandMassPtMl (massCand, ptCand, outputMl[0 ], outputMl[1 ]);
710708 }
711- if (fillSpCentTree ) {
712- rowCandSpCent ( scalprodCand, cent);
709+ if (fillMassPtMlSpCentTree ) {
710+ rowCandMassPtMlSpCent (massCand, ptCand, outputMl[ 0 ], outputMl[ 1 ], scalprodCand, cent);
713711 }
714712 }
715713 if (fillSparse) {
0 commit comments