ATLAS Offline Software
EGElectronAmbiguityTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EGElectronAmbiguityTool.cxx, (c) ATLAS Detector software
8 //
9 //
10 
12 
15 
17 #include "xAODTruth/TruthVertex.h"
18 
19 #include "TMath.h"
20 
21 namespace {
22 void
23 helix(const xAOD::TrackParticle* trkP,
24  const xAOD::Vertex* pvtx,
25  std::vector<double>& he)
26 {
27  constexpr double PTTOCURVATURE = -0.301;
28 
29  he[0] = 1. / tan(trkP->theta());
30  he[1] = PTTOCURVATURE * trkP->charge() / trkP->pt();
31 
32  if (trkP->phi0() > 0.)
33  he[4] = trkP->phi0();
34  else
35  he[4] = TMath::TwoPi() + trkP->phi0();
36 
37  double c1 = cos(trkP->phi0());
38  double s1 = sin(trkP->phi0());
39  he[3] = trkP->d0() + c1 * pvtx->y() - s1 * pvtx->x();
40 
41  c1 *= he[0];
42  s1 *= he[0];
43  he[2] = trkP->z0() - c1 * pvtx->x() - s1 * pvtx->y() + pvtx->z();
44 }
45 }//end anonymous
46 
47 
48 namespace DerivationFramework {
49 
51  const std::string& n,
52  const IInterface* p)
53  : AthAlgTool(t, n, p)
54 {
55  declareInterface<DerivationFramework::IAugmentationTool>(this);
56 
57  declareProperty("isMC", m_isMC);
58 
60  "pTCut", m_elepTCut = 9e3, "minimum pT for an electron to be studied");
61  declareProperty("idCut",
62  m_idCut = "DFCommonElectronsLHLoose",
63  "minimal quality for an electron to be studied");
64 
66  "nSiCut", m_nSiCut = 7, "minimum number of Si hits in the other track");
68  "dzsinTCut", m_dzCut = 0.5, "max dz sinTheta between ele and other tracks");
69  declareProperty("SeparationCut", m_sepCut = 1., "first separation cut");
70  declareProperty("DCTCut", m_dctCut = 0.02, "second separation cut");
71 
72  declareProperty("radiusCut",
73  m_rvECCut = 20,
74  "minimum radius to be classified as external conversion");
76  "meeAtVtxCut",
77  m_meeAtVtxECCut = 100,
78  "maximal mass at vertex to be classified as external conversion");
79  declareProperty("meeCut",
80  m_meeICCut = 100,
81  "maximal mass at primary vertex to be classified as gamma*");
82 }
83 
86 {
87 
89  ATH_CHECK(m_VtxContainerName.initialize());
92 
93  const std::string baseName = m_containerName.key();
94  m_drv = baseName + ".DFCommonSimpleConvRadius";
95  m_dphiv = baseName + ".DFCommonSimpleConvPhi";
96  m_dmee = baseName + ".DFCommonSimpleMee";
97  m_dmeeVtx = baseName + ".DFCommonSimpleMeeAtVtx";
98  m_dsep = baseName + ".DFCommonSimpleSeparation";
99  m_dambi = baseName + ".DFCommonAddAmbiguity";
100  m_dtrv = baseName + ".DFCommonProdTrueRadius";
101  m_dtpv = baseName + ".DFCommonProdTruePhi";
102  m_dtzv = baseName + ".DFCommonProdTrueZ";
103 
113 
114  return StatusCode::SUCCESS;
115 }
116 
118  (const EGElectronAmbiguityTool& tool, const EventContext& ctx)
119  : drv (tool.m_drv, ctx),
120  dphiv (tool.m_dphiv, ctx),
121  dmee (tool.m_dmee, ctx),
122  dmeeVtx (tool.m_dmeeVtx, ctx),
123  dsep (tool.m_dsep, ctx),
124  dambi (tool.m_dambi, ctx),
125  dtrv (tool.m_dtrv, ctx),
126  dtpv (tool.m_dtpv, ctx),
127  dtzv (tool.m_dtzv, ctx)
128 {
129 }
130 
133 {
134  const EventContext& ctx = Gaudi::Hive::currentContext();
135 
136  DecorHandles dh (*this, ctx);
137 
138  static const SG::AuxElement::ConstAccessor<char> aidCut(m_idCut);
139 
140  // retrieve primary vertex
141  const xAOD::Vertex* pvtx(nullptr);
143  if (inputVtx.ptr()){
144  const xAOD::VertexContainer* vtxC = inputVtx.ptr();
145  for (const auto* vertex : *vtxC) {
146  if (vertex->vertexType() == xAOD::VxType::VertexType::PriVtx) {
147  pvtx = vertex;
148  break;
149  }
150  }
151  }
152 
153  // retrieve electron container
155  ctx };
156  const xAOD::ElectronContainer* eleC = inputElectrons.ptr();
157 
158  if (!eleC) {
160  "Couldn't retrieve Electron container with key: " << m_containerName);
161  return StatusCode::FAILURE;
162  }
163  if (!pvtx) {
164  ATH_MSG_DEBUG("No primary vertex found. Setting default values.");
165  for (const xAOD::Electron* iele : *eleC) {
166  dh.drv(*iele) = -1;
167  dh.dphiv(*iele) = -1;
168  dh.dmee(*iele) = -1;
169  dh.dmeeVtx(*iele) = -1;
170  dh.dsep(*iele) = -1;
171  dh.dambi(*iele) = -1;
172  dh.dtrv(*iele) = -1;
173  dh.dtpv(*iele) = -1;
174  dh.dtzv(*iele) = -1;
175  }
176  return StatusCode::SUCCESS;
177  }
178  ATH_MSG_DEBUG("Pvx z = " << pvtx->z() << ", number of electrons "
179  << eleC->size());
180 
181  // Make a container of selected tracks : with Si hits, close to electron track
183  m_tpContainerName, ctx
184  };
185  const xAOD::TrackParticleContainer* idtpC = inputTrackParticles.ptr();
186 
187  std::set<const xAOD::TrackParticle*> alreadyStored;
188  std::set<const xAOD::TrackParticle*> eleIDtpStored, eleGSFtpStored;
189  auto closeByTracks =
190  std::make_unique<ConstDataVector<xAOD::TrackParticleContainer>>(
192 
193  for (const auto* ele : *eleC) {
194 
195  dh.dambi(*ele) = -1;
196 
197  // Electron preselection
198  if (ele->pt() < m_elepTCut ||
199  m_idCut.empty() || !aidCut.isAvailable(*ele) || !aidCut(*ele))
200  continue;
201 
202  // Just for debug
203  const xAOD::TrackParticle* eleGSFtp = ele->trackParticle();
204  eleGSFtpStored.insert(eleGSFtp);
205 
206  const xAOD::TrackParticle* eleIDtp =
208  eleIDtpStored.insert(eleIDtp);
209 
210  // The loop on track
211  for (const auto* tp : *idtpC) {
212 
213  // Keep the electron track (I build a container to run vertexing on it...)
214  if (tp == eleIDtp) {
215  closeByTracks->push_back(tp);
216  alreadyStored.insert(tp);
217  continue;
218  }
219 
220  // potential candidate to store if not already there
221  if (alreadyStored.find(tp) != alreadyStored.end())
222  continue;
223 
225  // if (tp->charge() * ele->charge() > 0)
226  // continue;
227 
228  // Close-by
229  double dR = eleIDtp->p4().DeltaR(tp->p4());
230  double dz = std::abs(eleIDtp->z0() - tp->z0()) * sin(eleIDtp->theta());
231  if (dR >= 0.3 || dz >= m_dzCut)
232  continue;
233 
234  // With minimum number of Si hits
236  continue;
237 
238  alreadyStored.insert(tp);
239 
240  closeByTracks->push_back(tp);
241  }
242  }
243 
244  if (closeByTracks->empty())
245  return StatusCode::SUCCESS;
246 
247  if (msgLvl(MSG::DEBUG)) {
249  ctx };
250  const xAOD::TrackParticleContainer* tpC = tpCReadHandle.ptr();
251 
252  ATH_MSG_DEBUG("Number of input tracks "
253  << idtpC->size() << " , number of selected close-by tracks "
254  << closeByTracks->size() << " , number of GSF tracks "
255  << tpC->size());
256  for (const auto* trk : eleIDtpStored)
257  ATH_MSG_DEBUG("ele ID trk "
258  << trk << " pt = " << trk->pt() * 1e-3
259  << " eta = " << trk->eta() << " phi = " << trk->phi()
260  << " nSi = " << xAOD::EgammaHelpers::numberOfSiHits(trk));
261  for (const auto* trk : eleGSFtpStored)
262  ATH_MSG_DEBUG("ele GSF trk "
263  << trk << " pt = " << trk->pt() * 1e-3
264  << " eta = " << trk->eta() << " phi = " << trk->phi()
265  << " nSi = " << xAOD::EgammaHelpers::numberOfSiHits(trk));
266  for (const xAOD::TrackParticle* trk : *closeByTracks)
267  ATH_MSG_DEBUG("closeby trk "
268  << trk << " pt = " << trk->pt() * 1e-3
269  << " eta = " << trk->eta() << " phi = " << trk->phi()
270  << " nSi = " << xAOD::EgammaHelpers::numberOfSiHits(trk));
271  }
272 
273  for (const auto* ele : *eleC) {
274 
275  // Electron preselection
276  if (ele->pt() < m_elepTCut ||
277  m_idCut.empty() || !aidCut.isAvailable(*ele) || !aidCut(*ele))
278  continue;
279 
280  // Henri's circles
281  if (decorateSimple(dh, closeByTracks, ele, pvtx).isFailure()) {
282  ATH_MSG_ERROR("Cannot decorate the electron with the simple info");
283  return StatusCode::FAILURE;
284  }
285 
286  } // loop on electrons to decorate
287 
288  return StatusCode::SUCCESS;
289 }
290 }
291 
294  DecorHandles& dh,
295  std::unique_ptr<ConstDataVector<xAOD::TrackParticleContainer>>& tpC,
296  const xAOD::Electron* ele,
297  const xAOD::Vertex* pvtx) const
298 {
299  // This is the GSF electron track
300  const xAOD::TrackParticle* eleGSFtrkP = ele->trackParticle();
301 
302  // And the ID one
303  const xAOD::TrackParticle* eleIDtrkP =
305 
306  // For the time being, use the ID one, to be consistent when we only find a
307  // good ID to make a conversion and no GSF
308  bool useGSF = false; // hardcoded because it seems we will not use true. Kept
309  // for the time being, as not 100% sure
310  const xAOD::TrackParticle* eletrkP = useGSF ? eleGSFtrkP : eleIDtrkP;
311 
312  ATH_MSG_DEBUG("Electron pt = " << ele->pt() * 1e-3 << " eta = " << ele->eta()
313  << " phi = " << ele->phi() << " GSF trk ptr = "
314  << eleGSFtrkP << " ID trk ptr " << eleIDtrkP);
315 
316  if (m_isMC) {
317  const xAOD::TruthParticle* truthEl =
319  double tpvr = -1, tpvp = 9e9, tpvz = 9e9;
320  if (truthEl && std::abs(truthEl->pdgId()) == 11 &&
321  truthEl->prodVtx() != nullptr) {
322  tpvr = truthEl->prodVtx()->perp();
323  tpvp = truthEl->prodVtx()->phi();
324  tpvz = truthEl->prodVtx()->z();
325  }
326  dh.dtrv(*ele) = tpvr;
327  dh.dtpv(*ele) = tpvp;
328  dh.dtzv(*ele) = tpvz;
329  }
330 
331  // Find the closest track particle with opposite charge and a minimum nb of Si
332  // hits
333  const xAOD::TrackParticle* otrkP(nullptr);
334  double detaMin = 9e9;
335  for (const xAOD::TrackParticle* tp : *tpC) {
336  // Keep only opposite charge
337  if (tp->charge() * eletrkP->charge() > 0)
338  continue;
339 
340  // Close-by
341  double dR = eletrkP->p4().DeltaR(tp->p4());
342  double dz = std::abs(eletrkP->z0() - tp->z0()) * sin(eletrkP->theta());
343  if (dR >= 0.3 || dz >= m_dzCut)
344  continue;
345 
346  double deta = std::abs(eletrkP->eta() - tp->eta());
347  if (deta < detaMin) {
348  otrkP = tp;
349  detaMin = deta;
350  }
351  }
352 
353  double rv = -9e9;
354  double pv = -9e9;
355  double mee = -1.;
356  double meeAtVtx = -1.;
357  double sep = -9e9;
358  bool goodConv = false;
359 
360  if (otrkP) {
361 
362  // To be consistent with the other, use the ID track.
363  TLorentzVector ep4;
364  ep4.SetPtEtaPhiM(eletrkP->pt(), eletrkP->eta(), eletrkP->phi(), 0.511);
365 
366  // Maybe could see if a GSF tp exists for this ID tp and use it if yes ?
367  TLorentzVector op4;
368  op4.SetPtEtaPhiM(otrkP->pt(), otrkP->eta(), otrkP->phi(), 0.511);
369 
370  // Simple masses
371  mee = (ep4 + op4).M();
372  op4.SetPhi(eletrkP->phi());
373  meeAtVtx = (ep4 + op4).M();
374 
375  // And the conversion point
376  std::vector<double> helix1, helix2;
377  helix1.resize(5);
378  helix2.resize(5);
379  helix(eletrkP, pvtx, helix1);
380  helix(otrkP, pvtx, helix2);
381 
382  double beta(0.);
383  if (helix1[4] < helix2[4])
384  beta = TMath::PiOver2() - helix1[4];
385  else
386  beta = TMath::PiOver2() - helix2[4];
387 
388  double phi1(helix1[4] + beta);
389  if (phi1 > TMath::TwoPi())
390  phi1 -= TMath::TwoPi();
391  if (phi1 < 0.)
392  phi1 += TMath::TwoPi();
393 
394  double phi2(helix2[4] + beta);
395  if (phi2 > TMath::TwoPi())
396  phi2 -= TMath::TwoPi();
397  if (phi2 < 0.)
398  phi2 += TMath::TwoPi();
399 
401  double r1 = 1 / (2. * std::abs(helix1[1]));
402 
403  double charge1(1.);
404  if (helix1[1] < 0.)
405  charge1 = -1.;
406  double rcenter1(helix1[3] / charge1 + r1);
407  double phicenter1(phi1 + TMath::PiOver2() * charge1);
408 
409  double x1 = rcenter1 * cos(phicenter1);
410  double y1 = rcenter1 * sin(phicenter1);
411 
413  double r2 = 1 / (2. * std::abs(helix2[1]));
414 
415  double charge2(1.);
416  if (helix2[1] < 0.)
417  charge2 = -1.;
418  double rcenter2(helix2[3] / charge2 + r2);
419  double phicenter2(phi2 + TMath::PiOver2() * charge2);
420 
421  double x2 = rcenter2 * cos(phicenter2);
422  double y2 = rcenter2 * sin(phicenter2);
424 
425  double dx(x1 - x2);
426  if (dx < 1e-9 && dx > 0.)
427  dx = 1e-9;
428  if (dx > -1e-9 && dx < 0.)
429  dx = -1e-9;
430  double slope((y1 - y2) / dx);
431  double b(y1 - slope * x1);
432  double alpha(atan(slope));
433  double d(sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));
434  // only keeping opposite sign option
435  double separation = d - r1 - r2;
436  double cpx1, cpx2;
437  if (x1 > x2) {
438  cpx1 = x1 - r1 * cos(alpha);
439  cpx2 = x2 + r2 * cos(alpha);
440  } else {
441  cpx1 = x1 + r1 * cos(alpha);
442  cpx2 = x2 - r2 * cos(alpha);
443  }
444 
445  double temp1 = (cpx1 + cpx2) / 2;
446  double temp2 = slope * temp1 + b;
447  double convX = cos(beta) * temp1 + sin(beta) * temp2;
448  double convY = -sin(beta) * temp1 + cos(beta) * temp2;
449 
450  double dct(helix1[0] - helix2[0]);
451 
453  if (std::abs(separation) < m_sepCut && std::abs(dct) < m_dctCut) {
454  goodConv = true;
455  sep = separation;
456  pv = std::atan2(convY, convX);
457  rv = sqrt(convX * convX + convY * convY);
458  if (convX * cos(eletrkP->phi()) + convY * sin(eletrkP->phi()) < 0)
459  rv *= -1.;
460  }
461  } else {
462  dh.dambi(*ele) = -1;
463  }
464  dh.drv(*ele) = rv;
465  dh.dphiv(*ele) = pv;
466  dh.dmee(*ele) = mee;
467  dh.dmeeVtx(*ele) = meeAtVtx;
468  dh.dsep(*ele) = sep;
469  if (goodConv && rv > m_rvECCut && meeAtVtx < m_meeAtVtxECCut)
470  dh.dambi(*ele) = 2;
471  else if (otrkP) {
472  if (mee < m_meeICCut)
473  dh.dambi(*ele) = 1;
474  else
475  dh.dambi(*ele) = 0;
476  }
477  return StatusCode::SUCCESS;
478 }
479 
xAOD::TrackParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TrackParticle_v1.cxx:73
xAOD::Vertex_v1::x
float x() const
Returns the x position.
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
DerivationFramework::EGElectronAmbiguityTool::m_dtrv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dtrv
Definition: EGElectronAmbiguityTool.h:93
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
xAOD::TruthVertex_v1::phi
float phi() const
Vertex azimuthal angle.
Definition: TruthVertex_v1.cxx:178
DerivationFramework::EGElectronAmbiguityTool::m_dmee
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dmee
Definition: EGElectronAmbiguityTool.h:81
DerivationFramework::EGElectronAmbiguityTool::initialize
virtual StatusCode initialize() override final
Definition: EGElectronAmbiguityTool.cxx:85
DerivationFramework::EGElectronAmbiguityTool::addBranches
virtual StatusCode addBranches() const override final
Pass the thinning service
Definition: EGElectronAmbiguityTool.cxx:132
DerivationFramework::EGElectronAmbiguityTool::m_dambi
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dambi
Definition: EGElectronAmbiguityTool.h:90
DerivationFramework::EGElectronAmbiguityTool::m_isMC
bool m_isMC
Definition: EGElectronAmbiguityTool.h:121
DerivationFramework::EGElectronAmbiguityTool::m_tpContainerName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tpContainerName
Definition: EGElectronAmbiguityTool.h:59
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
xAOD::TrackParticle_v1::charge
float charge() const
Returns the charge.
Definition: TrackParticle_v1.cxx:150
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
hist_file_dump.d
d
Definition: hist_file_dump.py:137
xAOD::TrackParticle_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: TrackParticle_v1.cxx:77
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
DerivationFramework::EGElectronAmbiguityTool::m_drv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_drv
Definition: EGElectronAmbiguityTool.h:75
extractSporadic.c1
c1
Definition: extractSporadic.py:134
DerivationFramework::EGElectronAmbiguityTool::m_dctCut
double m_dctCut
Definition: EGElectronAmbiguityTool.h:129
xAOD::TrackParticle_v1::z0
float z0() const
Returns the parameter.
ElectronxAODHelpers.h
DerivationFramework::EGElectronAmbiguityTool::m_rvECCut
double m_rvECCut
Definition: EGElectronAmbiguityTool.h:134
ParticleTest.tp
tp
Definition: ParticleTest.py:25
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
DerivationFramework::EGElectronAmbiguityTool::m_tpCName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tpCName
Definition: EGElectronAmbiguityTool.h:66
xAOD::Electron_v1::trackParticle
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
Definition: Electron_v1.cxx:55
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:54
PyPoolBrowser.dh
dh
Definition: PyPoolBrowser.py:102
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
DerivationFramework::EGElectronAmbiguityTool::m_sepCut
double m_sepCut
Definition: EGElectronAmbiguityTool.h:129
xAODTruthHelpers.h
DerivationFramework::EGElectronAmbiguityTool::m_elepTCut
double m_elepTCut
Definition: EGElectronAmbiguityTool.h:124
xAOD::TrackParticle_v1::d0
float d0() const
Returns the parameter.
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
xAOD::TrackParticle_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Definition: TrackParticle_v1.cxx:129
DerivationFramework::EGElectronAmbiguityTool::m_dsep
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dsep
Definition: EGElectronAmbiguityTool.h:87
DerivationFramework::EGElectronAmbiguityTool::m_VtxContainerName
SG::ReadHandleKey< xAOD::VertexContainer > m_VtxContainerName
Definition: EGElectronAmbiguityTool.h:53
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
DerivationFramework::EGElectronAmbiguityTool::m_nSiCut
unsigned int m_nSiCut
Definition: EGElectronAmbiguityTool.h:128
DerivationFramework::EGElectronAmbiguityTool::m_dzCut
double m_dzCut
Definition: EGElectronAmbiguityTool.h:129
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
makeTRTBarrelCans.y2
tuple y2
Definition: makeTRTBarrelCans.py:18
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
xAOD::TruthVertex_v1::perp
float perp() const
Vertex transverse distance from the beam line.
Definition: TruthVertex_v1.cxx:165
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:571
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework::EGElectronAmbiguityTool::m_idCut
std::string m_idCut
Definition: EGElectronAmbiguityTool.h:125
xAOD::Egamma_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
Definition: Egamma_v1.cxx:75
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
xAOD::Vertex_v1::z
float z() const
Returns the z position.
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
DerivationFramework::EGElectronAmbiguityTool::DecorHandles
Definition: EGElectronAmbiguityTool.h:101
TruthVertex.h
xAOD::TruthParticle_v1::prodVtx
const TruthVertex_v1 * prodVtx() const
The production vertex of this particle.
Definition: TruthParticle_v1.cxx:80
DerivationFramework::EGElectronAmbiguityTool::m_dmeeVtx
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dmeeVtx
Definition: EGElectronAmbiguityTool.h:84
DerivationFramework::EGElectronAmbiguityTool::m_dphiv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dphiv
Definition: EGElectronAmbiguityTool.h:78
grepfile.sep
sep
Definition: grepfile.py:38
xAOD::TrackParticle_v1::phi0
float phi0() const
Returns the parameter, which has range to .
Definition: TrackParticle_v1.cxx:158
DerivationFramework::EGElectronAmbiguityTool::EGElectronAmbiguityTool
EGElectronAmbiguityTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: EGElectronAmbiguityTool.cxx:50
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
xAOD::TruthHelpers::getTruthParticle
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any)
Definition: xAODTruthHelpers.cxx:25
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
xAOD::EgammaHelpers::numberOfSiHits
std::size_t numberOfSiHits(const xAOD::TrackParticle *tp)
return the number of Si hits in the track particle
Definition: ElectronxAODHelpers.cxx:66
xAOD::Electron_v1
Definition: Electron_v1.h:34
dq_make_web_display.rv
def rv
Definition: dq_make_web_display.py:219
TRT_PAI_physicsConstants::he
const double he
same in ev
Definition: TRT_PAI_physicsConstants.h:22
DerivationFramework::EGElectronAmbiguityTool::m_dtpv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dtpv
Definition: EGElectronAmbiguityTool.h:96
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
DerivationFramework::EGElectronAmbiguityTool::DecorHandles::DecorHandles
DecorHandles(const EGElectronAmbiguityTool &tool, const EventContext &ctx)
Definition: EGElectronAmbiguityTool.cxx:118
ConstDataVector
DataVector adapter that acts like it holds const pointers.
Definition: ConstDataVector.h:76
xAOD::TruthVertex_v1::z
float z() const
Vertex longitudinal distance along the beam line form the origin.
DerivationFramework::EGElectronAmbiguityTool
Definition: EGElectronAmbiguityTool.h:36
DEBUG
#define DEBUG
Definition: page_access.h:11
makeTRTBarrelCans.dx
tuple dx
Definition: makeTRTBarrelCans.py:20
xAOD::Vertex_v1::y
float y() const
Returns the y position.
python.changerun.pv
pv
Definition: changerun.py:81
xAOD::Egamma_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: Egamma_v1.cxx:65
DerivationFramework::EGElectronAmbiguityTool::m_containerName
SG::ReadHandleKey< xAOD::ElectronContainer > m_containerName
Definition: EGElectronAmbiguityTool.h:47
xAOD::EgammaHelpers::getOriginalTrackParticle
const xAOD::TrackParticle * getOriginalTrackParticle(const xAOD::Electron *el)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron.
Definition: ElectronxAODHelpers.cxx:11
SG::ConstAccessor::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
xAOD::Egamma_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: Egamma_v1.cxx:70
DerivationFramework::EGElectronAmbiguityTool::decorateSimple
StatusCode decorateSimple(DecorHandles &dh, std::unique_ptr< ConstDataVector< xAOD::TrackParticleContainer >> &tpC, const xAOD::Electron *ele, const xAOD::Vertex *pvtx) const
Definition: EGElectronAmbiguityTool.cxx:293
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
DerivationFramework::EGElectronAmbiguityTool::m_dtzv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dtzv
Definition: EGElectronAmbiguityTool.h:99
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
AthAlgTool
Definition: AthAlgTool.h:26
MuonParameters::beta
@ beta
Definition: MuonParamDefs.h:144
TruthParticle.h
xAOD::TruthParticle_v1::pdgId
int pdgId() const
PDG ID code.
xAOD::TrackParticle_v1::theta
float theta() const
Returns the parameter, which has range 0 to .
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
DerivationFramework::EGElectronAmbiguityTool::m_meeAtVtxECCut
double m_meeAtVtxECCut
Definition: EGElectronAmbiguityTool.h:134
DerivationFramework::EGElectronAmbiguityTool::m_meeICCut
double m_meeICCut
Definition: EGElectronAmbiguityTool.h:134
xAOD::TrackParticle_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
EGElectronAmbiguityTool.h