ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrkDriftCircleMath::Cluster Class Reference

class representing a cluster meaurement More...

#include <Cluster.h>

Collaboration diagram for TrkDriftCircleMath::Cluster:

Public Member Functions

 Cluster (const LocVec2D &pos, double err)
 minimal constructor: More...
 
 Cluster (const LocVec2D &pos, double err, ClusterId id, const Muon::MuonClusterOnTrack *rot, unsigned int index)
 full constructor: More...
 
 ~Cluster ()=default
 
const LocVec2Dposition () const
 local position of the cluster More...
 
const ClusterIdid () const
 cluster identifier More...
 
double x () const
 direct access to local x coordinate of cluster More...
 
double y () const
 direct access to y coordinate of cluster More...
 
double err () const
 error on cluster position More...
 
const Muon::MuonClusterOnTrackrot () const
 index of cluster in input vector, use to link back the cluster to the MuonClusterOnTrack More...
 
unsigned int index () const
 : Index w.r.t cluster vector More...
 

Private Attributes

LocVec2D m_pos {0., 0.}
 
double m_err {0.}
 
ClusterId m_id {}
 
const Muon::MuonClusterOnTrackm_rot {nullptr}
 
unsigned int m_idx {0}
 

Detailed Description

class representing a cluster meaurement

Definition at line 22 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

Constructor & Destructor Documentation

◆ Cluster() [1/2]

TrkDriftCircleMath::Cluster::Cluster ( const LocVec2D pos,
double  err 
)
inline

minimal constructor:

Parameters
poslocal position of cluster
errerror on cluster position

Definition at line 27 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

27 : m_pos(pos), m_err(err) {}

◆ Cluster() [2/2]

TrkDriftCircleMath::Cluster::Cluster ( const LocVec2D pos,
double  err,
ClusterId  id,
const Muon::MuonClusterOnTrack rot,
unsigned int  index 
)
inline

full constructor:

Parameters
poslocal position of cluster
errerror on cluster position
idcluster identifier
rotPointer to the ROT out of which the cluster is made
indexindex of cluster use to link it back to the original RIO_OnTrack

Definition at line 35 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

37  :
38  m_pos(pos), m_err(err), m_id(id), m_rot{rot}, m_idx{index} {}

◆ ~Cluster()

TrkDriftCircleMath::Cluster::~Cluster ( )
default

Member Function Documentation

◆ err()

double TrkDriftCircleMath::Cluster::err ( ) const
inline

error on cluster position

Definition at line 55 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

55 { return m_err; }

◆ id()

const ClusterId& TrkDriftCircleMath::Cluster::id ( ) const
inline

cluster identifier

Definition at line 46 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

46 { return m_id; }

◆ index()

unsigned int TrkDriftCircleMath::Cluster::index ( ) const
inline

: Index w.r.t cluster vector

Definition at line 60 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

60 { return m_idx; }

◆ position()

const LocVec2D& TrkDriftCircleMath::Cluster::position ( ) const
inline

local position of the cluster

Definition at line 43 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

43 { return m_pos; }

◆ rot()

const Muon::MuonClusterOnTrack* TrkDriftCircleMath::Cluster::rot ( ) const
inline

index of cluster in input vector, use to link back the cluster to the MuonClusterOnTrack

Definition at line 58 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

58 { return m_rot; }

◆ x()

double TrkDriftCircleMath::Cluster::x ( ) const
inline

direct access to local x coordinate of cluster

Definition at line 49 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

49 { return m_pos.x(); }

◆ y()

double TrkDriftCircleMath::Cluster::y ( ) const
inline

direct access to y coordinate of cluster

Definition at line 52 of file Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h.

52 { return m_pos.y(); }

Member Data Documentation

◆ m_err

double TrkDriftCircleMath::Cluster::m_err {0.}
private

◆ m_id

ClusterId TrkDriftCircleMath::Cluster::m_id {}
private

◆ m_idx

unsigned int TrkDriftCircleMath::Cluster::m_idx {0}
private

◆ m_pos

LocVec2D TrkDriftCircleMath::Cluster::m_pos {0., 0.}
private

◆ m_rot

const Muon::MuonClusterOnTrack* TrkDriftCircleMath::Cluster::m_rot {nullptr}
private

The documentation for this class was generated from the following file:
TrkDriftCircleMath::Cluster::m_err
double m_err
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:64
index
Definition: index.py:1
TrkDriftCircleMath::Cluster::m_rot
const Muon::MuonClusterOnTrack * m_rot
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:66
TrkDriftCircleMath::Cluster::err
double err() const
error on cluster position
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:55
TrkDriftCircleMath::LocVec2D::x
double x() const
Returns the x coordinate of the vector.
Definition: LocVec2D.h:27
TrkDriftCircleMath::Cluster::m_pos
LocVec2D m_pos
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:63
TrkDriftCircleMath::LocVec2D::y
double y() const
Returns the y coordinate of the vector.
Definition: LocVec2D.h:29
TrkDriftCircleMath::Cluster::m_idx
unsigned int m_idx
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:67
TrkDriftCircleMath::Cluster::m_id
ClusterId m_id
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:65
TrkDriftCircleMath::Cluster::rot
const Muon::MuonClusterOnTrack * rot() const
index of cluster in input vector, use to link back the cluster to the MuonClusterOnTrack
Definition: Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Cluster.h:58
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18