#include <TopoClusterMap.h>
|
| | TopoClusterMap (float minEta=-6., float minPhi=-3.2, float maxEta=6., float maxPhi=3.2, float dEta=0.3, float dPhi=0.1) |
| | ~TopoClusterMap () |
| void | InsertTopoCluster (xAOD::CaloCluster *) |
| | interface methods
|
| TopoClusterMap & | DuplicateMap () |
| void | ClearMap () |
| StatusCode | SetTopoClusters (const xAOD::CaloClusterContainer *) |
| TopoCluster2DMap & | RetrieveMap () |
| std::vector< const xAOD::CaloCluster * > | RetrieveTopoClusters (double eta, double phi, double Pt) const |
| std::vector< const xAOD::CaloCluster * > | RetrieveTopoClusters (double eta, double phi, double dEta, double dPhi) const |
| std::vector< const xAOD::CaloCluster * > | RetrieveTopoClusters (int eta_key, int phi_key) const |
| std::pair< int, int > | GetEtaPhiKeys (double eta, double phi) const |
Definition at line 11 of file TopoClusterMap.h.
◆ TopoCluster2DMap
◆ TopoClusterMap()
| TopoClusterMap::TopoClusterMap |
( |
float | minEta = -6., |
|
|
float | minPhi = -3.2, |
|
|
float | maxEta = 6., |
|
|
float | maxPhi = 3.2, |
|
|
float | dEta = 0.3, |
|
|
float | dPhi = 0.1 ) |
Definition at line 23 of file TopoClusterMap.cxx.
25{
32}
bool dPhi(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
bool dEta(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
◆ ~TopoClusterMap()
| TopoClusterMap::~TopoClusterMap |
( |
| ) |
|
|
default |
◆ ClearMap()
| void TopoClusterMap::ClearMap |
( |
| ) |
|
Definition at line 90 of file TopoClusterMap.cxx.
90 {
91
95}
std::pair< int, int > GetEtaPhiKeys(double eta, double phi) const
◆ DuplicateMap()
◆ GetEtaPhiKeys()
| std::pair< int, int > TopoClusterMap::GetEtaPhiKeys |
( |
double | eta, |
|
|
double | phi ) const |
|
inline |
Definition at line 57 of file TopoClusterMap.h.
57 {
58
59
64
65
67
68
70
71 return std::pair<int,int>(eta_key,phi_key);
72
73 }
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
◆ GetLArThirdLayerRatio()
Definition at line 167 of file TopoClusterMap.cxx.
168{
169
170 double totalEnergy(0.), thirdLayerEnergy(0.);
171
173 totalEnergy += clus->
eSample(CaloSampling::PreSamplerB);
174 totalEnergy += clus->
eSample(CaloSampling::EMB1);
175 totalEnergy += clus->
eSample(CaloSampling::EMB2);
176 totalEnergy += clus->
eSample(CaloSampling::EMB3);
177
178 thirdLayerEnergy += clus->
eSample(CaloSampling::EMB3);
179 }
180
182 totalEnergy += clus->
eSample(CaloSampling::PreSamplerE);
183 totalEnergy += clus->
eSample(CaloSampling::EME1);
184 totalEnergy += clus->
eSample(CaloSampling::EME2);
185 totalEnergy += clus->
eSample(CaloSampling::EME3);
186
187 thirdLayerEnergy += clus->
eSample(CaloSampling::EME3);
188
189 }
190
191 if (totalEnergy == 0) return 0;
192 return (thirdLayerEnergy / totalEnergy);
193
194
195}
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
float eSample(const CaloSample sampling) const
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
◆ InsertTopoCluster()
interface methods
Definition at line 62 of file TopoClusterMap.cxx.
62 {
63
64
66
67
69
70
72
73}
void SortGridVector(int eta_key, int phi_key)
◆ RetrieveMap()
◆ RetrieveTopoClusters() [1/3]
| std::vector< const xAOD::CaloCluster * > TopoClusterMap::RetrieveTopoClusters |
( |
double | eta, |
|
|
double | phi, |
|
|
double | dEta, |
|
|
double | dPhi ) const |
Definition at line 137 of file TopoClusterMap.cxx.
140{
141
142 std::vector<const xAOD::CaloCluster*>
clusters;
143
144
145
146 if (dEta > 0. && dPhi > 0.) {
147
150
151 for (int ieta = lower_keys.first; ieta <= upper_keys.first; ieta++)
152 for (int iphi = lower_keys.second; iphi <= upper_keys.second; iphi++)
154
155
156
158
159 } else {
161 }
162
164
165}
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
bool CompareClusterET(const xAOD::CaloCluster *c1, const xAOD::CaloCluster *c2)
◆ RetrieveTopoClusters() [2/3]
| std::vector< const xAOD::CaloCluster * > TopoClusterMap::RetrieveTopoClusters |
( |
double | eta, |
|
|
double | phi, |
|
|
double | Pt ) const |
Definition at line 118 of file TopoClusterMap.cxx.
121{
122
123 if ((Pt * 1e-3) < 15) {
125 }
126 else if ((Pt * 1e-3) < 50) {
128 }
129 else {
131 }
132
133}
std::vector< const xAOD::CaloCluster * > RetrieveTopoClusters(double eta, double phi, double Pt) const
◆ RetrieveTopoClusters() [3/3]
| std::vector< const xAOD::CaloCluster * > TopoClusterMap::RetrieveTopoClusters |
( |
int | eta_key, |
|
|
int | phi_key ) const |
|
inline |
◆ SetTopoClusters()
Definition at line 41 of file TopoClusterMap.cxx.
43{
44
46
47 for(const auto *const cc : *inputTopoClusterContainer)
48 {
49
52
53
55 }
56
58
59 return StatusCode::SUCCESS;
60}
◆ SortGridVector()
| void TopoClusterMap::SortGridVector |
( |
int | eta_key, |
|
|
int | phi_key ) |
|
private |
◆ SortGridVectors()
| void TopoClusterMap::SortGridVectors |
( |
| ) |
|
|
private |
◆ m_dEta
| double TopoClusterMap::m_dEta |
|
private |
◆ m_dPhi
| double TopoClusterMap::m_dPhi |
|
private |
◆ m_map
◆ m_maxEta
| double TopoClusterMap::m_maxEta |
|
private |
◆ m_maxPhi
| double TopoClusterMap::m_maxPhi |
|
private |
◆ m_minEta
| double TopoClusterMap::m_minEta |
|
private |
◆ m_minPhi
| double TopoClusterMap::m_minPhi |
|
private |
The documentation for this class was generated from the following files: