ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
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
28namespace 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
Definitions of silicon layers (tracking) identification numbers in an AFP station.
Definitions of AFP stations identification numbers.
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class representing a cluster of AFP pixel hits.
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
void setYLocal(float newYLocal)
Set cluster position along Y axis in station local coordinate system.
void setClusterAlgID(int newIAlgID)
Set ID number of the clustering algorithm.
void setXLocal(float newXLocal)
Set cluster position along X axis in station local coordinate system.
void setNHits(int nPixels)
Set number of fired pixels (hits) in the cluster.
void setHitsLinks(const std::vector< AFPHitLink_t > &newHitsVector)
Set vector of links to pixels used to construct the cluster.
float zLocalErr() const
Uncertainty of cluster position along Z axis in station local coordinate system.
void addHitLink(const AFPHitLink_t &newHit)
Add a link to a pixel in this cluster.
void setStationID(int stationID)
Set index of the station with pixel hit.
void setDepositedCharge(float charge)
Method setting total charge of the cluster.
ElementLink< AFPSiHitContainer > AFPHitLink_t
Type of a link to the hit.
void setZLocal(float newZLocal)
Set cluster position along Z axis in station local coordinate system.
void setYLocalErr(float newYLocalErr)
Set uncertainty of cluster position along Y axis in station local coordinate system.
void setPixelLayerID(int layerID)
Method setting index of the detector layer with the cluster.
int pixelLayerID() const
Index of the silicon layer with the cluster.
int nHits() const
Number of fired pixels (hits) in cluster.
const std::vector< AFPHitLink_t > & hitsLinks() const
Vector of links to pixels that were used to construct the cluster.
int clusterAlgID() const
Identification number of the algorithm used to cluster pixels.
float zLocal() const
Cluster position along Z axis in station local coordinate system.
float yLocalErr() const
Uncertainty of cluster position along Y axis in station local coordinate system.
void setZLocalErr(float newZLocalErr)
Set uncertainty of cluster position along Z axis in station local coordinate system.
float xLocal() const
Cluster position along X axis in station local coordinate system.
float yLocal() const
Cluster position along Y axis in station local coordinate system.
int stationID() const
Index of the station with pixels cluster.
void setXLocalErr(float newXLocalErr)
Set uncertainty of cluster position along X axis in station local coordinate system.
float xLocalErr() const
Uncertainty of cluster position along X axis in station local coordinate system.
float depositedCharge() const
Total charge of the cluster.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.