ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
GlobalSim::jJetSelectAlgTool Class Reference

#include <jJetSelectAlgTool.h>

Inheritance diagram for GlobalSim::jJetSelectAlgTool:
Collaboration diagram for GlobalSim::jJetSelectAlgTool:

Public Member Functions

 jJetSelectAlgTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~jJetSelectAlgTool ()=default
 
StatusCode initialize () override
 
virtual StatusCode run (const EventContext &ctx) const override
 
virtual std::string toString () const override
 

Private Attributes

Gaudi::Property< std::string > m_algInstanceName
 
Gaudi::Property< unsigned int > m_InputWidth
 
Gaudi::Property< unsigned int > m_MinET
 
Gaudi::Property< unsigned int > m_MinEta
 
Gaudi::Property< unsigned int > m_MaxEta
 
SG::ReadHandleKey< GlobalSim::jJetTOBArraym_jJetTOBArrayReadKey
 
SG::WriteHandleKey< GlobalSim::GenericTOBArraym_TOBArrayWriteKey
 

Detailed Description

Definition at line 21 of file jJetSelectAlgTool.h.

Constructor & Destructor Documentation

◆ jJetSelectAlgTool()

GlobalSim::jJetSelectAlgTool::jJetSelectAlgTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 9 of file jJetSelectAlgTool.cxx.

11  :
12  base_class(type, name, parent){
13  }

◆ ~jJetSelectAlgTool()

virtual GlobalSim::jJetSelectAlgTool::~jJetSelectAlgTool ( )
virtualdefault

Member Function Documentation

◆ initialize()

StatusCode GlobalSim::jJetSelectAlgTool::initialize ( )
override

Definition at line 16 of file jJetSelectAlgTool.cxx.

16  {
17 
20 
21  return StatusCode::SUCCESS;
22  }

◆ run()

StatusCode GlobalSim::jJetSelectAlgTool::run ( const EventContext &  ctx) const
overridevirtual

Definition at line 25 of file jJetSelectAlgTool.cxx.

25  {
26 
28  ctx);
29  CHECK(jets.isValid());
30 
31  auto outTOBArray = std::make_unique<GenericTOBArray>("jJetSelectTOBArray");
32 
33  auto alg = jJetSelect(m_algInstanceName,
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  }

◆ toString()

std::string GlobalSim::jJetSelectAlgTool::toString ( ) const
overridevirtual

Definition at line 51 of file jJetSelectAlgTool.cxx.

51  {
52 
53  std::stringstream ss;
54  ss << "jJetSelectAlgTool. name: " << name() << '\n'
55  << m_jJetTOBArrayReadKey << '\n'
56  << m_TOBArrayWriteKey << "\nalg:\n"
57  << jJetSelect(m_algInstanceName,
59  m_MinET,
60  m_MinEta,
61  m_MaxEta).toString();
62 
63  return ss.str();
64  }

Member Data Documentation

◆ m_algInstanceName

Gaudi::Property<std::string> GlobalSim::jJetSelectAlgTool::m_algInstanceName
private
Initial value:
{
this,
"alg_instance_name",
{},
"instance name of concrete L1Topo Algorithm"}

Definition at line 38 of file jJetSelectAlgTool.h.

◆ m_InputWidth

Gaudi::Property<unsigned int> GlobalSim::jJetSelectAlgTool::m_InputWidth
private
Initial value:
{
this,
"InputWidth",
{0},
"Maximum number of TOBS to output"
}

Definition at line 45 of file jJetSelectAlgTool.h.

◆ m_jJetTOBArrayReadKey

SG::ReadHandleKey<GlobalSim::jJetTOBArray> GlobalSim::jJetSelectAlgTool::m_jJetTOBArrayReadKey
private
Initial value:
{this, "TOBArrayReadKey", "",
"key to read in an jJetTOBArray"}

Definition at line 76 of file jJetSelectAlgTool.h.

◆ m_MaxEta

Gaudi::Property<unsigned int> GlobalSim::jJetSelectAlgTool::m_MaxEta
private
Initial value:
{
this,
"MaxEta",
{0},
"jJetSelect construction parameter"
}

Definition at line 67 of file jJetSelectAlgTool.h.

◆ m_MinET

Gaudi::Property<unsigned int> GlobalSim::jJetSelectAlgTool::m_MinET
private
Initial value:
{
this,
"MinET",
{0},
"jJetSelect construction parameter"
}

Definition at line 52 of file jJetSelectAlgTool.h.

◆ m_MinEta

Gaudi::Property<unsigned int> GlobalSim::jJetSelectAlgTool::m_MinEta
private
Initial value:
{
this,
"MinEta",
{0},
"jJetSelect construction parameter"
}

Definition at line 59 of file jJetSelectAlgTool.h.

◆ m_TOBArrayWriteKey

SG::WriteHandleKey<GlobalSim::GenericTOBArray> GlobalSim::jJetSelectAlgTool::m_TOBArrayWriteKey
private
Initial value:
{this, "TOBArrayWriteKey", "",
"key to write out selected generic TOBs"}

Definition at line 81 of file jJetSelectAlgTool.h.


The documentation for this class was generated from the following files:
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::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:221
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
GlobalSim::jJetSelectAlgTool::m_jJetTOBArrayReadKey
SG::ReadHandleKey< GlobalSim::jJetTOBArray > m_jJetTOBArrayReadKey
Definition: jJetSelectAlgTool.h:76