ATLAS Offline Software
electronRescaler.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EGAMMAALGS_ELECTRONRESCALER_H
6 #define EGAMMAALGS_ELECTRONRESCALER_H
7 
9 
12 
13 #include "xAODEgamma/ElectronFwd.h"
15 #include <memory>
16 
17 
18 //NEVER USE THIS ALGORITHM
19 //The only purpose is to demonstrate the AODFix functionality
20 
22 {
23 public:
24 
25  electronRescaler(const std::string& name, ISvcLocator* pSvcLocator);
26 
27  StatusCode initialize() override final;
28  StatusCode finalize() override final;
29  StatusCode execute(const EventContext& ctx) const override final;
30 
31 private:
32 
33  // Read/Write handlers
34 
37  "OutputName", "Electrons",
38  "Name of Electron Container to be created"};
39 
42  "InputName", "old_Electrons",
43  "Name of Electron container to be read in"};
44 
45  Gaudi::Property<float> m_scaleValue{this,"ScaleValue",0.01,"Scale to be applied on Electron pt"};
46 
47 };
48 
49 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
electronRescaler
Definition: electronRescaler.h:22
electronRescaler::finalize
StatusCode finalize() override final
Definition: electronRescaler.cxx:29
SG::ReadHandleKey< xAOD::ElectronContainer >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey< xAOD::ElectronContainer >
ElectronContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ElectronFwd.h
electronRescaler::m_scaleValue
Gaudi::Property< float > m_scaleValue
Definition: electronRescaler.h:45
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
electronRescaler::electronRescaler
electronRescaler(const std::string &name, ISvcLocator *pSvcLocator)
Definition: electronRescaler.cxx:14
electronRescaler::initialize
StatusCode initialize() override final
Definition: electronRescaler.cxx:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
electronRescaler::m_electronInputKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronInputKey
Name of the photon output collection.
Definition: electronRescaler.h:41
electronRescaler::execute
StatusCode execute(const EventContext &ctx) const override final
Definition: electronRescaler.cxx:35
electronRescaler::m_electronOutputKey
SG::WriteHandleKey< xAOD::ElectronContainer > m_electronOutputKey
Name of the electron output collection.
Definition: electronRescaler.h:36