29 return StatusCode::SUCCESS;
35 return StatusCode::FAILURE;
39 if (resolved.empty()) {
41 return StatusCode::FAILURE;
43 std::unique_ptr<TFile>
file;
44 file.reset(TFile::Open(resolved.c_str(),
"READ"));
47 return StatusCode::FAILURE;
53 return StatusCode::FAILURE;
55 tree->SetCacheSize(0);
56 m_bdt = std::make_unique<MVAUtils::BDT>(
tree);
62 return StatusCode::SUCCESS;
68 return StatusCode::FAILURE;
72 score =
m_bdt->GetClassification(vars);
74 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
static std::string find_calib_file(const std::string &logical_file_name)
Gaudi::Property< std::string > m_bdtTreeName
Gaudi::Property< std::string > m_modelFile
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual ~PhotonSingleBDTCalculator() override
StatusCode computeScore(const std::vector< float > &vars, float &score) const
Evaluate the BDT score for a photon.
std::unique_ptr< MVAUtils::BDT > m_bdt
PhotonSingleBDTCalculator(const std::string &name)