#include <TagNtupleDumper.h>
Definition at line 37 of file TagNtupleDumper.h.
◆ TagNtupleDumper()
Analysis::TagNtupleDumper::TagNtupleDumper |
( |
const std::string & |
name, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TagNtupleDumper()
Analysis::TagNtupleDumper::~TagNtupleDumper |
( |
| ) |
|
|
virtual |
◆ assignProbability()
void Analysis::TagNtupleDumper::assignProbability |
( |
xAOD::BTagging * |
BTag, |
|
|
const std::map< std::string, double > & |
inputs, |
|
|
const std::string & |
jetauthor |
|
) |
| const |
|
overridevirtual |
Definition at line 56 of file TagNtupleDumper.cxx.
60 std::lock_guard<std::mutex> lock (m_mutex);
62 TTree* &
tree = m_trees[jetauthor];
63 if (
tree ==
nullptr) {
64 tree =
new TTree(jetauthor.c_str(),
"who cares");
71 for (
const auto& in:
inputs) {
72 const auto idx = std::make_pair(in.first, jetauthor);
74 float* & feature = m_features[
idx];
75 if (feature ==
nullptr) {
77 m_trees.at(jetauthor)->Branch(in.first.c_str(), feature);
78 ATH_MSG_INFO(
"Added Branch " + jetauthor +
": " + in.first );
83 m_trees.at(jetauthor)->Fill();
◆ finalize()
StatusCode Analysis::TagNtupleDumper::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode Analysis::TagNtupleDumper::initialize |
( |
| ) |
|
|
overridevirtual |
◆ ATLAS_THREAD_SAFE [1/3]
std::map< std::pair<std::string, std::string>, float* > m_features Analysis::TagNtupleDumper::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ ATLAS_THREAD_SAFE [2/3]
std::map<std::string, TTree*> m_trees Analysis::TagNtupleDumper::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ ATLAS_THREAD_SAFE [3/3]
std::mutex m_mutex Analysis::TagNtupleDumper::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_hist_svc
◆ m_stream
std::string Analysis::TagNtupleDumper::m_stream |
|
private |
The documentation for this class was generated from the following files: