 |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "../GlobalAlgs/Egamma1BDT/parameters.h"
12 #include "../IO/eEmEg1BDTTOB.h"
17 const std::string&
name,
18 const IInterface*
parent) :
27 return StatusCode::SUCCESS;
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);
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;
87 auto result = std::vector<double>();
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});
127 std::stringstream
ss;
128 ss <<
"Egamma1BDTAlgTool. name: " <<
name() <<
'\n'
const StripDataVector & phi_center() const
Returns a vector of strip cell e/eta/phi data for the central phi row of the neighborhood.
static std::vector< ap_int< 10 > > digitize10(const std::vector< double > &v)
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
virtual const LArStripNeighborhood & Neighbourhood() const =0
Returns the LarStripNeighbourhood: 3*17 cells centred on the eFexROI.
::StatusCode StatusCode
StatusCode definition for legacy code.
constexpr int fn_classes(int n_classes)
#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
Returns a vector of strip cell e/eta/phi data for the low phi row of the neighborhood.
const StripDataVector & phi_high() const
Returns a vector of strip cell e/eta/phi data for the central high row of the neighborhood.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Class to hold an eFexRoI and LAr strip neighbourhood.