ATLAS Offline Software
jJetSelectAlgTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "jJetSelectAlgTool.h"
6 #include "jJetSelect.h"
7 
8 namespace GlobalSim {
10  const std::string& name,
11  const IInterface* parent) :
12  base_class(type, name, parent){
13  }
14 
15 
17 
20 
21  return StatusCode::SUCCESS;
22  }
23 
25  jJetSelectAlgTool::run(const EventContext& ctx) const {
26 
28  ctx);
29  CHECK(jets.isValid());
30 
31  auto outTOBArray = std::make_unique<GenericTOBArray>("jJetSelectTOBArray");
32 
35  m_MinET,
36  m_MinEta,
37  m_MaxEta);
38 
39  CHECK(alg.run(*jets, *outTOBArray));
40 
41 
43  ctx);
44  CHECK(h_write.record(std::move(outTOBArray)));
45 
46 
47 
48  return StatusCode::SUCCESS;
49  }
50 
51  std::string jJetSelectAlgTool::toString() const {
52 
53  std::stringstream ss;
54  ss << "jJetSelectAlgTool. name: " << name() << '\n'
55  << m_jJetTOBArrayReadKey << '\n'
56  << m_TOBArrayWriteKey << "\nalg:\n"
59  m_MinET,
60  m_MinEta,
61  m_MaxEta).toString();
62 
63  return ss.str();
64  }
65 }
66 
GlobalSim::jJetSelectAlgTool::m_MaxEta
Gaudi::Property< unsigned int > m_MaxEta
Definition: jJetSelectAlgTool.h:67
GlobalSim::jJetSelectAlgTool::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: jJetSelectAlgTool.h:38
GlobalSim::jJetSelectAlgTool::m_MinET
Gaudi::Property< unsigned int > m_MinET
Definition: jJetSelectAlgTool.h:52
SGout2dot.alg
alg
Definition: SGout2dot.py:243
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GlobalSim::jJetSelectAlgTool::m_MinEta
Gaudi::Property< unsigned int > m_MinEta
Definition: jJetSelectAlgTool.h:59
GlobalSim::jJetSelectAlgTool::m_InputWidth
Gaudi::Property< unsigned int > m_InputWidth
Definition: jJetSelectAlgTool.h:45
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
GlobalSim::jJetSelectAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: jJetSelectAlgTool.cxx:25
jJetSelect.h
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
GlobalSim::jJetSelectAlgTool::toString
virtual std::string toString() const override
Definition: jJetSelectAlgTool.cxx:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GlobalSim::jJetSelectAlgTool::m_TOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::GenericTOBArray > m_TOBArrayWriteKey
Definition: jJetSelectAlgTool.h:81
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
GlobalSim::jJetSelect::toString
std::string toString() const
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.cxx:51
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
jJetSelectAlgTool.h
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
GlobalSim::jJetSelectAlgTool::initialize
StatusCode initialize() override
Definition: jJetSelectAlgTool.cxx:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::jJetSelect
Definition: Global/GlobalSimulation/src/L1TopoAlgs/jJetSelect.h:18
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
GlobalSim::jJetSelectAlgTool::jJetSelectAlgTool
jJetSelectAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: jJetSelectAlgTool.cxx:9
GlobalSim::jJetSelectAlgTool::m_jJetTOBArrayReadKey
SG::ReadHandleKey< GlobalSim::jJetTOBArray > m_jJetTOBArrayReadKey
Definition: jJetSelectAlgTool.h:76