ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
xAODEgammaBuilder Class Reference

#include <xAODEgammaBuilder.h>

Inheritance diagram for xAODEgammaBuilder:
Collaboration diagram for xAODEgammaBuilder:

Public Member Functions

 xAODEgammaBuilder (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize () override final
 
StatusCode finalize () override final
 
StatusCode execute (const EventContext &ctx) const override final
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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 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
 

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

bool getElectron (const egammaRec *egRec, xAOD::ElectronContainer *electronContainer, const unsigned int author, const uint8_t type) const
 Given an egammaRec object, a pointer to the electron container and the author, create and dress an electron, pushing it back to the container and calling the relevant tools. More...
 
bool getPhoton (const egammaRec *egRec, xAOD::PhotonContainer *photonContainer, const unsigned int author, uint8_t type) const
 Given an egammaRec object, a pointer to the photon container and the author, create and dress a photon, pushing it back to the container and calling the relevant tools. More...
 
template<typename T >
StatusCode CallTool (const EventContext &ctx, const ToolHandle< IegammaBaseTool > &tool, DataVector< T > *container) const
 Call a tool using contExecute and an electron or photon container. More...
 
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

ToolHandleArray< IegammaBaseToolm_electronTools
 Vector of tools for dressing ONLY electrons. More...
 
ToolHandleArray< IegammaBaseToolm_photonTools
 Vector of tools for dressing ONLY photons. More...
 
ToolHandle< IEMClusterToolm_clusterTool
 Tool to do the final electron/photon cluster building. More...
 
ToolHandle< IEMShowerBuilderm_ShowerTool
 Tool to compute shower shapes. More...
 
ToolHandle< IEGammaAmbiguityToolm_ambiguityTool
 Tool to resolve electron/photon ambiguity. More...
 
ToolHandle< IegammaOQFlagsBuilderm_egammaOQTool
 Tool to add electron/photon Object Quality info. More...
 
SG::WriteHandleKey< xAOD::ElectronContainerm_electronOutputKey
 Name of the electron output collection. More...
 
SG::WriteHandleKey< xAOD::PhotonContainerm_photonOutputKey
 Name of the photon output collection. More...
 
SG::ReadHandleKey< EgammaRecContainerm_electronClusterRecContainerKey
 Name of input super cluster electron egammaRec container. More...
 
SG::ReadHandleKey< EgammaRecContainerm_photonClusterRecContainerKey
 Name of input super cluster photon egammaRec container. More...
 
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloDetDescrMgrKey
 
SG::WriteHandleKey< xAOD::ElectronContainerm_dummyElectronOutputKey
 Name of the dummy electron output collection. More...
 
Gaudi::Property< bool > m_isTruth {this, "isTruth", false, "is truth"}
 Option to do truth. More...
 
Gaudi::Property< bool > m_doPhotons {this, "doPhotons", true, "Run the Photon reconstruction"}
 
Gaudi::Property< bool > m_doElectrons {this, "doElectrons", true, "Run the Electron reconstruction"}
 
std::unique_ptr< electronPearShapeAlignmentCorrectionm_deltaEta1Pear
 
bool m_doAmbiguity {}
 
bool m_doOQ {}
 
bool m_doDummyElectrons = false
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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
 

Detailed Description

The last step of the electron and photon reconstruction algorithm. The algorithm builds physics objects (xAOD::Electron, xAOD::Photon) from the egammaRec containers built by the previous algorithms. In the step of the chain electron and photon reconstruction are merged again and the ambiguity resolution is applied.

Input collections:

Output collections:

If the algorithm runs on both electrons and photons, which is the default (see doPhotons and doElectrons properties), the ambiguity resolution is applied. If there are two egammaRec, one coming from the electron input container, one coming from the photon input container, with the same eta and phi of the hottest cells then the ambiguity tool decides if to save only one or both. The author and the ambiguityType are set accordingly to that decision. If both particles are saved a link between them is saved (ambiguityLink). All the properties of electrons are set:

All the properties of photons are set:

Several tools are then applied to the particle:

Definition at line 87 of file xAODEgammaBuilder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ xAODEgammaBuilder()

xAODEgammaBuilder::xAODEgammaBuilder ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 76 of file xAODEgammaBuilder.cxx.

78  : AthReentrantAlgorithm(name, pSvcLocator)
79 {}

Member Function Documentation

◆ CallTool()

template<typename T >
StatusCode xAODEgammaBuilder::CallTool ( const EventContext &  ctx,
const ToolHandle< IegammaBaseTool > &  tool,
DataVector< T > *  container 
) const
private

Call a tool using contExecute and an electron or photon container.

Definition at line 322 of file xAODEgammaBuilder.cxx.

326 {
327  if (container) {
328  for (T *egamma : *container) {
329  ATH_CHECK(tool->execute(ctx, egamma));
330  }
331  }
332 
333  return StatusCode::SUCCESS;
334 }

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode xAODEgammaBuilder::execute ( const EventContext &  ctx) const
finaloverride

Definition at line 128 of file xAODEgammaBuilder.cxx.

129 {
130 
131  const EgammaRecContainer* inputElRecs = nullptr;
132  const EgammaRecContainer* inputPhRecs = nullptr;
134  xAOD::PhotonContainer* photons = nullptr;
135  /*
136  * From here on if a Read/Write handle
137  * is retrieved the above will be !=
138  * nullptr for electron or photons or both
139  */
140  std::optional<SG::WriteHandle<xAOD::ElectronContainer>> electronContainer;
141  std::optional<SG::WriteHandle<xAOD::PhotonContainer>> photonContainer;
142 
143  if (m_doElectrons) {
144  SG::ReadHandle<EgammaRecContainer> electronSuperRecs(
146  inputElRecs = electronSuperRecs.ptr();
147 
150  std::make_unique<xAOD::ElectronContainer>(),
151  std::make_unique<xAOD::ElectronAuxContainer>()));
152 
153  electrons = electronContainer->ptr();
154  electrons->reserve(inputElRecs->size());
155  }
156  if (m_doPhotons) {
157  SG::ReadHandle<EgammaRecContainer> photonSuperRecs(
159  inputPhRecs = photonSuperRecs.ptr();
160 
162  ATH_CHECK(
163  photonContainer->record(std::make_unique<xAOD::PhotonContainer>(),
164  std::make_unique<xAOD::PhotonAuxContainer>()));
165 
166  photons = photonContainer->ptr();
167  photons->reserve(inputPhRecs->size());
168  }
169 
170  /*
171  * Now fill the electrons and photons
172  */
173  if (m_doElectrons) {
174  for (const egammaRec* electronRec : *inputElRecs) {
175  // in case for some reasons we reach here with no trackparticles
176  if (electronRec->getNumberOfTrackParticles() == 0) {
177  continue;
178  }
181  if (m_doPhotons) {
182  // get the hottest cell
183  const xAOD::CaloCluster* const elClus = electronRec->caloCluster();
184  const double elEta0 = elClus->eta0();
185  const double elPhi0 = elClus->phi0();
186  for (const egammaRec* photonRec : *inputPhRecs) {
187  const xAOD::CaloCluster* const phClus = photonRec->caloCluster();
188  // See if they have the same hottest cell
189  if (elEta0 == phClus->eta0() && elPhi0 == phClus->phi0()) {
190  if (m_doAmbiguity) { // should be the default
191  author =
192  m_ambiguityTool->ambiguityResolve(elClus,
193  photonRec->vertex(),
194  electronRec->trackParticle(),
195  type);
196  } else { // in case the ambiguity tool is not set ambiguity is not
197  // resolved
199  }
200  break;
201  }
202  }
203  }
204  // Create Electron xAOD objects
207  if (!getElectron(electronRec, electrons, author, type)) {
208  return StatusCode::FAILURE;
209  }
210  }
211  }
212  }
213 
214  if (m_doPhotons) {
215  for (const egammaRec* photonRec : *inputPhRecs) {
218  if (m_doElectrons) {
219  // get the hottest cell
220  const xAOD::CaloCluster* const phClus = photonRec->caloCluster();
221  const double phEta0 = phClus->eta0();
222  const double phPhi0 = phClus->phi0();
223  for (const egammaRec* electronRec : *inputElRecs) {
224  const xAOD::CaloCluster* const elClus = electronRec->caloCluster();
225  // See if they have the same hottest cell
226  if (phEta0 == elClus->eta0() && phPhi0 == elClus->phi0()) {
227  if (m_doAmbiguity) { // should be the default
228  author =
229  m_ambiguityTool->ambiguityResolve(elClus,
230  photonRec->vertex(),
231  electronRec->trackParticle(),
232  type);
233  } else { // in case the ambiguity tool is not set ambiguity is not
234  // resolved
236  }
237  break;
238  }
239  }
240  }
241  // Create Photon xAOD objects
244  if (!getPhoton(photonRec, photons, author, type)) {
245  return StatusCode::FAILURE;
246  }
247  }
248  }
249  }
250 
251  SG::ReadCondHandle<CaloDetDescrManager> caloDetDescrMgrHandle{
253  };
254  ATH_CHECK(caloDetDescrMgrHandle.isValid());
255  const CaloDetDescrManager* calodetdescrmgr = *caloDetDescrMgrHandle;
256 
257  // Shower Shapes
258  if (electrons) {
259  for (xAOD::Electron* electron : *electrons) {
260  ATH_CHECK(m_ShowerTool->execute(ctx, *calodetdescrmgr, electron));
261  }
262  }
263  if (photons) {
264  for (xAOD::Photon* photon : *photons) {
265  ATH_CHECK(m_ShowerTool->execute(ctx, *calodetdescrmgr, photon));
266  }
267  }
268 
269  // Object Quality
270  if (m_doOQ) {
271  if (electrons) {
272  for (xAOD::Electron* electron : *electrons) {
273  ATH_CHECK(m_egammaOQTool->execute(ctx, *electron));
274  }
275  }
276  if (photons) {
277  for (xAOD::Photon* photon : *photons) {
278  ATH_CHECK(m_egammaOQTool->execute(ctx, *photon));
279  }
280  }
281  }
282 
283  // Energy calibration
284  ATH_CHECK(m_clusterTool->contExecute(ctx, electrons, photons));
285 
286  //Followed by 4-Mom Building
289  //Additional tools fpr electrons/photons
290  //e.g identification
291  if (m_doElectrons) {
292  for (const auto& tool : m_electronTools) {
294  }
295  }
296  if (m_doPhotons) {
297  for (const auto& tool : m_photonTools) {
298  ATH_CHECK(CallTool(ctx, tool, photons));
299  }
300  }
301  // Do the ambiguity Links
302  if (m_doElectrons && m_doPhotons) {
303  doAmbiguityLinks(ctx, electrons, photons);
304  doAmbiguityLinks(ctx, photons, electrons);
305  }
306 
307  if (m_doDummyElectrons) {
308  SG::WriteHandle<xAOD::ElectronContainer> dummyElectronContainer(
310  ATH_CHECK(dummyElectronContainer.record(
311  std::make_unique<xAOD::ElectronContainer>(),
312  std::make_unique<xAOD::ElectronAuxContainer>()));
313 
314  dummyElectronContainer->push_back(std::unique_ptr<xAOD::Electron>());
315  }
316 
317  return StatusCode::SUCCESS;
318 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

StatusCode xAODEgammaBuilder::finalize ( )
finaloverride

Definition at line 122 of file xAODEgammaBuilder.cxx.

123 {
124  return StatusCode::SUCCESS;
125 }

◆ getElectron()

bool xAODEgammaBuilder::getElectron ( const egammaRec egRec,
xAOD::ElectronContainer electronContainer,
const unsigned int  author,
const uint8_t  type 
) const
private

Given an egammaRec object, a pointer to the electron container and the author, create and dress an electron, pushing it back to the container and calling the relevant tools.

Definition at line 337 of file xAODEgammaBuilder.cxx.

341 {
342  if (!egRec || !electronContainer) {
343  return false;
344  }
345 
346  xAOD::Electron* electron = electronContainer->push_back(std::make_unique<xAOD::Electron>());
347  electron->setAuthor(author);
348 
349  static const SG::AuxElement::Accessor<uint8_t> acc("ambiguityType");
350  acc(*electron) = type;
351 
352  electron->setCaloClusterLinks(egRec->caloClusterElementLinks());
353  electron->setTrackParticleLinks(egRec->trackParticleElementLinks());
354 
355  const xAOD::TrackParticle* trackParticle = electron->trackParticle();
356  if (trackParticle) {
357  electron->setCharge(trackParticle->charge());
358  }
359  // Set DeltaEta, DeltaPhi , DeltaPhiRescaled
360  electron->setTrackCaloMatchValues(
361  egRec->deltaEta(),
362  egRec->deltaPhi(),
363  egRec->deltaPhiRescaled(),
364  egRec->deltaPhiLast()
365  );
366 
367  static const SG::AuxElement::Accessor<float> pear("deltaEta1PearDistortion");
368  pear(*electron) = m_isTruth ? 0.0 : m_deltaEta1Pear->getDeltaEtaDistortion(
369  electron->caloCluster()->etaBE(2),
370  electron->caloCluster()->phiBE(2)
371  );
372 
373  return true;
374 }

◆ getPhoton()

bool xAODEgammaBuilder::getPhoton ( const egammaRec egRec,
xAOD::PhotonContainer photonContainer,
const unsigned int  author,
uint8_t  type 
) const
private

Given an egammaRec object, a pointer to the photon container and the author, create and dress a photon, pushing it back to the container and calling the relevant tools.

Definition at line 377 of file xAODEgammaBuilder.cxx.

381 {
382  if (!egRec || !photonContainer) {
383  return false;
384  }
385 
386  xAOD::Photon* photon = photonContainer->push_back(std::make_unique<xAOD::Photon>());
387  photon->setAuthor(author);
388  static const SG::AuxElement::Accessor<uint8_t> acc("ambiguityType");
389  acc(*photon) = type;
390 
391  photon->setCaloClusterLinks(egRec->caloClusterElementLinks());
392  photon->setVertexLinks(egRec->vertexElementLinks());
393 
394  // Transfer deltaEta/Phi info
395  float deltaEta = egRec->deltaEtaVtx();
396  float deltaPhi = egRec->deltaPhiVtx();
397  if (!photon->setVertexCaloMatchValue(
399  return false;
400  }
401 
402  if (!photon->setVertexCaloMatchValue(
404  return false;
405  }
406  return true;
407 }

◆ initialize()

StatusCode xAODEgammaBuilder::initialize ( )
finaloverride

Definition at line 82 of file xAODEgammaBuilder.cxx.

83 {
84  m_deltaEta1Pear = std::make_unique<electronPearShapeAlignmentCorrection>();
85  // the data handle keys
91 
92  // retrieve tools
93  ATH_CHECK(m_clusterTool.retrieve());
94  ATH_CHECK(m_ShowerTool.retrieve());
95 
96  if (m_doElectrons) {
97  ATH_CHECK(m_electronTools.retrieve());
98  }
99  if (m_doPhotons) {
100  ATH_CHECK(m_photonTools.retrieve());
101  }
102  m_doOQ = !m_egammaOQTool.empty();
103  if (m_doOQ) {
104  ATH_CHECK(m_egammaOQTool.retrieve());
105  } else {
106  m_egammaOQTool.disable();
107  }
108 
109  // do we actually do ambiguity
110  m_doAmbiguity = !m_ambiguityTool.empty();
112  ATH_CHECK(m_ambiguityTool.retrieve());
113  } else {
114  m_ambiguityTool.disable();
115  }
118  return StatusCode::SUCCESS;
119 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

Member Data Documentation

◆ m_ambiguityTool

ToolHandle<IEGammaAmbiguityTool> xAODEgammaBuilder::m_ambiguityTool
private
Initial value:
{this,
"AmbiguityTool", "EGammaAmbiguityTool/egammaambiguitytool",
"Tool that does electron/photon ambiguity resolution"}

Tool to resolve electron/photon ambiguity.

Definition at line 135 of file xAODEgammaBuilder.h.

◆ m_caloDetDescrMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> xAODEgammaBuilder::m_caloDetDescrMgrKey
private
Initial value:
{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}

Definition at line 168 of file xAODEgammaBuilder.h.

◆ m_clusterTool

ToolHandle<IEMClusterTool> xAODEgammaBuilder::m_clusterTool
private
Initial value:
{this,
"EMClusterTool", "egammaTools/EMClusterTool",
"Tool that does electron/photon final cluster building"}

Tool to do the final electron/photon cluster building.

Definition at line 125 of file xAODEgammaBuilder.h.

◆ m_deltaEta1Pear

std::unique_ptr<electronPearShapeAlignmentCorrection> xAODEgammaBuilder::m_deltaEta1Pear
private

Definition at line 186 of file xAODEgammaBuilder.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doAmbiguity

bool xAODEgammaBuilder::m_doAmbiguity {}
private

Definition at line 187 of file xAODEgammaBuilder.h.

◆ m_doDummyElectrons

bool xAODEgammaBuilder::m_doDummyElectrons = false
private

Definition at line 189 of file xAODEgammaBuilder.h.

◆ m_doElectrons

Gaudi::Property<bool> xAODEgammaBuilder::m_doElectrons {this, "doElectrons", true, "Run the Electron reconstruction"}
private

Definition at line 185 of file xAODEgammaBuilder.h.

◆ m_doOQ

bool xAODEgammaBuilder::m_doOQ {}
private

Definition at line 188 of file xAODEgammaBuilder.h.

◆ m_doPhotons

Gaudi::Property<bool> xAODEgammaBuilder::m_doPhotons {this, "doPhotons", true, "Run the Photon reconstruction"}
private

Definition at line 184 of file xAODEgammaBuilder.h.

◆ m_dummyElectronOutputKey

SG::WriteHandleKey<xAOD::ElectronContainer> xAODEgammaBuilder::m_dummyElectronOutputKey
private
Initial value:
{this,
"DummyElectronOutputName", "",
"Name of Dummy Electron Container to be created"}

Name of the dummy electron output collection.

Definition at line 176 of file xAODEgammaBuilder.h.

◆ m_egammaOQTool

ToolHandle<IegammaOQFlagsBuilder> xAODEgammaBuilder::m_egammaOQTool
private
Initial value:
{this,
"ObjectQualityTool", {},
"Tool that adds electron/photon Object Quality info"}

Tool to add electron/photon Object Quality info.

Definition at line 140 of file xAODEgammaBuilder.h.

◆ m_electronClusterRecContainerKey

SG::ReadHandleKey<EgammaRecContainer> xAODEgammaBuilder::m_electronClusterRecContainerKey
private
Initial value:
{this,
"InputElectronRecCollectionName",
"ElectronSuperRecCollection",
"Input container for electron Super Cluster egammaRec objects"}

Name of input super cluster electron egammaRec container.

Definition at line 157 of file xAODEgammaBuilder.h.

◆ m_electronOutputKey

SG::WriteHandleKey<xAOD::ElectronContainer> xAODEgammaBuilder::m_electronOutputKey
private
Initial value:
{this,
"ElectronOutputName", "ElectronContainer",
"Name of Electron Container to be created"}

Name of the electron output collection.

Definition at line 147 of file xAODEgammaBuilder.h.

◆ m_electronTools

ToolHandleArray<IegammaBaseTool> xAODEgammaBuilder::m_electronTools
private
Initial value:
{this,
"ElectronTools", {}, "Tools for dressing ONLY electrons"}

Vector of tools for dressing ONLY electrons.

Definition at line 117 of file xAODEgammaBuilder.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_isTruth

Gaudi::Property<bool> xAODEgammaBuilder::m_isTruth {this, "isTruth", false, "is truth"}
private

Option to do truth.

Definition at line 183 of file xAODEgammaBuilder.h.

◆ m_photonClusterRecContainerKey

SG::ReadHandleKey<EgammaRecContainer> xAODEgammaBuilder::m_photonClusterRecContainerKey
private
Initial value:
{this,
"InputPhotonRecCollectionName",
"PhotonSuperRecCollection",
"Input container for electron Super Cluster egammaRec objects"}

Name of input super cluster photon egammaRec container.

Definition at line 163 of file xAODEgammaBuilder.h.

◆ m_photonOutputKey

SG::WriteHandleKey<xAOD::PhotonContainer> xAODEgammaBuilder::m_photonOutputKey
private
Initial value:
{this,
"PhotonOutputName", "PhotonContainer",
"Name of Photon Container to be created"}

Name of the photon output collection.

Definition at line 152 of file xAODEgammaBuilder.h.

◆ m_photonTools

ToolHandleArray<IegammaBaseTool> xAODEgammaBuilder::m_photonTools
private
Initial value:
{this,
"PhotonTools", {}, "Tools for dressing ONLY photons"}

Vector of tools for dressing ONLY photons.

Definition at line 121 of file xAODEgammaBuilder.h.

◆ m_ShowerTool

ToolHandle<IEMShowerBuilder> xAODEgammaBuilder::m_ShowerTool
private
Initial value:
{this,
"EMShowerTool", "egammaTools/EMShowerBuilder",
"Tool that does electron/photon shower shape building"}

Tool to compute shower shapes.

Definition at line 130 of file xAODEgammaBuilder.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
DataVector::reserve
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
xAOD::CaloCluster_v1::phi0
flt_t phi0() const
Returns raw of cluster seed.
electronContainer
xAOD::ElectronContainer * electronContainer
Definition: TrigGlobEffCorrValidation.cxx:187
xAODEgammaBuilder::m_photonClusterRecContainerKey
SG::ReadHandleKey< EgammaRecContainer > m_photonClusterRecContainerKey
Name of input super cluster photon egammaRec container.
Definition: xAODEgammaBuilder.h:163
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
xAODEgammaBuilder::m_photonTools
ToolHandleArray< IegammaBaseTool > m_photonTools
Vector of tools for dressing ONLY photons.
Definition: xAODEgammaBuilder.h:121
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
xAOD::TrackParticle_v1::charge
float charge() const
Returns the charge.
Definition: TrackParticle_v1.cxx:150
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
xAODEgammaBuilder::m_doPhotons
Gaudi::Property< bool > m_doPhotons
Definition: xAODEgammaBuilder.h:184
xAOD::deltaPhi
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
Definition: L2StandAloneMuon_v1.cxx:160
xAODEgammaBuilder::CallTool
StatusCode CallTool(const EventContext &ctx, const ToolHandle< IegammaBaseTool > &tool, DataVector< T > *container) const
Call a tool using contExecute and an electron or photon container.
Definition: xAODEgammaBuilder.cxx:322
xAODEgammaBuilder::m_electronTools
ToolHandleArray< IegammaBaseTool > m_electronTools
Vector of tools for dressing ONLY electrons.
Definition: xAODEgammaBuilder.h:117
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
xAODEgammaBuilder::m_clusterTool
ToolHandle< IEMClusterTool > m_clusterTool
Tool to do the final electron/photon cluster building.
Definition: xAODEgammaBuilder.h:125
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
egammaRec::deltaEta
std::array< double, 4 > deltaEta() const
deltaEta at pre sampler(0) -> 3rd sampling(3)
xAODEgammaBuilder::m_doOQ
bool m_doOQ
Definition: xAODEgammaBuilder.h:188
egammaRec::deltaPhiRescaled
std::array< double, 4 > deltaPhiRescaled() const
deltaPhi for rescaled momentum extrapolation from the perigee.
xAODEgammaBuilder::m_doAmbiguity
bool m_doAmbiguity
Definition: xAODEgammaBuilder.h:187
xAODEgammaBuilder::getElectron
bool getElectron(const egammaRec *egRec, xAOD::ElectronContainer *electronContainer, const unsigned int author, const uint8_t type) const
Given an egammaRec object, a pointer to the electron container and the author, create and dress an el...
Definition: xAODEgammaBuilder.cxx:337
egammaRec::trackParticleElementLinks
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleElementLinks() const
Get a reference to the track particle links.
Definition: egammaRec.cxx:49
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
xAODEgammaBuilder::m_electronOutputKey
SG::WriteHandleKey< xAOD::ElectronContainer > m_electronOutputKey
Name of the electron output collection.
Definition: xAODEgammaBuilder.h:147
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
xAODEgammaBuilder::m_ambiguityTool
ToolHandle< IEGammaAmbiguityTool > m_ambiguityTool
Tool to resolve electron/photon ambiguity.
Definition: xAODEgammaBuilder.h:135
egamma
Definition: egamma.h:58
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAODEgammaBuilder::m_deltaEta1Pear
std::unique_ptr< electronPearShapeAlignmentCorrection > m_deltaEta1Pear
Definition: xAODEgammaBuilder.h:186
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
xAODEgammaBuilder::m_electronClusterRecContainerKey
SG::ReadHandleKey< EgammaRecContainer > m_electronClusterRecContainerKey
Name of input super cluster electron egammaRec container.
Definition: xAODEgammaBuilder.h:157
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
xAOD::AmbiguityTool::electron
@ electron
Definition: IEGammaAmbiguityTool.h:34
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
egammaRec::deltaPhiLast
double deltaPhiLast() const
deltaPhi from Last measurement
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
P4Helpers::deltaEta
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition: P4Helpers.h:53
egammaRec::caloClusterElementLinks
const std::vector< ElementLink< xAOD::CaloClusterContainer > > & caloClusterElementLinks() const
Get a reference to the calo cluster links.
Definition: egammaRec.cxx:26
xAOD::EgammaParameters::AuthorAmbiguous
const uint16_t AuthorAmbiguous
Object Reconstructed by standard cluster-based algorithm.
Definition: EgammaDefs.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
egammaRec::deltaPhiVtx
float deltaPhiVtx() const
deltaPhiVtx
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
xAODEgammaBuilder::m_dummyElectronOutputKey
SG::WriteHandleKey< xAOD::ElectronContainer > m_dummyElectronOutputKey
Name of the dummy electron output collection.
Definition: xAODEgammaBuilder.h:176
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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
xAOD::AmbiguityTool::AmbiguityType
AmbiguityType
Definition: IEGammaAmbiguityTool.h:33
egammaRec::deltaPhi
std::array< double, 4 > deltaPhi() const
deltaPhi at pre sampler(0) -> 3rd sampling(3)
xAODEgammaBuilder::m_isTruth
Gaudi::Property< bool > m_isTruth
Option to do truth.
Definition: xAODEgammaBuilder.h:183
xAOD::EgammaParameters::convMatchDeltaPhi1
@ convMatchDeltaPhi1
difference between the cluster phi and the phi of the first track of the vertex extrapolated to the s...
Definition: EgammaEnums.h:253
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
xAODEgammaBuilder::m_ShowerTool
ToolHandle< IEMShowerBuilder > m_ShowerTool
Tool to compute shower shapes.
Definition: xAODEgammaBuilder.h:130
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
photonContainer
xAOD::PhotonContainer * photonContainer
Definition: TrigGlobEffCorrValidation.cxx:189
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
EMFourMomBuilder::calculate
void calculate(xAOD::Electron &electron)
Definition: EMFourMomBuilder.cxx:68
xAOD::AmbiguityTool::photon
@ photon
Definition: IEGammaAmbiguityTool.h:41
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
xAODEgammaBuilder::m_doElectrons
Gaudi::Property< bool > m_doElectrons
Definition: xAODEgammaBuilder.h:185
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::Electron_v1
Definition: Electron_v1.h:34
egammaRec::vertexElementLinks
const std::vector< ElementLink< xAOD::VertexContainer > > & vertexElementLinks() const
Get a reference to the vertix links.
Definition: egammaRec.cxx:71
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
xAOD::CaloCluster_v1::eta0
flt_t eta0() const
Returns raw of cluster seed.
xAODEgammaBuilder::getPhoton
bool getPhoton(const egammaRec *egRec, xAOD::PhotonContainer *photonContainer, const unsigned int author, uint8_t type) const
Given an egammaRec object, a pointer to the photon container and the author, create and dress a photo...
Definition: xAODEgammaBuilder.cxx:377
xAODEgammaBuilder::m_egammaOQTool
ToolHandle< IegammaOQFlagsBuilder > m_egammaOQTool
Tool to add electron/photon Object Quality info.
Definition: xAODEgammaBuilder.h:140
xAOD::photon
@ photon
Definition: TrackingPrimitives.h:199
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
xAODEgammaBuilder::m_doDummyElectrons
bool m_doDummyElectrons
Definition: xAODEgammaBuilder.h:189
xAOD::Photon_v1
Definition: Photon_v1.h:37
xAOD::EgammaParameters::convMatchDeltaEta1
@ convMatchDeltaEta1
difference between the cluster eta and the eta of the first track of the vertex extrapolated to the s...
Definition: EgammaEnums.h:243
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
xAOD::EgammaParameters::AuthorPhoton
const uint16_t AuthorPhoton
Object Reconstructed by standard cluster-based algorithm.
Definition: EgammaDefs.h:28
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
egammaRec
Definition: egammaRec.h:31
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
DataVector::emplace
iterator emplace(iterator position, value_type pElem)
Add a new element to the collection.
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
xAODEgammaBuilder::m_photonOutputKey
SG::WriteHandleKey< xAOD::PhotonContainer > m_photonOutputKey
Name of the photon output collection.
Definition: xAODEgammaBuilder.h:152
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
egammaRec::deltaEtaVtx
float deltaEtaVtx() const
deltaEtaVtx
InDetDD::electrons
@ electrons
Definition: InDetDD_Defs.h:17
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
fitman.k
k
Definition: fitman.py:528
xAOD::EgammaParameters::AuthorElectron
const uint16_t AuthorElectron
Object Reconstructed by standard cluster-based algorithm.
Definition: EgammaDefs.h:24
xAODEgammaBuilder::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Definition: xAODEgammaBuilder.h:168
ServiceHandle< ICondSvc >