Skip to content

Commit fd7d5c0

Browse files
authored
PWGCF / FemtoUniverse : Updating the CentFT0C table in Table Producer tasks (#4633)
* Adding cent selection for Run3 Only * Adding CentFT0C only for Run3 * Removing CentFT0C table * Removing CentFT0C table * Removing CentFT0C table
1 parent e0122d3 commit fd7d5c0

File tree

5 files changed

+31
-23
lines changed

5 files changed

+31
-23
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseCollisionSelection.h

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,30 @@ class FemtoUniverseCollisionSelection
9696
if (std::abs(col.posZ()) > mZvtxMax) {
9797
return false;
9898
}
99-
if (mCheckIsRun3) {
100-
if (mCheckOffline && !col.sel8()) {
101-
return false;
102-
}
103-
if ((col.centFT0C() < mCentMin) || (col.centFT0C() > mCentMax)) {
104-
return false;
105-
}
106-
} else {
107-
if (mCheckTrigger && !col.alias_bit(mTrigger)) {
108-
return false;
109-
}
110-
if (mCheckOffline && !col.sel7()) {
111-
return false;
112-
}
99+
if (mCheckTrigger && !col.alias_bit(mTrigger)) {
100+
return false;
101+
}
102+
if (mCheckOffline && !col.sel7()) {
103+
return false;
104+
}
105+
return true;
106+
}
107+
108+
/// Check whether the collisions fulfills the specified selections for Run3
109+
/// \tparam T type of the collision
110+
/// \param col Collision
111+
/// \return whether or not the collisions fulfills the specified selections
112+
template <typename T>
113+
bool isSelectedRun3(T const& col)
114+
{
115+
if (std::abs(col.posZ()) > mZvtxMax) {
116+
return false;
117+
}
118+
if (mCheckOffline && !col.sel8()) {
119+
return false;
120+
}
121+
if ((col.centFT0C() < mCentMin) || (col.centFT0C() > mCentMax)) {
122+
return false;
113123
}
114124
return true;
115125
}

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerMCTruthTask.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ using namespace o2::framework::expressions;
4747
namespace o2::aod
4848
{
4949

50-
using FemtoFullCollisionMC = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs, aod::McCollisionLabels>::iterator;
50+
using FemtoFullCollisionMC = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::McCollisionLabels>::iterator;
5151

5252
} // namespace o2::aod
5353

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerReducedTask.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ namespace o2::aod
4848

4949
using FemtoFullCollision = soa::Join<aod::Collisions,
5050
aod::EvSels,
51-
aod::Mults,
52-
aod::CentFT0Cs>::iterator;
51+
aod::Mults>::iterator;
5352
using FemtoFullCollisionMC = soa::Join<aod::Collisions,
5453
aod::EvSels,
5554
aod::Mults,
56-
aod::CentFT0Cs,
5755
aod::McCollisionLabels>::iterator;
5856

5957
using FemtoFullTracks = soa::Join<aod::FullTracks, aod::TracksDCA,

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ namespace o2::aod
5555
{
5656

5757
using FemtoFullCollision =
58-
soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs>::iterator;
58+
soa::Join<aod::Collisions, aod::EvSels, aod::Mults>::iterator;
5959
using FemtoFullCollisionCentRun2 =
60-
soa::Join<aod::Collisions, aod::EvSels, aod::CentRun2V0Ms, aod::CentFT0Cs>::iterator;
60+
soa::Join<aod::Collisions, aod::EvSels, aod::CentRun2V0Ms>::iterator;
6161
using FemtoFullCollisionCentRun3 =
6262
soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs>::iterator;
63-
using FemtoFullCollisionMC = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs, aod::McCollisionLabels>::iterator;
63+
using FemtoFullCollisionMC = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::McCollisionLabels>::iterator;
6464

6565
using FemtoFullTracks =
6666
soa::Join<aod::FullTracks, aod::TracksDCA, aod::TOFSignal, aod::pidTPCEl, aod::TrackSelection,
@@ -594,7 +594,7 @@ struct femtoUniverseProducerTask {
594594
// in case of skimming run - don't store such collisions
595595
// in case of trigger run - store such collisions but don't store any
596596
// particle candidates for such collisions
597-
if (!colCuts.isSelected(col)) {
597+
if (!colCuts.isSelectedRun3(col)) {
598598
if (ConfIsTrigger) {
599599
outputCollision(vtxZ, cent, multNtr, spher, mMagField); //////
600600
}

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTaskV0Only.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace o2::aod
4444
{
4545

4646
using FemtoFullCollision =
47-
soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs>::iterator;
47+
soa::Join<aod::Collisions, aod::EvSels, aod::Mults>::iterator;
4848
using FemtoFullTracks =
4949
soa::Join<aod::FullTracks, aod::TracksDCA, aod::TOFSignal, aod::pidTPCEl,
5050
aod::pidTPCMu, aod::pidTPCPi, aod::pidTPCKa, aod::pidTPCPr,

0 commit comments

Comments
 (0)