|
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 > &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...
|
|
std::unique_ptr< xAOD::CaloCluster > | cookieCut (const xAOD::CaloCluster &cluster, const CaloDetDescrManager &mgr, const DataLink< CaloCellContainer > &cellCont) const |
| Remove cells that are too far from the center of mass. 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...
|
|
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 53 of file egammaForwardBuilder.h.
◆ StoreGateSvc_t
◆ egammaForwardBuilder()
egammaForwardBuilder::egammaForwardBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~egammaForwardBuilder()
egammaForwardBuilder::~egammaForwardBuilder |
( |
| ) |
|
|
default |
◆ 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.
◆ cookieCut()
Remove cells that are too far from the center of mass.
Definition at line 309 of file egammaForwardBuilder.cxx.
321 const bool isEC = cp0.
emaxEC >= cp0.emaxF;
322 const float eta = isEC ? cp0.etaEC : cp0.etaF;
323 const float phi = isEC ? cp0.phiEC : cp0.phiF;
329 ATH_MSG_ERROR(
"CaloClusterStoreHelper::makeCluster failed.");
349 for (; cellItr != cellEnd; ++cellItr) {
356 const bool excludeCell = isEC ?
◆ 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 104 of file egammaForwardBuilder.cxx.
109 std::make_unique<xAOD::ElectronContainer>(),
110 std::make_unique<xAOD::ElectronAuxContainer>())
125 ATH_CHECK(outClusterContainerCellLink.record(
126 std::make_unique<CaloClusterCellLinkContainer>())
139 ATH_CHECK(caloDetDescrMgrHandle.isValid());
143 std::vector<ElementLink<xAOD::CaloClusterContainer>>
144 > caloClusterLinks(
"constituentClusterLinks");
148 size_t origClusterIndex = 0;
154 std::vector<ElementLink<xAOD::CaloClusterContainer>> constituentLinks;
163 cluster->getSisterClusterLink();
166 constituentLinks.push_back(sisterCluster);
171 constituentLinks.emplace_back(*inputClusters, origClusterIndex, ctx);
175 cluster->getCellLinks()->getCellContainerLink();
178 std::unique_ptr<xAOD::CaloCluster> newCluster =
180 cookieCut(*cluster, *calodetdescrmgr, cellCont) :
187 caloClusterLinks(*newCluster) = constituentLinks;
188 outClusterContainer->push_back(std::move(newCluster));
190 size_t index = outClusterContainer->size() - 1;
192 const std::vector<ElementLink<xAOD::CaloClusterContainer>> clusterLinkVector{clusterLink};
195 egammaRecsFwd.
push_back(std::make_unique<egammaRec>(clusterLinkVector));
209 for (
const egammaRec* egRec : egammaRecsFwd) {
211 return StatusCode::FAILURE;
223 xAOD::Electron*
el = xaodFrwd->push_back(std::make_unique<xAOD::Electron>());
225 el->setCaloClusterLinks(egRec->caloClusterElementLinks());
231 ++buff_MatchedClusters;
232 el->setTrackParticleLinks(egRec->trackParticleElementLinks());
236 el->setCharge(trackParticle->
charge());
239 " corresponding egammaRec has at least one");
243 el->setTrackCaloMatchValues(
246 egRec->deltaPhiRescaled(),
247 egRec->deltaPhiLast()
264 el->setSelectionisEM(
accept.getCutResultInverted(),
"isEM" +
name);
272 outClusterContainerCellLink);
274 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 egammaForwardBuilder::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode egammaForwardBuilder::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Initialize method.
Definition at line 49 of file egammaForwardBuilder.cxx.
79 "Number of selectors doesn't match number of given fwd-electron selector names"
82 return StatusCode::FAILURE;
90 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()
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()
◆ RetrieveEMTrackMatchBuilder()
StatusCode egammaForwardBuilder::RetrieveEMTrackMatchBuilder |
( |
| ) |
|
|
private |
Definition at line 289 of file egammaForwardBuilder.cxx.
293 return StatusCode::SUCCESS;
297 ATH_MSG_ERROR(
"EMTrackMatchBuilder is empty, but track matching is enabled");
298 return StatusCode::FAILURE;
303 return StatusCode::FAILURE;
306 return StatusCode::SUCCESS;
◆ setAllTrackCaloMatchValues()
Convinience wrapper to set track match values in all samplings.
◆ 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_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 114 of file egammaForwardBuilder.h.
◆ 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 149 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 141 of file egammaForwardBuilder.h.
◆ m_electronOutputKey
Initial value:{
this,
"ElectronOutputName",
"",
"Name of Electron Container to be created"
}
Output electron container.
Definition at line 122 of file egammaForwardBuilder.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_forwardElectronIsEMSelectorResultNames
Gaudi::Property<std::vector<std::string> > egammaForwardBuilder::m_forwardElectronIsEMSelectorResultNames |
|
protected |
Initial value:{
this,
"forwardelectronIsEMselectorResultNames",
{},
"The selector result names"
}
Definition at line 196 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 189 of file egammaForwardBuilder.h.
◆ m_MatchedClusters
Gaudi::Accumulators::Counter egammaForwardBuilder::m_MatchedClusters {} |
|
mutableprivate |
◆ m_maxDelEta
float egammaForwardBuilder::m_maxDelEta {} |
|
private |
◆ 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 157 of file egammaForwardBuilder.h.
◆ m_maxDelPhi
float egammaForwardBuilder::m_maxDelPhi {} |
|
private |
◆ 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 165 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 173 of file egammaForwardBuilder.h.
◆ m_maxDelR2
float egammaForwardBuilder::m_maxDelR2 {} |
|
private |
◆ m_objectQualityTool
Initial value:{
this,
"ObjectQualityTool",
"",
"Name of the object quality tool (empty tool name ignored)"
}
Tool to perform object quality.
Definition at line 90 of file egammaForwardBuilder.h.
◆ m_outClusterContainerCellLinkKey
◆ m_outClusterContainerKey
Initial value:{
this,
"ClusterContainerName",
""
"Name of the output EM cluster container"
}
Output cluster container.
Definition at line 130 of file egammaForwardBuilder.h.
◆ m_topoClusterKey
Initial value:{
this,
"TopoClusterName",
"",
"Name of the input cluster collection"
}
Input topo cluster type.
Definition at line 106 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 98 of file egammaForwardBuilder.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
@ SECOND_R
Second Moment in .
Find the reference position (eta, phi) relative to which cells are restricted.
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
virtual double phi() const override final
get phi (through CaloDetDescrElement)
Scalar phi() const
phi method
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.
Scalar eta() const
pseudorapidity method
ToolHandleArray< IAsgForwardElectronIsEMSelector > m_forwardElectronIsEMSelectors
Handle to the selectors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
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
@ deltaEta2
difference between the cluster eta (second sampling) and the eta of the track extrapolated to the sec...
const_iterator begin() const
const begin method
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.
@ CENTER_LAMBDA
Shower depth at Cluster Centroid.
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
unsigned index() const
Accessor for the index of the cell in the CaloCellContainer.
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
@ ENG_FRAC_MAX
Energy fraction of hottest cell.
weight_t weight() const
Accessor for weight associated to this cell.
virtual void setOwner(IDataHandleHolder *o)=0
@ SECOND_LAMBDA
Second Moment in .
Gaudi::Property< float > m_maxDelR
Size of cone to cookie cut on FCal.
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outClusterContainerCellLinkKey
Output cluster container cell links: name taken from containter name.
@ SECOND_ENG_DENS
Second Moment in E/V.
Description of a calorimeter cluster.
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
AthReentrantAlgorithm()
Default constructor:
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< bool > m_doTrackMatching
Private member flag to do the track matching.
Gaudi::Property< int > m_maxDelPhiCells
Size of maximum search window in phi.
Principal data class for CaloCell clusters.
bool addCell(const unsigned cellIdx, const weight_t weight=1.0)
Method to add a cell to the cluster.
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.
const CaloClusterCellLink * getCellLinks() const
Get a pointer to the CaloClusterCellLink object (const version)
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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.
virtual StatusCode sysInitialize() override
Override sysInitialize.
@ deltaPhi2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
std::unique_ptr< xAOD::CaloCluster > cookieCut(const xAOD::CaloCluster &cluster, const CaloDetDescrManager &mgr, const DataLink< CaloCellContainer > &cellCont) const
Remove cells that are too far from the center of mass.
const_iterator end() const
const end method
This class provides the client interface for accessing the detector description information common to...
@ SIGNIFICANCE
Cluster significance.
#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.
static void calculateKine(xAOD::CaloCluster *clu, const bool useweight=true, const bool updateLayers=true, const bool useGPUCriteria=false)
Helper class to calculate cluster kinematics based on cells.
@ LATERAL
Normalized lateral moment.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Calorimeter description.
Class describing a TrackParticle.
bool hasSampling(const CaloSample s) const
Checks if certain smapling contributes to cluster.
@ LONGITUDINAL
Normalized longitudinal moment.
const_iterator to loop over cells belonging to a cluster
Gaudi::Accumulators::Counter m_MatchedClusters
ToolHandle< IegammaOQFlagsBuilder > m_objectQualityTool
Tool to perform object quality.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Gaudi::Property< int > m_maxDelEtaCells
Size of maximum search window in eta.
SG::WriteHandleKey< xAOD::ElectronContainer > m_electronOutputKey
Output electron container.