![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "GaudiKernel/IToolSvc.h"
19 #include "GaudiKernel/ITHistSvc.h"
20 #include "GaudiKernel/ServiceHandle.h"
31 m_hist_svc(
"THistSvc",
name)
38 for (
auto& pair: m_features) {
49 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
55 typedef std::map<std::string,double>
var_map;
58 const std::string &jetauthor)
const
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();
ServiceHandle< ITHistSvc > m_hist_svc
virtual StatusCode finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
The namespace of all packages in PhysicsAnalysis/JetTagging.
std::map< std::string, double > var_map
virtual ~TagNtupleDumper()
virtual void assignProbability(xAOD::BTagging *BTag, const std::map< std::string, double > &inputs, const std::string &jetauthor) const override
TagNtupleDumper(const std::string &name, const std::string &n, const IInterface *)
virtual StatusCode initialize() override