ATLAS Offline Software
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 //____________________________________________________________________
27 public:
28 };
29 
30 //____________________________________________________________________
32  : VP1HelperClassBase(sys,"VP1TrackSanity"), m_d(new Imp)
33 {
34  messageVerbose("constructor");
35  if (sys)
37 }
38 
39 //____________________________________________________________________
41 {
42  delete m_d;
43 }
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) {
74  if (VP1DetInfo::isUnsafe(rio->identify()))
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!
88  if (VP1DetInfo::isUnsafe(rio->identify()))
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 }
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
VP1TrackSanity::Imp
Definition: VP1TrackSanity.cxx:26
Trk::Surface::associatedDetectorElement
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
MeasurementBase.h
Surface.h
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
VP1TrackSanity::isSafe
static bool isSafe(const Trk::TrackStateOnSurface *)
Definition: VP1TrackSanity.cxx:46
Trk::Surface::associatedDetectorElementIdentifier
Identifier associatedDetectorElementIdentifier() const
return Identifier of the associated Detector Element
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
Identifier::is_valid
bool is_valid() const
Check if id is in a valid state.
PrepRawData.h
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
VP1TrackSanity.h
Track.h
VP1DetInfo.h
VP1TrackSanity::m_d
Imp * m_d
Definition: VP1TrackSanity.h:51
IVP1System
Definition: IVP1System.h:36
VP1DetInfo::ensureInit
static void ensureInit(IVP1System *)
Definition: VP1DetInfo.h:49
Trk::ParametersBase
Definition: ParametersBase.h:55
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
Trk::PrepRawData
Definition: PrepRawData.h:62
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
Trk::MeasurementBase::associatedSurface
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
RIO_OnTrack.h
VP1DetInfo::isUnsafe
static bool isUnsafe(const Identifier &)
Definition: VP1DetInfo.cxx:169
Trk::RIO_OnTrack::identify
virtual Identifier identify() const final
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:155
Trk::RIO_OnTrack::detectorElement
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
VP1TrackSanity::~VP1TrackSanity
virtual ~VP1TrackSanity()
Definition: VP1TrackSanity.cxx:40
TrackStateOnSurface.h
VP1TrackSanity::VP1TrackSanity
VP1TrackSanity(IVP1System *sys=0)
Definition: VP1TrackSanity.cxx:31