ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::eEmSelector Class Reference

#include <eEmSelector.h>

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

Public Member Functions

 eEmSelector ()=default
 Passes all.
 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
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 }
std::unique_ptr< ICutter > m_wstot_cutter
Definition eEmSelector.h:53
std::unique_ptr< ICutter > m_rhad_cutter
Definition eEmSelector.h:51
std::unique_ptr< ICutter > m_reta_cutter
Definition eEmSelector.h:52
std::unique_ptr< ICutter > make_cutter(const ulong &cut, const std::string &op)

◆ ~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 };
static Double_t ss

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.

52{nullptr};

◆ m_rhad_cutter

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

Definition at line 51 of file eEmSelector.h.

51{nullptr};

◆ m_wstot_cutter

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

Definition at line 53 of file eEmSelector.h.

53{nullptr};

The documentation for this class was generated from the following files: