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

#include <eEmSelectAlgTool.h>

Inheritance diagram for GlobalSim::eEmSelectAlgTool:
Collaboration diagram for GlobalSim::eEmSelectAlgTool:

Public Member Functions

 eEmSelectAlgTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~eEmSelectAlgTool ()=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_REtaMin
 
Gaudi::Property< unsigned int > m_RHadMin
 
Gaudi::Property< unsigned int > m_WsTotMin
 
SG::ReadHandleKey< GlobalSim::eEmTOBArraym_eEmTOBArrayReadKey
 
SG::WriteHandleKey< GlobalSim::GenericTOBArraym_TOBArrayWriteKey
 

Detailed Description

Definition at line 21 of file eEmSelectAlgTool.h.

Constructor & Destructor Documentation

◆ eEmSelectAlgTool()

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

Definition at line 9 of file eEmSelectAlgTool.cxx.

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

◆ ~eEmSelectAlgTool()

virtual GlobalSim::eEmSelectAlgTool::~eEmSelectAlgTool ( )
virtualdefault

Member Function Documentation

◆ initialize()

StatusCode GlobalSim::eEmSelectAlgTool::initialize ( )
override

Definition at line 15 of file eEmSelectAlgTool.cxx.

15  {
16 
19 
20  return StatusCode::SUCCESS;
21  }

◆ run()

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

Definition at line 24 of file eEmSelectAlgTool.cxx.

24  {
25 
27  CHECK(eems.isValid());
28 
29  auto outTOBArray = std::make_unique<GenericTOBArray>("eEmSelectTOBArray");
30 
31  auto alg = eEmSelect(m_algInstanceName,
33  m_MinET,
34  m_REtaMin,
35  m_RHadMin,
36  m_WsTotMin);
37 
38  CHECK(alg.run(*eems, *outTOBArray));
39 
40 
42  ctx);
43  CHECK(h_write.record(std::move(outTOBArray)));
44 
45  return StatusCode::SUCCESS;
46  }

◆ toString()

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

Definition at line 48 of file eEmSelectAlgTool.cxx.

48  {
49 
50  std::stringstream ss;
51  ss << "eEmSelectAlgTool. name: " << name() << '\n'
52  << m_eEmTOBArrayReadKey << '\n'
53  << m_TOBArrayWriteKey << "\nalg:\n"
54  << eEmSelect(m_algInstanceName,
56  m_MinET,
57  m_REtaMin,
58  m_RHadMin,
59  m_WsTotMin).toString();
60 
61  return ss.str();
62  }

Member Data Documentation

◆ m_algInstanceName

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

Definition at line 38 of file eEmSelectAlgTool.h.

◆ m_eEmTOBArrayReadKey

SG::ReadHandleKey<GlobalSim::eEmTOBArray> GlobalSim::eEmSelectAlgTool::m_eEmTOBArrayReadKey
private
Initial value:
{this, "TOBArrayReadKey", "",
"key to read in an eEmTOBArray"}

Definition at line 82 of file eEmSelectAlgTool.h.

◆ m_InputWidth

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

Definition at line 45 of file eEmSelectAlgTool.h.

◆ m_MinET

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

Definition at line 52 of file eEmSelectAlgTool.h.

◆ m_REtaMin

Gaudi::Property<unsigned int> GlobalSim::eEmSelectAlgTool::m_REtaMin
private
Initial value:
{
this,
"REtaMin",
{0},
"eEmSelect construction parameter"
}

Definition at line 59 of file eEmSelectAlgTool.h.

◆ m_RHadMin

Gaudi::Property<unsigned int> GlobalSim::eEmSelectAlgTool::m_RHadMin
private
Initial value:
{
this,
"RHadMin",
{0},
"eEmSelect construction parameter"
}

Definition at line 66 of file eEmSelectAlgTool.h.

◆ m_TOBArrayWriteKey

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

Definition at line 86 of file eEmSelectAlgTool.h.

◆ m_WsTotMin

Gaudi::Property<unsigned int> GlobalSim::eEmSelectAlgTool::m_WsTotMin
private
Initial value:
{
this,
"WsTotMin",
{0},
"eEmSelect construction parameter"
}

Definition at line 73 of file eEmSelectAlgTool.h.


The documentation for this class was generated from the following files:
GlobalSim::eEmSelectAlgTool::m_algInstanceName
Gaudi::Property< std::string > m_algInstanceName
Definition: eEmSelectAlgTool.h:38
GlobalSim::eEmSelectAlgTool::m_TOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::GenericTOBArray > m_TOBArrayWriteKey
Definition: eEmSelectAlgTool.h:86
SGout2dot.alg
alg
Definition: SGout2dot.py:243
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
GlobalSim::eEmSelectAlgTool::m_MinET
Gaudi::Property< unsigned int > m_MinET
Definition: eEmSelectAlgTool.h:52
GlobalSim::eEmSelectAlgTool::m_eEmTOBArrayReadKey
SG::ReadHandleKey< GlobalSim::eEmTOBArray > m_eEmTOBArrayReadKey
Definition: eEmSelectAlgTool.h:82
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
GlobalSim::eEmSelectAlgTool::m_InputWidth
Gaudi::Property< unsigned int > m_InputWidth
Definition: eEmSelectAlgTool.h:45
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
GlobalSim::eEmSelectAlgTool::m_REtaMin
Gaudi::Property< unsigned int > m_REtaMin
Definition: eEmSelectAlgTool.h:59
GlobalSim::eEmSelectAlgTool::m_WsTotMin
Gaudi::Property< unsigned int > m_WsTotMin
Definition: eEmSelectAlgTool.h:73
GlobalSim::eEmSelectAlgTool::m_RHadMin
Gaudi::Property< unsigned int > m_RHadMin
Definition: eEmSelectAlgTool.h:66