ATLAS Offline Software
Public Member Functions | List of all members
Beamspot::TrackPTSort Class Reference
Collaboration diagram for Beamspot::TrackPTSort:

Public Member Functions

bool operator() (const Trk::Track *trk1, const Trk::Track *trk2)
 

Detailed Description

Definition at line 44 of file T2VertexBeamSpotTool.cxx.

Member Function Documentation

◆ operator()()

bool Beamspot::TrackPTSort::operator() ( const Trk::Track trk1,
const Trk::Track trk2 
)
inline

Definition at line 46 of file T2VertexBeamSpotTool.cxx.

47  {
48  const Trk::TrackParameters* params1 = trk1->perigeeParameters();
49  float pT1 = std::abs(sin(params1->parameters()[Trk::theta])/params1->parameters()[Trk::qOverP]);
50  const Trk::TrackParameters* params2 = trk2->perigeeParameters();
51  float pT2 = std::abs(sin(params2->parameters()[Trk::theta])/params2->parameters()[Trk::qOverP]);
52  return pT1 > pT2;
53  }

The documentation for this class was generated from the following file:
Trk::theta
@ theta
Definition: ParamDefs.h:66
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::Track::perigeeParameters
const Perigee * perigeeParameters() const
return Perigee.
Definition: Tracking/TrkEvent/TrkTrack/src/Track.cxx:163
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36