#include <Egamma1BDTAlgTool.h>
Definition at line 26 of file Egamma1BDTAlgTool.h.
◆ Egamma1BDTAlgTool()
GlobalSim::Egamma1BDTAlgTool::Egamma1BDTAlgTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~Egamma1BDTAlgTool()
virtual GlobalSim::Egamma1BDTAlgTool::~Egamma1BDTAlgTool |
( |
| ) |
|
|
virtualdefault |
◆ combine_phi()
Definition at line 76 of file Egamma1BDTAlgTool.cxx.
77 auto result = std::vector<double>();
79 const auto& phi_low = nbhd->phi_low();
82 const auto& phi_center = nbhd->phi_center();
86 const auto& phi_high = nbhd->phi_high();
93 result.at(0) = phi_center.at(
c).m_e;
101 phi_center.at(
c+
diff).m_e});
105 phi_low.at(
c+
diff).m_e,
106 phi_high.at(
c-
diff).m_e,
107 phi_high.at(
c+
diff).m_e});
◆ digitize()
std::vector< ap_int< 10 > > GlobalSim::Egamma1BDTAlgTool::digitize |
( |
const std::vector< double > & |
v | ) |
const |
|
private |
Definition at line 117 of file Egamma1BDTAlgTool.cxx.
118 auto sf = [](
double v) {
119 if (
v < 0) {
return 0.;}
120 if (
v < 8000) {
return v / 31.25;}
121 if (
v < 40000) {
return 192. +
v / 125;}
122 if (
v < 168000) {
return 432. +
v / 500;}
123 if (
v < 678000) {
return 686. +
v / 2000;}
127 auto result = std::vector<ap_int<10>>();
132 std::back_inserter(
result),
◆ initialize()
StatusCode GlobalSim::Egamma1BDTAlgTool::initialize |
( |
| ) |
|
|
override |
◆ run()
StatusCode GlobalSim::Egamma1BDTAlgTool::run |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 28 of file Egamma1BDTAlgTool.cxx.
39 ATH_MSG_DEBUG(
"read in " << (*in).size() <<
" neighborhoods");
42 for (
const auto& nbhd : *in) {
44 if (c_phi.empty()) {
continue;}
47 assert(
input.size() == n_features);
48 ap_int<10>* c_input = &
input[0];
53 bdt.decision_function(c_input, scores);
57 for (
const auto&
i :
input) {
ss <<
i <<
' ';}
63 ss <<
"C BDT output: ";
64 for (
const auto&
i : scores) {
ss <<
i <<
' ';}
71 return StatusCode::SUCCESS;
◆ toString()
std::string GlobalSim::Egamma1BDTAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_enableDump
Gaudi::Property<bool> GlobalSim::Egamma1BDTAlgTool::m_enableDump |
|
private |
Initial value:{this,
"enableDump",
{false},
"flag to enable dumps"}
Definition at line 45 of file Egamma1BDTAlgTool.h.
◆ m_nbhdContainerReadKey
Initial value:{
this,
"LArNeighborhoodContainerReadKey",
"stripNeighborhoodContainer",
"key to read inLArNeighborhoodReadKeys"}
Definition at line 52 of file Egamma1BDTAlgTool.h.
◆ s_combination_len
constexpr int GlobalSim::Egamma1BDTAlgTool::s_combination_len = 18 |
|
inlinestaticconstexprprivate |
◆ s_required_phi_len
constexpr int GlobalSim::Egamma1BDTAlgTool::s_required_phi_len = 17 |
|
inlinestaticconstexprprivate |
The documentation for this class was generated from the following files: