ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
InDet::SiClusterOnTrack Class Referenceabstract

#include <SiClusterOnTrack.h>

Inheritance diagram for InDet::SiClusterOnTrack:
Collaboration diagram for InDet::SiClusterOnTrack:

Public Member Functions

 SiClusterOnTrack ()
 Default Constructor - needed for POOL. More...
 
 SiClusterOnTrack (const SiClusterOnTrack &rot)=default
 
SiClusterOnTrackoperator= (const SiClusterOnTrack &rot)=default
 
 SiClusterOnTrack (SiClusterOnTrack &&rot)=default
 
SiClusterOnTrackoperator= (SiClusterOnTrack &&rot)=default
 
virtual ~SiClusterOnTrack ()=default
 Destructor: More...
 
 SiClusterOnTrack (Trk::LocalParameters &&locpos, Amg::MatrixX &&locerr, const IdentifierHash &idDE, const Identifier &id, bool isbroad=false)
 Constructors with parameters : LocalParameters, ErrorMatrix, idDE. More...
 
 SiClusterOnTrack (Trk::LocalParameters &&locpos, Amg::MatrixX &&locerr, const IdentifierHash &idDE, const Identifier &id, const Amg::Vector3D &globalPosition, bool isbroad=false)
 Constructors with parameters : LocalParameters, ErrorMatrix, idDE, GlobalPosition,. More...
 
virtual const Amg::Vector3DglobalPosition () const override
 returns global position (gathered through Surface constraint) More...
 
virtual bool rioType (Trk::RIO_OnTrackType::Type type) const override=0
 Method checking the Rio On Track type. More...
 
virtual IdentifierHash idDE () const override
 returns the DE hashID* More...
 
bool isBroadCluster () const
 
virtual MsgStream & dump (MsgStream &out) const override
 returns some information about this RIO_OnTrack. More...
 
virtual std::ostream & dump (std::ostream &out) const override
 returns some information about this RIO_OnTrack. More...
 
virtual RIO_OnTrackclone () const override=0
 Pseudo-constructor, needed to avoid excessive RTTI. More...
 
std::unique_ptr< RIO_OnTrackuniqueClone () const
 NVI clone returning unique_ptr. More...
 
virtual const SurfaceassociatedSurface () const override=0
 returns the surface for the local to global transformation More...
 
virtual bool type (MeasurementBaseType::Type type) const override final
 Extended method checking the type. More...
 
virtual const Trk::PrepRawDataprepRawData () const =0
 returns the PrepRawData (also known as RIO) object to which this RIO_OnTrack is associated. More...
 
virtual const TrkDetElementBase * detectorElement () const =0
 returns the detector element, assoicated with the PRD of this class More...
 
Identifier identify () const
 return the identifier -extends MeasurementBase More...
 
const LocalParameters & localParameters () const
 Interface method to get the LocalParameters. More...
 
const Amg::MatrixXlocalCovariance () const
 Interface method to get the localError. More...
 

Static Public Member Functions

static std::size_t numberOfInstantiations ()
 

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations
 

Protected Member Functions

virtual void setValues (const Trk::TrkDetElementBase *detEl, const Trk::PrepRawData *prd) override=0
 ONLY for use in custom convertor Allows the custom convertor to reset values when persistying/reading back RoTs. More...
 

Protected Attributes

IdentifierHash m_idDE
 The IdentifierHash - probably not used. More...
 
Amg::Vector3D m_globalPosition
 The global position. More...
 
bool m_isbroad
 
Identifier m_identifier {}
 Identifier of the RIO_OnTrack (comes from the associated Trk::PrepRawData) More...
 
LocalParameters m_localParams
 
Amg::MatrixX m_localCovariance
 

Friends

class ::SiClusterOnTrackCnv_p1
 

Detailed Description

RIO_OnTrack base class for Silicon detector in the InnerDetector. It combines the common members / structures from SCT and Pixel clusters on tracks.

Author
Veron.nosp@m.ique.nosp@m..Bois.nosp@m.vert.nosp@m.@cern.nosp@m..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
Christos Anastopoulos (Athena MT)

Definition at line 39 of file SiClusterOnTrack.h.

Constructor & Destructor Documentation

◆ SiClusterOnTrack() [1/5]

InDet::SiClusterOnTrack::SiClusterOnTrack ( )

Default Constructor - needed for POOL.

Definition at line 49 of file SiClusterOnTrack.cxx.

49  :
51  m_idDE(),
52  m_globalPosition(), // should be set in constructor of derived class
53  m_isbroad(false)
54 {}

◆ SiClusterOnTrack() [2/5]

InDet::SiClusterOnTrack::SiClusterOnTrack ( const SiClusterOnTrack rot)
default

◆ SiClusterOnTrack() [3/5]

InDet::SiClusterOnTrack::SiClusterOnTrack ( SiClusterOnTrack &&  rot)
default

◆ ~SiClusterOnTrack()

virtual InDet::SiClusterOnTrack::~SiClusterOnTrack ( )
virtualdefault

Destructor:

◆ SiClusterOnTrack() [4/5]

InDet::SiClusterOnTrack::SiClusterOnTrack ( Trk::LocalParameters &&  locpos,
Amg::MatrixX &&  locerr,
const IdentifierHash idDE,
const Identifier id,
bool  isbroad = false 
)

Constructors with parameters : LocalParameters, ErrorMatrix, idDE.

Definition at line 22 of file SiClusterOnTrack.cxx.

26  :
27  RIO_OnTrack(std::move(locpars), std::move(locerr), id), //call base class constructor
28  m_idDE(idDE),
29  m_globalPosition(), // should be set in constructor of derived class
30  m_isbroad(isbroad)
31 {}

◆ SiClusterOnTrack() [5/5]

InDet::SiClusterOnTrack::SiClusterOnTrack ( Trk::LocalParameters &&  locpos,
Amg::MatrixX &&  locerr,
const IdentifierHash idDE,
const Identifier id,
const Amg::Vector3D globalPosition,
bool  isbroad = false 
)

Constructors with parameters : LocalParameters, ErrorMatrix, idDE, GlobalPosition,.

Definition at line 34 of file SiClusterOnTrack.cxx.

40  :
41  RIO_OnTrack(std::move(locpars), std::move(locerr), id), //call base class constructor
42  m_idDE(idDE),
44  m_isbroad(isbroad)
45 {}

Member Function Documentation

◆ associatedSurface()

virtual const Surface& Trk::RIO_OnTrack::associatedSurface ( ) const
overridepure virtualinherited

◆ clone()

virtual RIO_OnTrack* Trk::RIO_OnTrack::clone ( ) const
overridepure virtualinherited

◆ detectorElement()

virtual const TrkDetElementBase* Trk::RIO_OnTrack::detectorElement ( ) const
pure virtualinherited

◆ dump() [1/2]

MsgStream & InDet::SiClusterOnTrack::dump ( MsgStream &  out) const
overridevirtual

returns some information about this RIO_OnTrack.

Reimplemented from Trk::RIO_OnTrack.

Reimplemented in InDet::PixelClusterOnTrack, and InDet::SCT_ClusterOnTrack.

Definition at line 57 of file SiClusterOnTrack.cxx.

58 {
59 
60  sl << "SiClusterOnTrack {" << endmsg;
62 
63  sl << "Global position (x,y,z) = (";
64  sl <<this->globalPosition().x()<<", "
65  <<this->globalPosition().y()<<", "
66  <<this->globalPosition().z()<<")"<<endmsg;
67  sl<<"}"<<endmsg;
68  return sl;
69 }

◆ dump() [2/2]

std::ostream & InDet::SiClusterOnTrack::dump ( std::ostream &  out) const
overridevirtual

returns some information about this RIO_OnTrack.

Reimplemented from Trk::RIO_OnTrack.

Reimplemented in InDet::PixelClusterOnTrack, and InDet::SCT_ClusterOnTrack.

Definition at line 71 of file SiClusterOnTrack.cxx.

72 {
73  sl << "SiClusterOnTrack {"<<std::endl;
74 
76 
77  sl << "Global position (x,y,z) = (";
78  sl <<this->globalPosition().x()<<", "
79  <<this->globalPosition().y()<<", "
80  <<this->globalPosition().z()<<")"<<std::endl;
81  sl<<"}"<<std::endl;
82  return sl;
83 }

◆ globalPosition()

const Amg::Vector3D & InDet::SiClusterOnTrack::globalPosition ( ) const
inlineoverridevirtual

returns global position (gathered through Surface constraint)

Implements Trk::RIO_OnTrack.

Definition at line 115 of file SiClusterOnTrack.h.

115  {
116  return m_globalPosition;
117  }

◆ idDE()

IdentifierHash InDet::SiClusterOnTrack::idDE ( ) const
inlineoverridevirtual

returns the DE hashID*

Implements Trk::RIO_OnTrack.

Definition at line 119 of file SiClusterOnTrack.h.

120  {
121  return m_idDE;
122  }

◆ identify()

Identifier Trk::RIO_OnTrack::identify ( ) const
inlineinherited

return the identifier -extends MeasurementBase

Definition at line 152 of file RIO_OnTrack.h.

153  { return m_identifier; }

◆ isBroadCluster()

bool InDet::SiClusterOnTrack::isBroadCluster ( ) const
inline

Definition at line 124 of file SiClusterOnTrack.h.

125  {
126  return m_isbroad;
127  }

◆ 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 }

◆ 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 }

◆ numberOfInstantiations()

static std::size_t Trk::ObjectCounter< Trk::RIO_OnTrack >::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  }

◆ operator=() [1/2]

SiClusterOnTrack& InDet::SiClusterOnTrack::operator= ( const SiClusterOnTrack rot)
default

◆ operator=() [2/2]

SiClusterOnTrack& InDet::SiClusterOnTrack::operator= ( SiClusterOnTrack &&  rot)
default

◆ prepRawData()

virtual const Trk::PrepRawData* Trk::RIO_OnTrack::prepRawData ( ) const
pure virtualinherited

returns the PrepRawData (also known as RIO) object to which this RIO_OnTrack is associated.

Can be null (in case where the Trk::PrepRawData is not persistified). Use Detector Element if possible (this is always there).

Implemented in Muon::MuonClusterOnTrack, Muon::MdtDriftCircleOnTrack, InDet::PixelClusterOnTrack, InDet::TRT_DriftCircleOnTrack, InDet::SCT_ClusterOnTrack, HGTD_ClusterOnTrack, Muon::CscClusterOnTrack, Muon::RpcClusterOnTrack, Muon::sTgcClusterOnTrack, Muon::TgcClusterOnTrack, and Muon::MMClusterOnTrack.

◆ rioType()

virtual bool InDet::SiClusterOnTrack::rioType ( Trk::RIO_OnTrackType::Type  type) const
overridepure virtual

Method checking the Rio On Track type.

Implements Trk::RIO_OnTrack.

Implemented in InDet::PixelClusterOnTrack, and InDet::SCT_ClusterOnTrack.

◆ setValues()

virtual void InDet::SiClusterOnTrack::setValues ( const Trk::TrkDetElementBase detEl,
const Trk::PrepRawData prd 
)
overrideprotectedpure virtual

ONLY for use in custom convertor Allows the custom convertor to reset values when persistying/reading back RoTs.

Implements Trk::RIO_OnTrack.

Implemented in InDet::PixelClusterOnTrack, and InDet::SCT_ClusterOnTrack.

◆ type()

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

Extended method checking the type.

Implements Trk::MeasurementBase.

Definition at line 110 of file RIO_OnTrack.h.

111  {
113  }

◆ uniqueClone()

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

NVI clone returning unique_ptr.

Definition at line 97 of file RIO_OnTrack.h.

97  {
98  return std::unique_ptr<RIO_OnTrack>(clone());
99  };

Friends And Related Function Documentation

◆ ::SiClusterOnTrackCnv_p1

friend class ::SiClusterOnTrackCnv_p1
friend

Definition at line 101 of file SiClusterOnTrack.h.

Member Data Documentation

◆ m_globalPosition

Amg::Vector3D InDet::SiClusterOnTrack::m_globalPosition
protected

The global position.

Definition at line 111 of file SiClusterOnTrack.h.

◆ m_idDE

IdentifierHash InDet::SiClusterOnTrack::m_idDE
protected

The IdentifierHash - probably not used.

Definition at line 109 of file SiClusterOnTrack.h.

◆ m_identifier

Identifier Trk::RIO_OnTrack::m_identifier {}
protectedinherited

Identifier of the RIO_OnTrack (comes from the associated Trk::PrepRawData)

Definition at line 149 of file RIO_OnTrack.h.

◆ m_isbroad

bool InDet::SiClusterOnTrack::m_isbroad
protected

Definition at line 112 of file SiClusterOnTrack.h.

◆ m_localCovariance

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

Definition at line 112 of file MeasurementBase.h.

◆ m_localParams

LocalParameters Trk::MeasurementBase::m_localParams
protectedinherited

Definition at line 111 of file MeasurementBase.h.

◆ s_numberOfInstantiations

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

Definition at line 22 of file TrkObjectCounter.h.


The documentation for this class was generated from the following files:
Trk::RIO_OnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override
returns the some information about this RIO_OnTrack.
Definition: RIO_OnTrack.cxx:32
InDet::SiClusterOnTrack::idDE
virtual IdentifierHash idDE() const override
returns the DE hashID*
Definition: SiClusterOnTrack.h:119
InDet::SiClusterOnTrack::m_idDE
IdentifierHash m_idDE
The IdentifierHash - probably not used.
Definition: SiClusterOnTrack.h:109
Trk::RIO_OnTrack::clone
virtual RIO_OnTrack * clone() const override=0
Pseudo-constructor, needed to avoid excessive RTTI.
InDet::SiClusterOnTrack::m_isbroad
bool m_isbroad
Definition: SiClusterOnTrack.h:112
Trk::RIO_OnTrack::type
virtual bool type(MeasurementBaseType::Type type) const override final
Extended method checking the type.
Definition: RIO_OnTrack.h:110
Trk::RIO_OnTrack::RIO_OnTrack
RIO_OnTrack()=default
Default Constructor for POOL.
InDet::SiClusterOnTrack::globalPosition
virtual const Amg::Vector3D & globalPosition() const override
returns global position (gathered through Surface constraint)
Definition: SiClusterOnTrack.h:115
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::MeasurementBase::m_localParams
LocalParameters m_localParams
Definition: MeasurementBase.h:111
InDet::SiClusterOnTrack::m_globalPosition
Amg::Vector3D m_globalPosition
The global position.
Definition: SiClusterOnTrack.h:111
Trk::MeasurementBaseType::RIO_OnTrack
@ RIO_OnTrack
Definition: MeasurementBase.h:49
Trk::MeasurementBase::m_localCovariance
Amg::MatrixX m_localCovariance
Definition: MeasurementBase.h:112
Trk::ObjectCounter< Trk::RIO_OnTrack >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
Trk::RIO_OnTrack::m_identifier
Identifier m_identifier
Identifier of the RIO_OnTrack (comes from the associated Trk::PrepRawData)
Definition: RIO_OnTrack.h:149