#include <BDTHelper.h>
Definition at line 16 of file BDTHelper.h.
◆ BDTHelper()
tauRecTools::BDTHelper::BDTHelper |
( |
| ) |
|
◆ ~BDTHelper()
tauRecTools::BDTHelper::~BDTHelper |
( |
| ) |
|
◆ getBDT()
◆ getGradBoostMVA()
float tauRecTools::BDTHelper::getGradBoostMVA |
( |
const std::map< TString, float > & |
availableVariables | ) |
const |
◆ getInputVariables() [1/2]
std::vector< float > tauRecTools::BDTHelper::getInputVariables |
( |
const std::map< TString, float * > & |
availableVariables | ) |
const |
|
private |
Definition at line 96 of file BDTHelper.cxx.
101 std::map<TString, float*>::const_iterator itr = availableVariables.find(
name);
102 if(itr==availableVariables.end()) {
106 values.push_back(*itr->second);
◆ getInputVariables() [2/2]
std::vector< float > tauRecTools::BDTHelper::getInputVariables |
( |
const std::map< TString, float > & |
availableVariables | ) |
const |
|
private |
Definition at line 79 of file BDTHelper.cxx.
84 std::map<TString, float>::const_iterator itr = availableVariables.find(
name);
85 if(itr==availableVariables.end()) {
89 values.push_back(itr->second);
◆ getResponse()
float tauRecTools::BDTHelper::getResponse |
( |
const std::map< TString, float * > & |
availableVariables | ) |
const |
◆ initialize()
StatusCode tauRecTools::BDTHelper::initialize |
( |
const TString & |
weightFileName | ) |
|
Definition at line 23 of file BDTHelper.cxx.
25 std::unique_ptr<TFile>
file(TFile::Open(weightFileName));
27 ATH_MSG_ERROR(
"Cannot find input BDT file: " << weightFileName);
28 return StatusCode::FAILURE;
32 TTree*
tree =
dynamic_cast<TTree*
> (
file->Get(
"BDT"));
35 return StatusCode::FAILURE;
37 m_BDT = std::make_unique<MVAUtils::BDT>(
tree);
39 TNamed*
varList =
dynamic_cast<TNamed*
> (
file->Get(
"varList"));
41 ATH_MSG_ERROR(
"No variable list in file: " << weightFileName);
42 return StatusCode::FAILURE;
52 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 55 of file BDTHelper.cxx.
56 std::vector<TString> parsedString;
59 size_t arraySize =
objList->GetEntries();
62 for(
size_t i = 0;
i < arraySize; ++
i) {
63 if (
auto *
str =
dynamic_cast<TObjString*
> (
objList->At(
i))) {
64 TString
var =
str->String();
65 var.ReplaceAll(
" ",
"");
66 if(
var.Contains(
":=")) {
69 if(0==
var.Length())
continue;
70 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: