ATLAS Offline Software
ParticleCaloAssociation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef REC_PARTICLECALOASSOCIATION_H
6 #define REC_PARTICLECALOASSOCIATION_H
7 
8 #include <vector>
11 
12 namespace Rec {
13 
15  template<class T>
17  public:
19  typedef std::vector<T> Data;
20 
23 
25  delete m_caloExtension;
26  }
29 
31  const Data& data() const;
32 
34  float associationConeSize() const;
35 
38 
41 
43  void updateData( Data&& data, float coneSize );
44 
45 
46  private:
49 
52 
55 
58 
60  Data m_data; // vector of associated objects
61 
64 
65  };
66 
67  template<class T>
69  return m_associationConeSize;
70  }
71 
72  template<class T>
74  return *m_caloExtension;
75  }
76 
77  template<class T>
79  return m_data;
80  }
81 
82  template<class T>
84  m_data = data;
85  m_associationConeSize = coneSize;
86  }
87 
88  template<class T>
90  m_caloExtension(caloExtension),
91  m_data(data),
92  m_associationConeSize(coneSize) {
93  // cppcheck-suppress missingReturn; false positive
94  }
95 
96 
97 }
98 
99 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Rec::ParticleCaloAssociation::ParticleCaloAssociation
ParticleCaloAssociation(ParticleCaloAssociation &&other)
move constructor
Trk::CaloExtension
Tracking class to hold the extrapolation from a particle from the ID to the muon system (or the other...
Definition: CaloExtension.h:18
Rec::ParticleCaloAssociation::associationConeSize
float associationConeSize() const
return cone-size used for association
Definition: ParticleCaloAssociation.h:68
m_data
std::vector< T > m_data
Definition: TrackTruthMatchingBaseAlg.cxx:660
CaloExtension.h
Rec::ParticleCaloAssociation::m_caloExtension
const Trk::CaloExtension * m_caloExtension
CaloExtension.
Definition: ParticleCaloAssociation.h:57
Rec::ParticleCaloAssociation::m_associationConeSize
float m_associationConeSize
cone size used for association
Definition: ParticleCaloAssociation.h:63
Rec
Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
Definition: FakeTrackBuilder.h:10
Rec::ParticleCaloAssociation::caloExtension
const Trk::CaloExtension & caloExtension() const
return calo extension
Definition: ParticleCaloAssociation.h:73
Rec::ParticleCaloAssociation::~ParticleCaloAssociation
virtual ~ParticleCaloAssociation()
Definition: ParticleCaloAssociation.h:24
Rec::ParticleCaloAssociation::updateData
void updateData(Data &&data, float coneSize)
update data
Definition: ParticleCaloAssociation.h:83
Rec::ParticleCaloAssociation::m_data
Data m_data
cell information
Definition: ParticleCaloAssociation.h:60
Rec::ParticleCaloAssociation
class storing calorimeter cell/cluster association with IParticle objects
Definition: ParticleCaloAssociation.h:16
Rec::ParticleCaloAssociation::Data
std::vector< T > Data
typedef of Cell vector
Definition: ParticleCaloAssociation.h:19
Rec::ParticleCaloAssociation::ParticleCaloAssociation
ParticleCaloAssociation(const Trk::CaloExtension *caloExtension, Data &&data, float coneSize)
constructor taking CaloExtension, a vector of cells and a cone size as arguments
Definition: ParticleCaloAssociation.h:89
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
Rec::ParticleCaloAssociation::ParticleCaloAssociation
ParticleCaloAssociation(const ParticleCaloAssociation &)=delete
no copy constructor
Rec::ParticleCaloAssociation::operator=
ParticleCaloAssociation & operator=(const ParticleCaloAssociation &)=delete
no assignment operator
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Rec::ParticleCaloAssociation::ParticleCaloAssociation
ParticleCaloAssociation()=delete
no default constructor
Rec::ParticleCaloAssociation::operator=
ParticleCaloAssociation & operator=(ParticleCaloAssociation &&other)
move assignment operator
xAOD::Iso::coneSize
float coneSize(IsolationConeSize type)
convert Isolation Size into cone size
Definition: IsolationHelpers.h:27
Rec::ParticleCaloAssociation::data
const Data & data() const
return vector of associated objects
Definition: ParticleCaloAssociation.h:78