Skip to content

Commit 96f0dc5

Browse files
authored
Merge pull request #12 from JETSCAPE/pt_broadening_fix
applies Ritoban's pT-broadening fix from JETSCAPE
2 parents 9f3273b + 1a326ae commit 96f0dc5

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/jet/LBT.cc

+5
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ void LBT::DoEnergyLoss(double deltaT, double time, double Q2,
191191
return;
192192
}
193193

194+
if (pIn[0].pstat()==101) {
195+
// pOut.push_back(pIn[0]);
196+
// JSINFO << BOLDYELLOW << " broadenend parton rejected by LBT ";
197+
return;
198+
}
194199
// pass particle infomation to LBT array (only pass one particle each time)
195200

196201
jetClean();

src/jet/Matter.cc

+13-4
Original file line numberDiff line numberDiff line change
@@ -1681,13 +1681,17 @@ void Matter::DoEnergyLoss(double deltaT, double time, double Q2,
16811681
energy -= drag;
16821682
pOut[iout].reset_momentum(px, py, pz, energy);
16831683
}
1684-
1684+
pOut[iout].set_stat(101);
16851685
VERBOSE(8) << BOLDYELLOW << " p after b & d, E = " << energy
16861686
<< " pz = " << pz << " px = " << px << " py = " << py;
16871687
}
1688-
1688+
else{
1689+
pOut.push_back(pIn[i]);
1690+
}
16891691
} // end if(broadening_on)
1692+
else{
16901693
pOut.push_back(pIn[i]);
1694+
}
16911695
}
16921696
} else { // virtuality too low lets broaden it
16931697

@@ -1837,13 +1841,18 @@ void Matter::DoEnergyLoss(double deltaT, double time, double Q2,
18371841
energy -= drag;
18381842
pOut[iout].reset_momentum(px, py, pz, energy);
18391843
}
1840-
1844+
pOut[iout].set_stat(101);
18411845
VERBOSE(8) << BOLDYELLOW << " p after b & d, E = " << energy
18421846
<< " pz = " << pz << " px = " << px << " py = " << py;
18431847
}
1844-
1848+
else{
1849+
pOut.push_back(pIn[i]);
1850+
}
18451851
//pOut.push_back(pIn[i]);
18461852
}
1853+
else{
1854+
pOut.push_back(pIn[i]);
1855+
}
18471856
}
18481857

18491858
} // particle loop

0 commit comments

Comments
 (0)