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
40 changes: 26 additions & 14 deletions PWGUD/Tasks/upcVmRof.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ struct UpcVmRof {
if (gidxBCB <= bcs.iteratorAt(bcs.size() - 1).globalIndex()) {
while (nearbcb != bcs.end()) {
++nearbcb;
if (nearbcb == bcs.end()) break;
if (nearbcb == bcs.end())
break;
if (nearbcb.globalIndex() > gidxBCB) {
break;
} else if (getBcWithinOrbit(nearbcb.globalBC()) == vecNearestBCB[thisBC]) {
Expand Down Expand Up @@ -1097,7 +1098,7 @@ struct UpcVmRof {
}

// compute the number of FT0 and ZN bcB interactions in this ROF
int nPerROFFT0Low = 0; // Low amplitude threshold
int nPerROFFT0Low = 0; // Low amplitude threshold
int nPerROFFT0High = 0; // high amplitude threshold
int nPerROFZNA = 0;
int nPerROFZNC = 0;
Expand All @@ -1107,7 +1108,8 @@ struct UpcVmRof {
// -- find later interactions in the same ROF
while (fwdbc != bcs.end()) {
++fwdbc;
if (fwdbc == bcs.end()) break;
if (fwdbc == bcs.end())
break;
int64_t tmpLocalBC = getBcWithinOrbit(fwdbc.globalBC());
int64_t tmpTF = getTimeFrame(fwdbc.globalBC());
int64_t tmpROF = getRof(tmpLocalBC);
Expand All @@ -1123,11 +1125,16 @@ struct UpcVmRof {
tZNC = (fwdbc.zdc()).timeZNC();
bool isZNA = false;
bool isZNC = false;
if(std::isfinite(tZNA) && std::abs(tZNA)<maxAbsTimeZN) isZNA = true;
if(std::isfinite(tZNC) && std::abs(tZNC)<maxAbsTimeZN) isZNC = true;
if(isZNA) nPerROFZNA++;
if(isZNC) nPerROFZNC++;
if(isZNA && isZNC) nPerROFZN++;
if (std::isfinite(tZNA) && std::abs(tZNA) < maxAbsTimeZN)
isZNA = true;
if (std::isfinite(tZNC) && std::abs(tZNC) < maxAbsTimeZN)
isZNC = true;
if (isZNA)
nPerROFZNA++;
if (isZNC)
nPerROFZNC++;
if (isZNA && isZNC)
nPerROFZN++;
}
if (fwdbc.has_foundFT0()) {
if (fwdbc.foundFT0().sumAmpA() > minAmpFT0Low && fwdbc.foundFT0().sumAmpC() > minAmpFT0Low)
Expand Down Expand Up @@ -1155,11 +1162,16 @@ struct UpcVmRof {
tZNC = (bwdbc.zdc()).timeZNC();
bool isZNA = false;
bool isZNC = false;
if(std::isfinite(tZNA) && std::abs(tZNA)<maxAbsTimeZN) isZNA = true;
if(std::isfinite(tZNC) && std::abs(tZNC)<maxAbsTimeZN) isZNC = true;
if(isZNA) nPerROFZNA++;
if(isZNC) nPerROFZNC++;
if(isZNA && isZNC) nPerROFZN++;
if (std::isfinite(tZNA) && std::abs(tZNA) < maxAbsTimeZN)
isZNA = true;
if (std::isfinite(tZNC) && std::abs(tZNC) < maxAbsTimeZN)
isZNC = true;
if (isZNA)
nPerROFZNA++;
if (isZNC)
nPerROFZNC++;
if (isZNA && isZNC)
nPerROFZN++;
}
if (bwdbc.has_foundFT0()) {
if (bwdbc.foundFT0().sumAmpA() > minAmpFT0Low && bwdbc.foundFT0().sumAmpC() > minAmpFT0Low)
Expand Down Expand Up @@ -1187,7 +1199,7 @@ struct UpcVmRof {
selTrks[0].tpcNSigmaPi(), selTrks[0].tpcNSigmaEl(), selTrks[0].tpcNSigmaKa(), selTrks[0].tpcNSigmaPr(),
selTrks[1].pt(), selTrks[1].eta(), selTrks[1].phi(), selTrks[1].sign(),
selTrks[1].tpcNSigmaPi(), selTrks[1].tpcNSigmaEl(), selTrks[1].tpcNSigmaKa(), selTrks[1].tpcNSigmaPr(),
tof[0], tof[1], nPerROFFT0Low, nPerROFFT0High, nPerROFZNA, nPerROFZNC, nPerROFZN);
tof[0], tof[1], nPerROFFT0Low, nPerROFFT0High, nPerROFZNA, nPerROFZNC, nPerROFZN);
}
if (isFourBody) {
if (selTrks[0].hasTOF()) {
Expand Down
Loading