Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EgammaSamplingPatternDecoratorAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 
9 //
10 // includes
11 //
12 
14 
16 
17 //
18 // method implementations
19 //
20 
21 namespace CP
22 {
23 
25  initialize ()
26  {
28  ANA_CHECK (m_samplingPattern.initialize());
29  return StatusCode::SUCCESS;
30  }
31 
32 
33 
35  execute (const EventContext& ctx) const
36  {
39  for (auto cluster : *clusters)
40  {
41  samplingPattern (*cluster) = cluster->samplingPattern();
42  }
43  return StatusCode::SUCCESS;
44  }
45 }
CP::EgammaSamplingPatternDecoratorAlg::m_clusterContainer
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainer
the e-gamma cluster container
Definition: EgammaSamplingPatternDecoratorAlg.h:40
EgammaSamplingPatternDecoratorAlg.h
ViewHelper::makeHandle
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
Definition: ViewHelper.h:265
CP::EgammaSamplingPatternDecoratorAlg::m_samplingPattern
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_samplingPattern
the sampling pattern decoration
Definition: EgammaSamplingPatternDecoratorAlg.h:43
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
CP::EgammaSamplingPatternDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition: EgammaSamplingPatternDecoratorAlg.cxx:25
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
WriteDecorHandle.h
Handle class for adding a decoration to an object.
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
CP::EgammaSamplingPatternDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: EgammaSamplingPatternDecoratorAlg.cxx:35