ATLAS Offline Software
Loading...
Searching...
No Matches
BDTHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TAURECTOOLS_BDTHELPER_H
6#define TAURECTOOLS_BDTHELPER_H
7
10#include "xAODTau/TauJet.h"
11#include "MVAUtils/BDT.h"
12
13class TString;
14
15namespace tauRecTools {
17 public:
18 BDTHelper();
19 ~BDTHelper();
20
21 StatusCode initialize(const TString& weightFileName);
22
23 float getGradBoostMVA(const std::map<TString, float>& availableVariables) const;
24
25 float getResponse(const std::map<TString, float*>& availableVariables) const;
26
27 MVAUtils::BDT* getBDT() const { return m_BDT.get(); }
28
29 private:
30 std::vector<TString> parseString(const TString& str, const TString& delim = ",") const;
31
32 std::vector<float> getInputVariables(const std::map<TString, float>& availableVariables) const ;
33
34 std::vector<float> getInputVariables(const std::map<TString, float*>& availableVariables) const;
35
36 std::unique_ptr<MVAUtils::BDT> m_BDT;
37 std::vector<TString> m_inputVariableNames;
38 };
39}
40
41#endif // TAURECTOOLS_BDTHELPER_H
Simplified Boosted Regression Tree, support TMVA, lgbm, and xgboost.
Class mimicking the AthMessaging class from the offline software.
std::vector< TString > parseString(const TString &str, const TString &delim=",") const
Definition BDTHelper.cxx:55
MVAUtils::BDT * getBDT() const
Definition BDTHelper.h:27
std::vector< TString > m_inputVariableNames
Definition BDTHelper.h:37
float getResponse(const std::map< TString, float * > &availableVariables) const
float getGradBoostMVA(const std::map< TString, float > &availableVariables) const
std::vector< float > getInputVariables(const std::map< TString, float > &availableVariables) const
Definition BDTHelper.cxx:79
std::unique_ptr< MVAUtils::BDT > m_BDT
Definition BDTHelper.h:36
Implementation of a TrackClassifier based on an RNN.
Definition BDTHelper.cxx:12
void initialize()