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 eEmTOB &) 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 107 of file eEmSelector.cxx.

112 :
113 m_rhad_cutter{make_cutter(rhad_cut, rhad_op)},
114 m_reta_cutter{make_cutter(reta_cut, reta_op)},
115 m_wstot_cutter{make_cutter(wstot_cut, wstot_op)}{
116 }
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 eEmTOB & tob) const
overridevirtual

Implements GlobalSim::IeEmSelector.

Definition at line 119 of file eEmSelector.cxx.

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

◆ to_string()

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

Implements GlobalSim::IeEmSelector.

Definition at line 129 of file eEmSelector.cxx.

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