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

#include <eEmSelector.h>

Inheritance diagram for GlobalSim::eEmSelector:
Collaboration diagram for GlobalSim::eEmSelector:

Public Member Functions

 eEmSelector ()=default
 Passes all. More...
 
 eEmSelector (ulong rhad_cut, const std::string &rhad_op, ulong reta_cut, const std::string &reta_op, ulong wstot_cut, const std::string &wstot_op)
 window limits from strings, to match the eEmTOB bitsets More...
 
virtual ~eEmSelector ()=default
 
virtual bool select (const IeEmTOB &) const override
 
virtual std::string to_string () const override
 

Private Attributes

std::unique_ptr< ICutterm_rhad_cutter {nullptr}
 
std::unique_ptr< ICutterm_reta_cutter {nullptr}
 
std::unique_ptr< ICutterm_wstot_cutter {nullptr}
 

Detailed Description

Definition at line 30 of file eEmSelector.h.

Constructor & Destructor Documentation

◆ eEmSelector() [1/2]

GlobalSim::eEmSelector::eEmSelector ( )
default

Passes all.

◆ eEmSelector() [2/2]

GlobalSim::eEmSelector::eEmSelector ( ulong  rhad_cut,
const std::string &  rhad_op,
ulong  reta_cut,
const std::string &  reta_op,
ulong  wstot_cut,
const std::string &  wstot_op 
)

window limits from strings, to match the eEmTOB bitsets

Definition at line 106 of file eEmSelector.cxx.

111  :
112  m_rhad_cutter{make_cutter(rhad_cut, rhad_op)},
113  m_reta_cutter{make_cutter(reta_cut, reta_op)},
114  m_wstot_cutter{make_cutter(wstot_cut, wstot_op)}{
115  }

◆ ~eEmSelector()

virtual GlobalSim::eEmSelector::~eEmSelector ( )
virtualdefault

Member Function Documentation

◆ select()

bool GlobalSim::eEmSelector::select ( const IeEmTOB tob) const
overridevirtual

Implements GlobalSim::IeEmSelector.

Definition at line 118 of file eEmSelector.cxx.

118  {
119 
120  if(!m_rhad_cutter->cut(tob.RHad_bits().to_ulong())) {return false;}
121  if(!m_reta_cutter->cut(tob.REta_bits().to_ulong())) {return false;}
122  if(!m_wstot_cutter->cut(tob.WsTot_bits().to_ulong())) {return false;}
123 
124  return true;
125  };

◆ to_string()

std::string GlobalSim::eEmSelector::to_string ( ) const
overridevirtual

Implements GlobalSim::IeEmSelector.

Definition at line 128 of file eEmSelector.cxx.

128  {
129 
130  auto ss = std::stringstream();
131  ss << "rhad cutter: " << m_rhad_cutter->to_string() << ' '
132  << "reta cutter: " << m_reta_cutter->to_string() << ' '
133  << "wstot cutter: " << m_wstot_cutter->to_string();
134  return ss.str();
135  };

Member Data Documentation

◆ m_reta_cutter

std::unique_ptr<ICutter> GlobalSim::eEmSelector::m_reta_cutter {nullptr}
private

Definition at line 52 of file eEmSelector.h.

◆ m_rhad_cutter

std::unique_ptr<ICutter> GlobalSim::eEmSelector::m_rhad_cutter {nullptr}
private

Definition at line 51 of file eEmSelector.h.

◆ m_wstot_cutter

std::unique_ptr<ICutter> GlobalSim::eEmSelector::m_wstot_cutter {nullptr}
private

Definition at line 53 of file eEmSelector.h.


The documentation for this class was generated from the following files:
GlobalSim::IOBitwise::IeEmTOB::RHad_bits
virtual const std::bitset< s_RHad_width > & RHad_bits() const =0
Returns the eFexRoI Rhad threshold bits.
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GlobalSim::IOBitwise::IeEmTOB::WsTot_bits
virtual const std::bitset< s_WsTot_width > & WsTot_bits() const =0
Returns the eFexRoI Wstot threshold bits.
GlobalSim::eEmSelector::m_rhad_cutter
std::unique_ptr< ICutter > m_rhad_cutter
Definition: eEmSelector.h:51
GlobalSim::eEmSelector::m_wstot_cutter
std::unique_ptr< ICutter > m_wstot_cutter
Definition: eEmSelector.h:53
GlobalSim::make_cutter
std::unique_ptr< ICutter > make_cutter(const ulong &cut, const std::string &op)
Definition: eEmSelector.cxx:82
GlobalSim::IOBitwise::IeEmTOB::REta_bits
virtual const std::bitset< s_REta_width > & REta_bits() const =0
Returns the eFexRoI REta threshold bits.
GlobalSim::eEmSelector::m_reta_cutter
std::unique_ptr< ICutter > m_reta_cutter
Definition: eEmSelector.h:52