ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace Rec {
13
15 template<class T>
17 public:
19 typedef std::vector<T> Data;
20
23
25 delete m_caloExtension;
26 }
27
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>
71
72 template<class T>
76
77 template<class T>
79 return m_data;
80 }
81
82 template<class T>
83 inline void ParticleCaloAssociation<T>::updateData( Data&& data, float coneSize ) {
84 m_data = data;
85 m_associationConeSize = coneSize;
86 }
87
88 template<class T>
91 m_data(data),
92 m_associationConeSize(coneSize) {
93 // cppcheck-suppress missingReturn; false positive
94 }
95
96
97}
98
99#endif
An STL vector of pointers that by default owns its pointed-to elements.
float m_associationConeSize
cone size used for association
ParticleCaloAssociation()=delete
no default constructor
ParticleCaloAssociation & operator=(const ParticleCaloAssociation &)=delete
no assignment operator
ParticleCaloAssociation(const Trk::CaloExtension *caloExtension, Data &&data, float coneSize)
constructor taking CaloExtension, a vector of cells and a cone size as arguments
const Trk::CaloExtension * m_caloExtension
CaloExtension.
ParticleCaloAssociation & operator=(ParticleCaloAssociation &&other)
move assignment operator
float associationConeSize() const
return cone-size used for association
std::vector< T > Data
typedef of Cell vector
void updateData(Data &&data, float coneSize)
update data
ParticleCaloAssociation(ParticleCaloAssociation &&other)
move constructor
ParticleCaloAssociation(const ParticleCaloAssociation &)=delete
no copy constructor
Tracking class to hold the extrapolation through calorimeter Layers Both the caloEntryLayerIntersecti...
Gaudi Tools.