Skip to content

Commit 9bd9e0d

Browse files
committed
[Xic0Xicp] Minor bug fixed, Few comments fixed
1 parent b1b42b3 commit 9bd9e0d

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

PWGHF/TableProducer/candidateCreatorXic0XicpToHadronic.cxx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ struct HfCandidateCreatorXic0XicpToHadronic {
181181
}
182182

183183
// Exit if workflow is not configured correctly - More than one process enabled for Xic0
184-
if (std::accumulate(processesXic0.begin(), processesXic0.end(), 1) > 1) {
184+
if (std::accumulate(processesXic0.begin(), processesXic0.end(), 0) > 1) {
185185
LOGP(fatal, "More than one process fucntion for Xic0 was enabled. Please choose only one process function");
186186
}
187187

188-
// Exit if workflow is not configured correctly - More than one process enabled for Xic0
189-
if (std::accumulate(processesXicp.begin(), processesXicp.end(), 1) > 1) {
188+
// Exit if workflow is not configured correctly - More than one process enabled for Xicp
189+
if (std::accumulate(processesXicp.begin(), processesXicp.end(), 0) > 1) {
190190
LOGP(fatal, "More than one process fucntion for Xicp was enabled. Please choose only one process function");
191191
}
192192

@@ -196,7 +196,7 @@ struct HfCandidateCreatorXic0XicpToHadronic {
196196
}
197197

198198
// Initialization for Xic0
199-
if (std::accumulate(processesXic0.begin(), processesXic0.end(), 1) == 1) {
199+
if (std::accumulate(processesXic0.begin(), processesXic0.end(), 0) == 1) {
200200

201201
// Set histograms
202202
if (configs.fillHistograms) {
@@ -252,7 +252,7 @@ struct HfCandidateCreatorXic0XicpToHadronic {
252252
}// end of Xic0 initilization
253253

254254
// Initialization for Xicp
255-
if (std::accumulate(processesXicp.begin(), processesXicp.end(), 1) == 1) {
255+
if (std::accumulate(processesXicp.begin(), processesXicp.end(), 0) == 1) {
256256

257257
if (configs.fillHistograms) {
258258
registry.add("hVertexerType", "Use KF or DCAFitterN;Vertexer type;entries", {HistType::kTH1F, {{2, -0.5, 1.5}}}); // See o2::aod::hf_cand::VertexerType
@@ -304,16 +304,13 @@ struct HfCandidateCreatorXic0XicpToHadronic {
304304

305305
}// end of initialization
306306

307-
308-
309307
///////////////////////////////////////////////////////////
310308
// //
311309
// //
312310
// Xic0 //
313311
// //
314312
///////////////////////////////////////////////////////////
315313

316-
317314
// template function for running xic0 reconstruction via DCAFitter method
318315
// templated for various centrality estimator usage
319316
template<o2::hf_centrality::CentralityEstimator centEstimator, typename Colls>
@@ -1406,7 +1403,7 @@ struct HfCandidateCreatorXic0XicpToHadronic {
14061403
{
14071404
runCreatorXic0WithDCAFitter<CentralityEstimator::None, SelectedCollisions>(collisions, candidates, cascadesLinked, cascFull, tracks, bcsWithTimestamps);
14081405
}
1409-
PROCESS_SWITCH(HfCandidateCreatorXic0XicpToHadronic, processXic0WithDCAFitterNoCent, "Xic0 reconstruction via DcaFitter method, no centrality", false);
1406+
PROCESS_SWITCH(HfCandidateCreatorXic0XicpToHadronic, processXic0WithDCAFitterNoCent, "Xic0 reconstruction via DcaFitter method, no centrality", true);
14101407

14111408
void processXicpWithDCAFitterNoCent( SelectedCollisions const& collisions,
14121409
aod::HfCascLf3Prongs const& candidates,
@@ -1436,7 +1433,7 @@ struct HfCandidateCreatorXic0XicpToHadronic {
14361433
{
14371434
runCreatorXic0WithKfParticle<CentralityEstimator::None, SelectedCollisions>(collisions, candidates, kfCascadesLinked, kfCascFull, tracks, bcsWithTimestamps);
14381435
}
1439-
PROCESS_SWITCH(HfCandidateCreatorXic0XicpToHadronic, processXic0WithKFParticleNoCent, "Xic0 reconstruction via KFParticle method, no centrality", true);
1436+
PROCESS_SWITCH(HfCandidateCreatorXic0XicpToHadronic, processXic0WithKFParticleNoCent, "Xic0 reconstruction via KFParticle method, no centrality", false);
14401437

14411438
void processXicpWithKFParticleNoCent( SelectedCollisions const& collisions,
14421439
aod::HfCascLf3Prongs const& candidates,

PWGHF/TableProducer/candidateSelectorXic0XicpToHadronic.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct HfCandidateSelectorXic0XicpToHadronic {
148148

149149
static const AxisSpec axisSelections = {kNBinsSelections, 0.5, kNBinsSelections+0.5, ""};
150150

151-
registry.add("hSelectionsXic0", "Selections;;#it{p}_{T} (GeV/#it{c})", {kTH2F, {axisSelections, {(std::vector<double>)configs.binsPtXicp, "#it{p}_{T} (GeV/#it{c})"}}});
151+
registry.add("hSelectionsXicp", "Selections;;#it{p}_{T} (GeV/#it{c})", {kTH2F, {axisSelections, {(std::vector<double>)configs.binsPtXicp, "#it{p}_{T} (GeV/#it{c})"}}});
152152

153153
for (int iBin=0; iBin<kNBinsSelections; ++iBin) {
154154
registry.get<TH2>(HIST("hSelectionsXicp"))->GetXaxis()->SetBinLabel(iBin+1, labels[iBin].data());
@@ -505,7 +505,7 @@ struct HfCandidateSelectorXic0XicpToHadronic {
505505
cursors.hfSelXicpToXiPiPiCandidate(statusXicpToXiPiPi);
506506
}
507507
}
508-
PROCESS_SWITCH(HfCandidateSelectorXic0XicpToHadronic, processXicp, "Selection for Xicp candidates", true);
508+
PROCESS_SWITCH(HfCandidateSelectorXic0XicpToHadronic, processXicp, "Selection for Xicp candidates", false);
509509

510510
}; // end struct candidate selector
511511

PWGHF/TableProducer/treeCreatorXic0XicpToHadronic.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ struct HfTreeCreatorXic0XicpToHadronic {
11411141
fillXic0CandidateTable<false, false>(candidate);
11421142
}
11431143
}
1144-
PROCESS_SWITCH(HfTreeCreatorXic0XicpToHadronic, processDataXic0, "Process Data with DCAFitter reconstruction", false);
1144+
PROCESS_SWITCH(HfTreeCreatorXic0XicpToHadronic, processDataXic0, "Process Data with DCAFitter reconstruction", true);
11451145

11461146

11471147
void processDataXic0Kf(SelectedXic0CandidatesKf const& candidates)
@@ -1164,7 +1164,7 @@ struct HfTreeCreatorXic0XicpToHadronic {
11641164
fillXic0CandidateTable<false, true>(candidate);
11651165
}
11661166
}
1167-
PROCESS_SWITCH(HfTreeCreatorXic0XicpToHadronic, processDataXic0Kf, "Process Data with KFParticle reconstruction", true);
1167+
PROCESS_SWITCH(HfTreeCreatorXic0XicpToHadronic, processDataXic0Kf, "Process Data with KFParticle reconstruction", false);
11681168

11691169
void processDataXicp(SelectedXicpCandidates const& candidates)
11701170
{

0 commit comments

Comments
 (0)