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

#include <eEmEg1BDTSelector.h>

Inheritance diagram for GlobalSim::eEmEg1BDTSelector:
Collaboration diagram for GlobalSim::eEmEg1BDTSelector:

Public Member Functions

 eEmEg1BDTSelector ()=default
 Passes all.
 eEmEg1BDTSelector (ulong Eg1BDT_cut, const std::string &Eg1BDT_op)
 window limits from strings, to match the eEmEg1BDTTOB bitsets
virtual ~eEmEg1BDTSelector ()=default
virtual bool select (const eEmEg1BDTTOB &) const override
virtual std::string to_string () const override

Private Attributes

std::unique_ptr< ICutterm_Eg1BDT_cutter {nullptr}

Detailed Description

Definition at line 23 of file eEmEg1BDTSelector.h.

Constructor & Destructor Documentation

◆ eEmEg1BDTSelector() [1/2]

GlobalSim::eEmEg1BDTSelector::eEmEg1BDTSelector ( )
default

Passes all.

◆ eEmEg1BDTSelector() [2/2]

GlobalSim::eEmEg1BDTSelector::eEmEg1BDTSelector ( ulong Eg1BDT_cut,
const std::string & Eg1BDT_op )

window limits from strings, to match the eEmEg1BDTTOB bitsets

Definition at line 14 of file eEmEg1BDTSelector.cxx.

15 :
16 m_Eg1BDT_cutter{make_cutter(Eg1BDT_cut, Eg1BDT_op)}{
17 }
std::unique_ptr< ICutter > m_Eg1BDT_cutter
std::unique_ptr< ICutter > make_cutter(const ulong &cut, const std::string &op)
Definition ICutter.cxx:79

◆ ~eEmEg1BDTSelector()

virtual GlobalSim::eEmEg1BDTSelector::~eEmEg1BDTSelector ( )
virtualdefault

Member Function Documentation

◆ select()

bool GlobalSim::eEmEg1BDTSelector::select ( const eEmEg1BDTTOB & tob) const
overridevirtual

Implements GlobalSim::IeEmEg1BDTSelector.

Definition at line 20 of file eEmEg1BDTSelector.cxx.

20 {
21
22 std::bitset<eEmEg1BDTTOB::s_eGamma1BDT_width> bits = tob.eGamma1BDT_bits();
23 if(!m_Eg1BDT_cutter->cut(bits.to_ulong())) {return false;}
24
25 return true;
26 };

◆ to_string()

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

Implements GlobalSim::IeEmEg1BDTSelector.

Definition at line 29 of file eEmEg1BDTSelector.cxx.

29 {
30
31 auto ss = std::stringstream();
32 ss << "eGamma1 BDT cutter: " << m_Eg1BDT_cutter->to_string();
33 return ss.str();
34 };
static Double_t ss

Member Data Documentation

◆ m_Eg1BDT_cutter

std::unique_ptr<ICutter> GlobalSim::eEmEg1BDTSelector::m_Eg1BDT_cutter {nullptr}
private

Definition at line 40 of file eEmEg1BDTSelector.h.

40{nullptr};

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