ATLAS Offline Software
Loading...
Searching...
No Matches
eEmEg1BDTSelector.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
7
9
10#include <sstream>
11
12namespace GlobalSim {
13
14 using namespace GlobalSim::IOBitwise;
15
17 const std::string& Eg1BDT_op) :
18 m_Eg1BDT_cutter{make_cutter(Eg1BDT_cut, Eg1BDT_op)}{
19 }
20
21
22 bool eEmEg1BDTSelector::select(const eEmEg1BDTTOB& tob) const {
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 };
34
35
36 std::string eEmEg1BDTSelector::to_string() const {
37
38 auto ss = std::stringstream();
39 ss << "eGamma1 BDT cutter: " << m_Eg1BDT_cutter->to_string();
40 return ss.str();
41 };
42
43
44}
unsigned int uint
static Double_t ss
static const std::size_t s_eGamma1BDT_width
virtual std::bitset< eEmEg1BDTTOB::s_eGamma1BDT_width > eGamma1BDT_bits() const
virtual bool select(const eEmEg1BDTTOB &) const override
std::unique_ptr< ICutter > m_Eg1BDT_cutter
virtual std::string to_string() const override
eEmEg1BDTSelector()=default
Passes all.
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
ap_fixed< 10, 5 > score_t
Definition parameters.h:21
std::unique_ptr< ICutter > make_cutter(const float &cut, const std::string &op)
Definition ICutter.cxx:79