ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkVertexFitter
TrkVertexWeightCalculators
TrkVertexWeightCalculators
BDTVertexWeightCalculator.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRKVERTEXWEIGHTCALCULATORS_BDTVERTEXWEIGHTCALCULATOR_H
6
#define TRKVERTEXWEIGHTCALCULATORS_BDTVERTEXWEIGHTCALCULATOR_H
7
8
#include <
AsgDataHandles/ReadDecorHandleKey.h
>
9
#include <
AsgDataHandles/ReadHandleKey.h
>
10
#include <
AsgTools/AsgTool.h
>
11
#include <
TrkVertexFitterInterfaces/IVertexWeightCalculator.h
>
12
#include <
xAODTracking/VertexContainer.h
>
13
14
#include <memory>
15
#include <string>
16
17
#include "
AsgTools/PropertyWrapper.h
"
18
19
namespace
MVAUtils
{
20
class
BDT
;
21
}
22
33
class
BDTVertexWeightCalculator
final
34
:
public
asg::AsgTool
,
35
virtual
public
Trk::IVertexWeightCalculator
{
36
ASG_TOOL_CLASS
(
BDTVertexWeightCalculator
, IVertexWeightCalculator)
37
public
:
38
BDTVertexWeightCalculator
(
const
std::string& name);
39
virtual
~BDTVertexWeightCalculator
()
override
;
40
virtual
StatusCode
initialize
()
override
;
45
virtual
double
estimateSignalCompatibility
(
46
const
xAOD::Vertex
& vertex)
const override
;
47
const
xAOD::Vertex
*
getVertex
(
const
xAOD::VertexContainer
& vertices)
const
;
48
49
private
:
50
SG::ReadHandleKey<xAOD::VertexContainer>
m_pointingVertexContainerKey
{
51
this
,
"PointingVertexContainerKey"
,
"PhotonPointingVertices"
,
52
"The container with the vertex build with (photon) pointing"
};
53
SG::ReadDecorHandleKey<xAOD::VertexContainer>
m_nphotons_good_key
{
54
this
,
"NGoodPhotonsKey"
,
m_pointingVertexContainerKey
,
"nphotons_good"
};
55
SG::ReadDecorHandleKey<xAOD::VertexContainer>
m_photons_px_key
{
56
this
,
"PhotonsPxKey"
,
m_pointingVertexContainerKey
,
"photons_px"
};
57
SG::ReadDecorHandleKey<xAOD::VertexContainer>
m_photons_py_key
{
58
this
,
"PhotonsPyKey"
,
m_pointingVertexContainerKey
,
"photons_py"
};
59
SG::ReadDecorHandleKey<xAOD::VertexContainer>
m_photons_pz_key
{
60
this
,
"PhotonsPzKey"
,
m_pointingVertexContainerKey
,
"photons_pz"
};
61
Gaudi::Property<std::string>
m_bdt_file
{
this
,
"BDTFile"
,
""
,
62
"BDT ROOT filename"
};
63
Gaudi::Property<std::string>
m_bdt_name
{
this
,
"BDTName"
,
"BDT"
,
64
"BDT tree name"
};
65
66
std::unique_ptr<MVAUtils::BDT>
m_bdt
;
67
68
std::vector<float>
get_input_values
(
const
xAOD::Vertex
& vertex)
const
;
69
StatusCode
initialize_BDT
();
70
};
71
72
#endif
// TRKVERTEXWEIGHTCALCULATORS_BDTVERTEXWEIGHTCALCULATOR_H
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IVertexWeightCalculator.h
PropertyWrapper.h
VertexContainer.h
BDTVertexWeightCalculator::m_photons_py_key
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_photons_py_key
Definition
BDTVertexWeightCalculator.h:57
BDTVertexWeightCalculator::~BDTVertexWeightCalculator
virtual ~BDTVertexWeightCalculator() override
BDTVertexWeightCalculator::getVertex
const xAOD::Vertex * getVertex(const xAOD::VertexContainer &vertices) const
Definition
BDTVertexWeightCalculator.cxx:125
BDTVertexWeightCalculator::m_photons_px_key
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_photons_px_key
Definition
BDTVertexWeightCalculator.h:55
BDTVertexWeightCalculator::m_pointingVertexContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pointingVertexContainerKey
Definition
BDTVertexWeightCalculator.h:50
BDTVertexWeightCalculator::BDTVertexWeightCalculator
BDTVertexWeightCalculator(const std::string &name)
Definition
BDTVertexWeightCalculator.cxx:21
BDTVertexWeightCalculator::m_nphotons_good_key
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_nphotons_good_key
Definition
BDTVertexWeightCalculator.h:53
BDTVertexWeightCalculator::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
BDTVertexWeightCalculator.cxx:26
BDTVertexWeightCalculator::initialize_BDT
StatusCode initialize_BDT()
Definition
BDTVertexWeightCalculator.cxx:40
BDTVertexWeightCalculator::m_bdt
std::unique_ptr< MVAUtils::BDT > m_bdt
Definition
BDTVertexWeightCalculator.h:66
BDTVertexWeightCalculator::get_input_values
std::vector< float > get_input_values(const xAOD::Vertex &vertex) const
Definition
BDTVertexWeightCalculator.cxx:71
BDTVertexWeightCalculator::m_bdt_file
Gaudi::Property< std::string > m_bdt_file
Definition
BDTVertexWeightCalculator.h:61
BDTVertexWeightCalculator::m_photons_pz_key
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_photons_pz_key
Definition
BDTVertexWeightCalculator.h:59
BDTVertexWeightCalculator::estimateSignalCompatibility
virtual double estimateSignalCompatibility(const xAOD::Vertex &vertex) const override
Estimate the compatibility of the vertex with a hard scatter vertex, with respect to pileup vertices.
Definition
BDTVertexWeightCalculator.cxx:114
BDTVertexWeightCalculator::m_bdt_name
Gaudi::Property< std::string > m_bdt_name
Definition
BDTVertexWeightCalculator.h:63
MVAUtils::BDT
Simplified Boosted Regression Tree, support TMVA, lgbm, and xgboost.
Definition
Reconstruction/MVAUtils/MVAUtils/BDT.h:35
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Trk::IVertexWeightCalculator
Definition
IVertexWeightCalculator.h:40
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
MVAUtils
Definition
InDetTrkInJetType.h:48
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0