#include <BDTHelper.h>
Definition at line 16 of file BDTHelper.h.
◆ BDTHelper()
tauRecTools::BDTHelper::BDTHelper |
( |
| ) |
|
◆ ~BDTHelper()
tauRecTools::BDTHelper::~BDTHelper |
( |
| ) |
|
◆ getBDT()
◆ getClassification()
float tauRecTools::BDTHelper::getClassification |
( |
const std::map< TString, float * > & |
availableVariables | ) |
const |
◆ getGradBoostMVA() [1/2]
float tauRecTools::BDTHelper::getGradBoostMVA |
( |
const std::map< TString, float > & |
availableVariables | ) |
const |
◆ getGradBoostMVA() [2/2]
◆ getInputVariables() [1/3]
std::vector< float > tauRecTools::BDTHelper::getInputVariables |
( |
const std::map< TString, float * > & |
availableVariables | ) |
const |
|
private |
Definition at line 99 of file BDTHelper.cxx.
100 std::vector<float>
values;
104 std::map<TString, float*>::const_iterator itr = availableVariables.find(
name);
105 if(itr==availableVariables.end()) {
109 values.push_back(*itr->second);
◆ getInputVariables() [2/3]
std::vector< float > tauRecTools::BDTHelper::getInputVariables |
( |
const std::map< TString, float > & |
availableVariables | ) |
const |
|
private |
Definition at line 82 of file BDTHelper.cxx.
87 std::map<TString, float>::const_iterator itr = availableVariables.find(
name);
88 if(itr==availableVariables.end()) {
92 values.push_back(itr->second);
◆ getInputVariables() [3/3]
std::vector< float > tauRecTools::BDTHelper::getInputVariables |
( |
const xAOD::TauJet & |
tau | ) |
const |
|
private |
◆ getResponse()
float tauRecTools::BDTHelper::getResponse |
( |
const std::map< TString, float * > & |
availableVariables | ) |
const |
◆ initialize()
StatusCode tauRecTools::BDTHelper::initialize |
( |
const TString & |
weightFileName | ) |
|
Definition at line 26 of file BDTHelper.cxx.
28 std::unique_ptr<TFile>
file(TFile::Open(weightFileName));
30 ATH_MSG_ERROR(
"Cannot find input BDT file: " << weightFileName);
31 return StatusCode::FAILURE;
35 TTree*
tree =
dynamic_cast<TTree*
> (
file->Get(
"BDT"));
38 return StatusCode::FAILURE;
40 m_BDT = std::make_unique<MVAUtils::BDT>(
tree);
42 TNamed*
varList =
dynamic_cast<TNamed*
> (
file->Get(
"varList"));
44 ATH_MSG_ERROR(
"No variable list in file: " << weightFileName);
45 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
MsgStream & asg::AsgMessaging::msg |
( |
| ) |
const |
|
inherited |
The standard message stream.
- Returns
- A reference to the default message stream of this object.
Definition at line 49 of file AsgMessaging.cxx.
50 #ifndef XAOD_STANDALONE
52 #else // not XAOD_STANDALONE
54 #endif // not XAOD_STANDALONE
◆ msg() [2/2]
MsgStream & asg::AsgMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inherited |
The standard message stream.
- Parameters
-
lvl | The message level to set the stream to |
- Returns
- A reference to the default message stream, set to level "lvl"
Definition at line 57 of file AsgMessaging.cxx.
58 #ifndef XAOD_STANDALONE
60 #else // not XAOD_STANDALONE
63 #endif // not XAOD_STANDALONE
◆ msgLvl()
bool asg::AsgMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inherited |
Test the output level of the object.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
-
true
If messages at level "lvl" will be printed
Definition at line 41 of file AsgMessaging.cxx.
42 #ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44 #else // not XAOD_STANDALONE
45 return m_msg.msgLevel( lvl );
46 #endif // not XAOD_STANDALONE
◆ parseString()
std::vector< TString > tauRecTools::BDTHelper::parseString |
( |
const TString & |
str, |
|
|
const TString & |
delim = "," |
|
) |
| const |
|
private |
Definition at line 58 of file BDTHelper.cxx.
59 std::vector<TString> parsedString;
62 size_t arraySize =
objList->GetEntries();
65 for(
size_t i = 0;
i < arraySize; ++
i) {
66 if (
auto *
str =
dynamic_cast<TObjString*
> (
objList->At(
i))) {
67 TString
var =
str->String();
68 var.ReplaceAll(
" ",
"");
69 if(
var.Contains(
":=")) {
72 if(0==
var.Length())
continue;
73 parsedString.push_back(
var);
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_BDT
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_inputVariableNames
std::vector<TString> tauRecTools::BDTHelper::m_inputVariableNames |
|
private |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
The documentation for this class was generated from the following files: