ATLAS Offline Software
AFPSiClusterBasicObj.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFP_SICLUSTERTOOLS_AFPSICLUSTERBASICOBJ_H
6 #define AFP_SICLUSTERTOOLS_AFPSICLUSTERBASICOBJ_H 1
7 
16 #include <list>
17 #include "xAODForward/AFPSiHit.h"
18 
28 {
29 public:
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);}
33 
35  AFPSiClusterBasicObj (const float horizID, const float vertID, const float charge, const int clusterAlgID) :
37 
38  AFPSiClusterBasicObj (const float horizID, const float horizIDErr, const float vertID, const float vertIDErr, const float charge, const int clusterAlgID) :
40 
42  float horizID() const {return m_horizID;}
43 
44  void setHorizID(const float horizID) {m_horizID = horizID;}
45 
47  float horizIDErr() const {return m_horizIDErr;}
48 
50 
52  float vertID() const {return m_vertID;}
53 
54  void setVertID(const float vertID) {m_vertID = vertID;}
55 
57  float vertIDErr() const {return m_vertIDErr;}
58 
59  void setVertIDErr(const float vertIDErr) {m_vertIDErr = vertIDErr;}
60 
62  double charge() const {return m_charge;}
63 
64  void setCharge(const double charge) {m_charge = charge;}
65 
67  int clusterAlgID () const {return m_clusterAlgID;}
68 
70 
72  std::list<const xAOD::AFPSiHit*>& hits() {return m_hits;}
73 
75  const std::list<const xAOD::AFPSiHit*>& hits() const {return m_hits;}
76 
77 protected:
78  float m_horizID;
79  float m_horizIDErr;
80  float m_vertID;
81  float m_vertIDErr;
82  double m_charge;
84 
85 
86  std::list<const xAOD::AFPSiHit*> m_hits;
87 };
88 
89 
90 #endif // AFP_SICLUSTERTOOLS_AFPSICLUSTERBASICOBJ_H
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::setCharge
void setCharge(const double charge)
Definition: AFPSiClusterBasicObj.h:64
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
xAOD::AFPSiHit_v2
Class representing a hit in silicon detector.
Definition: AFPSiHit_v2.h:30
AFPSiClusterBasicObj::m_horizIDErr
float m_horizIDErr
uncertainty of horizontal position (ID number) in fraction
Definition: AFPSiClusterBasicObj.h:79
AFPSiClusterBasicObj::setHorizIDErr
void setHorizIDErr(const float horizIDErr)
Definition: AFPSiClusterBasicObj.h:49
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::setVertIDErr
void setVertIDErr(const float vertIDErr)
Definition: AFPSiClusterBasicObj.h:59
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
AFPSiClusterBasicObj
Class representing basic silicon pixels cluster, designed to be used for creating the clusters.
Definition: AFPSiClusterBasicObj.h:28
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
AFPSiHit.h
AFPSiClusterBasicObj::setClusterAlgID
void setClusterAlgID(const int clusterAlgID)
Definition: AFPSiClusterBasicObj.h:69
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::setVertID
void setVertID(const float vertID)
Definition: AFPSiClusterBasicObj.h:54
AFPSiClusterBasicObj::AFPSiClusterBasicObj
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....
Definition: AFPSiClusterBasicObj.h:35
AFPSiClusterBasicObj::AFPSiClusterBasicObj
AFPSiClusterBasicObj(const float horizID, const float horizIDErr, const float vertID, const float vertIDErr, const float charge, const int clusterAlgID)
Definition: AFPSiClusterBasicObj.h:38
AFPSiClusterBasicObj::hits
const std::list< const xAOD::AFPSiHit * > & hits() const
list of pixels used to form the cluster
Definition: AFPSiClusterBasicObj.h:75
AFPSiClusterBasicObj::setHorizID
void setHorizID(const float horizID)
Definition: AFPSiClusterBasicObj.h:44
AFPSiClusterBasicObj::AFPSiClusterBasicObj
AFPSiClusterBasicObj(const xAOD::AFPSiHit *hit, const int clusterAlgID)
Constructs object from the hit. Horizontal and vertical errors are set to i.e. standard deviation of...
Definition: AFPSiClusterBasicObj.h:31
AFPSiClusterBasicObj::hits
std::list< const xAOD::AFPSiHit * > & hits()
list of pixels used to form the cluster
Definition: AFPSiClusterBasicObj.h:72
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