ATLAS Offline Software
TrackStateData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TrackStateData.cxx
7 // Source file for class TrackStateData
9 // (c) ATLAS Detector software
11 // Sebastian.Fleischmann@cern.ch
13 
14 #include <utility>
15 
16 
17 
19 
20 // default constructor
22 m_trackStateOnSurface(nullptr),
23 m_rot(nullptr),
24 m_surface(nullptr),
25 m_detTypeName("unidentified"),
26 m_detType(Trk::TrackState::unidentified) {}
27 
28 
29 // constructor with parameters
31  const Trk::RIO_OnTrack* rot,
32  const Trk::Surface* surface,
33  std::string detTypeName,
35 
36  m_trackStateOnSurface(trackStateOnSurface),
37  m_rot(rot),
38  m_surface(surface),
39  m_detTypeName(std::move(detTypeName)),
40  m_detType(detType)
41 {}
42 
43 
46  return m_trackStateOnSurface;
47 }
50  return m_rot;
51 }
54  return m_surface;
55 }
57 const std::string& Trk::TrackStateData::detTypeName() const{
58  return m_detTypeName;
59 }
62  return m_detType;
63 }
Trk::TrackStateData::detTypeName
const std::string & detTypeName() const
return detector type name
Definition: TrackStateData.cxx:57
Trk::TrackStateData::detType
const TrackState::MeasurementType & detType() const
return dectector type
Definition: TrackStateData.cxx:61
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
TrackStateData.h
Trk::TrackState::unidentified
@ unidentified
Definition: TrackStateDefs.h:27
Trk::TrackStateData::surface
const Trk::Surface * surface() const
return Trk::Surface pointer
Definition: TrackStateData.cxx:53
Trk::TrackState::MeasurementType
MeasurementType
enum describing the flavour of MeasurementBase
Definition: TrackStateDefs.h:26
xAOD::TrackState
TrackState_v1 TrackState
Definition: TrackState.h:11
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
Trk::TrackStateData::trackStateOnSurface
const Trk::TrackStateOnSurface * trackStateOnSurface() const
return Trk::TrackStateOnSurface pointer
Definition: TrackStateData.cxx:45
Trk::TrackStateData::rot
const Trk::RIO_OnTrack * rot() const
return Trk::RIO_OnTrack pointer
Definition: TrackStateData.cxx:49
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
Trk::TrackStateData::TrackStateData
TrackStateData()
default constructor
Definition: TrackStateData.cxx:21