diff --git a/PWGCF/EbyEFluctuations/Tasks/meanptFluctuations.cxx b/PWGCF/EbyEFluctuations/Tasks/meanptFluctuations.cxx index 6181d4a8b3f..c089481c205 100644 --- a/PWGCF/EbyEFluctuations/Tasks/meanptFluctuations.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/meanptFluctuations.cxx @@ -55,7 +55,7 @@ using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions; -#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable NAME{#NAME, (DEFAULT), (HELP)}; +#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable NAME{#NAME, DEFAULT, HELP}; struct MeanptFluctuations { diff --git a/PWGCF/Femto3D/Core/femto3dPairTask.h b/PWGCF/Femto3D/Core/femto3dPairTask.h index 19556200506..3a4cdb05f13 100644 --- a/PWGCF/Femto3D/Core/femto3dPairTask.h +++ b/PWGCF/Femto3D/Core/femto3dPairTask.h @@ -196,10 +196,10 @@ class FemtoPair void SetIdentical(const bool& isidentical) { _isidentical = isidentical; } void SetMagField1(const float& magfield1) { _magfield1 = magfield1; } void SetMagField2(const float& magfield2) { _magfield2 = magfield2; } - void SetPDG1(const int& PDG1) { _PDG1 = PDG1; } - void SetPDG2(const int& PDG2) { _PDG2 = PDG2; } - int GetPDG1() { return _PDG1; } - int GetPDG2() { return _PDG2; } + void SetPDG1(const int& pdg1) { _pdg1 = pdg1; } + void SetPDG2(const int& pdg2) { _pdg2 = pdg2; } + int GetPDG1() { return _pdg1; } + int GetPDG2() { return _pdg2; } void ResetPair(); void ResetAll(); @@ -241,7 +241,7 @@ class FemtoPair TrackType _first = NULL; TrackType _second = NULL; float _magfield1 = 0.0, _magfield2 = 0.0; - int _PDG1 = 0, _PDG2 = 0; + int _pdg1 = 0, _pdg2 = 0; bool _isidentical = true; std::array TPCradii = {0.85, 1.05, 1.25, 1.45, 1.65, 1.85, 2.05, 2.25, 2.45}; }; @@ -260,8 +260,8 @@ void FemtoPair::ResetAll() _second = NULL; _magfield1 = 0.0; _magfield2 = 0.0; - _PDG1 = 0; - _PDG2 = 0; + _pdg1 = 0; + _pdg2 = 0; _isidentical = true; } @@ -342,13 +342,13 @@ float FemtoPair::GetKstar() const return -1000; if (_magfield1 * _magfield2 == 0) return -1000; - if (_PDG1 * _PDG2 == 0) + if (_pdg1 * _pdg2 == 0) return -1000; TLorentzVector first4momentum; - first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_PDG1)); + first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_pdg1)); TLorentzVector second4momentum; - second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_PDG2)); + second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_pdg2)); return GetKstarFrom4vectors(first4momentum, second4momentum, _isidentical); } @@ -360,13 +360,13 @@ TVector3 FemtoPair::GetQLCMS() const return TVector3(-1000, -1000, -1000); if (_magfield1 * _magfield2 == 0) return TVector3(-1000, -1000, -1000); - if (_PDG1 * _PDG2 == 0) + if (_pdg1 * _pdg2 == 0) return TVector3(-1000, -1000, -1000); TLorentzVector first4momentum; - first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_PDG1)); + first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_pdg1)); TLorentzVector second4momentum; - second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_PDG2)); + second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_pdg2)); return GetQLCMSFrom4vectors(first4momentum, second4momentum); } @@ -378,7 +378,7 @@ float FemtoPair::GetKt() const return -1000; if (_magfield1 * _magfield2 == 0) return -1000; - if (_PDG1 * _PDG2 == 0) + if (_pdg1 * _pdg2 == 0) return -1000; const float px = _first->px() + _second->px(); const float py = _first->py() + _second->py(); @@ -392,13 +392,13 @@ float FemtoPair::GetMt() const return -1000; if (_magfield1 * _magfield2 == 0) return -1000; - if (_PDG1 * _PDG2 == 0) + if (_pdg1 * _pdg2 == 0) return -1000; TLorentzVector first4momentum; - first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_PDG1)); + first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_pdg1)); TLorentzVector second4momentum; - second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_PDG2)); + second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_pdg2)); TLorentzVector fourmomentasum = first4momentum + second4momentum; @@ -412,7 +412,7 @@ float FemtoPair::GetGammaOut() const return -1000; if (_magfield1 * _magfield2 == 0) return -1000; - if (_PDG1 * _PDG2 == 0) + if (_pdg1 * _pdg2 == 0) return -1000; // double Qinv = 2.0 * GetKstar(); @@ -421,9 +421,9 @@ float FemtoPair::GetGammaOut() const // return std::fabs(QLCMS.X() / Qout_PRF); TLorentzVector first4momentum; - first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_PDG1)); + first4momentum.SetPtEtaPhiM(_first->pt(), _first->eta(), _first->phi(), particle_mass(_pdg1)); TLorentzVector second4momentum; - second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_PDG2)); + second4momentum.SetPtEtaPhiM(_second->pt(), _second->eta(), _second->phi(), particle_mass(_pdg2)); TLorentzVector fourmomentasum = first4momentum + second4momentum; diff --git a/PWGCF/Femto3D/Tasks/PIDoptimization.cxx b/PWGCF/Femto3D/Tasks/PIDoptimization.cxx index 7ec65abf3ee..1a3b479c4ab 100644 --- a/PWGCF/Femto3D/Tasks/PIDoptimization.cxx +++ b/PWGCF/Femto3D/Tasks/PIDoptimization.cxx @@ -59,8 +59,8 @@ struct PidOptimization { Configurable _requestVertexITSTPC{"requestVertexITSTPC", false, ""}; Configurable _requestVertexTOForTRDmatched{"requestVertexTOFmatched", 0, "0 -> no selectio; 1 -> vertex is matched to TOF or TRD; 2 -> matched to both;"}; Configurable _requestNoCollInTimeRangeStandard{"requestNoCollInTimeRangeStandard", false, ""}; - Configurable> _IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; - Configurable> _OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; + Configurable> IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; + Configurable> OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; Configurable _sign{"sign", 1, "sign of a track"}; Configurable _vertexZ{"VertexZ", 20.0, "abs vertexZ value limit"}; @@ -79,7 +79,7 @@ struct PidOptimization { Configurable _particlePDG{"particlePDG", 2212, "PDG code of a particle to perform PID for (only pion, kaon, proton and deurton are supported now)"}; Configurable> _tpcNSigma{"tpcNSigma", std::pair{-100, 100}, "Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma{"itsNSigma", std::pair{-100, 100}, "Nsigma range in ITS to use along with TPC"}; - Configurable _PIDtrshld{"PIDtrshld", 10.0, "value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld{"PIDtrshld", 10.0, "value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma{"tofNSigma", std::pair{-100, 100}, "Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual{"tpcNSigmaResidual", std::pair{-10, 10}, "residual TPC Nsigma cut to use with the TOF"}; Configurable _particlePDGtoReject{"particlePDGtoReject", 211, "PDG codes of perticles that will be rejected with TOF (only pion, kaon, proton and deurton are supported now)"}; @@ -211,7 +211,7 @@ struct PidOptimization { // continue; // if (collision.hadronicRate() < _IRcut.value.first || collision.hadronicRate() >= _IRcut.value.second) // continue; - if (collision.trackOccupancyInTimeRange() < _OccupancyCut.value.first || collision.trackOccupancyInTimeRange() >= _OccupancyCut.value.second) + if (collision.trackOccupancyInTimeRange() < OccupancyCut.value.first || collision.trackOccupancyInTimeRange() >= OccupancyCut.value.second) continue; histos.fill(HIST("vtz"), collision.posZ()); @@ -229,7 +229,7 @@ struct PidOptimization { if (std::fabs(track.dcaXY()) > _dcaXY.value[0] + _dcaXY.value[1] * std::pow(track.pt(), _dcaXY.value[2]) || std::fabs(track.dcaZ()) > _dcaZ.value[0] + _dcaZ.value[1] * std::pow(track.pt(), _dcaZ.value[2])) continue; - bool belowThreshold = track.p() < _PIDtrshld; + bool belowThreshold = track.p() < PIDtrshld; float tpcSigma = getTPCNsigma(track, _particlePDG); float itsSigma = getITSNsigma(track, _particlePDG); float tofSigma = getTOFNsigma(track, _particlePDG); diff --git a/PWGCF/Femto3D/Tasks/femto3dPairTask.cxx b/PWGCF/Femto3D/Tasks/femto3dPairTask.cxx index 0d29ebf334f..143322322db 100644 --- a/PWGCF/Femto3D/Tasks/femto3dPairTask.cxx +++ b/PWGCF/Femto3D/Tasks/femto3dPairTask.cxx @@ -62,8 +62,8 @@ struct FemtoCorrelations { Configurable _requestVertexTOForTRDmatched{"requestVertexTOFmatched", 0, "0 -> no selectio; 1 -> vertex is matched to TOF or TRD; 2 -> matched to both;"}; Configurable _requestNoCollInTimeRangeStandard{"requestNoCollInTimeRangeStandard", false, ""}; Configurable _requestIsGoodITSLayersAll{"requestIsGoodITSLayersAll", false, "cut time intervals with dead ITS staves"}; - Configurable> _IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; - Configurable> _OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; + Configurable> IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; + Configurable> OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; Configurable _min_P{"min_P", 0.0, "lower mometum limit"}; Configurable _max_P{"max_P", 100.0, "upper mometum limit"}; @@ -82,7 +82,7 @@ struct FemtoCorrelations { Configurable _particlePDG_1{"particlePDG_1", 2212, "PDG code of the first particle in a pair to perform PID for (only pion, kaon, proton and deurton are supported now)"}; Configurable> _tpcNSigma_1{"tpcNSigma_1", std::vector{-3.0f, 3.0f}, "first particle PID: Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma_1{"itsNSigma_1", std::vector{-10.0f, 10.0f}, "first particle PID: Nsigma range in ITS with TPC is used"}; - Configurable _PIDtrshld_1{"PIDtrshld_1", 10.0, "first particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld_1{"PIDtrshld_1", 10.0, "first particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma_1{"tofNSigma_1", std::vector{-3.0f, 3.0f}, "first particle PID: Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual_1{"tpcNSigmaResidual_1", std::vector{-5.0f, 5.0f}, "first particle PID: residual TPC Nsigma cut to use with the TOF"}; @@ -90,7 +90,7 @@ struct FemtoCorrelations { Configurable _particlePDG_2{"particlePDG_2", 2212, "PDG code of the second particle in a pair to perform PID for (only pion, kaon, proton and deurton are supported now)"}; Configurable> _tpcNSigma_2{"tpcNSigma_2", std::vector{-3.0f, 3.0f}, "second particle PID: Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma_2{"itsNSigma_2", std::vector{-10.0f, 10.0f}, "first particle PID: Nsigma range in ITS with TPC is used"}; - Configurable _PIDtrshld_2{"PIDtrshld_2", 10.0, "second particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld_2{"PIDtrshld_2", 10.0, "second particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma_2{"tofNSigma_2", std::vector{-3.0f, 3.0f}, "second particle PID: Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual_2{"tpcNSigmaResidual_2", std::vector{-5.0f, 5.0f}, "second particle PID: residual TPC Nsigma cut to use with the TOF"}; @@ -121,7 +121,7 @@ struct FemtoCorrelations { // P.P.S. the chosen way of optimizing the mixing midgt not be the correct one -- feel free to propose the right one! // P.P.P.S. choose wisely.... // P.P.P.P.S this way is still being testing i might be reconsidered; might change in the future, keep looking at the source code - Configurable _MEreductionFactor{"MEreductionFactor", 1, "only one (pseudo)randomly choosen event out per pair $value events will be processed and contribute to the final mixing (if < 2 -> all the possible event pairs (per vertex¢ bin) will be processed); implemented for the sake of efficiency; look at the source code;"}; + Configurable MEreductionFactor{"MEreductionFactor", 1, "only one (pseudo)randomly choosen event out per pair $value events will be processed and contribute to the final mixing (if < 2 -> all the possible event pairs (per vertex¢ bin) will be processed); implemented for the sake of efficiency; look at the source code;"}; bool IsIdentical = true; @@ -443,14 +443,14 @@ struct FemtoCorrelations { continue; if (track.template singleCollSel_as>().multPerc() < *_centBins.value.begin() || track.template singleCollSel_as>().multPerc() >= *(_centBins.value.end() - 1)) continue; - if (track.template singleCollSel_as>().hadronicRate() < _IRcut.value.first || track.template singleCollSel_as>().hadronicRate() >= _IRcut.value.second) + if (track.template singleCollSel_as>().hadronicRate() < IRcut.value.first || track.template singleCollSel_as>().hadronicRate() >= IRcut.value.second) continue; - if (track.template singleCollSel_as>().occupancy() < _OccupancyCut.value.first || track.template singleCollSel_as>().occupancy() >= _OccupancyCut.value.second) + if (track.template singleCollSel_as>().occupancy() < OccupancyCut.value.first || track.template singleCollSel_as>().occupancy() >= OccupancyCut.value.second) continue; if (std::fabs(track.dcaXY()) > _dcaXY.value[0] + _dcaXY.value[1] * std::pow(track.pt(), _dcaXY.value[2]) || std::fabs(track.dcaZ()) > _dcaZ.value[0] + _dcaZ.value[1] * std::pow(track.pt(), _dcaZ.value[2])) continue; - if (track.sign() == _sign_1 && (track.p() < _PIDtrshld_1 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_1, _itsNSigma_1.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_1, _tpcNSigmaResidual_1.value))) { // filling the map: eventID <-> selected particles1 + if (track.sign() == _sign_1 && (track.p() < PIDtrshld_1 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_1, _itsNSigma_1.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_1, _tpcNSigmaResidual_1.value))) { // filling the map: eventID <-> selected particles1 if ((_rejectWithinNsigmaTPC != 0.0 && std::fabs(o2::aod::singletrackselector::getTPCNsigma(track, _particlePDGtoReject)) < _rejectWithinNsigmaTPC) || (_rejectWithinNsigmaTOF != 0.0 && std::fabs(o2::aod::singletrackselector::getTOFNsigma(track, _particlePDGtoReject)) < _rejectWithinNsigmaTOF)) continue; @@ -464,7 +464,7 @@ struct FemtoCorrelations { if (IsIdentical) { continue; - } else if (track.sign() != _sign_2 && (track.p() < _PIDtrshld_2 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_2, _itsNSigma_2.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_2, _tpcNSigmaResidual_2.value))) { // filling the map: eventID <-> selected particles2 if (see condition above ^) + } else if (track.sign() != _sign_2 && (track.p() < PIDtrshld_2 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_2, _itsNSigma_2.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_2, _tpcNSigmaResidual_2.value))) { // filling the map: eventID <-> selected particles2 if (see condition above ^) selectedtracks_2[track.singleCollSelId()].push_back(std::make_shared::iterator>(track)); pHisto_second->Fill(track.p()); @@ -477,9 +477,9 @@ struct FemtoCorrelations { for (const auto& collision : collisions) { if (collision.multPerc() < *_centBins.value.begin() || collision.multPerc() >= *(_centBins.value.end() - 1)) continue; - if (collision.hadronicRate() < _IRcut.value.first || collision.hadronicRate() >= _IRcut.value.second) + if (collision.hadronicRate() < IRcut.value.first || collision.hadronicRate() >= IRcut.value.second) continue; - if (collision.occupancy() < _OccupancyCut.value.first || collision.occupancy() >= _OccupancyCut.value.second) + if (collision.occupancy() < OccupancyCut.value.first || collision.occupancy() >= OccupancyCut.value.second) continue; if (_removeSameBunchPileup && !collision.isNoSameBunchPileup()) @@ -530,9 +530,9 @@ struct FemtoCorrelations { mixTracks(selectedtracks_1[col1->index()], centBin); // mixing SE identical for (unsigned int indx2 = indx1 + 1; indx2 < EvPerBin; indx2++) { // nested loop for all the combinations of collisions in a chosen mult/vertex bin - if (_MEreductionFactor.value > 1) { + if (MEreductionFactor.value > 1) { std::mt19937 mt(std::chrono::steady_clock::now().time_since_epoch().count()); - if ((mt() % (_MEreductionFactor.value + 1)) < _MEreductionFactor.value) + if ((mt() % (MEreductionFactor.value + 1)) < MEreductionFactor.value) continue; } @@ -562,9 +562,9 @@ struct FemtoCorrelations { mixTracks<0>(selectedtracks_1[col1->index()], selectedtracks_2[col1->index()], centBin); // mixing SE non-identical, in <> brackets: 0 -- SE; 1 -- ME for (unsigned int indx2 = indx1 + 1; indx2 < EvPerBin; indx2++) { // nested loop for all the combinations of collisions in a chosen mult/vertex bin - if (_MEreductionFactor.value > 1) { + if (MEreductionFactor.value > 1) { std::mt19937 mt(std::chrono::steady_clock::now().time_since_epoch().count()); - if (mt() % (_MEreductionFactor.value + 1) < _MEreductionFactor.value) + if (mt() % (MEreductionFactor.value + 1) < MEreductionFactor.value) continue; } diff --git a/PWGCF/Femto3D/Tasks/femto3dPairTaskMC.cxx b/PWGCF/Femto3D/Tasks/femto3dPairTaskMC.cxx index f1c96a319cd..5941b7ae94f 100644 --- a/PWGCF/Femto3D/Tasks/femto3dPairTaskMC.cxx +++ b/PWGCF/Femto3D/Tasks/femto3dPairTaskMC.cxx @@ -60,8 +60,8 @@ struct FemtoCorrelationsMC { Configurable _requestVertexTOForTRDmatched{"requestVertexTOFmatched", 0, "0 -> no selectio; 1 -> vertex is matched to TOF or TRD; 2 -> matched to both;"}; Configurable _requestNoCollInTimeRangeStandard{"requestNoCollInTimeRangeStandard", false, ""}; Configurable _requestIsGoodITSLayersAll{"requestIsGoodITSLayersAll", false, "cut time intervals with dead ITS staves"}; - Configurable> _IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; - Configurable> _OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; + Configurable> IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; + Configurable> OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; Configurable _min_P{"min_P", 0.0, "lower mometum limit"}; Configurable _max_P{"max_P", 100.0, "upper mometum limit"}; @@ -80,7 +80,7 @@ struct FemtoCorrelationsMC { Configurable _particlePDG_1{"particlePDG_1", 2212, "PDG code of the first particle in a pair to perform PID for (only pion, kaon, proton and deurton are supported now)"}; Configurable> _tpcNSigma_1{"tpcNSigma_1", std::vector{-3.0f, 3.0f}, "first particle PID: Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma_1{"itsNSigma_1", std::vector{-10.0f, 10.0f}, "first particle PID: Nsigma range in ITS with TPC is used"}; - Configurable _PIDtrshld_1{"PIDtrshld_1", 10.0, "first particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld_1{"PIDtrshld_1", 10.0, "first particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma_1{"tofNSigma_1", std::vector{-3.0f, 3.0f}, "first particle PID: Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual_1{"tpcNSigmaResidual_1", std::vector{-5.0f, 5.0f}, "first particle PID: residual TPC Nsigma cut to use with the TOF"}; @@ -88,7 +88,7 @@ struct FemtoCorrelationsMC { Configurable _particlePDG_2{"particlePDG_2", 2212, "PDG code of the second particle in a pair to perform PID for (only pion, kaon, proton and deurton are supported now)"}; Configurable> _tpcNSigma_2{"tpcNSigma_2", std::vector{-3.0f, 3.0f}, "second particle PID: Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma_2{"itsNSigma_2", std::vector{-10.0f, 10.0f}, "first particle PID: Nsigma range in ITS with TPC is used"}; - Configurable _PIDtrshld_2{"PIDtrshld_2", 10.0, "second particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld_2{"PIDtrshld_2", 10.0, "second particle PID: value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma_2{"tofNSigma_2", std::vector{-3.0f, 3.0f}, "second particle PID: Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual_2{"tpcNSigmaResidual_2", std::vector{-5.0f, 5.0f}, "second particle PID: residual TPC Nsigma cut to use with the TOF"}; @@ -353,9 +353,9 @@ struct FemtoCorrelationsMC { continue; if (track.template singleCollSel_as>().multPerc() < *_centBins.value.begin() || track.template singleCollSel_as>().multPerc() >= *(_centBins.value.end() - 1)) continue; - if (track.template singleCollSel_as>().hadronicRate() < _IRcut.value.first || track.template singleCollSel_as>().hadronicRate() >= _IRcut.value.second) + if (track.template singleCollSel_as>().hadronicRate() < IRcut.value.first || track.template singleCollSel_as>().hadronicRate() >= IRcut.value.second) continue; - if (track.template singleCollSel_as>().occupancy() < _OccupancyCut.value.first || track.template singleCollSel_as>().occupancy() >= _OccupancyCut.value.second) + if (track.template singleCollSel_as>().occupancy() < OccupancyCut.value.first || track.template singleCollSel_as>().occupancy() >= OccupancyCut.value.second) continue; if (_removeSameBunchPileup && !track.template singleCollSel_as>().isNoSameBunchPileup()) continue; @@ -371,7 +371,7 @@ struct FemtoCorrelationsMC { continue; unsigned int centBin = o2::aod::singletrackselector::getBinIndex(track.template singleCollSel_as>().multPerc(), _centBins); - if (track.sign() == _sign_1 && (track.p() < _PIDtrshld_1 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_1, _itsNSigma_1.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_1, _tpcNSigmaResidual_1.value))) { + if (track.sign() == _sign_1 && (track.p() < PIDtrshld_1 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_1, _itsNSigma_1.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_1, _tpcNSigmaResidual_1.value))) { trackOrigin = track.origin(); @@ -392,7 +392,7 @@ struct FemtoCorrelationsMC { if (IsIdentical) { continue; - } else if (track.sign() != _sign_2 && !TOFselection(track, std::make_pair(_particlePDGtoReject, _rejectWithinNsigmaTOF)) && (track.p() < _PIDtrshld_2 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_2, _itsNSigma_2.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_2, _tpcNSigmaResidual_2.value))) { // filling the map: eventID <-> selected particles2 if (see condition above ^) + } else if (track.sign() != _sign_2 && !TOFselection(track, std::make_pair(_particlePDGtoReject, _rejectWithinNsigmaTOF)) && (track.p() < PIDtrshld_2 ? o2::aod::singletrackselector::TPCselection(track, TPCcuts_2, _itsNSigma_2.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts_2, _tpcNSigmaResidual_2.value))) { // filling the map: eventID <-> selected particles2 if (see condition above ^) trackOrigin = track.origin(); @@ -415,9 +415,9 @@ struct FemtoCorrelationsMC { for (const auto& collision : collisions) { if (collision.multPerc() < *_centBins.value.begin() || collision.multPerc() >= *(_centBins.value.end() - 1)) continue; - if (collision.hadronicRate() < _IRcut.value.first || collision.hadronicRate() >= _IRcut.value.second) + if (collision.hadronicRate() < IRcut.value.first || collision.hadronicRate() >= IRcut.value.second) continue; - if (collision.occupancy() < _OccupancyCut.value.first || collision.occupancy() >= _OccupancyCut.value.second) + if (collision.occupancy() < OccupancyCut.value.first || collision.occupancy() >= OccupancyCut.value.second) continue; if (_removeSameBunchPileup && !collision.isNoSameBunchPileup()) diff --git a/PWGCF/Femto3D/Tasks/femto3dQA.cxx b/PWGCF/Femto3D/Tasks/femto3dQA.cxx index 5e218e1a938..1fdc0cb6fc7 100644 --- a/PWGCF/Femto3D/Tasks/femto3dQA.cxx +++ b/PWGCF/Femto3D/Tasks/femto3dQA.cxx @@ -59,8 +59,8 @@ struct QAHistograms { Configurable _requestVertexTOForTRDmatched{"requestVertexTOFmatched", 0, "0 -> no selectio; 1 -> vertex is matched to TOF or TRD; 2 -> matched to both;"}; Configurable _requestNoCollInTimeRangeStandard{"requestNoCollInTimeRangeStandard", false, ""}; Configurable _requestIsGoodITSLayersAll{"requestIsGoodITSLayersAll", false, "cut time intervals with dead ITS staves"}; - Configurable> _IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; - Configurable> _OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; + Configurable> IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; + Configurable> OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; Configurable _sign{"sign", 1, "sign of a track"}; Configurable _vertexZ{"VertexZ", 10.0, "abs vertexZ value limit"}; @@ -78,7 +78,7 @@ struct QAHistograms { Configurable _particlePDG{"particlePDG", 2212, "PDG code of a particle to perform PID for"}; Configurable> _tpcNSigma{"tpcNSigma", std::vector{-4.0f, 4.0f}, "Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma{"itsNSigma", std::vector{-10.0f, 10.0f}, "Nsigma range in ITS to use along with TPC"}; - Configurable _PIDtrshld{"PIDtrshld", 10.0, "value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld{"PIDtrshld", 10.0, "value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma{"tofNSigma", std::vector{-4.0f, 4.0f}, "Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual{"tpcNSigmaResidual", std::vector{-5.0f, 5.0f}, "residual TPC Nsigma cut to use with the TOF"}; @@ -192,9 +192,9 @@ struct QAHistograms { continue; if (collision.multPerc() < _centCut.value.first || collision.multPerc() >= _centCut.value.second) continue; - if (collision.hadronicRate() < _IRcut.value.first || collision.hadronicRate() >= _IRcut.value.second) + if (collision.hadronicRate() < IRcut.value.first || collision.hadronicRate() >= IRcut.value.second) continue; - if (collision.occupancy() < _OccupancyCut.value.first || collision.occupancy() >= _OccupancyCut.value.second) + if (collision.occupancy() < OccupancyCut.value.first || collision.occupancy() >= OccupancyCut.value.second) continue; registry.fill(HIST("posZ"), collision.posZ()); @@ -222,9 +222,9 @@ struct QAHistograms { continue; if (track.template singleCollSel_as().multPerc() < _centCut.value.first || track.template singleCollSel_as().multPerc() >= _centCut.value.second) continue; - if (track.template singleCollSel_as().hadronicRate() < _IRcut.value.first || track.template singleCollSel_as().hadronicRate() >= _IRcut.value.second) + if (track.template singleCollSel_as().hadronicRate() < IRcut.value.first || track.template singleCollSel_as().hadronicRate() >= IRcut.value.second) continue; - if (track.template singleCollSel_as().occupancy() < _OccupancyCut.value.first || track.template singleCollSel_as().occupancy() >= _OccupancyCut.value.second) + if (track.template singleCollSel_as().occupancy() < OccupancyCut.value.first || track.template singleCollSel_as().occupancy() >= OccupancyCut.value.second) continue; if ((track.tpcFractionSharedCls()) > _tpcFractionSharedCls || (track.itsNCls()) < _itsNCls) continue; @@ -236,7 +236,7 @@ struct QAHistograms { registry.fill(HIST("TOFSignal_nocuts"), track.p(), track.beta()); } - if (track.p() < _PIDtrshld ? o2::aod::singletrackselector::TPCselection(track, TPCcuts, _itsNSigma.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts, _tpcNSigmaResidual.value)) { + if (track.p() < PIDtrshld ? o2::aod::singletrackselector::TPCselection(track, TPCcuts, _itsNSigma.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts, _tpcNSigmaResidual.value)) { if ((_rejectWithinNsigmaTPC != 0.0 && std::fabs(o2::aod::singletrackselector::getTPCNsigma(track, _particlePDGtoReject)) < _rejectWithinNsigmaTPC) || (_rejectWithinNsigmaTOF != 0.0 && std::fabs(o2::aod::singletrackselector::getTOFNsigma(track, _particlePDGtoReject)) < _rejectWithinNsigmaTOF)) continue; diff --git a/PWGCF/Femto3D/Tasks/multEstimator.cxx b/PWGCF/Femto3D/Tasks/multEstimator.cxx index aba6dd2da66..b40ccf1f4cb 100644 --- a/PWGCF/Femto3D/Tasks/multEstimator.cxx +++ b/PWGCF/Femto3D/Tasks/multEstimator.cxx @@ -80,8 +80,8 @@ struct multEstimator { Configurable _requestNoCollInTimeRangeStandard{"requestNoCollInTimeRangeStandard", false, ""}; Configurable _requestIsGoodITSLayersAll{"requestIsGoodITSLayersAll", false, "cut time intervals with dead ITS staves"}; // Configurable fetchRate{"fetchRate", true, "Fetch the hadronic rate from the CCDB"}; - Configurable> _IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; - Configurable> _OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; + Configurable> IRcut{"IRcut", std::pair{0.f, 100.f}, "[min., max.] IR range to keep events within"}; + Configurable> OccupancyCut{"OccupancyCut", std::pair{0, 10000}, "[min., max.] occupancy range to keep events within"}; Configurable _sign{"sign", 1, "sign of a track"}; Configurable _min_P{"min_P", 0.0, "lower mometum limit"}; @@ -106,7 +106,7 @@ struct multEstimator { Configurable _particlePDG{"particlePDG", 2212, "PDG code of a particle to perform PID for (only pion, kaon, proton and deurton are supported now)"}; Configurable> _tpcNSigma{"tpcNSigma", std::vector{-4.0f, 4.0f}, "Nsigma range in TPC before the TOF is used"}; Configurable> _itsNSigma{"itsNSigma", std::vector{-10.0f, 10.0f}, "Nsigma range in ITS to use along with TPC"}; - Configurable _PIDtrshld{"PIDtrshld", 10.0, "value of momentum from which the PID is done with TOF (before that only TPC is used)"}; + Configurable PIDtrshld{"PIDtrshld", 10.0, "value of momentum from which the PID is done with TOF (before that only TPC is used)"}; Configurable> _tofNSigma{"tofNSigma", std::vector{-4.0f, 4.0f}, "Nsigma range in TOF"}; Configurable> _tpcNSigmaResidual{"tpcNSigmaResidual", std::vector{-5.0f, 5.0f}, "residual TPC Nsigma cut to use with the TOF"}; @@ -287,7 +287,7 @@ struct multEstimator { if (_requestIsGoodITSLayersAll && !collision.selection_bit(evsel::kIsGoodITSLayersAll)) continue; - if (occupancy < _OccupancyCut.value.first || occupancy >= _OccupancyCut.value.second) + if (occupancy < OccupancyCut.value.first || occupancy >= OccupancyCut.value.second) continue; if (track.tofChi2() > _maxTofChi2) continue; @@ -304,7 +304,7 @@ struct multEstimator { if (o2::aod::singletrackselector::TOFselection(track, std::make_pair(_particlePDGtoReject, _rejectWithinNsigmaTOF))) continue; - if (track.p() < _PIDtrshld ? o2::aod::singletrackselector::TPCselection(track, TPCcuts, _itsNSigma.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts, _tpcNSigmaResidual.value)) { + if (track.p() < PIDtrshld ? o2::aod::singletrackselector::TPCselection(track, TPCcuts, _itsNSigma.value) : o2::aod::singletrackselector::TOFselection(track, TOFcuts, _tpcNSigmaResidual.value)) { ITShisto->Fill(track.p(), o2::aod::singletrackselector::getITSNsigma(track, _particlePDG)); TPChisto->Fill(track.p(), o2::aod::singletrackselector::getTPCNsigma(track, _particlePDG)); TOFhisto->Fill(track.p(), o2::aod::singletrackselector::getTOFNsigma(track, _particlePDG));