@@ -121,7 +121,7 @@ struct decay3bodyBuilder {
121121 " registry" ,
122122 {{" hEventCounter" , " hEventCounter" , {HistType::kTH1F , {{1 , 0 .0f , 1 .0f }}}},
123123 {" hEventCounterKFParticle" , " hEventCounterKFParticle" , {HistType::kTH1F , {{4 , 0 .0f , 4 .0f }}}},
124- {" hVtx3BodyCounter" , " hVtx3BodyCounter" , {HistType::kTH1F , {{5 , 0 .0f , 5 .0f }}}},
124+ {" hVtx3BodyCounter" , " hVtx3BodyCounter" , {HistType::kTH1F , {{6 , 0 .0f , 6 .0f }}}},
125125 {" hVtx3BodyCounterKFParticle" , " hVtx3BodyCounterKFParticle" , {HistType::kTH1F , {{21 , 0 .0f , 21 .0f }}}},
126126 {" hBachelorTOFNSigmaDe" , " " , {HistType::kTH2F , {{40 , -10 .0f , 10 .0f , " p/z (GeV/c)" }, {40 , -10 .0f , 10 .0f , " TOF n#sigma" }}}},
127127 {" QA/Tracks/hTrackPosTPCNcls" , " hTrackPosTPCNcls" , {HistType::kTH1F , {{152 , 0 , 152 , " # TPC clusters" }}}},
@@ -307,9 +307,10 @@ struct decay3bodyBuilder {
307307
308308 registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (1 , " Total" );
309309 registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (2 , " TPCNcls" );
310- registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (3 , " HasSV" );
311- registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (4 , " DcaDau" );
312- registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (5 , " CosPA" );
310+ registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (3 , " PIDCut" );
311+ registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (4 , " HasSV" );
312+ registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (5 , " DcaDau" );
313+ registry.get <TH1>(HIST (" hVtx3BodyCounter" ))->GetXaxis ()->SetBinLabel (6 , " CosPA" );
313314
314315 registry.get <TH1>(HIST (" hVtx3BodyCounterKFParticle" ))->GetXaxis ()->SetBinLabel (1 , " Total" );
315316 registry.get <TH1>(HIST (" hVtx3BodyCounterKFParticle" ))->GetXaxis ()->SetBinLabel (2 , " CollIds" );
@@ -1134,24 +1135,23 @@ struct decay3bodyLabelBuilder {
11341135 Produces<aod::McKFVtx3BodyLabels> kfvtxlabels;
11351136 Produces<aod::McFullKFVtx3BodyLabels> kfvtxfulllabels;
11361137
1137- HistogramRegistry registry{
1138- " registry" ,
1139- {
1140- {" hLabelCounter" , " hLabelCounter" , {HistType::kTH1F , {{3 , 0 .0f , 3 .0f }}}},
1141- {" hHypertritonMCPt" , " hHypertritonMCPt" , {HistType::kTH1F , {{100 , 0 .0f , 10 .0f }}}},
1142- {" hAntiHypertritonMCPt" , " hAntiHypertritonMCPt" , {HistType::kTH1F , {{100 , 0 .0f , 10 .0f }}}},
1143- {" hHypertritonMCMass" , " hHypertritonMCMass" , {HistType::kTH1F , {{40 , 2 .95f , 3 .05f , " Inv. Mass (GeV/c^{2})" }}}},
1144- {" hAntiHypertritonMCMass" , " hAntiHypertritonMCMass" , {HistType::kTH1F , {{40 , 2 .95f , 3 .05f , " Inv. Mass (GeV/c^{2})" }}}},
1145- {" hHypertritonMCLifetime" , " hHypertritonMCLifetime" , {HistType::kTH1F , {{50 , 0 .0f , 50 .0f , " ct(cm)" }}}},
1146- {" hAntiHypertritonMCLifetime" , " hAntiHypertritonMCLifetime" , {HistType::kTH1F , {{50 , 0 .0f , 50 .0f , " ct(cm)" }}}},
1147- },
1148- };
1138+ HistogramRegistry registry{" registry" , {}};
11491139
11501140 void init (InitContext const &)
11511141 {
1152- registry.get <TH1>(HIST (" hLabelCounter" ))->GetXaxis ()->SetBinLabel (1 , " Total" );
1153- registry.get <TH1>(HIST (" hLabelCounter" ))->GetXaxis ()->SetBinLabel (2 , " Have Same MotherTrack" );
1154- registry.get <TH1>(HIST (" hLabelCounter" ))->GetXaxis ()->SetBinLabel (3 , " True H3L" );
1142+ if (doprocessDoNotBuildLabels == false ) {
1143+ auto hLabelCounter = registry.add <TH1>(" hLabelCounter" , " hLabelCounter" , HistType::kTH1D , {{3 , 0 .0f , 3 .0f }});
1144+ hLabelCounter->GetXaxis ()->SetBinLabel (1 , " Total" );
1145+ hLabelCounter->GetXaxis ()->SetBinLabel (2 , " Have Same MotherTrack" );
1146+ hLabelCounter->GetXaxis ()->SetBinLabel (3 , " True H3L" );
1147+
1148+ registry.add (" hHypertritonMCPt" , " hHypertritonMCPt" , HistType::kTH1F , {{100 , 0 .0f , 10 .0f }});
1149+ registry.add (" hAntiHypertritonMCPt" , " hAntiHypertritonMCPt" , HistType::kTH1F , {{100 , 0 .0f , 10 .0f }});
1150+ registry.add (" hHypertritonMCMass" , " hHypertritonMCMass" , HistType::kTH1F , {{40 , 2 .95f , 3 .05f , " Inv. Mass (GeV/c^{2})" }});
1151+ registry.add (" hAntiHypertritonMCMass" , " hAntiHypertritonMCMass" , HistType::kTH1F , {{40 , 2 .95f , 3 .05f , " Inv. Mass (GeV/c^{2})" }});
1152+ registry.add (" hHypertritonMCLifetime" , " hHypertritonMCLifetime" , HistType::kTH1F , {{50 , 0 .0f , 50 .0f , " ct(cm)" }});
1153+ registry.add (" hAntiHypertritonMCLifetime" , " hAntiHypertritonMCLifetime" , HistType::kTH1F , {{50 , 0 .0f , 50 .0f , " ct(cm)" }});
1154+ }
11551155 }
11561156
11571157 Configurable<float > TpcPidNsigmaCut{" TpcPidNsigmaCut" , 5 , " TpcPidNsigmaCut" };
0 commit comments