#include <BeamspotVertexPreProcessor.h>
◆ CompareTwoTracks()
Trk::CompareTwoTracks::CompareTwoTracks |
( |
const Track * |
track, |
|
|
const std::string & |
compareMethod |
|
) |
| |
|
inline |
◆ operator()()
Definition at line 218 of file BeamspotVertexPreProcessor.cxx.
220 ITrackLink* trkLink = vtxTrk.trackOrParticleLink();
222 if(!linkToTrackParticle)
return false;
223 const TrackParticleBase* tpb = *(linkToTrackParticle->cptr());
225 const Track* originalTrk = tpb->originalTrack();
229 if(
m_method.find(
"compareAddress") != std::string::npos){
235 if(
m_method.find(
"comparePerigee") != std::string::npos){
237 const Trk::Perigee * measPer2 = originalTrk->perigeeParameters();
238 if(! (measPer1 && measPer2 ))
equal =
false;
240 float diff = std::abs(std::numeric_limits<float>::epsilon());
241 if( ( std::abs(measPer1->parameters()[
Trk::d0] - measPer2->parameters()[
Trk::d0]) >
diff)
242 || ( std::abs(measPer1->parameters()[
Trk::z0] - measPer2->parameters()[
Trk::z0]) >
diff)
◆ m_method
std::string Trk::CompareTwoTracks::m_method |
|
private |
◆ m_track
The documentation for this class was generated from the following files: