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

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

◆ to_string()

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

Implements GlobalSim::IeEmEg1BDTSelector.

Definition at line 31 of file eEmEg1BDTSelector.cxx.

31 {
32
33 auto ss = std::stringstream();
34 ss << "eGamma1 BDT cutter: " << m_Eg1BDT_cutter->to_string();
35 return ss.str();
36 };
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: