ATLAS Offline Software
DeltaRSqrIncl2AlgTool.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_DELTARSQRINCL2ALGTOOL_H
6 #define GLOBALSIM_DELTARSQRINCL2ALGTOOL_H
7 
12 #include "../IL1TopoAlgTool.h"
13 #include "../IO/GenericTOBArray.h"
14 #include "../IO/Decision.h"
15 #include "../IO/GenericTOBArrayVector_clid.h"
16 
19 
20 #include <string>
21 #include <vector>
22 
23 namespace GlobalSim {
24  class DeltaRSqrIncl2AlgTool: public extends<AthAlgTool, IL1TopoAlgTool> {
25 
26  public:
27  DeltaRSqrIncl2AlgTool(const std::string& type,
28  const std::string& name,
29  const IInterface* parent);
30 
31  virtual ~DeltaRSqrIncl2AlgTool() = default;
32 
33  StatusCode initialize() override;
34 
35  virtual StatusCode run(const EventContext& ctx) const override;
36 
37  virtual std::string toString() const override;
38 
39  private:
40 
41  Gaudi::Property<std::string> m_algInstanceName {
42  this,
43  "alg_instance_name",
44  {},
45  "instance name of concrete L1Topo Algorithm"};
46 
47  Gaudi::Property<unsigned int> m_MaxTOB1 {
48  this,
49  "MaxTOB1",
50  0u,
51  "maximum of the obs for argument 1 to consider"};
52 
53  Gaudi::Property<unsigned int> m_MaxTOB2 {
54  this,
55  "MaxTOB2",
56  0u,
57  "maximum of the obs for argument 2 to consider"};
58 
59 
60  Gaudi::Property<std::vector<unsigned int>> m_MinET1 {
61  this,
62  "MinET1",
63  {},
64  "Min ET values for argument 1, one per output bit"
65  };
66 
67 
68  Gaudi::Property<std::vector<unsigned int>> m_MinET2 {
69  this,
70  "MinET2",
71  {},
72  "Min ET values for argument 2, one per output bit"
73  };
74 
75 
76  Gaudi::Property<std::vector<unsigned int>> m_DeltaRMin {
77  this,
78  "DeltaRMin",
79  {},
80  "Delta R min values, one per output bit"
81  };
82 
83 
84  Gaudi::Property<std::vector<unsigned int>> m_DeltaRMax {
85  this,
86  "DeltaRMax",
87  {},
88  "Delta R max values, one per output bit"
89  };
90 
91 
92  Gaudi::Property<unsigned int> m_NumResultBits {
93  this,
94  "NumResultBits",
95  {0u},
96  "number of bits to set in the Decision object"
97  };
98 
99  Gaudi::Property<bool>
100  m_doDump{this,
101  "do_dump",
102  {false},
103  "flag to enable dumps"};
104 
105  ToolHandle<GenericMonitoringTool>
106  m_monTool{this, "monTool", {}, "MonitoringTool"};
107 
108 
110  m_genericTOBArrayReadKey0 {this, "TOBArrayReadKey0", "",
111  "key to read in a genericTOBArray 1st arg"};
112 
113 
115  m_genericTOBArrayReadKey1 {this, "TOBArrayReadKey1", "",
116  "key to read in a genericTOBArray 2nd arg"};
117 
118 
121  "TOBArrayVectorWriteKey",
122  "",
123  "key to write out a vector<GlobalSim::GenericTOBArray>"};
124 
126  m_decisionWriteKey {this, "DecisionWriteKey", "",
127  "key to write out an GlobalSim::Decision object"};
128 
129  };
130 }
131 #endif
GlobalSim::DeltaRSqrIncl2AlgTool::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: DeltaRSqrIncl2AlgTool.h:41
GlobalSim::DeltaRSqrIncl2AlgTool::m_decisionWriteKey
SG::WriteHandleKey< GlobalSim::Decision > m_decisionWriteKey
Definition: DeltaRSqrIncl2AlgTool.h:126
GlobalSim::DeltaRSqrIncl2AlgTool
Definition: DeltaRSqrIncl2AlgTool.h:24
GlobalSim::DeltaRSqrIncl2AlgTool::m_DeltaRMax
Gaudi::Property< std::vector< unsigned int > > m_DeltaRMax
Definition: DeltaRSqrIncl2AlgTool.h:84
GlobalSim::DeltaRSqrIncl2AlgTool::m_MinET2
Gaudi::Property< std::vector< unsigned int > > m_MinET2
Definition: DeltaRSqrIncl2AlgTool.h:68
SG::ReadHandleKey< GlobalSim::GenericTOBArray >
GlobalSim::DeltaRSqrIncl2AlgTool::~DeltaRSqrIncl2AlgTool
virtual ~DeltaRSqrIncl2AlgTool()=default
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:83
GlobalSim::DeltaRSqrIncl2AlgTool::DeltaRSqrIncl2AlgTool
DeltaRSqrIncl2AlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: DeltaRSqrIncl2AlgTool.cxx:14
GenericMonitoringTool.h
GlobalSim::DeltaRSqrIncl2AlgTool::m_DeltaRMin
Gaudi::Property< std::vector< unsigned int > > m_DeltaRMin
Definition: DeltaRSqrIncl2AlgTool.h:76
GlobalSim
AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandls to jFex and eFex Tau Rois If t...
Definition: dump.h:8
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
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::DeltaRSqrIncl2AlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: DeltaRSqrIncl2AlgTool.cxx:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
GlobalSim::DeltaRSqrIncl2AlgTool::m_doDump
Gaudi::Property< bool > m_doDump
Definition: DeltaRSqrIncl2AlgTool.h:100
GlobalSim::DeltaRSqrIncl2AlgTool::toString
virtual std::string toString() const override
Definition: DeltaRSqrIncl2AlgTool.cxx:98
GlobalSim::DeltaRSqrIncl2AlgTool::m_genericTOBArrayVectorWriteKey
SG::WriteHandleKey< std::vector< GlobalSim::GenericTOBArray > > m_genericTOBArrayVectorWriteKey
Definition: DeltaRSqrIncl2AlgTool.h:120
GlobalSim::DeltaRSqrIncl2AlgTool::m_MinET1
Gaudi::Property< std::vector< unsigned int > > m_MinET1
Definition: DeltaRSqrIncl2AlgTool.h:60
GlobalSim::DeltaRSqrIncl2AlgTool::m_MaxTOB2
Gaudi::Property< unsigned int > m_MaxTOB2
Definition: DeltaRSqrIncl2AlgTool.h:53
GlobalSim::DeltaRSqrIncl2AlgTool::initialize
StatusCode initialize() override
Definition: DeltaRSqrIncl2AlgTool.cxx:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::DeltaRSqrIncl2AlgTool::m_NumResultBits
Gaudi::Property< unsigned int > m_NumResultBits
Definition: DeltaRSqrIncl2AlgTool.h:92
GlobalSim::DeltaRSqrIncl2AlgTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: DeltaRSqrIncl2AlgTool.h:106
GlobalSim::DeltaRSqrIncl2AlgTool::m_genericTOBArrayReadKey0
SG::ReadHandleKey< GlobalSim::GenericTOBArray > m_genericTOBArrayReadKey0
Definition: DeltaRSqrIncl2AlgTool.h:110
GlobalSim::DeltaRSqrIncl2AlgTool::m_genericTOBArrayReadKey1
SG::ReadHandleKey< GlobalSim::GenericTOBArray > m_genericTOBArrayReadKey1
Definition: DeltaRSqrIncl2AlgTool.h:115
GlobalSim::DeltaRSqrIncl2AlgTool::m_MaxTOB1
Gaudi::Property< unsigned int > m_MaxTOB1
Definition: DeltaRSqrIncl2AlgTool.h:47