ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
AFPSiClusterBasicObj Class Reference

Class representing basic silicon pixels cluster, designed to be used for creating the clusters. More...

#include <AFPSiClusterBasicObj.h>

Collaboration diagram for AFPSiClusterBasicObj:

Public Member Functions

 AFPSiClusterBasicObj (const xAOD::AFPSiHit *hit, const int clusterAlgID)
 Constructs object from the hit. Horizontal and vertical errors are set to \(1/\sqrt{12} \approx 0.289\) i.e. standard deviation of uniform distribution. More...
 
 AFPSiClusterBasicObj (const float horizID, const float vertID, const float charge, const int clusterAlgID)
 Constructs object with given horizontal and vertical positions (ID numbers) and charge. VertID and horizID errors are set to \(1/\sqrt{12} \approx 0.289\) i.e. standard deviation of uniform distribution. More...
 
 AFPSiClusterBasicObj (const float horizID, const float horizIDErr, const float vertID, const float vertIDErr, const float charge, const int clusterAlgID)
 
float horizID () const
 horizontal position (ID number) of the cluster (float because it can be weighted mean of hits) More...
 
void setHorizID (const float horizID)
 
float horizIDErr () const
 uncertainty of horizontal position (ID number) in fraction More...
 
void setHorizIDErr (const float horizIDErr)
 
float vertID () const
 vertical position (ID number) of the cluster (float because it can be weighted mean of hits) More...
 
void setVertID (const float vertID)
 
float vertIDErr () const
 uncertainty of vertical position (ID number) in fraction More...
 
void setVertIDErr (const float vertIDErr)
 
double charge () const
 charge of the cluster More...
 
void setCharge (const double charge)
 
int clusterAlgID () const
 clustering algorithm ID number (use xAOD::AFPClusterAlgID for labels) More...
 
void setClusterAlgID (const int clusterAlgID)
 
std::list< const xAOD::AFPSiHit * > & hits ()
 list of pixels used to form the cluster More...
 
const std::list< const xAOD::AFPSiHit * > & hits () const
 list of pixels used to form the cluster More...
 

Protected Attributes

float m_horizID
 horizontal position (ID number) of the cluster (float because it can be weighted mean of hits) More...
 
float m_horizIDErr
 uncertainty of horizontal position (ID number) in fraction More...
 
float m_vertID
 vertical position (ID number) of the cluster (float because it can be weighted mean of hits) More...
 
float m_vertIDErr
 uncertainty of vertical position (ID number) in fraction More...
 
double m_charge
 charge of the cluster More...
 
int m_clusterAlgID
 clustering algorithm ID number (use xAOD::AFPClusterAlgID for labels) More...
 
std::list< const xAOD::AFPSiHit * > m_hits
 list of pixels used to form the cluster More...
 

Detailed Description

Class representing basic silicon pixels cluster, designed to be used for creating the clusters.

Simple class contains only charge, column and row information. The main purpose of this class is to provide object that can be modified in the clustering algorithm.

Definition at line 27 of file AFPSiClusterBasicObj.h.

Constructor & Destructor Documentation

◆ AFPSiClusterBasicObj() [1/3]

AFPSiClusterBasicObj::AFPSiClusterBasicObj ( const xAOD::AFPSiHit hit,
const int  clusterAlgID 
)
inline

Constructs object from the hit. Horizontal and vertical errors are set to \(1/\sqrt{12} \approx 0.289\) i.e. standard deviation of uniform distribution.

Definition at line 31 of file AFPSiClusterBasicObj.h.

31  :
32  m_horizID(hit->pixelHorizID()), m_horizIDErr(0.289), m_vertID(hit->pixelVertID()), m_vertIDErr(0.289), m_charge(hit->depositedCharge()), m_clusterAlgID (clusterAlgID) {m_hits.push_back(hit);}

◆ AFPSiClusterBasicObj() [2/3]

AFPSiClusterBasicObj::AFPSiClusterBasicObj ( const float  horizID,
const float  vertID,
const float  charge,
const int  clusterAlgID 
)
inline

Constructs object with given horizontal and vertical positions (ID numbers) and charge. VertID and horizID errors are set to \(1/\sqrt{12} \approx 0.289\) i.e. standard deviation of uniform distribution.

Definition at line 35 of file AFPSiClusterBasicObj.h.

◆ AFPSiClusterBasicObj() [3/3]

AFPSiClusterBasicObj::AFPSiClusterBasicObj ( const float  horizID,
const float  horizIDErr,
const float  vertID,
const float  vertIDErr,
const float  charge,
const int  clusterAlgID 
)
inline

Member Function Documentation

◆ charge()

double AFPSiClusterBasicObj::charge ( ) const
inline

charge of the cluster

Definition at line 62 of file AFPSiClusterBasicObj.h.

62 {return m_charge;}

◆ clusterAlgID()

int AFPSiClusterBasicObj::clusterAlgID ( ) const
inline

clustering algorithm ID number (use xAOD::AFPClusterAlgID for labels)

Definition at line 67 of file AFPSiClusterBasicObj.h.

67 {return m_clusterAlgID;}

◆ hits() [1/2]

std::list<const xAOD::AFPSiHit*>& AFPSiClusterBasicObj::hits ( )
inline

list of pixels used to form the cluster

Definition at line 72 of file AFPSiClusterBasicObj.h.

72 {return m_hits;}

◆ hits() [2/2]

const std::list<const xAOD::AFPSiHit*>& AFPSiClusterBasicObj::hits ( ) const
inline

list of pixels used to form the cluster

Definition at line 75 of file AFPSiClusterBasicObj.h.

75 {return m_hits;}

◆ horizID()

float AFPSiClusterBasicObj::horizID ( ) const
inline

horizontal position (ID number) of the cluster (float because it can be weighted mean of hits)

Definition at line 42 of file AFPSiClusterBasicObj.h.

42 {return m_horizID;}

◆ horizIDErr()

float AFPSiClusterBasicObj::horizIDErr ( ) const
inline

uncertainty of horizontal position (ID number) in fraction

Definition at line 47 of file AFPSiClusterBasicObj.h.

47 {return m_horizIDErr;}

◆ setCharge()

void AFPSiClusterBasicObj::setCharge ( const double  charge)
inline

Definition at line 64 of file AFPSiClusterBasicObj.h.

64 {m_charge = charge;}

◆ setClusterAlgID()

void AFPSiClusterBasicObj::setClusterAlgID ( const int  clusterAlgID)
inline

Definition at line 69 of file AFPSiClusterBasicObj.h.

◆ setHorizID()

void AFPSiClusterBasicObj::setHorizID ( const float  horizID)
inline

Definition at line 44 of file AFPSiClusterBasicObj.h.

44 {m_horizID = horizID;}

◆ setHorizIDErr()

void AFPSiClusterBasicObj::setHorizIDErr ( const float  horizIDErr)
inline

Definition at line 49 of file AFPSiClusterBasicObj.h.

◆ setVertID()

void AFPSiClusterBasicObj::setVertID ( const float  vertID)
inline

Definition at line 54 of file AFPSiClusterBasicObj.h.

54 {m_vertID = vertID;}

◆ setVertIDErr()

void AFPSiClusterBasicObj::setVertIDErr ( const float  vertIDErr)
inline

Definition at line 59 of file AFPSiClusterBasicObj.h.

◆ vertID()

float AFPSiClusterBasicObj::vertID ( ) const
inline

vertical position (ID number) of the cluster (float because it can be weighted mean of hits)

Definition at line 52 of file AFPSiClusterBasicObj.h.

52 {return m_vertID;}

◆ vertIDErr()

float AFPSiClusterBasicObj::vertIDErr ( ) const
inline

uncertainty of vertical position (ID number) in fraction

Definition at line 57 of file AFPSiClusterBasicObj.h.

57 {return m_vertIDErr;}

Member Data Documentation

◆ m_charge

double AFPSiClusterBasicObj::m_charge
protected

charge of the cluster

Definition at line 82 of file AFPSiClusterBasicObj.h.

◆ m_clusterAlgID

int AFPSiClusterBasicObj::m_clusterAlgID
protected

clustering algorithm ID number (use xAOD::AFPClusterAlgID for labels)

Definition at line 83 of file AFPSiClusterBasicObj.h.

◆ m_hits

std::list<const xAOD::AFPSiHit*> AFPSiClusterBasicObj::m_hits
protected

list of pixels used to form the cluster

Definition at line 86 of file AFPSiClusterBasicObj.h.

◆ m_horizID

float AFPSiClusterBasicObj::m_horizID
protected

horizontal position (ID number) of the cluster (float because it can be weighted mean of hits)

Definition at line 78 of file AFPSiClusterBasicObj.h.

◆ m_horizIDErr

float AFPSiClusterBasicObj::m_horizIDErr
protected

uncertainty of horizontal position (ID number) in fraction

Definition at line 79 of file AFPSiClusterBasicObj.h.

◆ m_vertID

float AFPSiClusterBasicObj::m_vertID
protected

vertical position (ID number) of the cluster (float because it can be weighted mean of hits)

Definition at line 80 of file AFPSiClusterBasicObj.h.

◆ m_vertIDErr

float AFPSiClusterBasicObj::m_vertIDErr
protected

uncertainty of vertical position (ID number) in fraction

Definition at line 81 of file AFPSiClusterBasicObj.h.


The documentation for this class was generated from the following file:
AFPSiClusterBasicObj::m_vertID
float m_vertID
vertical position (ID number) of the cluster (float because it can be weighted mean of hits)
Definition: AFPSiClusterBasicObj.h:80
AFPSiClusterBasicObj::clusterAlgID
int clusterAlgID() const
clustering algorithm ID number (use xAOD::AFPClusterAlgID for labels)
Definition: AFPSiClusterBasicObj.h:67
AFPSiClusterBasicObj::charge
double charge() const
charge of the cluster
Definition: AFPSiClusterBasicObj.h:62
AFPSiClusterBasicObj::m_horizIDErr
float m_horizIDErr
uncertainty of horizontal position (ID number) in fraction
Definition: AFPSiClusterBasicObj.h:79
xAOD::AFPSiHit_v2::pixelHorizID
int pixelHorizID() const
Index of the pixel along X axis in LHC coordinate system.
Definition: AFPSiHit_v2.cxx:37
AFPSiClusterBasicObj::m_hits
std::list< const xAOD::AFPSiHit * > m_hits
list of pixels used to form the cluster
Definition: AFPSiClusterBasicObj.h:86
AFPSiClusterBasicObj::m_clusterAlgID
int m_clusterAlgID
clustering algorithm ID number (use xAOD::AFPClusterAlgID for labels)
Definition: AFPSiClusterBasicObj.h:83
AFPSiClusterBasicObj::m_horizID
float m_horizID
horizontal position (ID number) of the cluster (float because it can be weighted mean of hits)
Definition: AFPSiClusterBasicObj.h:78
xAOD::AFPSiHit_v2::pixelVertID
int pixelVertID() const
Index of the pixel along Y axis in LHC coordinate system.
Definition: AFPSiHit_v2.cxx:52
xAOD::AFPSiHit_v2::depositedCharge
float depositedCharge() const
Charge deposited in the pixel.
AFPSiClusterBasicObj::horizID
float horizID() const
horizontal position (ID number) of the cluster (float because it can be weighted mean of hits)
Definition: AFPSiClusterBasicObj.h:42
AFPSiClusterBasicObj::horizIDErr
float horizIDErr() const
uncertainty of horizontal position (ID number) in fraction
Definition: AFPSiClusterBasicObj.h:47
AFPSiClusterBasicObj::vertIDErr
float vertIDErr() const
uncertainty of vertical position (ID number) in fraction
Definition: AFPSiClusterBasicObj.h:57
AFPSiClusterBasicObj::m_charge
double m_charge
charge of the cluster
Definition: AFPSiClusterBasicObj.h:82
AFPSiClusterBasicObj::vertID
float vertID() const
vertical position (ID number) of the cluster (float because it can be weighted mean of hits)
Definition: AFPSiClusterBasicObj.h:52
AFPSiClusterBasicObj::m_vertIDErr
float m_vertIDErr
uncertainty of vertical position (ID number) in fraction
Definition: AFPSiClusterBasicObj.h:81