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 16 of file eEmEg1BDTSelector.cxx.

17 :
18 m_Eg1BDT_cutter{make_cutter(Eg1BDT_cut, Eg1BDT_op)}{
19 }
std::unique_ptr< ICutter > m_Eg1BDT_cutter
std::unique_ptr< ICutter > make_cutter(const float &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 22 of file eEmEg1BDTSelector.cxx.

22 {
23
24 score_t BDT_Result;
25 std::bitset<eEmEg1BDTTOB::s_eGamma1BDT_width> bits = tob.eGamma1BDT_bits();
27 BDT_Result[i] = bits[i];
28 }
29
30 if(!m_Eg1BDT_cutter->cut(BDT_Result.to_float())) {return false;}
31
32 return true;
33 };
unsigned int uint
static const std::size_t s_eGamma1BDT_width
ap_fixed< 10, 5 > score_t
Definition parameters.h:21

◆ to_string()

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

Implements GlobalSim::IeEmEg1BDTSelector.

Definition at line 36 of file eEmEg1BDTSelector.cxx.

36 {
37
38 auto ss = std::stringstream();
39 ss << "eGamma1 BDT cutter: " << m_Eg1BDT_cutter->to_string();
40 return ss.str();
41 };
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: