Skip to content

Commit 7344be2

Browse files
committed
fix o2linter
1 parent 18888dd commit 7344be2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct HadronNucleiCorrelation {
8383

8484
Configurable<int> mode{"mode", 0, "0: antid-antip, 1: d-p, 2: antid-p, 3: d-antip, 4: antip-p, 5: antip-antip, 6: p-p, 7: p-antip"};
8585

86-
Configurable<bool> dorapidity{"dorapidity", false, "do rapidity dependent analysis"};
86+
Configurable<bool> doRapidity{"doRapidity", false, "do rapidity dependent analysis"};
8787
Configurable<bool> doQA{"doQA", true, "save QA histograms"};
8888
Configurable<bool> doMCQA{"doMCQA", false, "save MC QA histograms"};
8989
Configurable<bool> isMC{"isMC", false, "is MC"};
@@ -101,8 +101,8 @@ struct HadronNucleiCorrelation {
101101

102102
// Track selection
103103
Configurable<bool> doClosePairRejection{"doClosePairRejection", false, "doClosePairRejection"};
104-
Configurable<double> par0{"par0", 0.004, "par 0"};
105-
Configurable<double> par1{"par1", 0.013, "par 1"};
104+
Configurable<double> dcaPar0{"dcaPar0", 0.004, "par 0"};
105+
Configurable<double> dcaPar1{"dcaPar1", 0.013, "par 1"};
106106
Configurable<bool> doDCAZ{"doDCAZ", true, "do DCA z cut"};
107107
Configurable<int16_t> min_TPC_nClusters{"min_TPC_nClusters", 80, "minimum number of found TPC clusters"};
108108
Configurable<float> min_TPC_nCrossedRowsOverFindableCls{"min_TPC_nCrossedRowsOverFindableCls", 0.8, "n TPC Crossed Rows Over Findable Cls"};
@@ -129,7 +129,7 @@ struct HadronNucleiCorrelation {
129129
Configurable<float> radiusTPC{"radiusTPC", 1.2, "TPC radius to calculate phi_star for"};
130130
Configurable<float> dEta{"dEta", 0.01, "minimum allowed difference in eta between two tracks in a pair"};
131131
Configurable<float> dPhi{"dPhi", 0.01, "minimum allowed difference in phi_star between two tracks in a pair"};
132-
Configurable<float> rap{"rap", 0.5, "rapidity"};
132+
Configurable<float> yRap{"yRap", 0.5, "rapidity"};
133133

134134
// Mixing parameters
135135
ConfigurableAxis confMultBins{"confMultBins", {VARIABLE_WIDTH, 0.0f, 4.0f, 8.0f, 12.0f, 16.0f, 20.0f, 24.0f, 28.0f, 50.0f, 100.0f, 99999.f}, "Mixing bins - multiplicity"};
@@ -238,7 +238,7 @@ struct HadronNucleiCorrelation {
238238
if (!isMC) {
239239
for (int i = 0; i < nBinspT; i++) {
240240

241-
if (dorapidity) {
241+
if (doRapidity) {
242242

243243
auto htempSE_AntiDeAntiPr = registry.add<TH3>(Form("hEtaPhi_%s_SE_pt%02.0f%02.0f", name.Data(), pTBins.value.at(i) * 10, pTBins.value.at(i + 1) * 10), Form("Raw #Delta y #Delta#phi (%.1f<p_{T}^{assoc} <%.1f GeV/c)", pTBins.value.at(i), pTBins.value.at(i + 1)), {HistType::kTH3F, {DeltaRapAxis, DeltaPhiAxis, ptBinnedAxis}});
244244
auto htempME_AntiDeAntiPr = registry.add<TH3>(Form("hEtaPhi_%s_ME_pt%02.0f%02.0f", name.Data(), pTBins.value.at(i) * 10, pTBins.value.at(i + 1) * 10), Form("Raw #Delta y #Delta#phi (%.1f<p_{T}^{assoc} <%.1f GeV/c)", pTBins.value.at(i), pTBins.value.at(i + 1)), {HistType::kTH3F, {DeltaRapAxis, DeltaPhiAxis, ptBinnedAxis}});
@@ -554,10 +554,10 @@ struct HadronNucleiCorrelation {
554554
{
555555
bool passcut = true;
556556
// pt-dependent selection
557-
if (std::abs(track.dcaXY()) > (par0 + par1 / track.pt()))
557+
if (std::abs(track.dcaXY()) > (dcaPar0 + dcaPar1 / track.pt()))
558558
passcut = false;
559559

560-
if (doDCAZ && std::abs(track.dcaZ()) > (par0 + par1 / track.pt()))
560+
if (doDCAZ && std::abs(track.dcaZ()) > (dcaPar0 + dcaPar1 / track.pt()))
561561
passcut = false;
562562

563563
return passcut;
@@ -1415,10 +1415,10 @@ struct HadronNucleiCorrelation {
14151415
registry.fill(HIST("Generated/hQADeuterons"), 1.5);
14161416
}
14171417

1418-
if (particle.pdgCode() == o2::constants::physics::Pdg::kDeuteron && std::abs(particle.y()) < rap) {
1418+
if (particle.pdgCode() == o2::constants::physics::Pdg::kDeuteron && std::abs(particle.y()) < yRap) {
14191419
registry.fill(HIST("Generated/hDeuteronsVsPt"), particle.pt());
14201420
}
1421-
if (particle.pdgCode() == -o2::constants::physics::Pdg::kDeuteron && std::abs(particle.y()) < rap) {
1421+
if (particle.pdgCode() == -o2::constants::physics::Pdg::kDeuteron && std::abs(particle.y()) < yRap) {
14221422
registry.fill(HIST("Generated/hAntiDeuteronsVsPt"), particle.pt());
14231423
}
14241424

0 commit comments

Comments
 (0)