ATLAS Offline Software
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
Root
HbbTagTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
FlavorTagDiscriminants/HbbTagTool.h
"
6
#include "
FlavorTagDiscriminants/HbbTag.h
"
7
8
namespace
FlavorTagDiscriminants
{
9
10
HbbTagTool::HbbTagTool
(
const
std::string&
name
):
11
asg
::AsgTool(
name
),
12
m_props(),
13
m_hbb(nullptr)
14
{
15
declareProperty
(
"nnFile"
,
m_props
.
nnFile
);
16
}
17
HbbTagTool::~HbbTagTool
() {}
18
19
StatusCode
HbbTagTool::initialize
() {
20
ATH_MSG_INFO
(
"Initialize HbbTag from: "
+
m_props
.
nnFile
);
21
m_hbb
.reset(
new
HbbTag
(
HbbTagConfig
(
m_props
.
nnFile
)));
22
return
StatusCode::SUCCESS;
23
}
24
25
StatusCode
HbbTagTool::decorate
(
const
xAOD::JetContainer
&
jets
)
const
{
26
for
(
const
xAOD::Jet
*
jet
:
jets
) {
27
m_hbb
->decorate(*
jet
);
28
}
29
return
StatusCode::SUCCESS;
30
}
31
32
}
HbbTagTool.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition:
AssociationEnums.h:11
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
asg
Definition:
DataHandleTestTool.h:28
FlavorTagDiscriminants::HbbTagTool::m_hbb
std::unique_ptr< HbbTag > m_hbb
Definition:
HbbTagTool.h:33
FlavorTagDiscriminants::HbbTagTool::decorate
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition:
HbbTagTool.cxx:25
FlavorTagDiscriminants::HbbTagTool::~HbbTagTool
~HbbTagTool()
Definition:
HbbTagTool.cxx:17
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
FlavorTagDiscriminants::HbbTagProperties::nnFile
std::string nnFile
Definition:
HbbTagTool.h:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FlavorTagDiscriminants::HbbTagTool::HbbTagTool
HbbTagTool(const std::string &name)
Definition:
HbbTagTool.cxx:10
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:581
FlavorTagDiscriminants::HbbTagTool::m_props
HbbTagProperties m_props
Definition:
HbbTagTool.h:32
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:192
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
FlavorTagDiscriminants::HbbTagConfig
Definition:
HbbTagConfig.h:13
FlavorTagDiscriminants::HbbTagTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition:
HbbTagTool.cxx:19
FlavorTagDiscriminants::HbbTag
Definition:
HbbTag.h:23
defineDB.jets
list jets
Definition:
JetTagCalibration/share/defineDB.py:24
HbbTag.h
Generated on Sun Jun 30 2024 21:16:40 for ATLAS Offline Software by
1.8.18