ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
InDet::SCT_Cluster Class Referencefinal

#include <SCT_Cluster.h>

Inheritance diagram for InDet::SCT_Cluster:
Collaboration diagram for InDet::SCT_Cluster:

Public Member Functions

 SCT_Cluster ()=default
 Constructor without parameters. More...
 
 SCT_Cluster (const SCT_Cluster &)=default
 Copy constructor. More...
 
 SCT_Cluster (SCT_Cluster &&) noexcept=default
 Move constructor. More...
 
SCT_Clusteroperator= (const SCT_Cluster &)=default
 Assignment operator. More...
 
SCT_Clusteroperator= (SCT_Cluster &&) noexcept=default
 Move assignment operator. More...
 
virtual ~SCT_Cluster ()
 Destructor: More...
 
 SCT_Cluster (const Identifier &RDOId, const Amg::Vector2D &locpos, std::vector< Identifier > &&rdoList, const InDet::SiWidth &width, const InDetDD::SiDetectorElement *detEl, Amg::MatrixX &&locErrMat)
 Constructor with parameters using unique_ptr of Amg::MatrixX. More...
 
virtual bool type (Trk::PrepRawDataType type) const override final
 Interface method checking the type. More...
 
virtual MsgStream & dump (MsgStream &stream) const override final
 dump information about the PRD object. More...
 
virtual std::ostream & dump (std::ostream &stream) const override final
 dump information about the PRD object. More...
 
uint16_t hitsInThirdTimeBin () const
 Getter method of timing. More...
 
void setHitsInThirdTimeBin (uint16_t hitsInThirdTimeBin)
 Setter method of timing. More...
 
int stripHasHitInThirdTimeBin (int stripNumberWithinCluster) const
 Getter method of timing. More...
 
Identifier identify () const
 return the identifier More...
 
const Amg::Vector2DlocalPosition () const
 return the local position reference More...
 
const std::vector< Identifier > & rdoList () const
 return the List of rdo identifiers (pointers) More...
 
const Amg::MatrixXlocalCovariance () const
 return const ref to the error matrix More...
 
bool hasLocalCovariance () const
 returns localCovariance().size()!=0 More...
 
void setHashAndIndex (unsigned short collHash, unsigned short objIndex)
 TEMP for testing: might make some classes friends later ... More...
 
const IdentContIndexgetHashAndIndex () const
 

Static Public Member Functions

static std::size_t numberOfInstantiations ()
 

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations
 

Private Attributes

uint16_t m_hitsInThirdTimeBin = 0
 Some information about timing - which strips had 010 and which 011 for first 16 strips in a cluster. More...
 
Identifier m_clusId { 0 }
 PrepRawData ID, not const because of DataPool. More...
 
Amg::Vector2D m_localPos {}
 see derived classes for definition of meaning of LocalPosition More...
 
std::vector< Identifierm_rdoList {}
 Stores the identifiers of the RDOs. More...
 
Amg::MatrixX m_localCovariance {}
 See derived classes for definition of ErrorMatrix. More...
 
IdentContIndex m_indexAndHash
 Stores its own position (index) in collection plus the hash id for the collection (needed for the EL to IDC) More...
 

Virtual methods

Amg::Vector3D m_globalPosition = Amg::Vector3D::Zero()
 
InDet::SiWidth m_width {}
 col, row, and width in mm More...
 
const InDetDD::SiDetectorElementm_detEl = nullptr
 Not owning points (ownned by the store. More...
 
bool m_gangedPixel = false
 
const InDet::SiWidthwidth () const
 return width class reference More...
 
const Amg::Vector3DglobalPosition () const
 return global position reference More...
 
void setGangedPixel (bool ganged)
 set the flag of this cluster containing a gangedPixel More...
 
bool gangedPixel () const
 return the flag of this cluster containing a gangedPixel More...
 
virtual const InDetDD::SiDetectorElementdetectorElement () const override final
 return the detector element corresponding to this PRD The pointer will be zero if the det el is not defined (i.e. More...
 
void setDetectorElement (const InDetDD::SiDetectorElement *detEl)
 Set the m_detEl and calculate globalPostion. More...
 

Detailed Description

Definition at line 34 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h.

Constructor & Destructor Documentation

◆ SCT_Cluster() [1/4]

InDet::SCT_Cluster::SCT_Cluster ( )
default

Constructor without parameters.

◆ SCT_Cluster() [2/4]

InDet::SCT_Cluster::SCT_Cluster ( const SCT_Cluster )
default

Copy constructor.

◆ SCT_Cluster() [3/4]

InDet::SCT_Cluster::SCT_Cluster ( SCT_Cluster &&  )
defaultnoexcept

Move constructor.

◆ ~SCT_Cluster()

InDet::SCT_Cluster::~SCT_Cluster ( )
virtualdefault

Destructor:

◆ SCT_Cluster() [4/4]

InDet::SCT_Cluster::SCT_Cluster ( const Identifier RDOId,
const Amg::Vector2D locpos,
std::vector< Identifier > &&  rdoList,
const InDet::SiWidth width,
const InDetDD::SiDetectorElement detEl,
Amg::MatrixX &&  locErrMat 
)

Constructor with parameters using unique_ptr of Amg::MatrixX.

All parameters have to be given! For use by tp converter.

Definition at line 25 of file SCT_Cluster.cxx.

31  : SiCluster(RDOId,
32  locpos,
33  std::move(rdoList),
34  width,
35  detEl,
36  std::move(locErrMat))
38 {}

Member Function Documentation

◆ detectorElement()

virtual const InDetDD::SiDetectorElement* InDet::SiCluster::detectorElement ( ) const
finaloverridevirtualinherited

return the detector element corresponding to this PRD The pointer will be zero if the det el is not defined (i.e.

it was not passed in by the ctor)

Implements Trk::PrepRawData.

◆ dump() [1/2]

MsgStream & InDet::SCT_Cluster::dump ( MsgStream &  stream) const
finaloverridevirtual

dump information about the PRD object.

Reimplemented from InDet::SiCluster.

Definition at line 57 of file SCT_Cluster.cxx.

58 {
59  std::ostringstream out;
60  dump(out);
61  stream<<out.str();
62  return stream;
63 }

◆ dump() [2/2]

std::ostream & InDet::SCT_Cluster::dump ( std::ostream &  stream) const
finaloverridevirtual

dump information about the PRD object.

Reimplemented from InDet::SiCluster.

Definition at line 65 of file SCT_Cluster.cxx.

66 {
67  stream << "SCT_Cluster object"<<std::endl;
68  stream << "Base class (SiCluster):" << std::endl;
69  this->SiCluster::dump(stream);
70 
71  return stream;
72 }

◆ gangedPixel()

bool InDet::SiCluster::gangedPixel ( ) const
inherited

return the flag of this cluster containing a gangedPixel

◆ getHashAndIndex()

const IdentContIndex& Trk::PrepRawData::getHashAndIndex ( ) const
inherited

◆ globalPosition()

const Amg::Vector3D& InDet::SiCluster::globalPosition ( ) const
inherited

return global position reference

◆ hasLocalCovariance()

bool Trk::PrepRawData::hasLocalCovariance ( ) const
inherited

◆ hitsInThirdTimeBin()

uint16_t InDet::SCT_Cluster::hitsInThirdTimeBin ( ) const
inline

Getter method of timing.

Some information about timing - which strips had 010 and which 011 for first 16 strips in a cluster. Get up to 16 strips.

Definition at line 93 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h.

94  {
95  return m_hitsInThirdTimeBin;
96  }

◆ identify()

Identifier Trk::PrepRawData::identify ( ) const
inherited

return the identifier

◆ localCovariance()

const Amg::MatrixX& Trk::PrepRawData::localCovariance ( ) const
inherited

return const ref to the error matrix

◆ localPosition()

const Amg::Vector2D& Trk::PrepRawData::localPosition ( ) const
inherited

return the local position reference

◆ numberOfInstantiations()

static std::size_t Trk::ObjectCounter< Trk::PrepRawData >::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]

SCT_Cluster& InDet::SCT_Cluster::operator= ( const SCT_Cluster )
default

Assignment operator.

◆ operator=() [2/2]

SCT_Cluster& InDet::SCT_Cluster::operator= ( SCT_Cluster &&  )
defaultnoexcept

Move assignment operator.

◆ rdoList()

const std::vector<Identifier>& Trk::PrepRawData::rdoList ( ) const
inherited

return the List of rdo identifiers (pointers)

◆ setDetectorElement()

void InDet::SiCluster::setDetectorElement ( const InDetDD::SiDetectorElement detEl)
inherited

Set the m_detEl and calculate globalPostion.

◆ setGangedPixel()

void InDet::SiCluster::setGangedPixel ( bool  ganged)
inherited

set the flag of this cluster containing a gangedPixel

◆ setHashAndIndex()

void Trk::PrepRawData::setHashAndIndex ( unsigned short  collHash,
unsigned short  objIndex 
)
inherited

TEMP for testing: might make some classes friends later ...

◆ setHitsInThirdTimeBin()

void InDet::SCT_Cluster::setHitsInThirdTimeBin ( uint16_t  hitsInThirdTimeBin)
inline

Setter method of timing.

Some information about timing - which strips had 010 and which 011 for first 16 strips in a cluster. Set up to 16 strips

Definition at line 98 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h.

99  {
101  }

◆ stripHasHitInThirdTimeBin()

int InDet::SCT_Cluster::stripHasHitInThirdTimeBin ( int  stripNumberWithinCluster) const
inline

Getter method of timing.

Some information about timing - which strips had 010 and which 011 for first 16 strips in a cluster. Get only one strip.

Definition at line 104 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h.

104  {
105  return stripNumberWithinCluster <= 16 ? (int)((m_hitsInThirdTimeBin >> stripNumberWithinCluster) & 0x1): 0;
106 
107  }

◆ type()

bool InDet::SCT_Cluster::type ( Trk::PrepRawDataType  type) const
finaloverridevirtual

Interface method checking the type.

Reimplemented from InDet::SiCluster.

Definition at line 53 of file SCT_Cluster.cxx.

◆ width()

const InDet::SiWidth& InDet::SiCluster::width ( ) const
inherited

return width class reference

Member Data Documentation

◆ m_clusId

Identifier Trk::PrepRawData::m_clusId { 0 }
privateinherited

PrepRawData ID, not const because of DataPool.

Definition at line 151 of file PrepRawData.h.

◆ m_detEl

const InDetDD::SiDetectorElement* InDet::SiCluster::m_detEl = nullptr
privateinherited

Not owning points (ownned by the store.

Definition at line 139 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h.

◆ m_gangedPixel

bool InDet::SiCluster::m_gangedPixel = false
privateinherited

◆ m_globalPosition

Amg::Vector3D InDet::SiCluster::m_globalPosition = Amg::Vector3D::Zero()
privateinherited

◆ m_hitsInThirdTimeBin

uint16_t InDet::SCT_Cluster::m_hitsInThirdTimeBin = 0
private

Some information about timing - which strips had 010 and which 011 for first 16 strips in a cluster.

Definition at line 89 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h.

◆ m_indexAndHash

IdentContIndex Trk::PrepRawData::m_indexAndHash
privateinherited

Stores its own position (index) in collection plus the hash id for the collection (needed for the EL to IDC)

Definition at line 162 of file PrepRawData.h.

◆ m_localCovariance

Amg::MatrixX Trk::PrepRawData::m_localCovariance {}
privateinherited

See derived classes for definition of ErrorMatrix.

Definition at line 158 of file PrepRawData.h.

◆ m_localPos

Amg::Vector2D Trk::PrepRawData::m_localPos {}
privateinherited

see derived classes for definition of meaning of LocalPosition

Definition at line 154 of file PrepRawData.h.

◆ m_rdoList

std::vector<Identifier> Trk::PrepRawData::m_rdoList {}
privateinherited

Stores the identifiers of the RDOs.

Definition at line 156 of file PrepRawData.h.

◆ m_width

InDet::SiWidth InDet::SiCluster::m_width {}
privateinherited

col, row, and width in mm

Definition at line 137 of file InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h.

◆ s_numberOfInstantiations

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

Definition at line 22 of file TrkObjectCounter.h.


The documentation for this class was generated from the following files:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Trk::PrepRawData::rdoList
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
InDet::SCT_Cluster::m_hitsInThirdTimeBin
uint16_t m_hitsInThirdTimeBin
Some information about timing - which strips had 010 and which 011 for first 16 strips in a cluster.
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h:89
Trk::PrepRawDataType::SiCluster
@ SiCluster
InDet::SiCluster::dump
virtual MsgStream & dump(MsgStream &stream) const override
dump information about the SiCluster
Definition: SiCluster.cxx:88
InDet::SCT_Cluster::hitsInThirdTimeBin
uint16_t hitsInThirdTimeBin() const
Getter method of timing.
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h:93
InDet::SCT_Cluster::dump
virtual MsgStream & dump(MsgStream &stream) const override final
dump information about the PRD object.
Definition: SCT_Cluster.cxx:57
Trk::ObjectCounter< Trk::PrepRawData >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
InDet::SiCluster::width
const InDet::SiWidth & width() const
return width class reference
Trk::PrepRawDataType::SCT_Cluster
@ SCT_Cluster
InDet::SiCluster::SiCluster
SiCluster()=default
InDet::SCT_Cluster::type
virtual bool type(Trk::PrepRawDataType type) const override final
Interface method checking the type.
Definition: SCT_Cluster.cxx:53