 |
ATLAS Offline Software
|
#include <egammaForwardBuilder.h>
|
| egammaForwardBuilder (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
| ~egammaForwardBuilder ()=default |
| Destructor. More...
|
|
virtual StatusCode | initialize () override final |
| Initialize method. More...
|
|
virtual StatusCode | finalize () override final |
| Finalize method. More...
|
|
virtual StatusCode | execute (const EventContext &ctx) const override final |
| Execute method. More...
|
|
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, V, H > &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 |
|
|
StatusCode | RetrieveEMTrackMatchBuilder () |
|
StatusCode | ExecObjectQualityTool (const EventContext &ctx, xAOD::Egamma *eg) const |
|
void | setAllTrackCaloMatchValues (xAOD::Electron *el, const std::array< xAOD::EgammaParameters::TrackCaloMatchType, 4 > &match_parameters, const std::array< double, 4 > &match_values) const |
| Convinience wrapper to set track match values in all samplings. More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Algorithm which makes a egammaObjectCollection for forward electrons. egammaForwardBuilder, is dedicated to the reconstruction and identification of electrons in the forward region of ATLAS (2.5<|eta|<4.9). In contrast to the softe and egamma builders the algorithm can use only the information from the calorimeters, as the tracking system is limited to |eta|<2.5, and the topological clusters (instead of SW clusters). The pre-selection and ID are done in the same algorithm. The variables used to discriminant between electron and hadrons are defined as the topo cluster moments or combination of them. This is done separately in two eta bins: the EMEC IW and the FCal using a cut based technic. The forward electron AUTHOR is 8.
Definition at line 55 of file egammaForwardBuilder.h.
◆ StoreGateSvc_t
◆ egammaForwardBuilder()
egammaForwardBuilder::egammaForwardBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~egammaForwardBuilder()
egammaForwardBuilder::~egammaForwardBuilder |
( |
| ) |
|
|
default |
◆ cardinality()
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 75 of file AthCommonReentrantAlgorithm.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]
◆ ExecObjectQualityTool()
StatusCode egammaForwardBuilder::ExecObjectQualityTool |
( |
const EventContext & |
ctx, |
|
|
xAOD::Egamma * |
eg |
|
) |
| const |
|
private |
◆ execute()
StatusCode egammaForwardBuilder::execute |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Execute method.
Definition at line 91 of file egammaForwardBuilder.cxx.
96 std::make_unique<xAOD::ElectronContainer>(),
97 std::make_unique<xAOD::ElectronAuxContainer>())
112 ATH_CHECK(outClusterContainerCellLink.record(
113 std::make_unique<CaloClusterCellLinkContainer>())
126 ATH_CHECK(caloDetDescrMgrHandle.isValid());
130 std::vector<ElementLink<xAOD::CaloClusterContainer>>
131 > caloClusterLinks(
"constituentClusterLinks");
135 size_t origClusterIndex = 0;
141 std::vector<ElementLink<xAOD::CaloClusterContainer>> constituentLinks;
150 cluster->getSisterClusterLink();
153 constituentLinks.push_back(sisterCluster);
158 constituentLinks.emplace_back(*inputClusters, origClusterIndex, ctx);
162 cluster->getCellLinks()->getCellContainerLink();
165 std::unique_ptr<xAOD::CaloCluster> newCluster =
175 caloClusterLinks(*newCluster) = constituentLinks;
176 outClusterContainer->push_back(std::move(newCluster));
178 size_t index = outClusterContainer->size() - 1;
180 const std::vector<ElementLink<xAOD::CaloClusterContainer>> clusterLinkVector{clusterLink};
183 egammaRecsFwd.
push_back(std::make_unique<egammaRec>(clusterLinkVector));
197 for (
const egammaRec* egRec : egammaRecsFwd) {
199 return StatusCode::FAILURE;
211 xAOD::Electron*
el = xaodFrwd->push_back(std::make_unique<xAOD::Electron>());
213 el->setCaloClusterLinks(egRec->caloClusterElementLinks());
219 ++buff_MatchedClusters;
220 el->setTrackParticleLinks(egRec->trackParticleElementLinks());
224 el->setCharge(trackParticle->
charge());
227 " corresponding egammaRec has at least one");
231 el->setTrackCaloMatchValues(
234 egRec->deltaPhiRescaled(),
235 egRec->deltaPhiLast()
252 el->setSelectionisEM(
accept.getCutResultInverted(),
"isEM" +
name);
260 outClusterContainerCellLink);
262 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()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ filterPassed()
◆ finalize()
StatusCode egammaForwardBuilder::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode egammaForwardBuilder::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Initialize method.
Definition at line 34 of file egammaForwardBuilder.cxx.
66 "Number of selectors doesn't match number of given fwd-electron selector names"
69 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
◆ 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()
◆ 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()
◆ RetrieveEMTrackMatchBuilder()
StatusCode egammaForwardBuilder::RetrieveEMTrackMatchBuilder |
( |
| ) |
|
|
private |
Definition at line 277 of file egammaForwardBuilder.cxx.
281 return StatusCode::SUCCESS;
285 ATH_MSG_ERROR(
"EMTrackMatchBuilder is empty, but track matching is enabled");
286 return StatusCode::FAILURE;
291 return StatusCode::FAILURE;
294 return StatusCode::SUCCESS;
◆ setAllTrackCaloMatchValues()
Convinience wrapper to set track match values in all samplings.
◆ setFilterPassed()
◆ sysExecute()
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 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
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 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 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_AllClusters
Gaudi::Accumulators::Counter egammaForwardBuilder::m_AllClusters {} |
|
mutableprivate |
◆ m_caloDetDescrMgrKey
Initial value:{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}
Calorimeter description.
Definition at line 110 of file egammaForwardBuilder.h.
◆ m_CookieCutPars
◆ m_detStore
◆ m_doCookieCutting
Gaudi::Property<bool> egammaForwardBuilder::m_doCookieCutting |
|
private |
Initial value:{
this,
"doCookieCutting",
false,
"Boolean to do cookie cutting"
}
Private member flag to do cookie cutting.
Definition at line 148 of file egammaForwardBuilder.h.
◆ m_doTrackMatching
Gaudi::Property<bool> egammaForwardBuilder::m_doTrackMatching |
|
private |
Initial value:{
this,
"doTrackMatching",
false,
"Boolean to do track matching"
}
Private member flag to do the track matching.
Definition at line 140 of file egammaForwardBuilder.h.
◆ m_electronOutputKey
Initial value:{
this,
"ElectronOutputName",
"",
"Name of Electron Container to be created"
}
Output electron container.
Definition at line 118 of file egammaForwardBuilder.h.
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_forwardElectronIsEMSelectorResultNames
Gaudi::Property<std::vector<std::string> > egammaForwardBuilder::m_forwardElectronIsEMSelectorResultNames |
|
protected |
Initial value:{
this,
"forwardelectronIsEMselectorResultNames",
{},
"The selector result names"
}
Definition at line 193 of file egammaForwardBuilder.h.
◆ m_forwardElectronIsEMSelectors
Initial value:{
this,
"forwardelectronIsEMselectors",
{},
"The selectors that we need to apply to the FwdElectron object"
}
Handle to the selectors.
Definition at line 186 of file egammaForwardBuilder.h.
◆ m_MatchedClusters
Gaudi::Accumulators::Counter egammaForwardBuilder::m_MatchedClusters {} |
|
mutableprivate |
◆ m_maxDelEtaCells
Gaudi::Property<int> egammaForwardBuilder::m_maxDelEtaCells |
|
private |
Initial value:{
this,
"MaxWindowDelEtaCells",
3,
"Size of maximum search window in eta"
}
Size of maximum search window in eta.
Definition at line 156 of file egammaForwardBuilder.h.
◆ m_maxDelPhiCells
Gaudi::Property<int> egammaForwardBuilder::m_maxDelPhiCells |
|
private |
Initial value:{
this,
"MaxWindowDelPhiCells",
3,
"Size of maximum search window in phi"
}
Size of maximum search window in phi.
Definition at line 164 of file egammaForwardBuilder.h.
◆ m_maxDelR
Gaudi::Property<float> egammaForwardBuilder::m_maxDelR |
|
private |
Initial value:{
this,
"MaxWindowDelR",
0.3,
"Cone size to collect cells around hottest-cell FCAL"
}
Size of cone to cookie cut on FCal.
Definition at line 172 of file egammaForwardBuilder.h.
◆ m_objectQualityTool
Initial value:{
this,
"ObjectQualityTool",
"",
"Name of the object quality tool (empty tool name ignored)"
}
Tool to perform object quality.
Definition at line 86 of file egammaForwardBuilder.h.
◆ m_outClusterContainerCellLinkKey
Initial value:{
this,
"ClusterContainerLinks", "",
"Key of the output cluster container cell links; Taken from associated container"}
Output cluster container cell links: name taken from containter name.
Definition at line 134 of file egammaForwardBuilder.h.
◆ m_outClusterContainerKey
Initial value:{
this,
"ClusterContainerName",
""
"Name of the output EM cluster container"
}
Output cluster container.
Definition at line 126 of file egammaForwardBuilder.h.
◆ m_topoClusterKey
Initial value:{
this,
"TopoClusterName",
"",
"Name of the input cluster collection"
}
Input topo cluster type.
Definition at line 102 of file egammaForwardBuilder.h.
◆ m_trackMatchBuilder
Initial value:{
this,
"TrackMatchBuilderTool",
"EMTrackMatchBuilder",
"Tool that matches tracks to egammaRecs (Fwd)"
}
Tool to perform track-cluster matching.
Definition at line 94 of file egammaForwardBuilder.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
egammaClusterCookieCut::CookieCutPars m_CookieCutPars
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
Helper class to provide type-safe access to aux data.
float charge() const
Returns the charge.
ToolHandleArray< IAsgForwardElectronIsEMSelector > m_forwardElectronIsEMSelectors
Handle to the selectors.
StatusCode accept(const xAOD::Muon *mu)
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)
Gaudi::Accumulators::Counter m_AllClusters
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< bool > m_doCookieCutting
Private member flag to do cookie cutting.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
StatusCode RetrieveEMTrackMatchBuilder()
StatusCode ExecObjectQualityTool(const EventContext &ctx, xAOD::Egamma *eg) const
const uint16_t AuthorFwdElectron
Electron reconstructed by the Forward cluster-based algorithm.
const std::string & key() const
Return the StoreGate ID for the referenced object.
Gaudi::Property< std::vector< std::string > > m_forwardElectronIsEMSelectorResultNames
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
Gaudi::Property< float > m_maxDelR
Size of cone to cookie cut on FCal.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outClusterContainerCellLinkKey
Output cluster container cell links: name taken from containter name.
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Description of a calorimeter cluster.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::unique_ptr< xAOD::CaloCluster > cookieCut(const xAOD::CaloCluster &cluster, const CaloDetDescrManager &mgr, const DataLink< CaloCellContainer > &cellCont, const egammaClusterCookieCut::CookieCutPars &pars)
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Gaudi::Property< bool > m_doTrackMatching
Private member flag to do the track matching.
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Gaudi::Property< int > m_maxDelPhiCells
Size of maximum search window in phi.
Principal data class for CaloCell clusters.
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.
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outClusterContainerKey
Output cluster container.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
void calculate(xAOD::Electron &electron)
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track-cluster matching.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_topoClusterKey
Input topo cluster type.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Calorimeter description.
Class describing a TrackParticle.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Gaudi::Accumulators::Counter m_MatchedClusters
ToolHandle< IegammaOQFlagsBuilder > m_objectQualityTool
Tool to perform object quality.
Gaudi::Property< int > m_maxDelEtaCells
Size of maximum search window in eta.
SG::WriteHandleKey< xAOD::ElectronContainer > m_electronOutputKey
Output electron container.