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
8#include <sstream>
9
10namespace GlobalSim {
11
12 using namespace GlobalSim::IOBitwise;
13
15 const std::string& Eg1BDT_op) :
16 m_Eg1BDT_cutter{make_cutter(Eg1BDT_cut, Eg1BDT_op)}{
17 }
18
19
20 bool eEmEg1BDTSelector::select(const eEmEg1BDTTOB& tob) const {
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 };
27
28
29 std::string eEmEg1BDTSelector::to_string() const {
30
31 auto ss = std::stringstream();
32 ss << "eGamma1 BDT cutter: " << m_Eg1BDT_cutter->to_string();
33 return ss.str();
34 };
35
36
37}
static Double_t ss
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 to read in LArStripNeighborhoods, and run the BDT Algorithm.
std::unique_ptr< ICutter > make_cutter(const ulong &cut, const std::string &op)
Definition ICutter.cxx:79