@@ -237,32 +237,33 @@ struct LFNucleiBATask {
237237 static constexpr float MassAlphaVal = o2::constants::physics::MassAlpha;
238238
239239 // PDG of Mothers
240- static constexpr int kPdgMotherlist [] = {
240+ static constexpr int kPdgMotherList [] = {
241241 PDG_t::kPiPlus ,
242242 PDG_t::kKPlus ,
243243 PDG_t::kK0Short ,
244+ PDG_t::kNeutron ,
244245 PDG_t::kProton ,
246+ PDG_t::kLambda0 ,
245247 o2::constants::physics::Pdg::kDeuteron ,
246- o2::constants::physics::Pdg::kTriton ,
247248 o2::constants::physics::Pdg::kHelium3 ,
248- o2::constants::physics::Pdg::kAlpha ,
249- 1000130270 ,
250- 1000140280 ,
251- 1000260560 };
252- static constexpr int kNumMotherlist = sizeof (kPdgMotherlist ) / sizeof (kPdgMotherlist [0 ]);
253-
254- static constexpr const char * kMotherNames [kNumMotherlist ] = {
255- " #pi" ,
256- " K+" ,
257- " K0" ,
249+ o2::constants::physics::Pdg::kTriton ,
250+ o2::constants::physics::Pdg::kHyperTriton ,
251+ o2::constants::physics::Pdg::kAlpha };
252+
253+ static constexpr int kNumMotherList = sizeof (kPdgMotherList ) / sizeof (kPdgMotherList [0 ]);
254+
255+ static constexpr const char * kMotherNames [kNumMotherList ] = {
256+ " #pi^{+}" ,
257+ " K^{+}" ,
258+ " K^{0}_{S}" ,
259+ " n" ,
258260 " p" ,
261+ " #Lambda" ,
259262 " d" ,
260- " t" ,
261263 " He3" ,
262- " #alpha" ,
263- " Al" ,
264- " Si" ,
265- " Fe" };
264+ " t" ,
265+ " ^{3}_{#Lambda}H" ,
266+ " He4" };
266267
267268 static constexpr int kMaxNumMom = 4 ; // X: 0..4, overflow=5
268269
@@ -971,7 +972,7 @@ struct LFNucleiBATask {
971972 histos.add <TH2>(" tracks/deuteron/dca/before/hDCAxyVsPtDeuteronTrueMaterial" , " DCAxy vs Pt (d); #it{p}_{T} (GeV/#it{c}); DCAxy (cm)" , HistType::kTH2F , {{ptAxis}, {dcaxyAxis}});
972973
973974 histos.add <TH1>(" tracks/deuteron/dca/before/hNumMothers" , " N mothers per particle; N mothers;counts" , HistType::kTH1I , {{7 , 1.0 , 8.0 }});
974- histos.add <TH3>(" tracks/deuteron/dca/before/hMomTrueMaterial" , " MC mothers;mother index;mother type; mother #it{p}_{T}" , HistType::kTH3F , {{kMaxNumMom + 2 , -0.5 , static_cast <double >(kMaxNumMom ) + 1.5 }, {kNumMotherlist + 2 , -1.5 , static_cast <double >(kNumMotherlist ) + 0.5 }, {250 , 0.0 , 10.0 }});
975+ histos.add <TH3>(" tracks/deuteron/dca/before/hMomTrueMaterial" , " MC mothers;mother index;mother type; mother #it{p}_{T}" , HistType::kTH3F , {{kMaxNumMom + 2 , -0.5 , static_cast <double >(kMaxNumMom ) + 1.5 }, {kNumMotherList + 2 , -1.5 , static_cast <double >(kNumMotherList ) + 0.5 }, {250 , 0.0 , 10.0 }});
975976
976977 std::shared_ptr<TH3> hTempDe = histos.get <TH3>(HIST (" tracks/deuteron/dca/before/hMomTrueMaterial" ));
977978 TH3* hPdgDe = hTempDe.get ();
@@ -985,7 +986,7 @@ struct LFNucleiBATask {
985986 TAxis* ayPdgDe = hPdgDe->GetYaxis ();
986987 ayPdgDe->SetBinLabel (1 , " undef." );
987988 ayPdgDe->SetBinLabel (2 , " other" );
988- for (int i = 0 ; i < kNumMotherlist ; i++) {
989+ for (int i = 0 ; i < kNumMotherList ; i++) {
989990 ayPdgDe->SetBinLabel (i + 3 , kMotherNames [i]);
990991 }
991992
@@ -1187,7 +1188,7 @@ struct LFNucleiBATask {
11871188 histos.add <TH2>(" tracks/helium/dca/before/hDCAxyVsPtHeliumTrueMaterial" , " DCAxy vs Pt (He); #it{p}_{T} (GeV/#it{c}); DCAxy (cm)" , HistType::kTH2F , {{ptZHeAxis}, {dcaxyAxis}});
11881189
11891190 histos.add <TH1>(" tracks/helium/dca/before/hNumMothers" , " N mothers per particle; N mothers;counts" , HistType::kTH1I , {{7 , 1.0 , 8.0 }});
1190- histos.add <TH3>(" tracks/helium/dca/before/hMomTrueMaterial" , " MC mothers;mother index;mother type; mother #it{p}_{T}" , HistType::kTH3F , {{kMaxNumMom + 2 , -0.5 , static_cast <double >(kMaxNumMom ) + 1.5 }, {kNumMotherlist + 2 , -1.5 , static_cast <double >(kNumMotherlist ) + 0.5 }, {250 , 0.0 , 10.0 }});
1191+ histos.add <TH3>(" tracks/helium/dca/before/hMomTrueMaterial" , " MC mothers;mother index;mother type; mother #it{p}_{T}" , HistType::kTH3F , {{kMaxNumMom + 2 , -0.5 , static_cast <double >(kMaxNumMom ) + 1.5 }, {kNumMotherList + 2 , -1.5 , static_cast <double >(kNumMotherList ) + 0.5 }, {250 , 0.0 , 10.0 }});
11911192
11921193 // Fix for getting TH3 pointer
11931194 std::shared_ptr<TH3> hTempHe = histos.get <TH3>(HIST (" tracks/helium/dca/before/hMomTrueMaterial" ));
@@ -1202,7 +1203,7 @@ struct LFNucleiBATask {
12021203 TAxis* ayPdgHe = hPdgHe->GetYaxis ();
12031204 ayPdgHe->SetBinLabel (1 , " undef." );
12041205 ayPdgHe->SetBinLabel (2 , " other" );
1205- for (int i = 0 ; i < kNumMotherlist ; i++) {
1206+ for (int i = 0 ; i < kNumMotherList ; i++) {
12061207 ayPdgHe->SetBinLabel (i + 3 , kMotherNames [i]);
12071208 }
12081209
@@ -3371,8 +3372,8 @@ struct LFNucleiBATask {
33713372 int motherSpeciesBin = -1 ;
33723373 if (pdgMom != -1 ) {
33733374 motherSpeciesBin = 0 ;
3374- for (int j = 0 ; j < kNumMotherlist ; j++) {
3375- if (kPdgMotherlist [j] == pdgMom) {
3375+ for (int j = 0 ; j < kNumMotherList ; j++) {
3376+ if (kPdgMotherList [j] == pdgMom) {
33763377 motherSpeciesBin = j + 1 ;
33773378 break ;
33783379 }
@@ -3552,8 +3553,8 @@ struct LFNucleiBATask {
35523553 int motherSpeciesBin = -1 ;
35533554 if (pdgMom != -1 ) {
35543555 motherSpeciesBin = 0 ;
3555- for (int j = 0 ; j < kNumMotherlist ; j++) {
3556- if (kPdgMotherlist [j] == pdgMom) {
3556+ for (int j = 0 ; j < kNumMotherList ; j++) {
3557+ if (kPdgMotherList [j] == pdgMom) {
35573558 motherSpeciesBin = j + 1 ;
35583559 break ;
35593560 }
0 commit comments