Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
DerivationFramework::EGElectronAmbiguityTool Class Reference

#include <EGElectronAmbiguityTool.h>

Inheritance diagram for DerivationFramework::EGElectronAmbiguityTool:
Collaboration diagram for DerivationFramework::EGElectronAmbiguityTool:

Classes

struct  DecorHandles
 

Public Member Functions

 EGElectronAmbiguityTool (const std::string &t, const std::string &n, const IInterface *p)
 
virtual StatusCode initialize () override final
 
virtual StatusCode addBranches () const override final
 Pass the thinning service
More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 AlgTool interface methods. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode decorateSimple (DecorHandles &dh, std::unique_ptr< ConstDataVector< xAOD::TrackParticleContainer >> &tpC, const xAOD::Electron *ele, const xAOD::Vertex *pvtx) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< xAOD::ElectronContainerm_containerName
 
SG::ReadHandleKey< xAOD::VertexContainerm_VtxContainerName
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_tpContainerName
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_tpCName
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_drv { this, "DFCommonSimpleConvRadius", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dphiv { this, "DFCommonSimpleConvPhi", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dmee { this, "DFCommonSimpleMee", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dmeeVtx { this, "DFCommonSimpleMeeAtVtx", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dsep { this, "DFCommonSimpleSeparation", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dambi { this, "DFCommonAddAmbiguity", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dtrv { this, "DFCommonProdTrueRadius", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dtpv { this, "DFCommonProdTruePhi", "", "" }
 
SG::WriteDecorHandleKey< xAOD::ElectronContainerm_dtzv { this, "DFCommonProdTrueZ", "", "" }
 
bool m_isMC {}
 
double m_elepTCut
 
std::string m_idCut
 
unsigned int m_nSiCut
 
double m_dctCut
 
double m_sepCut
 
double m_dzCut
 
double m_rvECCut
 
double m_meeAtVtxECCut
 
double m_meeICCut
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Friends

struct DecorHandles
 

Detailed Description

Definition at line 33 of file EGElectronAmbiguityTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ EGElectronAmbiguityTool()

DerivationFramework::EGElectronAmbiguityTool::EGElectronAmbiguityTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 52 of file EGElectronAmbiguityTool.cxx.

55  : AthAlgTool(t, n, p)
56 {
57  declareInterface<DerivationFramework::IAugmentationTool>(this);
58 
59  declareProperty("isMC", m_isMC);
60 
62  "pTCut", m_elepTCut = 9e3, "minimum pT for an electron to be studied");
63  declareProperty("idCut",
64  m_idCut = "DFCommonElectronsLHLoose",
65  "minimal quality for an electron to be studied");
66 
68  "nSiCut", m_nSiCut = 7, "minimum number of Si hits in the other track");
70  "dzsinTCut", m_dzCut = 0.5, "max dz sinTheta between ele and other tracks");
71  declareProperty("SeparationCut", m_sepCut = 1., "first separation cut");
72  declareProperty("DCTCut", m_dctCut = 0.02, "second separation cut");
73 
74  declareProperty("radiusCut",
75  m_rvECCut = 20,
76  "minimum radius to be classified as external conversion");
78  "meeAtVtxCut",
79  m_meeAtVtxECCut = 100,
80  "maximal mass at vertex to be classified as external conversion");
81  declareProperty("meeCut",
82  m_meeICCut = 100,
83  "maximal mass at primary vertex to be classified as gamma*");
84 }

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::EGElectronAmbiguityTool::addBranches ( ) const
finaloverridevirtual

Pass the thinning service

Implements DerivationFramework::IAugmentationTool.

Definition at line 134 of file EGElectronAmbiguityTool.cxx.

135 {
136  const EventContext& ctx = Gaudi::Hive::currentContext();
137 
138  DecorHandles dh (*this, ctx);
139 
140  static const SG::AuxElement::ConstAccessor<char> aidCut(m_idCut);
141 
142  // retrieve primary vertex
143  const xAOD::Vertex* pvtx(nullptr);
145  if (inputVtx.ptr()){
146  const xAOD::VertexContainer* vtxC = inputVtx.ptr();
147  for (const auto* vertex : *vtxC) {
148  if (vertex->vertexType() == xAOD::VxType::VertexType::PriVtx) {
149  pvtx = vertex;
150  break;
151  }
152  }
153  }
154 
155  // retrieve electron container
157  ctx };
158  const xAOD::ElectronContainer* eleC = inputElectrons.ptr();
159 
160  if (!eleC) {
162  "Couldn't retrieve Electron container with key: " << m_containerName);
163  return StatusCode::FAILURE;
164  }
165  if (!pvtx) {
166  ATH_MSG_DEBUG("No primary vertex found. Setting default values.");
167  for (const xAOD::Electron* iele : *eleC) {
168  dh.drv(*iele) = -1;
169  dh.dphiv(*iele) = -1;
170  dh.dmee(*iele) = -1;
171  dh.dmeeVtx(*iele) = -1;
172  dh.dsep(*iele) = -1;
173  dh.dambi(*iele) = -1;
174  dh.dtrv(*iele) = -1;
175  dh.dtpv(*iele) = -1;
176  dh.dtzv(*iele) = -1;
177  }
178  return StatusCode::SUCCESS;
179  }
180  ATH_MSG_DEBUG("Pvx z = " << pvtx->z() << ", number of electrons "
181  << eleC->size());
182 
183  // Make a container of selected tracks : with Si hits, close to electron track
185  m_tpContainerName, ctx
186  };
187  const xAOD::TrackParticleContainer* idtpC = inputTrackParticles.ptr();
188 
189  std::set<const xAOD::TrackParticle*> alreadyStored;
190  std::set<const xAOD::TrackParticle*> eleIDtpStored, eleGSFtpStored;
191  auto closeByTracks =
192  std::make_unique<ConstDataVector<xAOD::TrackParticleContainer>>(
194 
195  for (const auto* ele : *eleC) {
196 
197  dh.dambi(*ele) = -1;
198 
199  // Electron preselection
200  if (ele->pt() < m_elepTCut ||
201  m_idCut.empty() || !aidCut.isAvailable(*ele) || !aidCut(*ele))
202  continue;
203 
204  // Just for debug
205  const xAOD::TrackParticle* eleGSFtp = ele->trackParticle();
206  eleGSFtpStored.insert(eleGSFtp);
207 
208  const xAOD::TrackParticle* eleIDtp =
210  eleIDtpStored.insert(eleIDtp);
211 
212  // The loop on track
213  for (const auto* tp : *idtpC) {
214 
215  // Keep the electron track (I build a container to run vertexing on it...)
216  if (tp == eleIDtp) {
217  closeByTracks->push_back(tp);
218  alreadyStored.insert(tp);
219  continue;
220  }
221 
222  // potential candidate to store if not already there
223  if (alreadyStored.find(tp) != alreadyStored.end())
224  continue;
225 
227  // if (tp->charge() * ele->charge() > 0)
228  // continue;
229 
230  // Close-by
231  double dR = eleIDtp->p4().DeltaR(tp->p4());
232  double dz = std::abs(eleIDtp->z0() - tp->z0()) * sin(eleIDtp->theta());
233  if (dR >= 0.3 || dz >= m_dzCut)
234  continue;
235 
236  // With minimum number of Si hits
238  continue;
239 
240  alreadyStored.insert(tp);
241 
242  closeByTracks->push_back(tp);
243  }
244  }
245 
246  if (closeByTracks->empty())
247  return StatusCode::SUCCESS;
248 
249  if (msgLvl(MSG::DEBUG)) {
251  ctx };
252  const xAOD::TrackParticleContainer* tpC = tpCReadHandle.ptr();
253 
254  ATH_MSG_DEBUG("Number of input tracks "
255  << idtpC->size() << " , number of selected close-by tracks "
256  << closeByTracks->size() << " , number of GSF tracks "
257  << tpC->size());
258  for (const auto* trk : eleIDtpStored)
259  ATH_MSG_DEBUG("ele ID trk "
260  << trk << " pt = " << trk->pt() * 1e-3
261  << " eta = " << trk->eta() << " phi = " << trk->phi()
262  << " nSi = " << xAOD::EgammaHelpers::numberOfSiHits(trk));
263  for (const auto* trk : eleGSFtpStored)
264  ATH_MSG_DEBUG("ele GSF trk "
265  << trk << " pt = " << trk->pt() * 1e-3
266  << " eta = " << trk->eta() << " phi = " << trk->phi()
267  << " nSi = " << xAOD::EgammaHelpers::numberOfSiHits(trk));
268  for (const xAOD::TrackParticle* trk : *closeByTracks)
269  ATH_MSG_DEBUG("closeby trk "
270  << trk << " pt = " << trk->pt() * 1e-3
271  << " eta = " << trk->eta() << " phi = " << trk->phi()
272  << " nSi = " << xAOD::EgammaHelpers::numberOfSiHits(trk));
273  }
274 
275  for (const auto* ele : *eleC) {
276 
277  // Electron preselection
278  if (ele->pt() < m_elepTCut ||
279  m_idCut.empty() || !aidCut.isAvailable(*ele) || !aidCut(*ele))
280  continue;
281 
282  // Henri's circles
283  if (decorateSimple(dh, closeByTracks, ele, pvtx).isFailure()) {
284  ATH_MSG_ERROR("Cannot decorate the electron with the simple info");
285  return StatusCode::FAILURE;
286  }
287 
288  } // loop on electrons to decorate
289 
290  return StatusCode::SUCCESS;
291 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ decorateSimple()

StatusCode DerivationFramework::EGElectronAmbiguityTool::decorateSimple ( DecorHandles dh,
std::unique_ptr< ConstDataVector< xAOD::TrackParticleContainer >> &  tpC,
const xAOD::Electron ele,
const xAOD::Vertex pvtx 
) const
private

HelixToCircle Main Track Electron

HelixToCircle Other Electron Conv Track

Definition at line 295 of file EGElectronAmbiguityTool.cxx.

300 {
301  // This is the GSF electron track
302  const xAOD::TrackParticle* eleGSFtrkP = ele->trackParticle();
303 
304  // And the ID one
305  const xAOD::TrackParticle* eleIDtrkP =
307 
308  // For the time being, use the ID one, to be consistent when we only find a
309  // good ID to make a conversion and no GSF
310  bool useGSF = false; // hardcoded because it seems we will not use true. Kept
311  // for the time being, as not 100% sure
312  const xAOD::TrackParticle* eletrkP = useGSF ? eleGSFtrkP : eleIDtrkP;
313 
314  ATH_MSG_DEBUG("Electron pt = " << ele->pt() * 1e-3 << " eta = " << ele->eta()
315  << " phi = " << ele->phi() << " GSF trk ptr = "
316  << eleGSFtrkP << " ID trk ptr " << eleIDtrkP);
317 
318  if (m_isMC) {
319  const xAOD::TruthParticle* truthEl =
321  double tpvr = -1, tpvp = 9e9, tpvz = 9e9;
322  if (truthEl && MC::isElectron(truthEl) &&
323  truthEl->prodVtx() != nullptr) {
324  tpvr = truthEl->prodVtx()->perp();
325  tpvp = truthEl->prodVtx()->phi();
326  tpvz = truthEl->prodVtx()->z();
327  }
328  dh.dtrv(*ele) = tpvr;
329  dh.dtpv(*ele) = tpvp;
330  dh.dtzv(*ele) = tpvz;
331  }
332 
333  // Find the closest track particle with opposite charge and a minimum nb of Si
334  // hits
335  const xAOD::TrackParticle* otrkP(nullptr);
336  double detaMin = 9e9;
337  for (const xAOD::TrackParticle* tp : *tpC) {
338  // Keep only opposite charge
339  if (tp->charge() * eletrkP->charge() > 0)
340  continue;
341 
342  // Close-by
343  double dR = eletrkP->p4().DeltaR(tp->p4());
344  double dz = std::abs(eletrkP->z0() - tp->z0()) * sin(eletrkP->theta());
345  if (dR >= 0.3 || dz >= m_dzCut)
346  continue;
347 
348  double deta = std::abs(eletrkP->eta() - tp->eta());
349  if (deta < detaMin) {
350  otrkP = tp;
351  detaMin = deta;
352  }
353  }
354 
355  double rv = -9e9;
356  double pv = -9e9;
357  double mee = -1.;
358  double meeAtVtx = -1.;
359  double sep = -9e9;
360  bool goodConv = false;
361 
362  if (otrkP) {
363 
364  // To be consistent with the other, use the ID track.
365  TLorentzVector ep4;
366  ep4.SetPtEtaPhiM(eletrkP->pt(), eletrkP->eta(), eletrkP->phi(), 0.511);
367 
368  // Maybe could see if a GSF tp exists for this ID tp and use it if yes ?
369  TLorentzVector op4;
370  op4.SetPtEtaPhiM(otrkP->pt(), otrkP->eta(), otrkP->phi(), 0.511);
371 
372  // Simple masses
373  mee = (ep4 + op4).M();
374  op4.SetPhi(eletrkP->phi());
375  meeAtVtx = (ep4 + op4).M();
376 
377  // And the conversion point
378  std::vector<double> helix1, helix2;
379  helix1.resize(5);
380  helix2.resize(5);
381  helix(eletrkP, pvtx, helix1);
382  helix(otrkP, pvtx, helix2);
383 
384  double beta(0.);
385  if (helix1[4] < helix2[4])
386  beta = TMath::PiOver2() - helix1[4];
387  else
388  beta = TMath::PiOver2() - helix2[4];
389 
390  double phi1(helix1[4] + beta);
391  if (phi1 > TMath::TwoPi())
392  phi1 -= TMath::TwoPi();
393  if (phi1 < 0.)
394  phi1 += TMath::TwoPi();
395 
396  double phi2(helix2[4] + beta);
397  if (phi2 > TMath::TwoPi())
398  phi2 -= TMath::TwoPi();
399  if (phi2 < 0.)
400  phi2 += TMath::TwoPi();
401 
403  double r1 = 1 / (2. * std::abs(helix1[1]));
404 
405  double charge1(1.);
406  if (helix1[1] < 0.)
407  charge1 = -1.;
408  double rcenter1(helix1[3] / charge1 + r1);
409  double phicenter1(phi1 + TMath::PiOver2() * charge1);
410 
411  double x1 = rcenter1 * cos(phicenter1);
412  double y1 = rcenter1 * sin(phicenter1);
413 
415  double r2 = 1 / (2. * std::abs(helix2[1]));
416 
417  double charge2(1.);
418  if (helix2[1] < 0.)
419  charge2 = -1.;
420  double rcenter2(helix2[3] / charge2 + r2);
421  double phicenter2(phi2 + TMath::PiOver2() * charge2);
422 
423  double x2 = rcenter2 * cos(phicenter2);
424  double y2 = rcenter2 * sin(phicenter2);
426 
427  double dx(x1 - x2);
428  if (dx < 1e-9 && dx > 0.)
429  dx = 1e-9;
430  if (dx > -1e-9 && dx < 0.)
431  dx = -1e-9;
432  double slope((y1 - y2) / dx);
433  double b(y1 - slope * x1);
434  double alpha(atan(slope));
435  double d(sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));
436  // only keeping opposite sign option
437  double separation = d - r1 - r2;
438  double cpx1, cpx2;
439  if (x1 > x2) {
440  cpx1 = x1 - r1 * cos(alpha);
441  cpx2 = x2 + r2 * cos(alpha);
442  } else {
443  cpx1 = x1 + r1 * cos(alpha);
444  cpx2 = x2 - r2 * cos(alpha);
445  }
446 
447  double temp1 = (cpx1 + cpx2) / 2;
448  double temp2 = slope * temp1 + b;
449  double convX = cos(beta) * temp1 + sin(beta) * temp2;
450  double convY = -sin(beta) * temp1 + cos(beta) * temp2;
451 
452  double dct(helix1[0] - helix2[0]);
453 
455  if (std::abs(separation) < m_sepCut && std::abs(dct) < m_dctCut) {
456  goodConv = true;
457  sep = separation;
458  pv = std::atan2(convY, convX);
459  rv = sqrt(convX * convX + convY * convY);
460  if (convX * cos(eletrkP->phi()) + convY * sin(eletrkP->phi()) < 0)
461  rv *= -1.;
462  }
463  } else {
464  dh.dambi(*ele) = -1;
465  }
466  dh.drv(*ele) = rv;
467  dh.dphiv(*ele) = pv;
468  dh.dmee(*ele) = mee;
469  dh.dmeeVtx(*ele) = meeAtVtx;
470  dh.dsep(*ele) = sep;
471  if (goodConv && rv > m_rvECCut && meeAtVtx < m_meeAtVtxECCut)
472  dh.dambi(*ele) = 2;
473  else if (otrkP) {
474  if (mee < m_meeICCut)
475  dh.dambi(*ele) = 1;
476  else
477  dh.dambi(*ele) = 0;
478  }
479  return StatusCode::SUCCESS;
480 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ initialize()

StatusCode DerivationFramework::EGElectronAmbiguityTool::initialize ( )
finaloverridevirtual

Definition at line 87 of file EGElectronAmbiguityTool.cxx.

88 {
89 
91  ATH_CHECK(m_VtxContainerName.initialize());
94 
95  const std::string baseName = m_containerName.key();
96  m_drv = baseName + ".DFCommonSimpleConvRadius";
97  m_dphiv = baseName + ".DFCommonSimpleConvPhi";
98  m_dmee = baseName + ".DFCommonSimpleMee";
99  m_dmeeVtx = baseName + ".DFCommonSimpleMeeAtVtx";
100  m_dsep = baseName + ".DFCommonSimpleSeparation";
101  m_dambi = baseName + ".DFCommonAddAmbiguity";
102  m_dtrv = baseName + ".DFCommonProdTrueRadius";
103  m_dtpv = baseName + ".DFCommonProdTruePhi";
104  m_dtzv = baseName + ".DFCommonProdTrueZ";
105 
115 
116  return StatusCode::SUCCESS;
117 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& DerivationFramework::IAugmentationTool::interfaceID ( )
inlinestaticinherited

AlgTool interface methods.

Definition at line 31 of file IAugmentationTool.h.

31 { return IID_IAugmentationTool; }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Friends And Related Function Documentation

◆ DecorHandles

friend struct DecorHandles
friend

Definition at line 113 of file EGElectronAmbiguityTool.h.

Member Data Documentation

◆ m_containerName

SG::ReadHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_containerName
private
Initial value:
{
this,
"ContainerName",
"Electrons",
"SG key of electron container"
}

Definition at line 47 of file EGElectronAmbiguityTool.h.

◆ m_dambi

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dambi { this, "DFCommonAddAmbiguity", "", "" }
private

Definition at line 90 of file EGElectronAmbiguityTool.h.

◆ m_dctCut

double DerivationFramework::EGElectronAmbiguityTool::m_dctCut
private

Definition at line 129 of file EGElectronAmbiguityTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dmee

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dmee { this, "DFCommonSimpleMee", "", "" }
private

Definition at line 81 of file EGElectronAmbiguityTool.h.

◆ m_dmeeVtx

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dmeeVtx { this, "DFCommonSimpleMeeAtVtx", "", "" }
private

Definition at line 84 of file EGElectronAmbiguityTool.h.

◆ m_dphiv

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dphiv { this, "DFCommonSimpleConvPhi", "", "" }
private

Definition at line 78 of file EGElectronAmbiguityTool.h.

◆ m_drv

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_drv { this, "DFCommonSimpleConvRadius", "", "" }
private

Definition at line 75 of file EGElectronAmbiguityTool.h.

◆ m_dsep

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dsep { this, "DFCommonSimpleSeparation", "", "" }
private

Definition at line 87 of file EGElectronAmbiguityTool.h.

◆ m_dtpv

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dtpv { this, "DFCommonProdTruePhi", "", "" }
private

Definition at line 96 of file EGElectronAmbiguityTool.h.

◆ m_dtrv

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dtrv { this, "DFCommonProdTrueRadius", "", "" }
private

Definition at line 93 of file EGElectronAmbiguityTool.h.

◆ m_dtzv

SG::WriteDecorHandleKey<xAOD::ElectronContainer> DerivationFramework::EGElectronAmbiguityTool::m_dtzv { this, "DFCommonProdTrueZ", "", "" }
private

Definition at line 99 of file EGElectronAmbiguityTool.h.

◆ m_dzCut

double DerivationFramework::EGElectronAmbiguityTool::m_dzCut
private

Definition at line 129 of file EGElectronAmbiguityTool.h.

◆ m_elepTCut

double DerivationFramework::EGElectronAmbiguityTool::m_elepTCut
private

Definition at line 124 of file EGElectronAmbiguityTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_idCut

std::string DerivationFramework::EGElectronAmbiguityTool::m_idCut
private

Definition at line 125 of file EGElectronAmbiguityTool.h.

◆ m_isMC

bool DerivationFramework::EGElectronAmbiguityTool::m_isMC {}
private

Definition at line 121 of file EGElectronAmbiguityTool.h.

◆ m_meeAtVtxECCut

double DerivationFramework::EGElectronAmbiguityTool::m_meeAtVtxECCut
private

Definition at line 134 of file EGElectronAmbiguityTool.h.

◆ m_meeICCut

double DerivationFramework::EGElectronAmbiguityTool::m_meeICCut
private

Definition at line 134 of file EGElectronAmbiguityTool.h.

◆ m_nSiCut

unsigned int DerivationFramework::EGElectronAmbiguityTool::m_nSiCut
private

Definition at line 128 of file EGElectronAmbiguityTool.h.

◆ m_rvECCut

double DerivationFramework::EGElectronAmbiguityTool::m_rvECCut
private

Definition at line 134 of file EGElectronAmbiguityTool.h.

◆ m_sepCut

double DerivationFramework::EGElectronAmbiguityTool::m_sepCut
private

Definition at line 129 of file EGElectronAmbiguityTool.h.

◆ m_tpCName

SG::ReadHandleKey<xAOD::TrackParticleContainer> DerivationFramework::EGElectronAmbiguityTool::m_tpCName
private
Initial value:
{
this,
"tpCName",
"GSFTrackParticles",
"SG key of TrackParticleInputContainer"
}

Definition at line 66 of file EGElectronAmbiguityTool.h.

◆ m_tpContainerName

SG::ReadHandleKey<xAOD::TrackParticleContainer> DerivationFramework::EGElectronAmbiguityTool::m_tpContainerName
private
Initial value:
{
this,
"tpContainerName",
"InDetTrackParticles",
"SG key of track particles container"
}

Definition at line 59 of file EGElectronAmbiguityTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_VtxContainerName

SG::ReadHandleKey<xAOD::VertexContainer> DerivationFramework::EGElectronAmbiguityTool::m_VtxContainerName
private
Initial value:
{
this,
"VtxContainerName",
"PrimaryVertices",
"SG key of vertex container"
}

Definition at line 53 of file EGElectronAmbiguityTool.h.


The documentation for this class was generated from the following files:
xAOD::TrackParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TrackParticle_v1.cxx:73
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
add-xsec-uncert-quadrature-N.alpha
alpha
Definition: add-xsec-uncert-quadrature-N.py:110
DerivationFramework::EGElectronAmbiguityTool::m_dtrv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dtrv
Definition: EGElectronAmbiguityTool.h:93
xAOD::TruthVertex_v1::phi
float phi() const
Vertex azimuthal angle.
Definition: TruthVertex_v1.cxx:176
DerivationFramework::EGElectronAmbiguityTool::m_dmee
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dmee
Definition: EGElectronAmbiguityTool.h:81
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:67
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:143
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
DerivationFramework::EGElectronAmbiguityTool::m_dctCut
double m_dctCut
Definition: EGElectronAmbiguityTool.h:129
xAOD::TrackParticle_v1::z0
float z0() const
Returns the parameter.
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
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:55
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
MCP::ScaleSmearParam::r2
@ r2
DerivationFramework::EGElectronAmbiguityTool::m_sepCut
double m_sepCut
Definition: EGElectronAmbiguityTool.h:129
DerivationFramework::EGElectronAmbiguityTool::DecorHandles
friend struct DecorHandles
Definition: EGElectronAmbiguityTool.h:113
DerivationFramework::EGElectronAmbiguityTool::m_elepTCut
double m_elepTCut
Definition: EGElectronAmbiguityTool.h:124
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
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
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::EgammaHelpers::isElectron
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
Definition: EgammaxAODHelpers.cxx:12
makeTRTBarrelCans.y2
tuple y2
Definition: makeTRTBarrelCans.py:18
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
xAOD::TruthVertex_v1::perp
float perp() const
Vertex transverse distance from the beam line.
Definition: TruthVertex_v1.cxx:163
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:572
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
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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:794
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
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
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
DerivationFramework::EGElectronAmbiguityTool::m_dtpv
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dtpv
Definition: EGElectronAmbiguityTool.h:96
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
a
TList * a
Definition: liststreamerinfos.cxx:10
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.
h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
xAOD::TruthVertex_v1::z
float z() const
Vertex longitudinal distance along the beam line form the origin.
DEBUG
#define DEBUG
Definition: page_access.h:11
makeTRTBarrelCans.dx
tuple dx
Definition: makeTRTBarrelCans.py:20
python.changerun.pv
pv
Definition: changerun.py:81
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
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
xAOD::Egamma_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: Egamma_v1.cxx:70
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
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:295
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
MCP::ScaleSmearParam::r1
@ r1
MuonParameters::beta
@ beta
Definition: MuonParamDefs.h:144
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.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
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 .)
fitman.k
k
Definition: fitman.py:528