Skip to content

Commit 62cc32b

Browse files
authored
custom tpc pid + separate eta selection for V0 daughters + avoid LUT in propagation for now (#5644)
1 parent c71f573 commit 62cc32b

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

PWGLF/Tasks/Nuspex/antidLambdaEbye.cxx

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using namespace o2;
4444
using namespace o2::framework;
4545
using namespace o2::framework::expressions;
4646

47-
using TracksFull = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksCov, aod::TracksDCA, aod::pidTPCDe, aod::pidTPCPr, aod::pidTPCPi, aod::TOFSignal, aod::TOFEvTime>;
47+
using TracksFull = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksCov, aod::TracksDCA, aod::TOFSignal, aod::TOFEvTime>;
4848
using BCsWithRun2Info = soa::Join<aod::BCs, aod::Run2BCInfos, aod::Timestamps>;
4949

5050
namespace
@@ -167,7 +167,7 @@ struct antidLambdaEbye {
167167
int nSubsamples;
168168

169169
float d_bz;
170-
o2::base::MatLayerCylSet* lut = nullptr;
170+
// o2::base::MatLayerCylSet* lut = nullptr;
171171

172172
Configurable<int> cfgMaterialCorrection{"cfgMaterialCorrection", static_cast<int>(o2::base::Propagator::MatCorrType::USEMatCorrNONE), "Type of material correction"};
173173
Configurable<LabeledArray<double>> cfgBetheBlochParams{"cfgBetheBlochParams", {betheBlochDefault[0], 2, 6, particleNamesBB, betheBlochParNames}, "TPC Bethe-Bloch parameterisation for deuteron"};
@@ -205,6 +205,7 @@ struct antidLambdaEbye {
205205

206206
Configurable<float> zVtxMax{"zVtxMax", 10.0f, "maximum z position of the primary vertex"};
207207
Configurable<float> etaMax{"etaMax", 0.8f, "maximum eta"};
208+
Configurable<float> etaMaxV0dau{"etaMaxV0dau", 0.8f, "maximum eta V0 daughters"};
208209

209210
Configurable<bool> fillOnlySignal{"fillOnlySignal", false, "fill histograms only for true signal candidates (MC)"};
210211

@@ -276,23 +277,10 @@ struct antidLambdaEbye {
276277
Preslice<TracksFull> perCollisionTracksFull = o2::aod::track::collisionId;
277278
Preslice<aod::McParticles> perCollisionMcParts = o2::aod::mcparticle::mcCollisionId;
278279

279-
template <class RecV0>
280-
bool selectLambda(RecV0 const& v0) // TODO: apply ML
281-
{
282-
if (std::abs(v0.eta()) > etaMax ||
283-
v0.v0cosPA() < v0setting_cospa ||
284-
v0.v0radius() < v0setting_radius) {
285-
return false;
286-
}
287-
if (std::abs(v0.mK0Short() - o2::constants::physics::MassK0Short) < vetoMassK0Short)
288-
return false;
289-
return true;
290-
}
291-
292280
template <class T>
293281
bool selectV0Daughter(T const& track)
294282
{
295-
if (std::abs(track.eta()) > etaMax) {
283+
if (std::abs(track.eta()) > etaMaxV0dau) {
296284
return false;
297285
}
298286
if (track.itsNCls() < v0trackNclusItsCut ||
@@ -403,8 +391,9 @@ struct antidLambdaEbye {
403391
// Fetch magnetic field from ccdb for current collision
404392
d_bz = o2::base::Propagator::Instance()->getNominalBz();
405393
LOG(info) << "Retrieved GRP for timestamp " << timestamp << " with magnetic field of " << d_bz << " kG";
394+
fitter.setBz(d_bz);
406395

407-
o2::base::Propagator::Instance()->setMatLUT(lut);
396+
// o2::base::Propagator::Instance()->setMatLUT(lut);
408397
}
409398

410399
void init(o2::framework::InitContext&)
@@ -416,7 +405,7 @@ struct antidLambdaEbye {
416405
ccdb->setCaching(true);
417406
ccdb->setLocalObjectValidityChecking();
418407
ccdb->setFatalWhenNull(false);
419-
lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->get<o2::base::MatLayerCylSet>("GLO/Param/MatLUT"));
408+
// lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->get<o2::base::MatLayerCylSet>("GLO/Param/MatLUT"));
420409

421410
fitter.setPropagateToPCA(true);
422411
fitter.setMaxR(200.);

0 commit comments

Comments
 (0)