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

#include <eEmSelect.h>

Collaboration diagram for GlobalSim::eEmSelect:

Public Member Functions

 eEmSelect (const std::string &name, unsigned int InputWidth, unsigned int MinET, unsigned int REtaMin, unsigned int RHadMin, unsigned int WsTotMin)
 
virtual ~eEmSelect ()
 
StatusCode run (const eEmTOBArray &input, GenericTOBArray &output) const
 
std::string toString () const
 

Private Attributes

std::string m_name {}
 
unsigned int m_InputWidth {0}
 
unsigned int m_MinET {0}
 
unsigned int m_REtaMin {0}
 
unsigned int m_RHadMin {0}
 
unsigned int m_WsTotMin {0}
 

Detailed Description

Definition at line 19 of file Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h.

Constructor & Destructor Documentation

◆ eEmSelect()

GlobalSim::eEmSelect::eEmSelect ( const std::string &  name,
unsigned int  InputWidth,
unsigned int  MinET,
unsigned int  REtaMin,
unsigned int  RHadMin,
unsigned int  WsTotMin 
)

Definition at line 17 of file Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.cxx.

22  :
23 
24  m_name{name},
25  m_InputWidth{InputWidth},
26  m_MinET{MinET},
27  m_REtaMin{REtaMin},
28  m_RHadMin{RHadMin},
29  m_WsTotMin{WsTotMin} {
30  }

◆ ~eEmSelect()

GlobalSim::eEmSelect::~eEmSelect ( )
virtual

Definition at line 32 of file Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.cxx.

32 {}

Member Function Documentation

◆ run()

StatusCode GlobalSim::eEmSelect::run ( const eEmTOBArray input,
GenericTOBArray output 
) const

Definition at line 34 of file Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.cxx.

35  {
36 
37  std::size_t neems{0};
38  for (const auto& eem : eems) {
39  if (eem->Et() <= m_MinET) {continue;}
40  if (!isocut(m_REtaMin, eem-> Reta())) {continue;}
41  if (!isocut(m_RHadMin, eem-> Rhad())) {continue;}
42  if (!isocut(m_WsTotMin, eem-> Wstot())) {continue;}
43 
44  const TCS::GenericTOB gtob(*eem);
45  output.push_back(gtob);
46  if (++neems > m_InputWidth) {break;}
47  }
48 
49  return StatusCode::SUCCESS;
50  }

◆ toString()

std::string GlobalSim::eEmSelect::toString ( ) const

Definition at line 52 of file Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.cxx.

52  {
53  std::stringstream ss;
54  ss << "eEmSelect. alg_name: " << m_name << '\n'
55  << " max objects: " << m_InputWidth
56  << " minET " << m_MinET
57  << " REtaMin " << m_REtaMin
58  << " RHadMin " << m_RHadMin
59  << " WsTotMin " << m_WsTotMin;
60 
61  return ss.str();
62  }

Member Data Documentation

◆ m_InputWidth

unsigned int GlobalSim::eEmSelect::m_InputWidth {0}
private

◆ m_MinET

unsigned int GlobalSim::eEmSelect::m_MinET {0}
private

◆ m_name

std::string GlobalSim::eEmSelect::m_name {}
private

◆ m_REtaMin

unsigned int GlobalSim::eEmSelect::m_REtaMin {0}
private

◆ m_RHadMin

unsigned int GlobalSim::eEmSelect::m_RHadMin {0}
private

◆ m_WsTotMin

unsigned int GlobalSim::eEmSelect::m_WsTotMin {0}
private

The documentation for this class was generated from the following files:
GlobalSim::eEmSelect::m_WsTotMin
unsigned int m_WsTotMin
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:42
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
xAOD::EgammaParameters::Reta
@ Reta
e237/e277
Definition: EgammaEnums.h:154
GlobalSim::eEmSelect::m_REtaMin
unsigned int m_REtaMin
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:40
GlobalSim::eEmSelect::m_MinET
unsigned int m_MinET
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:39
GlobalSim::eEmSelect::m_name
std::string m_name
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:37
GlobalSim::eEmSelect::m_RHadMin
unsigned int m_RHadMin
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:41
merge.output
output
Definition: merge.py:17
TCS::GenericTOB
Definition: GenericTOB.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
GlobalSim::eEmSelect::m_InputWidth
unsigned int m_InputWidth
Definition: Global/GlobalSimulation/src/L1TopoAlgs/eEmSelect.h:38
xAOD::EgammaParameters::Rhad
@ Rhad
ethad/et
Definition: EgammaEnums.h:160
GlobalSim::isocut
bool isocut(const std::string &threshold, const unsigned int bit)
Definition: isocut.cxx:10