ATLAS Offline Software
TauPi0ScoreCalculator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TAURECTOOLS_TAUPI0SCORECALCULATOR_H
6 #define TAURECTOOLS_TAUPI0SCORECALCULATOR_H
7 
10 
11 #include "xAODPFlow/PFO.h"
12 
13 #include <string>
14 
25 
26 public:
27 
29 
30  TauPi0ScoreCalculator(const std::string& name);
31  virtual ~TauPi0ScoreCalculator() = default;
32 
33  virtual StatusCode initialize() override;
34  virtual StatusCode executePi0nPFO(xAOD::TauJet& pTau, xAOD::PFOContainer& pNeutralPFOContainer) const override;
35 
36 private:
37 
39  float calculateScore(const xAOD::PFO* neutralPFO) const;
40 
41  std::string m_weightfile = "";
42  std::unique_ptr<tauRecTools::BDTHelper> m_mvaBDT = nullptr;
43 };
44 
45 #endif // TAURECTOOLS_TAUPI0SCORECALCULATOR_H
46 
TauPi0ScoreCalculator::m_mvaBDT
std::unique_ptr< tauRecTools::BDTHelper > m_mvaBDT
Definition: TauPi0ScoreCalculator.h:42
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition: AsgToolMacros.h:77
BDTHelper.h
TauRecToolBase.h
TauRecToolBase
The base class for all tau tools.
Definition: TauRecToolBase.h:21
TauPi0ScoreCalculator::m_weightfile
std::string m_weightfile
Definition: TauPi0ScoreCalculator.h:41
PFO.h
TauPi0ScoreCalculator
Selectes pi0Candidates (Pi0 Finder).
Definition: TauPi0ScoreCalculator.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
TauPi0ScoreCalculator::calculateScore
float calculateScore(const xAOD::PFO *neutralPFO) const
Calculate pi0 BDT score.
Definition: TauPi0ScoreCalculator.cxx:47
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
xAOD::PFO_v1
Class describing a particle flow object.
Definition: PFO_v1.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TauPi0ScoreCalculator::initialize
virtual StatusCode initialize() override
Tool initializer.
Definition: TauPi0ScoreCalculator.cxx:18
ITauToolBase
The base class for all tau tools.
Definition: ITauToolBase.h:30
TauPi0ScoreCalculator::TauPi0ScoreCalculator
TauPi0ScoreCalculator(const std::string &name)
Definition: TauPi0ScoreCalculator.cxx:11
TauPi0ScoreCalculator::~TauPi0ScoreCalculator
virtual ~TauPi0ScoreCalculator()=default
TauPi0ScoreCalculator::executePi0nPFO
virtual StatusCode executePi0nPFO(xAOD::TauJet &pTau, xAOD::PFOContainer &pNeutralPFOContainer) const override
Definition: TauPi0ScoreCalculator.cxx:29