ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
ElectronPhotonSelectorTools
ElectronPhotonSelectorTools
PhotonSingleBDTCalculator.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
26
27
#ifndef ELECTRONPHOTONSELECTORTOOLS_PHOTONSINGLEBDTCALCULATOR_H
28
#define ELECTRONPHOTONSELECTORTOOLS_PHOTONSINGLEBDTCALCULATOR_H
29
30
#include "
AsgTools/PropertyWrapper.h
"
31
#include "
AsgTools/AsgTool.h
"
32
#include <memory>
33
#include <string>
34
#include <vector>
35
36
namespace
MVAUtils
{
37
class
BDT;
38
}
39
40
class
TFile;
41
class
TTree;
42
43
namespace
PhotonIDBDT
{
44
45
class
PhotonSingleBDTCalculator
:
public
asg::AsgTool
{
46
ASG_TOOL_CLASS
(
PhotonSingleBDTCalculator
,
asg::IAsgTool
)
47
48
public
:
49
PhotonSingleBDTCalculator
(
const
std::string& name);
50
virtual
~PhotonSingleBDTCalculator
()
override
;
51
52
virtual
StatusCode
initialize
()
override
;
53
55
StatusCode
computeScore
(
const
std::vector<float>& vars,
float
& score)
const
;
56
57
private
:
58
StatusCode
loadBDT
();
59
60
Gaudi::Property<std::string>
m_modelFile
{
61
this
,
"ModelFile"
,
""
,
"ROOT file containing the BDT TTree"
62
};
63
64
Gaudi::Property<std::string>
m_bdtTreeName
{
65
this
,
"BDTTreeName"
,
"lgbm"
,
"Name of the TTree containing the BDT (e.g. lgbm)"
66
};
67
68
// Private members
69
std::unique_ptr<MVAUtils::BDT>
m_bdt
;
70
71
};
72
73
}
// namespace PhotonIDBDT
74
75
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
PropertyWrapper.h
PhotonIDBDT::PhotonSingleBDTCalculator::m_bdtTreeName
Gaudi::Property< std::string > m_bdtTreeName
Definition
PhotonSingleBDTCalculator.h:64
PhotonIDBDT::PhotonSingleBDTCalculator::loadBDT
StatusCode loadBDT()
Definition
PhotonSingleBDTCalculator.cxx:32
PhotonIDBDT::PhotonSingleBDTCalculator::m_modelFile
Gaudi::Property< std::string > m_modelFile
Definition
PhotonSingleBDTCalculator.h:60
PhotonIDBDT::PhotonSingleBDTCalculator::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
PhotonSingleBDTCalculator.cxx:27
PhotonIDBDT::PhotonSingleBDTCalculator::~PhotonSingleBDTCalculator
virtual ~PhotonSingleBDTCalculator() override
PhotonIDBDT::PhotonSingleBDTCalculator::computeScore
StatusCode computeScore(const std::vector< float > &vars, float &score) const
Evaluate the BDT score for a photon.
Definition
PhotonSingleBDTCalculator.cxx:65
PhotonIDBDT::PhotonSingleBDTCalculator::m_bdt
std::unique_ptr< MVAUtils::BDT > m_bdt
Definition
PhotonSingleBDTCalculator.h:69
PhotonIDBDT::PhotonSingleBDTCalculator::PhotonSingleBDTCalculator
PhotonSingleBDTCalculator(const std::string &name)
Definition
PhotonSingleBDTCalculator.cxx:22
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition
IAsgTool.h:41
MVAUtils
Definition
InDetTrkInJetType.h:48
PhotonIDBDT
Definition
AsgPhotonBDTSelector.h:55
Generated on
for ATLAS Offline Software by
1.17.0