ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Muon::MuonSegment Class Referencefinal

#include <MuonSegment.h>

Inheritance diagram for Muon::MuonSegment:
Collaboration diagram for Muon::MuonSegment:

Public Types

enum  Author {
  AuthorUnknown = 0, MooMdtSegmentMakerTool = 1, MooCscSegmentMakerTool = 2, Muonboy = 3,
  DCMathSegmentMaker = 4, MDT_DHoughSegmentMakerTool = 5, CSC_DHoughSegmentMakerTool = 6, Csc2dSegmentMaker = 7,
  Csc4dSegmentMaker = 8, TRT_SegmentMaker = 9, CTBTracking = 10, DCMathSegmentMakerCurved = 11,
  NswStereoSeeded = 12, NswStgcSeeded = 13, NswPadSeeded = 14, NswQuadAlign = 15,
  NumberOfAuthors = 16
}
 enum to identify who created the segment. More...
 

Public Member Functions

 MuonSegment ()
 Default Constructor for POOL. More...
 
 MuonSegment (const MuonSegment &seg)
 Copy Constructor. More...
 
MuonSegmentoperator= (const MuonSegment &seg)
 Assignment operator. More...
 
 MuonSegment (MuonSegment &&seg) noexcept=default
 Move Constructor. More...
 
MuonSegmentoperator= (MuonSegment &&seg) noexcept=default
 Move Assignment operator. More...
 
 MuonSegment (Trk::LocalParameters &&locpars, Amg::MatrixX &&locerr, Trk::PlaneSurface *psf, DataVector< const Trk::MeasurementBase > &&cmeas, Trk::FitQuality *fqual, Segment::Author author=AuthorUnknown)
 Constructor within standard track parameters frame taking a vector of MeasurementBase. More...
 
 MuonSegment (const Amg::Vector2D &segLocPos, const Trk::LocalDirection &segLocDir, Amg::MatrixX &&segLocalErr, Trk::PlaneSurface *psf, DataVector< const Trk::MeasurementBase > &&cmeas, Trk::FitQuality *fqual, Segment::Author author=AuthorUnknown)
 Constructor within local parameters of the Segment taking a vector of MeasurementBase. More...
 
virtual ~MuonSegment ()
 Destructor. More...
 
virtual MuonSegmentclone () const override final
 needed to avoid excessive RTTI More...
 
virtual const Amg::Vector3DglobalPosition () const override final
 global position More...
 
const Amg::Vector3DglobalDirection () const
 global direction More...
 
const Trk::LocalDirectionlocalDirection () const
 local direction More...
 
virtual const Trk::PlaneSurfaceassociatedSurface () const override final
 returns the surface for the local to global transformation More...
 
unsigned int numberOfContainedROTs () const
 number of RIO_OnTracks More...
 
const Trk::RIO_OnTrackrioOnTrack (unsigned int) const
 returns the RIO_OnTrack (also known as ROT) objects depending on the integer More...
 
void setT0Error (float t0, float t0Error)
 set the fitted time and error on the time More...
 
bool hasFittedT0 () const
 returns whether the segment has a fitted t0 More...
 
void recalculateCache ()
 recalculate the cache More...
 
std::unique_ptr< SegmentuniqueClone () const
 NVI uniqueClone method. More...
 
virtual bool type (MeasurementBaseType::Type type) const override final
 Extended method checking the type. More...
 
const std::vector< const Trk::MeasurementBase * > & containedMeasurements () const
 returns the vector of Trk::MeasurementBase objects More...
 
const DataVector< const Trk::MeasurementBase > & containedMeasurementsDataVector () const
 
bool hasContainedMeasurements () const
 
unsigned int numberOfMeasurementBases () const
 Return the number of contained Trk::MeasurementBase (s) More...
 
const MeasurementBasemeasurement (unsigned int) const
 returns the Trk::MeasurementBase objects depending on the integer More...
 
const FitQuality * fitQuality () const
 return the FitQuality object, returns NULL if no FitQuality is defined More...
 
void setAuthor (Author a)
 sets the segment author More...
 
Author author () const
 return segment author More...
 
std::string dumpAuthor () const
 returns human readble string version of author More...
 
const LocalParameters & localParameters () const
 Interface method to get the LocalParameters. More...
 
const Amg::MatrixXlocalCovariance () const
 Interface method to get the localError. More...
 
float time () const
 access to the measured time More...
 
float errorTime () const
 access to the error on the measured time More...
 
float weight () const
 access to the weight of the space time point More...
 
const Trk::PlaneSurfacesurfacePtr ()
 return the ptr we hold useful for tests More...
 
const Trk::PlaneSurfacerelease () noexcept
 release ala unique_ptr release More...
 
void destroySurface () noexcept
 destroySurface deletes the ptr if not null and the surface has not a associatedDetectorElement Usefull also for testing More...
 

Static Public Member Functions

static std::size_t numberOfInstantiations ()
 
static const Trk::PlaneSurfacecloneHelper (const Trk::PlaneSurface *input)
 Helper for cloning or not when we need depending on if we have an associatedDetectorElement. More...
 

Static Public Attributes

static const float kNoValue = FLT_MAX
 define invalid value, used when the segment has no fitted t0 More...
 
static std::atomic_size_t s_numberOfInstantiations
 

Protected Member Functions

virtual MsgStream & dump (MsgStream &out) const override final
 returns some information about this RIO_OnTrack/TrackSegment. More...
 
virtual std::ostream & dump (std::ostream &out) const override final
 returns some information about this RIO_OnTrack/TrackSegment. More...
 

Protected Attributes

std::unique_ptr< FitQuality > m_fitQuality
 The fit quality of the Segment. More...
 
DataVector< const MeasurementBasem_containedMeasBases
 The vector of contained (generic) Trk::MeasurementBase objects. More...
 
Author m_author
 segment author More...
 
LocalParameters m_localParams
 
Amg::MatrixX m_localCovariance
 
float m_time
 measured time More...
 
float m_errorTime
 error on the time measurement More...
 
float m_weight
 weight of the point More...
 
const Trk::PlaneSurfacem_associatedSurface
 

Private Member Functions

void clearMeasVector ()
 private method to clear the Trk::MeasurementBase vector More...
 

Private Attributes

Amg::Vector3D m_globalPosition
 The global position the surface can be associated to. More...
 
Amg::Vector3D m_globalDirection
 cache global direction, not persistified More...
 
Trk::LocalDirection m_localDirection
 LocalDirection. More...
 

Detailed Description

This is the common class for 3D segments used in the muon spectrometer.

The Surface type for MuonSegments is restricted to be a PlaneSurface. The parameters of the MuonSegment are:

The MuonSegment stores a list of Trk::MeasurementBase objects allowing it to contain measurements from all detector types in the muon spectrometer.

Author
Niels.nosp@m..van.nosp@m..Eldi.nosp@m.k@ce.nosp@m.rn.ch, Edwar.nosp@m.d.Mo.nosp@m.yse@c.nosp@m.ern..nosp@m.ch, Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 41 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

Member Enumeration Documentation

◆ Author

enum Trk::Segment::Author
inherited

enum to identify who created the segment.

If you update this don't forget to update the dump method.

Enumerator
AuthorUnknown 
MooMdtSegmentMakerTool 
MooCscSegmentMakerTool 
Muonboy 
DCMathSegmentMaker 
MDT_DHoughSegmentMakerTool 
CSC_DHoughSegmentMakerTool 
Csc2dSegmentMaker 
Csc4dSegmentMaker 
TRT_SegmentMaker 
CTBTracking 
DCMathSegmentMakerCurved 
NswStereoSeeded 
NswStgcSeeded 
NswPadSeeded 
NswQuadAlign 
NumberOfAuthors 

Definition at line 62 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

63  {
64  AuthorUnknown = 0,
67  Muonboy = 3,
73  TRT_SegmentMaker = 9,
74  CTBTracking = 10,
76  NswStereoSeeded = 12,
77  NswStgcSeeded = 13,
78  NswPadSeeded = 14,
79  NswQuadAlign = 15,
80  NumberOfAuthors = 16
81  };

Constructor & Destructor Documentation

◆ MuonSegment() [1/5]

Muon::MuonSegment::MuonSegment ( )

Default Constructor for POOL.

Definition at line 22 of file MuonSegment.cxx.

◆ MuonSegment() [2/5]

Muon::MuonSegment::MuonSegment ( const MuonSegment seg)

Copy Constructor.

Definition at line 31 of file MuonSegment.cxx.

32  : Segment(seg)
33  , SpaceTimePointBase(seg)
35  , m_globalPosition(seg.m_globalPosition)
36  , m_globalDirection(seg.m_globalDirection)
37  , m_localDirection(seg.m_localDirection)
38 {
39  m_associatedSurface = (seg.m_associatedSurface->associatedDetectorElement())
40  ? seg.m_associatedSurface
41  : seg.m_associatedSurface->clone();
42 }

◆ MuonSegment() [3/5]

Muon::MuonSegment::MuonSegment ( MuonSegment &&  seg)
defaultnoexcept

Move Constructor.

◆ MuonSegment() [4/5]

Muon::MuonSegment::MuonSegment ( Trk::LocalParameters &&  locpars,
Amg::MatrixX &&  locerr,
Trk::PlaneSurface psf,
DataVector< const Trk::MeasurementBase > &&  cmeas,
Trk::FitQuality fqual,
Segment::Author  author = AuthorUnknown 
)

Constructor within standard track parameters frame taking a vector of MeasurementBase.

Parameters
locpars4 dim or 5 dim standard track parameters representation
locerr4 x 4 error or 5 x 5 error on standard track parameters repr.
psfplane surface
cmeasvector of contained measurements on track
fqualfit quality object
authorenum to indicate author, see Segment.h for the possible authors

Definition at line 58 of file MuonSegment.cxx.

64  : Segment(std::move(locpars), std::move(locerr),
65  std::move(cmeas), fqual, author)
71 {
74 }

◆ MuonSegment() [5/5]

Muon::MuonSegment::MuonSegment ( const Amg::Vector2D segLocPos,
const Trk::LocalDirection segLocDir,
Amg::MatrixX &&  segLocalErr,
Trk::PlaneSurface psf,
DataVector< const Trk::MeasurementBase > &&  cmeas,
Trk::FitQuality fqual,
Segment::Author  author = AuthorUnknown 
)

Constructor within local parameters of the Segment taking a vector of MeasurementBase.

Parameters
segLocPos2 local position coordinates
segLocalErr2 local direction coordinates
segLocalErr4 x 4 full local error
psfplane surface
cmeasvector of contained measurements on track
fqualfit quality object
authorenum to indicate author, see Segment.h for the possible authors

Definition at line 76 of file MuonSegment.cxx.

83  : Segment(Trk::LocalParameters(), std::move(locErr),
84  std::move(cmeas), fqual, author)
89  , m_localDirection(locSegDir)
90 {
92 
93  Amg::Vector2D lpos(locSegPos[Trk::locX], locSegPos[Trk::locY]);
95 
96  double phi = m_globalDirection.phi();
97  double theta = m_globalDirection.theta();
98  std::array<Trk::DefinedParameter, 4> pars = {
99  {{locSegPos[Trk::locX], Trk::locX},
100  {locSegPos[Trk::locY], Trk::locY},
101  {phi, Trk::phi},
102  {theta, Trk::theta}}};
104 }

◆ ~MuonSegment()

Muon::MuonSegment::~MuonSegment ( )
virtualdefault

Destructor.

Member Function Documentation

◆ associatedSurface()

const Trk::PlaneSurface & Muon::MuonSegment::associatedSurface ( ) const
inlinefinaloverridevirtual

returns the surface for the local to global transformation

  • interface from MeasurementBase

Implements Trk::MeasurementBase.

Definition at line 175 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

176 {
177  return (*m_associatedSurface);
178 }

◆ author()

Segment::Author Trk::Segment::author ( ) const
inlineinherited

return segment author

Definition at line 199 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

200 {
201  return m_author;
202 }

◆ clearMeasVector()

void Muon::MuonSegment::clearMeasVector ( )
private

private method to clear the Trk::MeasurementBase vector

◆ clone()

MuonSegment * Muon::MuonSegment::clone ( ) const
inlinefinaloverridevirtual

needed to avoid excessive RTTI

Implements Trk::Segment.

Definition at line 181 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

182 {
183  return new MuonSegment(*this);
184 }

◆ cloneHelper()

static const Trk::PlaneSurface * Trk::SurfacePtrHolderImplDetEl< Trk::PlaneSurface >::cloneHelper ( const Trk::PlaneSurface input)
inlinestaticinherited

Helper for cloning or not when we need depending on if we have an associatedDetectorElement.

Definition at line 236 of file SurfaceHolderImpl.h.

237  {
238  return (input && input->associatedDetectorElement() == nullptr
239  ? input->clone()
240  : input);
241  }

◆ containedMeasurements()

const std::vector< const MeasurementBase * > & Trk::Segment::containedMeasurements ( ) const
inlineinherited

returns the vector of Trk::MeasurementBase objects

Definition at line 166 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

167 {
168  return m_containedMeasBases.stdcont();
169 }

◆ containedMeasurementsDataVector()

const DataVector< const MeasurementBase > & Trk::Segment::containedMeasurementsDataVector ( ) const
inlineinherited

Definition at line 172 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

173 {
174  return m_containedMeasBases;
175 }

◆ destroySurface()

void Trk::SurfacePtrHolderImplDetEl< Trk::PlaneSurface >::destroySurface
inlinenoexceptinherited

destroySurface deletes the ptr if not null and the surface has not a associatedDetectorElement Usefull also for testing

Definition at line 224 of file SurfaceHolderImpl.h.

225  {
226  if (m_associatedSurface &&
228  delete m_associatedSurface;
229  }
230  //
231  m_associatedSurface = nullptr;
232  }

◆ dump() [1/2]

MsgStream & Muon::MuonSegment::dump ( MsgStream &  out) const
finaloverrideprotectedvirtual

returns some information about this RIO_OnTrack/TrackSegment.

It should be overloaded by any child classes

Implements Trk::MeasurementBase.

Definition at line 126 of file MuonSegment.cxx.

127 {
128  out << "Muon::MuonSegment " << std::endl;
129  out << " - global position : " << std::endl
130  << Amg::toString(globalPosition()) << std::endl;
131  out << std::endl << localDirection() << std::endl;
132  out << " - local parameters : " << std::endl
133  << localParameters() << std::endl;
134  out << " - local Err Matrix : ";
135  out << std::endl << Amg::toString(localCovariance()) << std::endl;
136  if (nullptr != m_fitQuality)
137  out << " - fit Quality : " << std::endl
138  << (*fitQuality()) << std::endl;
139  else
140  out << " - fit Quality : NO " << std::endl;
141  out << " - associated Surface : " << std::endl
142  << associatedSurface() << std::endl;
143  out << " - t0 (error) : " << time() << "(" << errorTime() << ")"
144  << std::endl;
145  out << " - it contains : " << numberOfContainedROTs()
146  << " RIO_OnTrack object" << std::endl;
147  unsigned int numRoT = 1;
148  for (const Trk::MeasurementBase* m : containedMeasurements()) {
149  const Trk::RIO_OnTrack* rot = dynamic_cast<const Trk::RIO_OnTrack*>(m);
150  if (rot) {
151  out << "RoT " << numRoT++ << std::endl << *rot << std::endl;
152  }
153  }
154  return out;
155 }

◆ dump() [2/2]

std::ostream & Muon::MuonSegment::dump ( std::ostream &  out) const
finaloverrideprotectedvirtual

returns some information about this RIO_OnTrack/TrackSegment.

It should be overloaded by any child classes

Implements Trk::MeasurementBase.

Definition at line 158 of file MuonSegment.cxx.

159 {
160  out << "Muon::MuonSegment " << std::endl;
161  out << " - global position : " << std::endl
162  << Amg::toString(globalPosition()) << std::endl;
163  out << std::endl << localDirection() << std::endl;
164  out << " - local parameters : " << std::endl
165  << localParameters() << std::endl;
166  out << " - local Err Matrix : ";
167  out << std::endl << Amg::toString(localCovariance()) << std::endl;
168  if (nullptr != m_fitQuality)
169  out << " - fit Quality : " << std::endl
170  << (*fitQuality()) << std::endl;
171  else
172  out << " - fit Quality : NO " << std::endl;
173  out << " - associated Surface : " << std::endl
174  << associatedSurface() << std::endl;
175  out << " - t0 (error) : " << time() << "(" << errorTime() << ")"
176  << std::endl;
177  out << " - it contains : " << numberOfContainedROTs()
178  << " RIO_OnTrack object" << std::endl;
179  unsigned int numRoT = 1;
180  for (const Trk::MeasurementBase* m : containedMeasurements()) {
181  const Trk::RIO_OnTrack* rot = dynamic_cast<const Trk::RIO_OnTrack*>(m);
182  if (rot) {
183  out << "RoT " << numRoT++ << std::endl << *rot << std::endl;
184  }
185  }
186  return out;
187 }

◆ dumpAuthor()

std::string Trk::Segment::dumpAuthor ( ) const
inherited

returns human readble string version of author

Definition at line 97 of file TrkEvent/TrkSegment/src/Segment.cxx.

97  {
98  std::string author;
99  switch (m_author) {
100  case AuthorUnknown:
101  author = "AuthorUnknown";
102  break;
104  author = "MooMdtSegmentMakerTool";
105  break;
107  author = "MooCscSegmentMakerTool";
108  break;
109  case Muonboy:
110  author = "Muonboy";
111  break;
112  case DCMathSegmentMaker:
113  author = "DCMathSegmentMaker";
114  break;
116  author = "MDT_DHoughSegmentMakerTool";
117  break;
119  author = "CSC_DHoughSegmentMakerTool";
120  break;
121  case Csc2dSegmentMaker:
122  author = "Csc2dSegmentMaker";
123  break;
124  case Csc4dSegmentMaker:
125  author = "Csc4dSegmentMaker";
126  break;
127  case TRT_SegmentMaker:
128  author = "TRT_SegmentMaker";
129  break;
130  case NswStereoSeeded:
131  author = "Nsw MM stereo seeded";
132  break;
133  case NswStgcSeeded:
134  author = "Nsw sTgc seeded";
135  break;
136  case NswQuadAlign:
137  author = "Nsw single quad";
138  break;
139  case NswPadSeeded:
140  author = "Nsw single quad";
141  break;
142  default:
143  author = "Unrecognised author, enum = " + std::to_string(m_author);
144  break;
145  }
146  return author;
147 }

◆ errorTime()

float Trk::SpaceTimePointBase::errorTime ( ) const
inlineinherited

access to the error on the measured time

Definition at line 50 of file SpaceTimePointBase.h.

50 {return m_errorTime;}

◆ fitQuality()

const FitQuality * Trk::Segment::fitQuality ( ) const
inlineinherited

return the FitQuality object, returns NULL if no FitQuality is defined

Definition at line 160 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

161 {
162  return m_fitQuality.get();
163 }

◆ globalDirection()

const Amg::Vector3D & Muon::MuonSegment::globalDirection ( ) const
inline

global direction

Definition at line 163 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

164 {
165  return m_globalDirection;
166 }

◆ globalPosition()

const Amg::Vector3D & Muon::MuonSegment::globalPosition ( ) const
inlinefinaloverridevirtual

global position

Implements Trk::SpaceTimePointBase.

Definition at line 157 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

158 {
159  return m_globalPosition;
160 }

◆ hasContainedMeasurements()

bool Trk::Segment::hasContainedMeasurements ( ) const
inlineinherited

Definition at line 178 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

179 {
180  return !m_containedMeasBases.empty();
181 }

◆ hasFittedT0()

bool Muon::MuonSegment::hasFittedT0 ( ) const
inline

returns whether the segment has a fitted t0

Definition at line 212 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

213 {
214  return m_time != MuonSegment::kNoValue;
215 }

◆ localCovariance()

const Amg::MatrixX & Trk::MeasurementBase::localCovariance ( ) const
inlineinherited

Interface method to get the localError.

Definition at line 138 of file MeasurementBase.h.

139 {
140  return m_localCovariance;
141 }

◆ localDirection()

const Trk::LocalDirection & Muon::MuonSegment::localDirection ( ) const
inline

local direction

Definition at line 169 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

170 {
171  return m_localDirection;
172 }

◆ localParameters()

const Trk::LocalParameters & Trk::MeasurementBase::localParameters ( ) const
inlineinherited

Interface method to get the LocalParameters.

Definition at line 132 of file MeasurementBase.h.

133 {
134  return m_localParams;
135 }

◆ measurement()

const MeasurementBase * Trk::Segment::measurement ( unsigned int  indx) const
inlineinherited

returns the Trk::MeasurementBase objects depending on the integer

Definition at line 184 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

185 {
186  if (!m_containedMeasBases.empty() && indx < m_containedMeasBases.size()) {
187  return std::as_const(m_containedMeasBases)[indx];
188  }
189  return nullptr;
190 }

◆ numberOfContainedROTs()

unsigned int Muon::MuonSegment::numberOfContainedROTs ( ) const
inline

number of RIO_OnTracks

Definition at line 199 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

200 {
201  return containedMeasurements().size();
202 }

◆ numberOfInstantiations()

static std::size_t Trk::ObjectCounter< Trk::Segment >::numberOfInstantiations
inlinestaticinherited

Definition at line 25 of file TrkObjectCounter.h.

26  {
27 #ifndef NDEBUG
28  return s_numberOfInstantiations.load();
29 #endif
30  return 0;
31  }

◆ numberOfMeasurementBases()

unsigned int Trk::Segment::numberOfMeasurementBases ( ) const
inlineinherited

Return the number of contained Trk::MeasurementBase (s)

Definition at line 193 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

194 {
195  return m_containedMeasBases.size();
196 }

◆ operator=() [1/2]

MuonSegment & Muon::MuonSegment::operator= ( const MuonSegment seg)

Assignment operator.

Definition at line 45 of file MuonSegment.cxx.

46 {
47  if (this != &seg) {
51  m_globalPosition = seg.m_globalPosition;
52  m_globalDirection = seg.m_globalDirection;
53  m_localDirection = seg.m_localDirection;
54  }
55  return (*this);
56 }

◆ operator=() [2/2]

MuonSegment& Muon::MuonSegment::operator= ( MuonSegment &&  seg)
defaultnoexcept

Move Assignment operator.

◆ recalculateCache()

void Muon::MuonSegment::recalculateCache ( )

recalculate the cache

Definition at line 109 of file MuonSegment.cxx.

110 {
111 
114 
115  double sintheta = sctheta.sn;
116  double costheta = sctheta.cs;
117  double sinphi = scphi.sn;
118  double cosphi = scphi.cs;
120  Amg::Vector3D(cosphi * sintheta, sinphi * sintheta, costheta);
123 }

◆ release()

release ala unique_ptr release

Definition at line 215 of file SurfaceHolderImpl.h.

216  {
217  const S* tmp = m_associatedSurface;
218  m_associatedSurface = nullptr;
219  return tmp;
220  }

◆ rioOnTrack()

const Trk::RIO_OnTrack * Muon::MuonSegment::rioOnTrack ( unsigned int  indx) const
inline

returns the RIO_OnTrack (also known as ROT) objects depending on the integer

Definition at line 187 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

188 {
189  if (indx < containedMeasurements().size()) {
190  const Trk::MeasurementBase* meas = containedMeasurements()[indx];
192  return static_cast<const Trk::RIO_OnTrack*>(meas);
193  }
194  }
195  return nullptr;
196 }

◆ setAuthor()

void Trk::Segment::setAuthor ( Author  a)
inherited

sets the segment author

Definition at line 148 of file TrkEvent/TrkSegment/src/Segment.cxx.

148  {
149  m_author = a;
150 }

◆ setT0Error()

void Muon::MuonSegment::setT0Error ( float  t0,
float  t0Error 
)
inline

set the fitted time and error on the time

Definition at line 205 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

206 {
207  m_time = t0;
208  m_errorTime = t0Error;
209 }

◆ surfacePtr()

return the ptr we hold useful for tests

Definition at line 213 of file SurfaceHolderImpl.h.

213 { return m_associatedSurface; }

◆ time()

float Trk::SpaceTimePointBase::time ( ) const
inlineinherited

access to the measured time

Definition at line 47 of file SpaceTimePointBase.h.

47 {return m_time;}

◆ type()

virtual bool Trk::Segment::type ( MeasurementBaseType::Type  type) const
inlinefinaloverridevirtualinherited

Extended method checking the type.

Implements Trk::MeasurementBase.

Definition at line 114 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

115  {
117  }

◆ uniqueClone()

std::unique_ptr<Segment> Trk::Segment::uniqueClone ( ) const
inlineinherited

NVI uniqueClone method.

Definition at line 108 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

109  {
110  return std::unique_ptr<Segment>(clone());
111  }

◆ weight()

float Trk::SpaceTimePointBase::weight ( ) const
inlineinherited

access to the weight of the space time point

Definition at line 53 of file SpaceTimePointBase.h.

53 {return m_weight;}

Member Data Documentation

◆ kNoValue

const float Muon::MuonSegment::kNoValue = FLT_MAX
static

define invalid value, used when the segment has no fitted t0

Definition at line 48 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

◆ m_associatedSurface

const Trk::PlaneSurface * Trk::SurfacePtrHolderImplDetEl< Trk::PlaneSurface >::m_associatedSurface
protectedinherited

Definition at line 244 of file SurfaceHolderImpl.h.

◆ m_author

Author Trk::Segment::m_author
protectedinherited

segment author

Definition at line 156 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

◆ m_containedMeasBases

DataVector<const MeasurementBase> Trk::Segment::m_containedMeasBases
protectedinherited

The vector of contained (generic) Trk::MeasurementBase objects.

Definition at line 153 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

◆ m_errorTime

float Trk::SpaceTimePointBase::m_errorTime
protectedinherited

error on the time measurement

Definition at line 61 of file SpaceTimePointBase.h.

◆ m_fitQuality

std::unique_ptr<FitQuality> Trk::Segment::m_fitQuality
protectedinherited

The fit quality of the Segment.

Definition at line 150 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.

◆ m_globalDirection

Amg::Vector3D Muon::MuonSegment::m_globalDirection
private

cache global direction, not persistified

Definition at line 139 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

◆ m_globalPosition

Amg::Vector3D Muon::MuonSegment::m_globalPosition
private

The global position the surface can be associated to.

Cached (not persistified)

Definition at line 136 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.

◆ m_localCovariance

Amg::MatrixX Trk::MeasurementBase::m_localCovariance
protectedinherited

Definition at line 112 of file MeasurementBase.h.

◆ m_localDirection

Trk::LocalDirection Muon::MuonSegment::m_localDirection
private

◆ m_localParams

LocalParameters Trk::MeasurementBase::m_localParams
protectedinherited

Definition at line 111 of file MeasurementBase.h.

◆ m_time

float Trk::SpaceTimePointBase::m_time
protectedinherited

measured time

Definition at line 58 of file SpaceTimePointBase.h.

◆ m_weight

float Trk::SpaceTimePointBase::m_weight
protectedinherited

weight of the point

Definition at line 64 of file SpaceTimePointBase.h.

◆ s_numberOfInstantiations

std::atomic_size_t Trk::ObjectCounter< Trk::Segment >::s_numberOfInstantiations
inlinestaticinherited

Definition at line 22 of file TrkObjectCounter.h.


The documentation for this class was generated from the following files:
Trk::SpaceTimePointBase::errorTime
float errorTime() const
access to the error on the measured time
Definition: SpaceTimePointBase.h:50
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
Trk::LocalParameters
Definition: LocalParameters.h:98
Trk::PlaneSurface::localToGlobalDirection
void localToGlobalDirection(const Trk::LocalDirection &locdir, Amg::Vector3D &globdir) const
This method transforms a local direction wrt the plane to a global direction.
Definition: PlaneSurface.cxx:242
Trk::SpaceTimePointBase::operator=
SpaceTimePointBase & operator=(const SpaceTimePointBase &stpb)=default
Assignment operator.
Trk::Segment::DCMathSegmentMaker
@ DCMathSegmentMaker
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:68
Trk::Segment::MDT_DHoughSegmentMakerTool
@ MDT_DHoughSegmentMakerTool
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:69
Trk::Surface::associatedDetectorElement
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
Trk::SurfacePtrHolderImplDetEl::operator=
SurfacePtrHolderImplDetEl & operator=(const SurfacePtrHolderImplDetEl &other)
copy assingmemnt if surface is free we clone/copy.
Definition: SurfaceHolderImpl.h:192
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
Trk::Segment::MooMdtSegmentMakerTool
@ MooMdtSegmentMakerTool
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:65
Muon::MuonSegment::kNoValue
static const float kNoValue
define invalid value, used when the segment has no fitted t0
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:48
Trk::locX
@ locX
Definition: ParamDefs.h:37
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:38
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
Trk::Segment::Muonboy
@ Muonboy
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:67
Muon::MuonSegment::m_localDirection
Trk::LocalDirection m_localDirection
LocalDirection.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:142
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
Trk::Segment::CSC_DHoughSegmentMakerTool
@ CSC_DHoughSegmentMakerTool
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:70
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Muon::MuonSegment::m_globalPosition
Amg::Vector3D m_globalPosition
The global position the surface can be associated to.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:136
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
Csc4dSegmentMaker
Definition: Csc4dSegmentMaker.h:37
Trk::Segment::m_containedMeasBases
DataVector< const MeasurementBase > m_containedMeasBases
The vector of contained (generic) Trk::MeasurementBase objects.
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:153
Trk::Segment::type
virtual bool type(MeasurementBaseType::Type type) const override final
Extended method checking the type.
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:114
JetTiledMap::S
@ S
Definition: TiledEtaPhiMap.h:44
Trk::SurfacePtrHolderImplDetEl< Trk::PlaneSurface >::m_associatedSurface
const Trk::PlaneSurface * m_associatedSurface
Definition: SurfaceHolderImpl.h:244
Muon::MuonSegment::numberOfContainedROTs
unsigned int numberOfContainedROTs() const
number of RIO_OnTracks
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:199
Muon::MuonSegment::m_globalDirection
Amg::Vector3D m_globalDirection
cache global direction, not persistified
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:139
Trk::Segment::MooCscSegmentMakerTool
@ MooCscSegmentMakerTool
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:66
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
Trk::theta
@ theta
Definition: ParamDefs.h:66
Muon::MuonSegment::localDirection
const Trk::LocalDirection & localDirection() const
local direction
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:169
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
Trk::Segment::containedMeasurements
const std::vector< const Trk::MeasurementBase * > & containedMeasurements() const
returns the vector of Trk::MeasurementBase objects
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:166
Trk::Segment::operator=
Segment & operator=(const Segment &seg)
Assignment operator.
Definition: TrkEvent/TrkSegment/src/Segment.cxx:67
Trk::Segment::clone
virtual Segment * clone() const override=0
Pseudo-constructor: needed to avoid excessive RTTI.
Trk::SpaceTimePointBase::m_weight
float m_weight
weight of the point
Definition: SpaceTimePointBase.h:64
Trk::Segment::NswPadSeeded
@ NswPadSeeded
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:78
Trk::MeasurementBase::type
virtual bool type(MeasurementBaseType::Type type) const =0
Interface method checking the type.
Trk::Segment::Csc2dSegmentMaker
@ Csc2dSegmentMaker
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:71
Trk::PlaneSurface::globalToLocalDirection
void globalToLocalDirection(const Amg::Vector3D &glodir, Trk::LocalDirection &locdir) const
This method transforms the global direction to a local direction wrt the plane.
Definition: PlaneSurface.cxx:260
Trk::Segment::AuthorUnknown
@ AuthorUnknown
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:64
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
jobOption.theta
theta
Definition: jobOption.ParticleGun_fwd_sequence.py:13
Trk::MeasurementBase::m_localParams
LocalParameters m_localParams
Definition: MeasurementBase.h:111
Trk::MeasurementBase::localCovariance
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
Definition: MeasurementBase.h:138
Trk::Segment::NswStereoSeeded
@ NswStereoSeeded
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:76
Trk::Segment::DCMathSegmentMakerCurved
@ DCMathSegmentMakerCurved
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:75
Trk::SpaceTimePointBase::SpaceTimePointBase
SpaceTimePointBase(const float &t, const float &t_error, const float &weight)
constructor taking a time, an error on the time and a weight
Definition: SpaceTimePointBase.cxx:7
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk::Segment::Csc4dSegmentMaker
@ Csc4dSegmentMaker
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:72
Trk::MeasurementBaseType::Segment
@ Segment
Definition: MeasurementBase.h:47
Trk::Segment::m_fitQuality
std::unique_ptr< FitQuality > m_fitQuality
The fit quality of the Segment.
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:150
Muon::MuonSegment::recalculateCache
void recalculateCache()
recalculate the cache
Definition: MuonSegment.cxx:109
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::MeasurementBaseType::RIO_OnTrack
@ RIO_OnTrack
Definition: MeasurementBase.h:49
Trk::Segment::m_author
Author m_author
segment author
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:156
Trk::MeasurementBase::localParameters
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
Definition: MeasurementBase.h:132
Trk::MeasurementBase::m_localCovariance
Amg::MatrixX m_localCovariance
Definition: MeasurementBase.h:112
Trk::SpaceTimePointBase::m_errorTime
float m_errorTime
error on the time measurement
Definition: SpaceTimePointBase.h:61
Trk::ObjectCounter< Trk::Segment >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
a
TList * a
Definition: liststreamerinfos.cxx:10
Trk::Segment::Segment
Segment()
Default Constructor for POOL.
Definition: TrkEvent/TrkSegment/src/Segment.cxx:15
Trk::Segment::CTBTracking
@ CTBTracking
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:74
Trk::SurfacePtrHolderImplDetEl< Trk::PlaneSurface >
CxxUtils::sincos
Helper to simultaneously calculate sin and cos of the same angle.
Definition: sincos.h:76
Muon::MuonSegment::MuonSegment
MuonSegment()
Default Constructor for POOL.
Definition: MuonSegment.cxx:22
Trk::Segment::author
Author author() const
return segment author
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:199
Trk::phi
@ phi
Definition: ParamDefs.h:75
Muon::MuonSegment::globalPosition
virtual const Amg::Vector3D & globalPosition() const override final
global position
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:157
Trk::Segment::NswQuadAlign
@ NswQuadAlign
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:79
Trk::SpaceTimePointBase::time
float time() const
access to the measured time
Definition: SpaceTimePointBase.h:47
Trk::PlaneSurface::localToGlobal
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override final
Specified for PlaneSurface: LocalToGlobal method without dynamic memory allocation.
Definition: PlaneSurface.cxx:204
Trk::Segment::NswStgcSeeded
@ NswStgcSeeded
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:77
Trk::Segment::fitQuality
const FitQuality * fitQuality() const
return the FitQuality object, returns NULL if no FitQuality is defined
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:160
Trk::PlaneSurface::clone
virtual PlaneSurface * clone() const override
Virtual constructor.
Trk::SpaceTimePointBase::m_time
float m_time
measured time
Definition: SpaceTimePointBase.h:58
Trk::Segment::TRT_SegmentMaker
@ TRT_SegmentMaker
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:73
Csc2dSegmentMaker
Definition: Csc2dSegmentMaker.h:24
Muon::MuonSegment::associatedSurface
virtual const Trk::PlaneSurface & associatedSurface() const override final
returns the surface for the local to global transformation
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:175
Trk::Segment::NumberOfAuthors
@ NumberOfAuthors
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:80