ATLAS Offline Software
CaloClustersCopier.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef HIGLOBAL_CALOTOWERSCOPIER_H
5 #define HIGLOBAL_CALOTOWERSCOPIER_H
6 
7 // Framework includes
11 #include "AthenaKernel/Units.h"
12 // STL includes
13 #include <string>
14 
21 public:
22  CaloClustersCopier(const std::string& name, ISvcLocator* pSvcLocator);
23  virtual ~CaloClustersCopier() override;
24 
25  virtual StatusCode initialize() override;
26  virtual StatusCode execute(const EventContext& context) const override;
27  virtual StatusCode finalize() override;
28 
29 private:
30  Gaudi::Property<float> m_fcalEtCut{this, "FCalEtCut", 60*Athena::Units::GeV, "Copy clusters only if FCal ET energy is below this value"};
31  SG::ReadHandleKey<xAOD::HIEventShapeContainer> m_HIEventShapeKey {this, "HIEventShapeKey", "HIEventShape"};
32  SG::ReadHandleKey<xAOD::CaloClusterContainer> m_inputClustersKey {this, "InputClustersKey", "CaloCalTopoClusters"};
33  SG::WriteHandleKey<xAOD::CaloClusterContainer> m_outputClustersKey {this, "OutputClustersKey", "PeripheralCaloCalTopoClusters"};
34 
35 };
36 
37 #endif // HIGLOBAL_CALOTOWERSCOPIER_H
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:18
CaloClustersCopier::finalize
virtual StatusCode finalize() override
Definition: CaloClustersCopier.cxx:27
CaloClustersCopier::CaloClustersCopier
CaloClustersCopier(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CaloClustersCopier.cxx:9
CaloClustersCopier::m_inputClustersKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClustersKey
Definition: CaloClustersCopier.h:32
CaloClustersCopier::initialize
virtual StatusCode initialize() override
Definition: CaloClustersCopier.cxx:18
CaloClustersCopier::m_fcalEtCut
Gaudi::Property< float > m_fcalEtCut
Definition: CaloClustersCopier.h:30
CaloClustersCopier::m_HIEventShapeKey
SG::ReadHandleKey< xAOD::HIEventShapeContainer > m_HIEventShapeKey
Definition: CaloClustersCopier.h:31
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
CaloClustersCopier
This simple algorithm copies CaloClusters to a separate container but only for events when FCal Et is...
Definition: CaloClustersCopier.h:20
SG::WriteHandleKey< xAOD::CaloClusterContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HIEventShapeContainer.h
CaloClustersCopier::m_outputClustersKey
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputClustersKey
Definition: CaloClustersCopier.h:33
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Units.h
Wrapper to avoid constant divisions when using units.
CaloClusterContainer.h
CaloClustersCopier::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: CaloClustersCopier.cxx:32
CaloClustersCopier::~CaloClustersCopier
virtual ~CaloClustersCopier() override
Definition: CaloClustersCopier.cxx:14