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 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 };
29
30
31 std::string eEmEg1BDTSelector::to_string() const {
32
33 auto ss = std::stringstream();
34 ss << "eGamma1 BDT cutter: " << m_Eg1BDT_cutter->to_string();
35 return ss.str();
36 };
37
38
39}
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 eRatio Algorithm.
std::unique_ptr< ICutter > make_cutter(const ulong &cut, const std::string &op)
Definition ICutter.cxx:79