Skip to content

Commit 7431f2d

Browse files
author
Chiara De Martin
committed
fix std-prefix
1 parent a00d231 commit 7431f2d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ struct cascadeFlow {
385385

386386
float getNsigmaMass(const cascadev2::species s, const float pt, const float nsigma = 6)
387387
{
388-
const auto sigma = parSigmaMass->get(0u, s) * exp(parSigmaMass->get(1, s) * pt) + parSigmaMass->get(2, s) * exp(parSigmaMass->get(3, s) * pt);
388+
const auto sigma = parSigmaMass->get(0u, s) * std::exp(parSigmaMass->get(1, s) * pt) + parSigmaMass->get(2, s) * std::exp(parSigmaMass->get(3, s) * pt);
389389
return nsigma * sigma;
390390
}
391391

@@ -914,7 +914,7 @@ struct cascadeFlow {
914914
cosThetaStarLambda[i] = boostedLambda.Pz() / boostedLambda.P();
915915
}
916916

917-
double ptLambda = sqrt(pow(casc.pxlambda(), 2) + pow(casc.pylambda(), 2));
917+
double ptLambda = std::sqrt(std::pow(casc.pxlambda(), 2) + std::pow(casc.pylambda(), 2));
918918
auto etaLambda = RecoDecay::eta(std::array{casc.pxlambda(), casc.pylambda(), casc.pzlambda()});
919919

920920
// acceptance values if requested
@@ -1010,7 +1010,7 @@ struct cascadeFlow {
10101010
histos.get<TH1>(HIST("massXi_ProtonAcc"))->Fill(casc.mXi());
10111011
}
10121012
}
1013-
if (fillingConfigs.isFillTHNOmega) {
1013+
if (fillingConfigs.isFillTHNOmega) {
10141014
if (fillingConfigs.isFillTHN_V2)
10151015
histos.get<THn>(HIST("hOmegaV2"))->Fill(coll.centFT0C(), ChargeIndex, casc.pt(), casc.mOmega(), BDTresponse[1], v2CEP);
10161016
if (fillingConfigs.isFillTHN_Pz)
@@ -1055,20 +1055,20 @@ struct cascadeFlow {
10551055
}
10561056
}
10571057

1058-
void processAnalyseDataEP2CentralFW(CollEventPlaneCentralFW const& coll, CascCandidates const& Cascades, DauTracks const&)
1058+
void processAnalyseDataEP2CentralFW(CollEventPlaneCentralFW const& coll, CascCandidates const& Cascades, DauTracks const&)
10591059
{
10601060

10611061
if (!AcceptEvent(coll, 1)) {
10621062
return;
10631063
}
1064-
1064+
10651065
// select only events used for the calibration of the event plane
10661066
if (isGoodEventEP) {
10671067
if (std::abs(coll.qvecFT0CRe()) > 990 || std::abs(coll.qvecFT0CIm()) > 990 || std::abs(coll.qvecBNegRe()) > 990 || std::abs(coll.qvecBNegIm()) > 990 || std::abs(coll.qvecBPosRe()) > 990 || std::abs(coll.qvecBPosIm()) > 990) {
10681068
return;
10691069
}
10701070
}
1071-
1071+
10721072
// event has FT0C event plane
10731073
bool hasEventPlane = 0;
10741074
if (std::abs(coll.qvecFT0CRe()) < 990 && std::abs(coll.qvecFT0CIm()) < 990)
@@ -1183,7 +1183,7 @@ struct cascadeFlow {
11831183
cosThetaStarLambda[i] = boostedLambda.Pz() / boostedLambda.P();
11841184
}
11851185

1186-
double ptLambda = sqrt(pow(casc.pxlambda(), 2) + pow(casc.pylambda(), 2));
1186+
double ptLambda = std::sqrt(std::pow(casc.pxlambda(), 2) + std::pow(casc.pylambda(), 2));
11871187
auto etaLambda = RecoDecay::eta(std::array{casc.pxlambda(), casc.pylambda(), casc.pzlambda()});
11881188

11891189
// acceptance values if requested
@@ -1277,7 +1277,7 @@ struct cascadeFlow {
12771277
histos.get<TH1>(HIST("massXi_ProtonAcc"))->Fill(casc.mXi());
12781278
}
12791279
}
1280-
if (fillingConfigs.isFillTHNOmega) {
1280+
if (fillingConfigs.isFillTHNOmega) {
12811281
if (fillingConfigs.isFillTHN_V2)
12821282
histos.get<THn>(HIST("hOmegaV2"))->Fill(coll.centFT0C(), ChargeIndex, casc.pt(), casc.mOmega(), BDTresponse[1], v2CEP);
12831283
if (fillingConfigs.isFillTHN_Pz)
@@ -1335,7 +1335,7 @@ struct cascadeFlow {
13351335
return;
13361336
}
13371337
}
1338-
1338+
13391339
// event has FT0C event plane
13401340
bool hasEventPlane = 0;
13411341
if (std::abs(coll.qvecFT0CRe()) < 990 && std::abs(coll.qvecFT0CIm()) < 990)
@@ -1360,9 +1360,9 @@ struct cascadeFlow {
13601360
ROOT::Math::XYZVector spectatorplaneVecZDCA{std::cos(coll.psiZDCA()), std::sin(coll.psiZDCA()), 0}; // eta positive = projectile
13611361
ROOT::Math::XYZVector spectatorplaneVecZDCC{std::cos(coll.psiZDCC()), std::sin(coll.psiZDCC()), 0}; // eta negative = target
13621362

1363-
float NormQvT0C = sqrt(eventplaneVecT0C.Dot(eventplaneVecT0C));
1364-
float NormQvTPCA = sqrt(eventplaneVecTPCA.Dot(eventplaneVecTPCA));
1365-
float NormQvTPCC = sqrt(eventplaneVecTPCC.Dot(eventplaneVecTPCC));
1363+
float NormQvT0C = std::sqrt(eventplaneVecT0C.Dot(eventplaneVecT0C));
1364+
float NormQvTPCA = std::sqrt(eventplaneVecTPCA.Dot(eventplaneVecTPCA));
1365+
float NormQvTPCC = std::sqrt(eventplaneVecTPCC.Dot(eventplaneVecTPCC));
13661366

13671367
const float PsiT0C = std::atan2(coll.qvecFT0CIm(), coll.qvecFT0CRe()) * 0.5f;
13681368
histos.fill(HIST("hPsiT0C"), PsiT0C);

0 commit comments

Comments
 (0)