Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions PWGLF/Tasks/Strangeness/lambdapolsp.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@
template <typename Collision, typename V0>
bool SelectionV0(Collision const& collision, V0 const& candidate)
{
if (TMath::Abs(candidate.dcav0topv()) > cMaxV0DCA) {

Check warning on line 349 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
const float pT = candidate.pt();
const float tranRad = candidate.v0radius();
const float dcaDaughv0 = TMath::Abs(candidate.dcaV0daughters());

Check warning on line 354 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
const float cpav0 = candidate.v0cosPA();

float CtauLambda = candidate.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * massLambda;
Expand All @@ -373,10 +373,10 @@
if (tranRad > ConfV0TranRadV0Max) {
return false;
}
if (TMath::Abs(CtauLambda) > cMaxV0LifeTime) {

Check warning on line 376 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
if (TMath::Abs(candidate.yLambda()) > ConfV0Rap) {

Check warning on line 379 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
return true;
Expand All @@ -400,10 +400,10 @@
return false;
}

if (pid == 0 && TMath::Abs(track.tpcNSigmaPr()) > ConfDaughPIDCuts) {

Check warning on line 403 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
if (pid == 1 && TMath::Abs(track.tpcNSigmaPi()) > ConfDaughPIDCuts) {

Check warning on line 406 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
if (pid == 0 && (candidate.positivept() < cfgDaughPrPt || candidate.negativept() < cfgDaughPiPt)) {
Expand All @@ -416,10 +416,10 @@
return false;
}

if (pid == 0 && (TMath::Abs(candidate.dcapostopv()) < cMinV0DCAPr || TMath::Abs(candidate.dcanegtopv()) < cMinV0DCAPi)) {

Check warning on line 419 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
if (pid == 1 && (TMath::Abs(candidate.dcapostopv()) < cMinV0DCAPi || TMath::Abs(candidate.dcanegtopv()) < cMinV0DCAPr)) {

Check warning on line 422 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}

Expand Down Expand Up @@ -465,10 +465,10 @@
return false;
}

if (pid == 0 && (TMath::Abs(v0.dcapostopv()) < cMinV0DCAPr || TMath::Abs(v0.dcanegtopv()) < cMinV0DCAPi)) {

Check warning on line 468 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}
if (pid == 1 && (TMath::Abs(v0.dcapostopv()) < cMinV0DCAPi || TMath::Abs(v0.dcanegtopv()) < cMinV0DCAPr)) {

Check warning on line 471 in PWGLF/Tasks/Strangeness/lambdapolsp.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
return false;
}

Expand Down Expand Up @@ -642,8 +642,8 @@

TProfile2D* accprofileL;
TProfile2D* accprofileAL;
int currentRunNumber = -999;
int lastRunNumber = -999;
// int currentRunNumber = -999;
// int lastRunNumber = -999;

using BCsRun3 = soa::Join<aod::BCsWithTimestamps, aod::Run3MatchedToBCSparse>;

Expand Down Expand Up @@ -677,7 +677,7 @@
return;
}

currentRunNumber = collision.foundBC_as<BCsRun3>().runNumber();
// currentRunNumber = collision.foundBC_as<BCsRun3>().runNumber();
auto bc = collision.foundBC_as<BCsRun3>();

auto qxZDCA = collision.qxZDCA();
Expand Down Expand Up @@ -918,7 +918,8 @@
int taga = LambdaTag;
int tagb = aLambdaTag;

if (useAccCorr && (currentRunNumber != lastRunNumber)) {
// if (useAccCorr && (currentRunNumber != lastRunNumber)) {
if (useAccCorr) {
accprofileL = ccdb->getForTimeStamp<TProfile2D>(ConfAccPathL.value, bc.timestamp());
accprofileAL = ccdb->getForTimeStamp<TProfile2D>(ConfAccPathAL.value, bc.timestamp());
}
Expand Down Expand Up @@ -977,37 +978,45 @@
if (LambdaTag) {
Lambda = Proton + AntiPion;
tagb = 0;
double acvalue = accprofileL->GetBinContent(accprofileL->FindBin(v0.eta(), v0.pt()));
int binx = accprofileL->GetXaxis()->FindBin(v0.eta());
int biny = accprofileL->GetYaxis()->FindBin(v0.pt());
double acvalue = accprofileL->GetBinContent(binx, biny);
fillHistograms(taga, tagb, Lambda, Proton, psiZDCC, psiZDCA, psiZDC, centrality, v0.mLambda(), v0.pt(), desbinvalue, acvalue);
}

tagb = aLambdaTag;
if (aLambdaTag) {
AntiLambda = AntiProton + Pion;
taga = 0;
double acvalue = accprofileAL->GetBinContent(accprofileAL->FindBin(v0.eta(), v0.pt()));
int binx = accprofileAL->GetXaxis()->FindBin(v0.eta());
int biny = accprofileAL->GetYaxis()->FindBin(v0.pt());
double acvalue = accprofileAL->GetBinContent(binx, biny);
fillHistograms(taga, tagb, AntiLambda, AntiProton, psiZDCC, psiZDCA, psiZDC, centrality, v0.mAntiLambda(), v0.pt(), desbinvalue, acvalue);
}
}
} else {
if (LambdaTag) {
Lambda = Proton + AntiPion;
tagb = 0;
double acvalue = accprofileL->GetBinContent(accprofileL->FindBin(v0.eta(), v0.pt()));
int binx = accprofileL->GetXaxis()->FindBin(v0.eta());
int biny = accprofileL->GetYaxis()->FindBin(v0.pt());
double acvalue = accprofileL->GetBinContent(binx, biny);
fillHistograms(taga, tagb, Lambda, Proton, psiZDCC, psiZDCA, psiZDC, centrality, v0.mLambda(), v0.pt(), v0.eta(), acvalue);
}

tagb = aLambdaTag;
if (aLambdaTag) {
AntiLambda = AntiProton + Pion;
taga = 0;
double acvalue = accprofileAL->GetBinContent(accprofileAL->FindBin(v0.eta(), v0.pt()));
int binx = accprofileAL->GetXaxis()->FindBin(v0.eta());
int biny = accprofileAL->GetYaxis()->FindBin(v0.pt());
double acvalue = accprofileAL->GetBinContent(binx, biny);
fillHistograms(taga, tagb, AntiLambda, AntiProton, psiZDCC, psiZDCA, psiZDC, centrality, v0.mAntiLambda(), v0.pt(), v0.eta(), acvalue);
}
}
}
}
lastRunNumber = currentRunNumber;
// lastRunNumber = currentRunNumber;
}
PROCESS_SWITCH(lambdapolsp, processData, "Process data", true);

Expand Down
Loading