Skip to content

Commit 32159e7

Browse files
committed
Add getTgl method to MCTrack
1 parent 5ad9b1e commit 32159e7

File tree

1 file changed

+6
-0
lines changed
  • DataFormats/simulation/include/SimulationDataFormat

1 file changed

+6
-0
lines changed

DataFormats/simulation/include/SimulationDataFormat/MCTrack.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ class MCTrackT
139139
}
140140
}
141141

142+
Double_t GetTgl() const
143+
{
144+
auto pT = GetPt();
145+
return pT > 1e-6 ? mStartVertexMomentumZ / pT : (GetStartVertexMomentumZ() > 0 ? 999. : -999.);
146+
}
147+
142148
Double_t GetTheta() const
143149
{
144150
double mz(mStartVertexMomentumZ);

0 commit comments

Comments
 (0)