|
ATLAS Offline Software
|
Go to the documentation of this file.
15 const std::string&
name,
16 const IInterface*
parent) :
24 return StatusCode::SUCCESS;
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);
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;
77 auto result = std::vector<double>();
79 const auto& phi_low = nbhd->
phi_low();
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});
116 std::vector<ap_int<10>>
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),
141 std::stringstream
ss;
142 ss <<
"Egamma1BDTAlgTool. name: " <<
name() <<
'\n'
const StripDataVector & phi_center() const
AlgTool to obtain a selection of eFex RoIs read in from the event store.
::StatusCode StatusCode
StatusCode definition for legacy code.
constexpr int fn_classes(int n_classes)
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
#define CHECK(...)
Evaluate an expression and check for errors.
Header file to be included by clients of the Monitored infrastructure.
const StripDataVector & phi_low() const
const StripDataVector & phi_high() const