ATLAS Offline Software
Loading...
Searching...
No Matches
VP1TrackSanity.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Implementation of class VP1TrackSanity //
9// //
10// Authors: Edward Moyse (Edward.Moyse@cern.ch) //
11// Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
12// Initial version: March 2008 //
13// //
15
17#include "VP1Utils/VP1DetInfo.h"
18#include "TrkTrack/Track.h"
23#include "TrkSurfaces/Surface.h"
24
25//____________________________________________________________________
27public:
28};
29
30//____________________________________________________________________
32 : VP1HelperClassBase(sys,"VP1TrackSanity"), m_d(new Imp)
33{
34 messageVerbose("constructor");
35 if (sys)
37}
38
39//____________________________________________________________________
44
45//____________________________________________________________________
47{
48 if (!tsos)
49 return false;
50 //Fixme: More!
51 return true;
52}
53
54//____________________________________________________________________
56{
57 if (!pars)
58 return false;
59 //Fixme: More!
60 return true;
61}
62
63//____________________________________________________________________
65{
66 if (!meas)
67 return false;
69 return false;
71 return false;
72 const Trk::RIO_OnTrack* rio = dynamic_cast<const Trk::RIO_OnTrack*>(meas);
73 if (rio) {
75 return false;
76 if ( !rio->detectorElement() )
77 return false;
78 }
79 return true;
80}
81
82//____________________________________________________________________
84{
85 if (!rio)
86 return false;
87 //TK: The following is mainly guess work - we need master Ed to implement really useful stuff!
89 return false;
90
91 if (!rio->detectorElement())
92 return false;
93 return true;
94}
95
96//____________________________________________________________________
98{
99 if (!prd)
100 return false;
101 if (VP1DetInfo::isUnsafe(prd->identify()))
102 return false;
103 return true;
104}
bool is_valid() const
Check if id is in a valid state.
This class is the pure abstract base class for all fittable tracking measurements.
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
Identifier identify() const
return the identifier
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Definition RIO_OnTrack.h:70
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
Identifier identify() const
return the identifier -extends MeasurementBase
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
Identifier associatedDetectorElementIdentifier() const
return Identifier of the associated Detector Element
represents the track state (measurement, material, fit parameters and quality) at a surface.
static bool isUnsafe(const Identifier &)
static void ensureInit(IVP1System *)
Definition VP1DetInfo.h:49
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
void messageVerbose(const QString &) const
static bool isSafe(const Trk::TrackStateOnSurface *)
virtual ~VP1TrackSanity()
VP1TrackSanity(IVP1System *sys=0)
ParametersBase< TrackParametersDim, Charged > TrackParameters