ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
Hypothesis
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
5
#include "
./eEmEg1BDTSelector.h
"
6
#include "
../IO/eEmEg1BDTTOB.h
"
7
8
#include <sstream>
9
10
namespace
GlobalSim
{
11
12
using namespace
GlobalSim::IOBitwise;
13
14
eEmEg1BDTSelector::eEmEg1BDTSelector
(ulong Eg1BDT_cut,
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
}
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
GlobalSim::IOBitwise::eEmEg1BDTTOB
Definition
eEmEg1BDTTOB.h:25
GlobalSim::IOBitwise::eEmEg1BDTTOB::eGamma1BDT_bits
virtual std::bitset< eEmEg1BDTTOB::s_eGamma1BDT_width > eGamma1BDT_bits() const
Definition
eEmEg1BDTTOB.cxx:22
GlobalSim::eEmEg1BDTSelector::select
virtual bool select(const eEmEg1BDTTOB &) const override
Definition
eEmEg1BDTSelector.cxx:20
GlobalSim::eEmEg1BDTSelector::m_Eg1BDT_cutter
std::unique_ptr< ICutter > m_Eg1BDT_cutter
Definition
eEmEg1BDTSelector.h:40
GlobalSim::eEmEg1BDTSelector::to_string
virtual std::string to_string() const override
Definition
eEmEg1BDTSelector.cxx:29
GlobalSim::eEmEg1BDTSelector::eEmEg1BDTSelector
eEmEg1BDTSelector()=default
Passes all.
eEmEg1BDTSelector.h
eEmEg1BDTTOB.h
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
Trigger/TrigT1/Global/GlobalSimulation/src/Egamma1BDT/Egamma1BDT/BDT.h:11
GlobalSim::make_cutter
std::unique_ptr< ICutter > make_cutter(const ulong &cut, const std::string &op)
Definition
ICutter.cxx:79
Generated on
for ATLAS Offline Software by
1.17.0