ATLAS Offline Software
ERatioAlgTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GLOBALSIM_ERATIOALGTOOL_H
6 #define GLOBALSIM_ERATIOALGTOOL_H
7 
12 #include "../IGlobalSimAlgTool.h"
13 #include "../IO/LArStripNeighborhoodContainer.h"
14 
16 
17 #include <string>
18 #include <vector>
19 
20 namespace GlobalSim {
21  class ERatioAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
22 
23  public:
24  ERatioAlgTool(const std::string& type,
25  const std::string& name,
26  const IInterface* parent);
27 
28  virtual ~ERatioAlgTool() = default;
29 
30  StatusCode initialize() override;
31 
32  virtual StatusCode run(const EventContext& ctx) const override;
33 
34  virtual std::string toString() const override;
35 
36  private:
37 
38  // parameter used by ERatio
39  Gaudi::Property<std::string> m_algInstanceName {
40  this,
41  "alg_instance_name",
42  {},
43  "instance name of concrete L1Topo Algorithm"};
44 
45  Gaudi::Property<bool>
47  "enableDump",
48  {false},
49  "flag to enable dumps"};
50 
51  // parameter used by ERatio
52  Gaudi::Property<double>
54  "minDeltaE",
55  {50.0},
56  "min energy between strips considered significant"};
57 
58 
59  // parameter used by ERatio
60  Gaudi::Property<double>
61  m_maxERCut{this,
62  "maxERCut",
63  {2.5},
64  "max acceptable peak ratio for pi0 acceptance"};
65 
66 
67  // input to the ERatio Algorithm
70  this,
71  "LArNeighborhoodContainerReadKey",
72  "stripNeighborhoodContainer",
73  "key to read inLArNeighborhoodReadKeys"};
74 
75  };
76 }
77 #endif
GlobalSim::ERatioAlgTool::ERatioAlgTool
ERatioAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ERatioAlgTool.cxx:14
GlobalSim::ERatioAlgTool::m_maxERCut
Gaudi::Property< double > m_maxERCut
Definition: ERatioAlgTool.h:61
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
GlobalSim::ERatioAlgTool::m_nbhdContainerReadKey
SG::ReadHandleKey< LArStripNeighborhoodContainer > m_nbhdContainerReadKey
Definition: ERatioAlgTool.h:69
GlobalSim::ERatioAlgTool
Definition: ERatioAlgTool.h:21
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
GlobalSim::ERatioAlgTool::m_minDeltaE
Gaudi::Property< double > m_minDeltaE
Definition: ERatioAlgTool.h:53
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GlobalSim::ERatioAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: ERatioAlgTool.cxx:28
GlobalSim::ERatioAlgTool::toString
virtual std::string toString() const override
Definition: ERatioAlgTool.cxx:67
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
GlobalSim::ERatioAlgTool::~ERatioAlgTool
virtual ~ERatioAlgTool()=default
GlobalSim::ERatioAlgTool::m_enableDump
Gaudi::Property< bool > m_enableDump
Definition: ERatioAlgTool.h:46
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::ERatioAlgTool::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: ERatioAlgTool.h:39
GlobalSim::ERatioAlgTool::initialize
StatusCode initialize() override
Definition: ERatioAlgTool.cxx:20