|
ATLAS Offline Software
|
#include <xAODEgammaBuilder.h>
|
| 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 |
|
|
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...
|
|
|
ToolHandleArray< IegammaBaseTool > | m_electronTools |
| Vector of tools for dressing ONLY electrons. More...
|
|
ToolHandleArray< IegammaBaseTool > | m_photonTools |
| Vector of tools for dressing ONLY photons. More...
|
|
ToolHandle< IEMClusterTool > | m_clusterTool |
| Tool to do the final electron/photon cluster building. More...
|
|
ToolHandle< IEMShowerBuilder > | m_ShowerTool |
| Tool to compute shower shapes. More...
|
|
ToolHandle< IEGammaAmbiguityTool > | m_ambiguityTool |
| Tool to resolve electron/photon ambiguity. More...
|
|
ToolHandle< IegammaOQFlagsBuilder > | m_egammaOQTool |
| Tool to add electron/photon Object Quality info. More...
|
|
SG::WriteHandleKey< xAOD::ElectronContainer > | m_electronOutputKey |
| Name of the electron output collection. More...
|
|
SG::WriteHandleKey< xAOD::PhotonContainer > | m_photonOutputKey |
| Name of the photon output collection. More...
|
|
SG::ReadHandleKey< EgammaRecContainer > | m_electronClusterRecContainerKey |
| Name of input super cluster electron egammaRec container. More...
|
|
SG::ReadHandleKey< EgammaRecContainer > | m_photonClusterRecContainerKey |
| Name of input super cluster photon egammaRec container. More...
|
|
SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloDetDescrMgrKey |
|
SG::WriteHandleKey< xAOD::ElectronContainer > | m_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< electronPearShapeAlignmentCorrection > | m_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 |
|
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:
- InputElectronRecCollectionName: default=ElectronSuperRecCollection. A container of egammaRec for electrons
- InputPhotonRecCollectionName: default=PhotonSuperRecCollection. A container of egammaRec for photons
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:
- Shower shapes are computed thanks to the tool configured by EMShowerTool property, implementing the interface IEMShowerBuilder, by default EMShowerBuilder.
- Object quality is filled by the tool specified by the property ObjectQualityTool (no default). If the property is not set object quality is skipped.
- finalize the cluster with the tool specified by the property EMClusterTool (default=EMClusterTool), for example applying energy calibration
- tools specified by the properties egammaTools, ElectronTools, PhotonTools are executed (default: none)
Definition at line 87 of file xAODEgammaBuilder.h.
◆ StoreGateSvc_t
◆ xAODEgammaBuilder()
xAODEgammaBuilder::xAODEgammaBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ CallTool()
Call a tool using contExecute and an electron or photon container.
Definition at line 322 of file xAODEgammaBuilder.cxx.
333 return StatusCode::SUCCESS;
◆ 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.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode xAODEgammaBuilder::execute |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverride |
Definition at line 128 of file xAODEgammaBuilder.cxx.
146 inputElRecs = electronSuperRecs.ptr();
150 std::make_unique<xAOD::ElectronContainer>(),
151 std::make_unique<xAOD::ElectronAuxContainer>()));
159 inputPhRecs = photonSuperRecs.ptr();
164 std::make_unique<xAOD::PhotonAuxContainer>()));
174 for (
const egammaRec* electronRec : *inputElRecs) {
176 if (electronRec->getNumberOfTrackParticles() == 0) {
184 const double elEta0 = elClus->
eta0();
185 const double elPhi0 = elClus->
phi0();
186 for (
const egammaRec* photonRec : *inputPhRecs) {
189 if (elEta0 == phClus->
eta0() && elPhi0 == phClus->
phi0()) {
194 electronRec->trackParticle(),
208 return StatusCode::FAILURE;
215 for (
const egammaRec* photonRec : *inputPhRecs) {
221 const double phEta0 = phClus->
eta0();
222 const double phPhi0 = phClus->
phi0();
223 for (
const egammaRec* electronRec : *inputElRecs) {
226 if (phEta0 == elClus->
eta0() && phPhi0 == elClus->
phi0()) {
231 electronRec->trackParticle(),
245 return StatusCode::FAILURE;
254 ATH_CHECK(caloDetDescrMgrHandle.isValid());
303 doAmbiguityLinks(ctx,
electrons, photons);
304 doAmbiguityLinks(ctx, photons,
electrons);
311 std::make_unique<xAOD::ElectronContainer>(),
312 std::make_unique<xAOD::ElectronAuxContainer>()));
314 dummyElectronContainer->push_back(std::unique_ptr<xAOD::Electron>());
317 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ finalize()
StatusCode xAODEgammaBuilder::finalize |
( |
| ) |
|
|
finaloverride |
◆ getElectron()
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.
◆ getPhoton()
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.
397 if (!
photon->setVertexCaloMatchValue(
402 if (!
photon->setVertexCaloMatchValue(
◆ initialize()
StatusCode xAODEgammaBuilder::initialize |
( |
| ) |
|
|
finaloverride |
◆ inputHandles()
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 |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ 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.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ 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.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_ambiguityTool
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
Initial value:{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}
Definition at line 168 of file xAODEgammaBuilder.h.
◆ m_clusterTool
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
◆ m_detStore
◆ m_doAmbiguity
bool xAODEgammaBuilder::m_doAmbiguity {} |
|
private |
◆ m_doDummyElectrons
bool xAODEgammaBuilder::m_doDummyElectrons = false |
|
private |
◆ m_doElectrons
Gaudi::Property<bool> xAODEgammaBuilder::m_doElectrons {this, "doElectrons", true, "Run the Electron reconstruction"} |
|
private |
◆ m_doOQ
bool xAODEgammaBuilder::m_doOQ {} |
|
private |
◆ m_doPhotons
Gaudi::Property<bool> xAODEgammaBuilder::m_doPhotons {this, "doPhotons", true, "Run the Photon reconstruction"} |
|
private |
◆ m_dummyElectronOutputKey
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
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
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
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
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
◆ 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 |
◆ m_photonClusterRecContainerKey
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
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
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
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
◆ m_vhka
The documentation for this class was generated from the following files:
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
flt_t phi0() const
Returns raw of cluster seed.
const std::array< double, 4 > & deltaPhiRescaled() const
deltaPhi for rescaled momentum extrapolation from the perigee.
xAOD::ElectronContainer * electronContainer
SG::ReadHandleKey< EgammaRecContainer > m_photonClusterRecContainerKey
Name of input super cluster photon egammaRec container.
ToolHandleArray< IegammaBaseTool > m_photonTools
Vector of tools for dressing ONLY photons.
Helper class to provide type-safe access to aux data.
float charge() const
Returns the charge.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Gaudi::Property< bool > m_doPhotons
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
StatusCode CallTool(const EventContext &ctx, const ToolHandle< IegammaBaseTool > &tool, DataVector< T > *container) const
Call a tool using contExecute and an electron or photon container.
ToolHandleArray< IegammaBaseTool > m_electronTools
Vector of tools for dressing ONLY electrons.
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)
ToolHandle< IEMClusterTool > m_clusterTool
Tool to do the final electron/photon cluster building.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
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...
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleElementLinks() const
Get a reference to the track particle links.
bool empty() const
Test if the key is blank.
SG::WriteHandleKey< xAOD::ElectronContainer > m_electronOutputKey
Name of the electron output collection.
const std::array< double, 4 > & deltaEta() const
deltaEta at pre sampler(0) -> 3rd sampling(3)
ToolHandle< IEGammaAmbiguityTool > m_ambiguityTool
Tool to resolve electron/photon ambiguity.
virtual void setOwner(IDataHandleHolder *o)=0
std::unique_ptr< electronPearShapeAlignmentCorrection > m_deltaEta1Pear
Description of a calorimeter cluster.
const std::array< double, 4 > & deltaPhi() const
deltaPhi at pre sampler(0) -> 3rd sampling(3)
SG::ReadHandleKey< EgammaRecContainer > m_electronClusterRecContainerKey
Name of input super cluster electron egammaRec container.
AthReentrantAlgorithm()
Default constructor:
double deltaPhiLast() const
deltaPhi from Last measurement
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
const std::vector< ElementLink< xAOD::CaloClusterContainer > > & caloClusterElementLinks() const
Get a reference to the calo cluster links.
const uint16_t AuthorAmbiguous
Object Reconstructed by standard cluster-based algorithm.
::StatusCode StatusCode
StatusCode definition for legacy code.
float deltaPhiVtx() const
deltaPhiVtx
SG::WriteHandleKey< xAOD::ElectronContainer > m_dummyElectronOutputKey
Name of the dummy electron output collection.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< bool > m_isTruth
Option to do truth.
@ convMatchDeltaPhi1
difference between the cluster phi and the phi of the first track of the vertex extrapolated to the s...
ToolHandle< IEMShowerBuilder > m_ShowerTool
Tool to compute shower shapes.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
xAOD::PhotonContainer * photonContainer
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void calculate(xAOD::Electron &electron)
Gaudi::Property< bool > m_doElectrons
virtual StatusCode sysInitialize() override
Override sysInitialize.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
const std::vector< ElementLink< xAOD::VertexContainer > > & vertexElementLinks() const
Get a reference to the vertix links.
flt_t eta0() const
Returns raw of cluster seed.
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...
ToolHandle< IegammaOQFlagsBuilder > m_egammaOQTool
Tool to add electron/photon Object Quality info.
This class provides the client interface for accessing the detector description information common to...
@ convMatchDeltaEta1
difference between the cluster eta and the eta of the first track of the vertex extrapolated to the s...
#define ATH_MSG_WARNING(x)
const uint16_t AuthorPhoton
Object Reconstructed by standard cluster-based algorithm.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
iterator emplace(iterator position, value_type pElem)
Add a new element to the collection.
Class describing a TrackParticle.
SG::WriteHandleKey< xAOD::PhotonContainer > m_photonOutputKey
Name of the photon output collection.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
float deltaEtaVtx() const
deltaEtaVtx
const uint16_t AuthorElectron
Object Reconstructed by standard cluster-based algorithm.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey