ATLAS Offline Software
AFPSiHitsCluster_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
14 #ifndef XAODFORWARD_VERSIONS_AFPSIHITSCLUSTER_V1_H
15 #define XAODFORWARD_VERSIONS_AFPSIHITSCLUSTER_V1_H
16 
17 // EDM include(s):
19 #include "AthLinks/ElementLink.h"
20 
21 // helper classes decoding AFP information
24 
25 // xAOD representing hits
27 
28 namespace xAOD {
29 
32  {
33  public:
36 
46  int stationID() const;
47 
56 
64  int pixelLayerID() const;
65 
73  void setPixelLayerID(int layerID);
74 
75 
77  float xLocal() const;
78 
80  void setXLocal (float newXLocal);
81 
83  float xLocalErr() const;
84 
86  void setXLocalErr (float newXLocalErr);
87 
89  float yLocal() const;
90 
92  void setYLocal (float newYLocal);
93 
95  float yLocalErr() const;
96 
98  void setYLocalErr (float newYLocalErr);
99 
101  float zLocal() const;
102 
104  void setZLocal (float newZLocal);
105 
107  float zLocalErr() const;
108 
110  void setZLocalErr (float newZLocalErr);
111 
115  float depositedCharge() const;
116 
121 
122 
124  int nHits() const;
125 
127  void setNHits (int nPixels);
128 
144  const std::vector<AFPHitLink_t>& hitsLinks() const;
145 
151  void setHitsLinks( const std::vector<AFPHitLink_t>& newHitsVector );
152 
161  void addHitLink( const AFPHitLink_t& newHit);
162 
172  int clusterAlgID() const;
173 
181  void setClusterAlgID (int newIAlgID);
182 
184  void toPersistent();
185  };
186 
187 } // namespace xAOD
188 
189 // Declare the inheritance of the type to StoreGate:
190 #include "xAODCore/BaseInfo.h"
192 
193 #endif // XAODFORWARD_VERSIONS_AFPSIHITSCLUSTER_V1_H
194 
xAOD::AFPSiHitsCluster_v1::setHitsLinks
void setHitsLinks(const std::vector< AFPHitLink_t > &newHitsVector)
Set vector of links to pixels used to construct the cluster.
SG_BASE
SG_BASE(xAOD::AFPSiHitsCluster_v1, SG::AuxElement)
xAOD::AFPSiHitsCluster_v1::pixelLayerID
int pixelLayerID() const
Index of the silicon layer with the cluster.
xAOD::AFPSiHitsCluster_v1::clusterAlgID
int clusterAlgID() const
Identification number of the algorithm used to cluster pixels.
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
BaseInfo.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::AFPSiHitsCluster_v1::AFPHitLink_t
ElementLink< AFPSiHitContainer > AFPHitLink_t
Type of a link to the hit.
Definition: AFPSiHitsCluster_v1.h:35
xAOD::AFPSiHitsCluster_v1::setNHits
void setNHits(int nPixels)
Set number of fired pixels (hits) in the cluster.
xAOD::AFPSiHitsCluster_v1::setXLocal
void setXLocal(float newXLocal)
Set cluster position along X axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::setYLocal
void setYLocal(float newYLocal)
Set cluster position along Y axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::setZLocalErr
void setZLocalErr(float newZLocalErr)
Set uncertainty of cluster position along Z axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::setZLocal
void setZLocal(float newZLocal)
Set cluster position along Z axis in station local coordinate system.
xAOD::charge
charge
Definition: TrigElectron_v1.cxx:85
AFPStationID.h
Definitions of AFP stations identification numbers.
xAOD::AFPSiHitsCluster_v1::setStationID
void setStationID(int stationID)
Set index of the station with pixel hit.
xAOD::AFPSiHitsCluster_v1::stationID
int stationID() const
Index of the station with pixels cluster.
xAOD::AFPSiHitsCluster_v1::xLocal
float xLocal() const
Cluster position along X axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::setYLocalErr
void setYLocalErr(float newYLocalErr)
Set uncertainty of cluster position along Y axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::setPixelLayerID
void setPixelLayerID(int layerID)
Method setting index of the detector layer with the cluster.
AFPSiHitContainer.h
xAOD::AFPSiHitsCluster_v1::depositedCharge
float depositedCharge() const
Total charge of the cluster.
xAOD::AFPSiHitsCluster_v1::addHitLink
void addHitLink(const AFPHitLink_t &newHit)
Add a link to a pixel in this cluster.
Definition: AFPSiHitsCluster_v1.cxx:40
xAOD::AFPSiHitsCluster_v1::nHits
int nHits() const
Number of fired pixels (hits) in cluster.
xAOD::AFPSiHitsCluster_v1::setDepositedCharge
void setDepositedCharge(float charge)
Method setting total charge of the cluster.
xAOD::AFPSiHitsCluster_v1::xLocalErr
float xLocalErr() const
Uncertainty of cluster position along X axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1
Class representing a cluster of AFP pixel hits.
Definition: AFPSiHitsCluster_v1.h:32
xAOD::AFPSiHitsCluster_v1::yLocal
float yLocal() const
Cluster position along Y axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::setXLocalErr
void setXLocalErr(float newXLocalErr)
Set uncertainty of cluster position along X axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::zLocal
float zLocal() const
Cluster position along Z axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::hitsLinks
const std::vector< AFPHitLink_t > & hitsLinks() const
Vector of links to pixels that were used to construct the cluster.
AFPPixelLayerID.h
Definitions of silicon layers (tracking) identification numbers in an AFP station.
xAOD::AFPSiHitsCluster_v1::zLocalErr
float zLocalErr() const
Uncertainty of cluster position along Z axis in station local coordinate system.
xAOD::AFPSiHitsCluster_v1::yLocalErr
float yLocalErr() const
Uncertainty of cluster position along Y axis in station local coordinate system.
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::AFPSiHitsCluster_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition: AFPSiHitsCluster_v1.cxx:45
xAOD::AFPSiHitsCluster_v1::setClusterAlgID
void setClusterAlgID(int newIAlgID)
Set ID number of the clustering algorithm.