|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ANALYSISTOOLS_IANALYSISTOOLS_H
6 #define ANALYSISTOOLS_IANALYSISTOOLS_H
70 (
const double eta,
const double phi, COLL *coll,
int &
index,
double &
deltaR)
const;
73 int &
index,
double &
deltaR,
const bool genOnly=
true)
const
79 int &
index,
double &
deltaR,
const bool genOnly=
true)
const
94 (
const double eta,
const double phi,
const double e, COLL *coll,
int &
index,
95 double &
deltaR,
double &deltaE)
const;
98 double &
deltaR,
double &deltaE,
const bool genOnly=
true)
const
104 double &
deltaR,
double &deltaE,
const bool genOnly=
true)
const
115 template <
class COLL,
class ELEMENT>
bool matchR
118 template <
class COLL,
class ELEMENT>
bool matchR
119 (
const double eta,
const double phi, COLL *coll, ELEMENT *&element,
double &
deltaR)
const;
122 double &
deltaR,
const bool genOnly=
true)
const
126 if (!
ret)
return false;
127 element = (*coll)[
index];
132 double &
deltaR,
const bool genOnly=
true)
const
136 if (!
ret)
return false;
137 element = (*coll)[
index];
147 template <
class COLL,
class ELEMENT>
bool matchR
150 template <
class COLL,
class ELEMENT>
bool matchR
151 (
const double eta,
const double phi,
const double e, COLL *coll, ELEMENT *&element,
152 double &
deltaR,
double &deltaE)
const;
155 double &
deltaR,
double &deltaE,
const bool genOnly=
true)
const
159 if (!
ret ||
index == -1)
return false;
160 element = (*coll)[
index];
165 const TruthParticle *&element,
double &
deltaR,
double &deltaE,
const bool genOnly=
true)
const
169 if (!
ret || -1 ==
index)
return false;
170 element = (*coll)[
index];
183 (
const double eta,
const double phi, COLL *coll,
int &
index,
double &
deltaR,
const int pdg)
const;
186 double &
deltaR,
const int pdg,
const bool genOnly=
true)
const
192 double &
deltaR,
const int pdg,
const bool genOnly=
true)
const
204 double &deltaE)
const;
207 (
const double eta,
const double phi,
const double e, COLL *coll,
int &
index,
double &
deltaR,
208 const int pdg,
double &deltaE)
const;
211 int &
index,
double &
deltaR,
const int pdg,
double &deltaE,
const bool genOnly=
true)
const
217 int &
index,
double &
deltaR,
const int pdg,
double &deltaE,
const bool genOnly=
true)
const
227 template <
class COLL,
class ELEMENT>
bool matchR
230 template <
class COLL,
class ELEMENT>
bool matchR
231 (
const double eta,
const double phi, COLL *coll, ELEMENT *&element,
double &
deltaR,
const int pdg)
const;
234 double &
deltaR,
const int pdg,
const bool genOnly=
true)
const
238 if (!
ret)
return false;
239 element = (*coll)[
index];
244 double &
deltaR,
const int pdg,
const bool genOnly=
true)
const
248 if (!
ret)
return false;
249 element = (*coll)[
index];
258 template <
class COLL,
class ELEMENT>
bool matchR
260 double &deltaE)
const;
262 template <
class COLL,
class ELEMENT>
bool matchR
263 (
const double eta,
const double phi,
const double e, COLL *coll, ELEMENT *&element,
264 double &
deltaR,
const int pdg,
double &deltaE)
const;
267 const int pdg,
double &deltaE,
const bool genOnly=
true)
const
271 if (!
ret)
return false;
272 element = (*coll)[
index];
277 const TruthParticle *&element,
double &
deltaR,
const int pdg,
double &deltaE,
const bool genOnly=
true)
const
281 if (!
ret)
return false;
282 element = (*coll)[
index];
290 template <
class COLL>
void sortPT (COLL *coll)
const;
296 template <
class COLL>
void sortE (COLL *coll)
const;
302 template <
class COLL>
void sortEta (COLL *coll)
const;
308 template <
class COLL>
void sortPhi (COLL *coll)
const;
317 std::vector<typename COLL::value_type> &
pos,
318 std::vector<typename COLL::value_type> &neg)
const;
331 (CALLER *caller, CRITERIA criteria, COLL *coll,
const std::string &
key,
const bool=
false)
const;
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Amg::Vector3D p3(const xAOD::TruthVertex *p)
The Athena Transient Store API.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool R(const double eta, const double phi, COLL *coll, int &index, double &deltaR, const int pdg)
find the closest element in R