Skip to content

Commit ceaefa7

Browse files
committed
Fix default config values. Apply cuts only with valid conifg.
1 parent 1a0f692 commit ceaefa7

File tree

1 file changed

+34
-26
lines changed

1 file changed

+34
-26
lines changed

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3323,20 +3323,20 @@ struct HfTrackIndexSkimCreatorLfCascades {
33233323
Configurable<float> ptMinOmegaczeroToOmegaKaLfCasc{"ptMinOmegaczeroToOmegaKaLfCasc", 0.f, "min. pT for Omegaczero in Omega + Ka decays"};
33243324
Configurable<float> ptMinXicZeroOmegacZeroToXiPiLfCasc{"ptMinXicZeroOmegacZeroToXiPiLfCasc", 0.f, "min. pT for XicZeroOmegacZero in Xi + Pi decays"};
33253325
Configurable<float> ptMinXicplusLfCasc{"ptMinXicplusLfCasc", 0.f, "min. pT for Xicplus in Xi + Pi + Pi decays"};
3326-
Configurable<float> v0TransvRadius{"v0TransvRadius", 1.0, "V0 radius in xy plane"}; // 1.2 (xi) and 1.1 (omega) in run2
3327-
Configurable<float> cascTransvRadius{"cascTransvRadius", 0.4, "Cascade radius in xy plane"}; // 0.5 cm (xi) and 0.6 (omega) in run2
3328-
Configurable<float> decayLengthXicMin{"decayLengthXicMin", 0.4, "Min. decay length of Xic"}; // ...
3329-
Configurable<float> dcaBachToPv{"dcaBachToPv", 0.03, "DCA Bach To PV"}; // 0.04 in run2
3330-
Configurable<float> dcaV0ToPv{"dcaV0ToPv", 0.02, "DCA V0 To PV"}; // 0.03 in run2
3331-
Configurable<double> v0CosPA{"v0CosPA", 0.95, "V0 CosPA"}; // 0.97 in run2 - KEEP LOSE to re-cut after PVRefit! - double -> N.B. dcos(x)/dx = 0 at x=0)
3332-
Configurable<double> cascCosPA{"cascCosPA", 0.95, "Casc CosPA"}; // 0.97 in run2 - KEEP LOSE to re-cut after PVRefit! - double -> N.B. dcos(x)/dx = 0 at x=0)
3333-
Configurable<double> xicCosPA{"xicCosPA", 0.95, "Xic CosPA"}; // ...
3334-
Configurable<float> dcaV0Dau{"dcaV0Dau", 2.0, "DCA V0 Daughters"}; // conservative, a cut ar 1.0 should also be fine
3335-
Configurable<float> dcaCascDau{"dcaCascDau", 2.0, "DCA Casc Daughters"}; // conservative, a cut ar 1.0 should also be fine
3336-
Configurable<float> dcaNegToPv{"dcaNegToPv", 0.05, "DCA Neg To PV"}; // 0.06 in run2
3337-
Configurable<float> dcaPosToPv{"dcaPosToPv", 0.05, "DCA Pos To PV"}; // 0.06 in run2
3338-
Configurable<float> v0MassWindow{"v0MassWindow", 0.01, "V0 mass window"}; // 0.008 in run2
3339-
Configurable<float> cascadeMassWindow{"cascadeMassWindow", 0.01, "Cascade mass window"};
3326+
Configurable<float> v0TransvRadius{"v0TransvRadius", 1.f, "V0 radius in xy plane"}; // 1.2 (xi) and 1.1 (omega) in run2
3327+
Configurable<float> cascTransvRadius{"cascTransvRadius", 0.4f, "Cascade radius in xy plane"}; // 0.5 cm (xi) and 0.6 (omega) in run2
3328+
Configurable<float> decayLengthXicMin{"decayLengthXicMin", -1.f, "Min. decay length of Xic"}; // ...
3329+
Configurable<float> dcaBachToPv{"dcaBachToPv", 0.03f, "DCA Bach To PV"}; // 0.04 in run2
3330+
Configurable<float> dcaV0ToPv{"dcaV0ToPv", 0.02f, "DCA V0 To PV"}; // 0.03 in run2
3331+
Configurable<double> v0CosPA{"v0CosPA", 0.95, "V0 CosPA"}; // 0.97 in run2 - KEEP LOSE to re-cut after PVRefit! - double -> N.B. dcos(x)/dx = 0 at x=0)
3332+
Configurable<double> cascCosPA{"cascCosPA", 0.95, "Casc CosPA"}; // 0.97 in run2 - KEEP LOSE to re-cut after PVRefit! - double -> N.B. dcos(x)/dx = 0 at x=0)
3333+
Configurable<double> xicCosPA{"xicCosPA", 0.95, "Xic CosPA"}; // ...
3334+
Configurable<float> dcaV0Dau{"dcaV0Dau", 2.f, "DCA V0 Daughters"}; // conservative, a cut ar 1.0 should also be fine
3335+
Configurable<float> dcaCascDau{"dcaCascDau", 2.f, "DCA Casc Daughters"}; // conservative, a cut ar 1.0 should also be fine
3336+
Configurable<float> dcaNegToPv{"dcaNegToPv", 0.05f, "DCA Neg To PV"}; // 0.06 in run2
3337+
Configurable<float> dcaPosToPv{"dcaPosToPv", 0.05f, "DCA Pos To PV"}; // 0.06 in run2
3338+
Configurable<float> v0MassWindow{"v0MassWindow", 0.01f, "V0 mass window"}; // 0.008 in run2
3339+
Configurable<float> cascadeMassWindow{"cascadeMassWindow", 0.01f, "Cascade mass window"};
33403340

33413341
// magnetic field setting from CCDB
33423342
Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"};
@@ -3501,9 +3501,11 @@ struct HfTrackIndexSkimCreatorLfCascades {
35013501
bool isPreselectedCandidateXic(T1 const& pVecTrack0, T1 const& pVecTrack1, T1 const& pVecTrack2)
35023502
{
35033503
// pt
3504-
auto pt = RecoDecay::pt(pVecTrack0, pVecTrack1, pVecTrack2) + config.ptTolerance; // add tolerance because of no reco decay vertex
3505-
if (pt < config.ptMinXicplusLfCasc) {
3506-
return false;
3504+
if (config.ptMinXicplusLfCasc > 0.f) {
3505+
auto pt = RecoDecay::pt(pVecTrack0, pVecTrack1, pVecTrack2) + config.ptTolerance; // add tolerance because of no reco decay vertex
3506+
if (pt < config.ptMinXicplusLfCasc) {
3507+
return false;
3508+
}
35073509
}
35083510

35093511
// invariant mass
@@ -3529,21 +3531,27 @@ struct HfTrackIndexSkimCreatorLfCascades {
35293531
bool isSelectedCandidateXic(const T1& pVecCand, const T2& secVtx, const T3& primVtx)
35303532
{
35313533
// pt
3532-
auto pt = RecoDecay::pt(pVecCand);
3533-
if (pt <= config.ptMinXicplusLfCasc) {
3534-
return false;
3534+
if (config.ptMinXicplusLfCasc > 0.f) {
3535+
auto pt = RecoDecay::pt(pVecCand);
3536+
if (pt <= config.ptMinXicplusLfCasc) {
3537+
return false;
3538+
}
35353539
}
35363540

35373541
// CPA
3538-
auto cpa = RecoDecay::cpa(primVtx, secVtx, pVecCand);
3539-
if (cpa < config.xicCosPA) {
3540-
return false;
3542+
if (config.xicCosPA > -1.f) {
3543+
auto cpa = RecoDecay::cpa(primVtx, secVtx, pVecCand);
3544+
if (cpa < config.xicCosPA) {
3545+
return false;
3546+
}
35413547
}
35423548

35433549
// decay length
3544-
auto decayLength = RecoDecay::distance(primVtx, secVtx);
3545-
if (decayLength < config.decayLengthXicMin) {
3546-
return false;
3550+
if (config.decayLengthXicMin > 0.f) {
3551+
auto decayLength = RecoDecay::distance(primVtx, secVtx);
3552+
if (decayLength < config.decayLengthXicMin) {
3553+
return false;
3554+
}
35473555
}
35483556

35493557
return true;

0 commit comments

Comments
 (0)