ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimCluster.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGFPGATrackSimOBJECTS_FPGATrackSimCLUSTER_H
6#define TRIGFPGATrackSimOBJECTS_FPGATrackSimCLUSTER_H
7
8/*
9 * FPGATrackSimCluster.h: This file declares the class used to represent clusters.
10 * Declarations in this file:
11 * class FPGATrackSimCluster
12 * Author: Alex Martyniuk
13 * Email: martyniu@cern.ch
14 */
15
17
18 /*
19 * Clusters resulting from FPGATrackSim clustering algorithms as stored in m_clusterEquiv as a FPGATrackSimHit
20 * The raw hits used to form this cluster are stored in the m_hitlist, the first entry is the seed that initiated this cluster.
21 */
22typedef std::vector<FPGATrackSimHit> hitVector;
24{
25public:
27 virtual ~FPGATrackSimCluster() = default;
28
29 // get private members
30 hitVector const& getHitList() const { return m_hitlist; }
32
33 // set private members
34 void setHitList(const hitVector& input) { m_hitlist = input; }
35 void setClusterEquiv(const FPGATrackSimHit& input) { m_clusterEquiv = input; }
36
37 // filling functions
38 void push_backHitList(const FPGATrackSimHit& input) {
39 m_hitlist.push_back(input);
40 m_clusterEquiv.addIDHashToVec(input.getIdentifierHash());
41 m_clusterEquiv.addPhiIndexToVec(input.getPhiIndex());
42 m_clusterEquiv.addEtaIndexToVec(input.getEtaIndex());
43 }
44
45private:
46 hitVector m_hitlist; // list of hits that make the cluster, the seed of the cluster will be the first entry in this list.
47 FPGATrackSimHit m_clusterEquiv; // This is the cluster
48
50};
51
52std::ostream& operator<<(std::ostream& o, const FPGATrackSimCluster& cluster);
53
54
55#endif // FPGATrackSimCLUSTER_H
std::vector< FPGATrackSimHit > hitVector
std::ostream & operator<<(std::ostream &o, const FPGATrackSimCluster &cluster)
: FPGATrackSim-specific class to represent an hit in the detector.
ClassDefNV(FPGATrackSimCluster, 4)
void setClusterEquiv(const FPGATrackSimHit &input)
void setHitList(const hitVector &input)
hitVector const & getHitList() const
FPGATrackSimHit m_clusterEquiv
virtual ~FPGATrackSimCluster()=default
FPGATrackSimCluster()=default
FPGATrackSimHit const & getClusterEquiv() const
void push_backHitList(const FPGATrackSimHit &input)