Skip to content

Commit 45725c5

Browse files
authored
Update piDeFemtoSystematics.cxx
1 parent 112c9da commit 45725c5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

PWGCF/Femto/FemtoNuclei/Tasks/piDeFemtoSystematics.cxx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,20 @@
4747
#include <Framework/OutputObjHeader.h>
4848
#include <Framework/runDataProcessing.h>
4949
#include <MathUtils/BetheBlochAleph.h>
50+
#include <ReconstructionDataFormats/PID.h>
5051

5152
#include <Math/GenVector/Boost.h>
52-
#include <Math/Vector4D.h>
53+
#include <Math/GenVector/LorentzVector.h>
54+
#include <Math/GenVector/PxPyPzM4D.h>
5355
#include <TH1.h>
5456
#include <THnSparse.h>
57+
#include <TString.h>
5558

56-
#include <algorithm>
5759
#include <array>
5860
#include <cmath>
59-
#include <cstdint>
61+
#include <cstddef>
6062
#include <string>
63+
#include <utility>
6164
#include <vector>
6265

6366
using namespace o2;
@@ -205,7 +208,7 @@ struct PiDeFemtoSystematics {
205208

206209
HistogramRegistry registry{"PiDeFemtoSystematics", {}, OutputObjHandlingPolicy::AnalysisObject, false, true};
207210

208-
Service<o2::ccdb::BasicCCDBManager> ccdb;
211+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
209212
Zorro zorro;
210213
OutputObj<ZorroSummary> zorroSummary{"zorroSummary"};
211214
o2::vertexing::DCAFitterN<2> pairFitter;
@@ -376,7 +379,7 @@ struct PiDeFemtoSystematics {
376379
registry.add("Config/hCutValues", "Configured cut values;cut;value",
377380
HistType::kTH1D, {cutAxis});
378381
auto histogram = registry.get<TH1>(HIST("Config/hCutValues"));
379-
for (size_t index = 0; index < cuts.size(); ++index) {
382+
for (std::size_t index = 0; index < cuts.size(); ++index) {
380383
histogram->GetXaxis()->SetBinLabel(static_cast<int>(index) + 1, cuts[index].first.c_str());
381384
histogram->SetBinContent(static_cast<int>(index) + 1, cuts[index].second);
382385
}
@@ -761,7 +764,7 @@ struct PiDeFemtoSystematics {
761764
pion.px(), pion.py(), pion.pz()};
762765
const float kstar = pairKstar(pionMomentum, deuteronMomentum);
763766
const float mt = pairMT(pionMomentum, deuteronMomentum);
764-
const float channel = static_cast<float>(
767+
const auto channel = static_cast<float>(
765768
pairChannel(deuteron.sign(), pion.sign()));
766769
if (mixedEvent) {
767770
registry.fill(HIST("Pairs/hME"), kstar, mt, centrality, channel);

0 commit comments

Comments
 (0)