Go to the documentation of this file.
10 #ifndef HERD_CLUSTER_H_
11 #define HERD_CLUSTER_H_
47 Cluster(std::vector<Hit> hits,
size_t seedIndex);
56 [[nodiscard]]
const std::vector<Hit> &
Hits()
const {
return _hits; }
66 void SetHits(std::vector<Hit> hits,
size_t seedIndex);
Base data structure for single tracking detector layer geometry parameters.
Definition: TrackingDetectorGeoParams.h:31
float EDep() const
Gets the deposited energy associated to the cluster.
Definition: Cluster.h:86
A class describing a vector in 3D space.
Definition: Vec3D.h:33
size_t SeedHitIndex() const
Gets the index of the seed hit within the hits vector.
Definition: Cluster.h:77
void _ComputeEdep()
Update the value of _edep.
Definition: Cluster.cpp:41
Tracker cluster object for transient data model.
Definition: Cluster.h:30
bool operator!=(const Cluster &right) const
Definition: Cluster.h:99
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
bool operator==(const Cluster &right) const
Definition: Cluster.h:96
std::vector< Hit > _hits
Hits in each channel constituting the cluster.
Definition: Cluster.h:108
const std::vector< Hit > & Hits() const
Gets the hits forming the cluster.
Definition: Cluster.h:56
size_t _seedHitIndex
Index of the seed channel in the hits vector.
Definition: Cluster.h:103
virtual ~Cluster()=default
Virtual destructor
void SetHits(std::vector< Hit > hits, size_t seedIndex)
Sets the hits forming the cluster.
Definition: Cluster.cpp:23
Point COGPosition(const TrackingDetectorGeoParams &geoParams) const
Get the center of gravity position of the cluster.
Definition: Cluster.cpp:29
Cluster()
Default constructor.
Definition: Cluster.cpp:16
float _eDep
Deposited energy [GeV].
Definition: Cluster.h:102