Skip to content

Commit d673544

Browse files
committed
do not include electrons in TOF cut
1 parent a7c202a commit d673544

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ struct TreeWriterTpcV0 {
8383
constexpr static float NSigmaTofUnmatched{-1e6f};
8484
constexpr static float NSigmaTofUnmatchedEqualityTolerance{1000.f};
8585

86+
// an arbitrary value of "N sigma TOF" assigned to electorns (for uniformity reasons)
87+
constexpr static float NSigmaTofElectorn{1000.f};
88+
8689
/// Configurables
8790
Configurable<float> nSigmaTofDauTrackPi{"nSigmaTofDauTrackPi", 999.f, "n-sigma TOF cut on the pion daughter tracks"};
8891
Configurable<float> nSigmaTofDauTrackPr{"nSigmaTofDauTrackPr", 999.f, "n-sigma TOF cut on the proton daughter tracks"};
89-
Configurable<float> nSigmaTofDauTrackEl{"nSigmaTofDauTrackEl", 999.f, "n-sigma TOF cut on the electron daughter tracks"};
9092
Configurable<float> nSigmaTofDauTrackKa{"nSigmaTofDauTrackKa", 999.f, "n-sigma TOF cut on the kaon daughter tracks"};
9193
Configurable<bool> rejectNoTofDauTrackPi{"rejectNoTofDauTrackPi", false, "reject not matched to TOF pion daughter tracks"};
9294
Configurable<bool> rejectNoTofDauTrackPr{"rejectNoTofDauTrackPr", false, "reject not matched to TOF proton daughter tracks"};
93-
Configurable<bool> rejectNoTofDauTrackEl{"rejectNoTofDauTrackEl", false, "reject not matched to TOF electron daughter tracks"};
9495
Configurable<bool> rejectNoTofDauTrackKa{"rejectNoTofDauTrackKa", false, "reject not matched to TOF kaon daughter tracks"};
9596
Configurable<float> nClNorm{"nClNorm", 152., "Number of cluster normalization. Run 2: 159, Run 3 152"};
9697
Configurable<int> applyEvSel{"applyEvSel", 2, "Flag to apply rapidity cut: 0 -> no event selection, 1 -> Run 2 event selection, 2 -> Run 3 event selection"};
@@ -148,7 +149,7 @@ struct TreeWriterTpcV0 {
148149
{
149150
switch (daughterId) {
150151
case DaughterElectron:
151-
return V0Daughter{downsamplingTsalisElectrons, MassElectron, maxPt4dwnsmplTsalisElectrons, track.tpcNSigmaEl(), getStrangenessTofNSigma(v0Casc, motherId, daughterId, isPositive), track.tpcExpSignalEl(tpcSignalGeneric<IsCorrectedDeDx>(track)), PidElectron, dwnSmplFactorEl, nSigmaTofDauTrackEl, rejectNoTofDauTrackEl};
152+
return V0Daughter{downsamplingTsalisElectrons, MassElectron, maxPt4dwnsmplTsalisElectrons, track.tpcNSigmaEl(), getStrangenessTofNSigma(v0Casc, motherId, daughterId, isPositive), track.tpcExpSignalEl(tpcSignalGeneric<IsCorrectedDeDx>(track)), PidElectron, dwnSmplFactorEl, NSigmaTofElectorn + 1.f, false};
152153
case DaughterPion:
153154
return V0Daughter{downsamplingTsalisPions, MassPiPlus, maxPt4dwnsmplTsalisPions, track.tpcNSigmaPi(), getStrangenessTofNSigma(v0Casc, motherId, daughterId, isPositive), track.tpcExpSignalPi(tpcSignalGeneric<IsCorrectedDeDx>(track)), PidPion, dwnSmplFactorPi, nSigmaTofDauTrackPi, rejectNoTofDauTrackPi};
154155
case DaughterProton:
@@ -188,7 +189,7 @@ struct TreeWriterTpcV0 {
188189
float getStrangenessTofNSigma(V0sWithID::iterator const& v0, const int motherId, const int daughterId, const bool isPositive)
189190
{
190191
if (motherId == MotherGamma && daughterId == DaughterElectron) {
191-
return -999.f;
192+
return NSigmaTofElectorn;
192193
} else if (motherId == MotherK0S && daughterId == DaughterPion) {
193194
if (isPositive)
194195
return v0.tofNSigmaK0PiPlus();

0 commit comments

Comments
 (0)