#include <Egamma1BDTAlgTool.h>
Definition at line 31 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 86 of file Egamma1BDTAlgTool.cxx.
87 auto result = std::vector<double>();
89 const auto& phi_low = nbhdTOB->Neighbourhood().phi_low();
92 const auto& phi_center = nbhdTOB->Neighbourhood().phi_center();
96 const auto& phi_high = nbhdTOB->Neighbourhood().phi_high();
103 result.at(0) = phi_center.at(
c).m_e;
111 phi_center.at(
c+
diff).m_e});
115 phi_low.at(
c+
diff).m_e,
116 phi_high.at(
c-
diff).m_e,
117 phi_high.at(
c+
diff).m_e});
◆ initialize()
| StatusCode GlobalSim::Egamma1BDTAlgTool::initialize |
( |
| ) |
|
|
override |
◆ run()
| StatusCode GlobalSim::Egamma1BDTAlgTool::run |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 31 of file Egamma1BDTAlgTool.cxx.
41 ATH_MSG_DEBUG(
"read in " << (*in).size() <<
" neighborhoods");
44 CHECK(h_BDTResult.record(std::make_unique<IOBitwise::IeEmEg1BDTTOBContainer>()));
46 for (
const auto nbhdTOB : *in) {
48 if (c_phi.empty()) {
continue;}
51 assert(
input.size() == n_features);
52 ap_int<10>* c_input = &
input[0];
57 bdt.decision_function(c_input, scores);
61 for (
const auto&
i :
input) {
ss <<
i <<
' ';}
67 ss <<
"C BDT output: ";
68 for (
const auto&
i : scores) {
ss <<
i <<
' ';}
73 std::bitset<IOBitwise::IeEmEg1BDTTOB::s_eGamma1BDT_width>
result;
74 for (
int i=0;
i<scores[0].length();
i++){
78 h_BDTResult->push_back(std::make_unique<IOBitwise::eEmEg1BDTTOB>(*nbhdTOB,
result));
81 return StatusCode::SUCCESS;
◆ toString()
| std::string GlobalSim::Egamma1BDTAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_BDTResultKey
◆ m_enableDump
| Gaudi::Property<bool> GlobalSim::Egamma1BDTAlgTool::m_enableDump |
|
private |
Initial value:{this,
"enableDump",
{false},
"flag to enable dumps"}
Definition at line 50 of file Egamma1BDTAlgTool.h.
◆ m_nbhdTOBContainerReadKey
Initial value:{
this,
"LArNeighborhoodTOBContainerReadKey",
"stripNeighborhoodTOBContainer",
"key to read inLArNeighborhoodTOBsReadKeys"}
Definition at line 63 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: