Skip to content

Commit d1e87c1

Browse files
committed
Add configurable for inclination factoring
1 parent b259474 commit d1e87c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ struct strangenesstofpid {
9797
Configurable<int> calculationMethod{"calculationMethod", 0, "algorithm for TOF calculation. 0: fast analytical withouot eloss, 1: O2 Propagator + trackLTIntegral (slow), 2: both methods and do comparison studies (slow)"};
9898
Configurable<int> calculateV0s{"calculateV0s", -1, "calculate V0-related TOF PID (0: no, 1: yes, -1: auto)"};
9999
Configurable<int> calculateCascades{"calculateCascades", -1, "calculate cascade-related TOF PID (0: no, 1: yes, -1: auto)"};
100+
Configurable<bool> correctELossInclination{"correctELossInclination", true, "factor out inclination when doing effective e-loss correction (0: no, 1: yes)"};
100101

101102
// Operation and minimisation criteria
102103
Configurable<double> d_bz_input{"d_bz", -999, "bz field, -999 is automatic"};
@@ -850,6 +851,9 @@ struct strangenesstofpid {
850851
// length factor due to eta (to offset e-loss)
851852
float positiveCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
852853
float negativeCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
854+
if(correctELossInclination.value==false){
855+
negativeCosine = positiveCosine = 1.0f;
856+
}
853857

854858
if (pTra.hasTOF()) {
855859
if (v0.v0cosPA() > v0Group.qaCosPA && v0.dcaV0daughters() < v0Group.qaDCADau) {
@@ -1138,6 +1142,9 @@ struct strangenesstofpid {
11381142
float positiveCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
11391143
float negativeCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
11401144
float bachelorCosine = 1.0f/sqrt(1.0f + bachTrack.getTgl() * bachTrack.getTgl());
1145+
if(correctELossInclination.value==false){
1146+
negativeCosine = positiveCosine = bachelorCosine = 1.0f;
1147+
}
11411148

11421149
if (cascade.dcaV0daughters() < cascadeGroup.qaV0DCADau && cascade.dcacascdaughters() < cascadeGroup.qaCascDCADau && cascade.v0cosPA(collision.getX(), collision.getY(), collision.getZ()) > cascadeGroup.qaV0CosPA && cascade.casccosPA(collision.getX(), collision.getY(), collision.getZ()) > cascadeGroup.qaCascCosPA) {
11431150
if (cascade.sign() < 0) {

0 commit comments

Comments
 (0)