ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauDiscriminantTool.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef DITAURECTOOLS_DITAUDISCRIMINANTTOOL_H
8#define DITAURECTOOLS_DITAUDISCRIMINANTTOOL_H
9
16
17// Framework include(s):
18#include "AsgTools/AsgTool.h"
20
21// Local include(s):
23#include "xAODTau/DiTauJet.h"
25
26#include <string>
27#include <map>
28#include <memory>
29
31{
32
35 , public asg::AsgTool
36{
40
41public:
42
43 DiTauDiscriminantTool( const std::string& name );
44
46
47 // initialize the tool
48 virtual StatusCode initialize() override;
49
50 // get ID score depricated
51 double getJetBDTScore(const xAOD::DiTauJet& xDiTau);
52
53 // calculate and decorate BDTJetScore
54 virtual StatusCode execute(const xAOD::DiTauJet& xDiTau) const override;
55
56private:
57
58 Gaudi::Property<std::string> m_sWeightsFile{this, "WeightsFile", "tauRecTools/R22_preprod/DiTau_JetBDT_winter2024.weights.root"};
59 Gaudi::Property<std::string> m_sBDTScoreName{this, "BDTScoreName", "JetBDT"};
60
61 StatusCode parseWeightsFile();
62
63 std::map<TString, float> setIDVariables(const xAOD::DiTauJet& xDiTau) const;
64
65 std::unique_ptr<tauRecTools::BDTHelper> m_mvaBDT = nullptr;
66
67 std::vector<std::string> m_vVarNames;
68
69}; // class DiTauDiscriminantTool
70
71}
72#endif // DITAURECTOOLS_DITAUDISCRIMINANTTOOL_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
virtual StatusCode execute(const xAOD::DiTauJet &xDiTau) const override
Declare the interface that the class provides.
Gaudi::Property< std::string > m_sBDTScoreName
virtual ASG_TOOL_CLASS(DiTauDiscriminantTool, DiTauRecTools::IDiTauToolBase) public ~DiTauDiscriminantTool()
Create a proper constructor for Athena.
Gaudi::Property< std::string > m_sWeightsFile
std::unique_ptr< tauRecTools::BDTHelper > m_mvaBDT
double getJetBDTScore(const xAOD::DiTauJet &xDiTau)
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
std::map< TString, float > setIDVariables(const xAOD::DiTauJet &xDiTau) const
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Implementation of boosted di-tau ID.
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17