ATLAS Offline Software
MvaTESEvaluator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TAURECTOOLS_MVATESEVALUATOR_H
6 #define TAURECTOOLS_MVATESEVALUATOR_H
7 
8 // tauRecTools include(s)
10 #include "tauRecTools/BDTHelper.h"
11 
12 #include <map>
13 
15 : public TauRecToolBase
16 {
17  public:
19 
20  MvaTESEvaluator(const std::string& name="MvaTESEvaluator");
21  virtual ~MvaTESEvaluator() = default;
22 
23  virtual StatusCode initialize() override;
24  virtual StatusCode execute(xAOD::TauJet& xTau) const override;
25 
26  private:
27  // MVA input variables (provide all variables in float)
29  {
30  float mu{0.0};
31  float nVtxPU{0.0};
32  float rho{0.0};
33 
34  float center_lambda{0.0};
35  float first_eng_dens{0.0};
36  float second_lambda{0.0};
37  float presampler_frac{0.0};
38  float eprobability{0.0};
39 
40  float ptEM_D_ptLC{0.0};
41  float ptCombined{0.0};
42  float ptLC_D_ptCombined{0.0};
44  float etaConstituent{0.0};
45 
49  float nTracks{0.0};
50  float PFOEngRelDiff{0.0};
51 
52  // for 0p
53  float centFrac{0.0};
54  float logPtCombined{0.0};
55  float ptSeed_D_ptCombined{0.0};
56 
57  // for online calibration
58  float logPtDetectorAxis{0.0};
59  float etaDetectorAxis{0.0};
60  float upsilon_cluster{0.0};
61  float lead_cluster_frac{0.0};
62  float second_cluster_frac{0.0};
63  float third_cluster_frac{0.0};
65  };
66 
67  std::unique_ptr<tauRecTools::BDTHelper> m_bdtHelper;
68  std::unique_ptr<tauRecTools::BDTHelper> m_bdtHelper0p;
69 
70  // Configurable properties
71  std::string m_sWeightFileName;
72  std::string m_sWeightFileName0p;
73 
74 };
75 
76 #endif // TAURECTOOLS_MVATESEVALUATOR_H
MvaTESEvaluator::MvaInputVariables::first_eng_dens
float first_eng_dens
Definition: MvaTESEvaluator.h:35
MvaTESEvaluator::MvaInputVariables::second_lambda
float second_lambda
Definition: MvaTESEvaluator.h:36
MvaTESEvaluator::MvaInputVariables::etaDetectorAxis
float etaDetectorAxis
Definition: MvaTESEvaluator.h:59
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition: AsgToolMacros.h:77
BDTHelper.h
MvaTESEvaluator::m_bdtHelper
std::unique_ptr< tauRecTools::BDTHelper > m_bdtHelper
Definition: MvaTESEvaluator.h:67
MvaTESEvaluator::MvaInputVariables::upsilon_cluster
float upsilon_cluster
Definition: MvaTESEvaluator.h:60
MvaTESEvaluator::MvaInputVariables::mu
float mu
Definition: MvaTESEvaluator.h:30
TauRecToolBase.h
MvaTESEvaluator::m_bdtHelper0p
std::unique_ptr< tauRecTools::BDTHelper > m_bdtHelper0p
Definition: MvaTESEvaluator.h:68
MvaTESEvaluator::MvaInputVariables::PanTauBDT_3p0n_vs_3pXn
float PanTauBDT_3p0n_vs_3pXn
Definition: MvaTESEvaluator.h:48
TauRecToolBase
The base class for all tau tools.
Definition: TauRecToolBase.h:21
MvaTESEvaluator::MvaInputVariables::third_cluster_frac
float third_cluster_frac
Definition: MvaTESEvaluator.h:63
MvaTESEvaluator::MvaInputVariables::ptDetectorAxis_D_ptJetSeed
float ptDetectorAxis_D_ptJetSeed
Definition: MvaTESEvaluator.h:64
MvaTESEvaluator::MvaInputVariables::eprobability
float eprobability
Definition: MvaTESEvaluator.h:38
MvaTESEvaluator::MvaInputVariables::ptLC_D_ptCombined
float ptLC_D_ptCombined
Definition: MvaTESEvaluator.h:42
MvaTESEvaluator::MvaInputVariables::etaConstituent
float etaConstituent
Definition: MvaTESEvaluator.h:44
MvaTESEvaluator::MvaInputVariables
Definition: MvaTESEvaluator.h:29
MvaTESEvaluator::MvaInputVariables::logPtDetectorAxis
float logPtDetectorAxis
Definition: MvaTESEvaluator.h:58
MvaTESEvaluator::MvaTESEvaluator
MvaTESEvaluator(const std::string &name="MvaTESEvaluator")
Definition: MvaTESEvaluator.cxx:10
MvaTESEvaluator::MvaInputVariables::ptConstituent_D_ptCombined
float ptConstituent_D_ptCombined
Definition: MvaTESEvaluator.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MvaTESEvaluator::MvaInputVariables::second_cluster_frac
float second_cluster_frac
Definition: MvaTESEvaluator.h:62
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
MvaTESEvaluator::m_sWeightFileName
std::string m_sWeightFileName
Definition: MvaTESEvaluator.h:71
MvaTESEvaluator::MvaInputVariables::nVtxPU
float nVtxPU
Definition: MvaTESEvaluator.h:31
MvaTESEvaluator::MvaInputVariables::PanTauBDT_1p0n_vs_1p1n
float PanTauBDT_1p0n_vs_1p1n
Definition: MvaTESEvaluator.h:46
MvaTESEvaluator::MvaInputVariables::lead_cluster_frac
float lead_cluster_frac
Definition: MvaTESEvaluator.h:61
MvaTESEvaluator::MvaInputVariables::ptCombined
float ptCombined
Definition: MvaTESEvaluator.h:41
MvaTESEvaluator::MvaInputVariables::PFOEngRelDiff
float PFOEngRelDiff
Definition: MvaTESEvaluator.h:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MvaTESEvaluator::MvaInputVariables::presampler_frac
float presampler_frac
Definition: MvaTESEvaluator.h:37
MvaTESEvaluator::execute
virtual StatusCode execute(xAOD::TauJet &xTau) const override
Execute - called for each tau candidate.
Definition: MvaTESEvaluator.cxx:33
MvaTESEvaluator::initialize
virtual StatusCode initialize() override
Tool initializer.
Definition: MvaTESEvaluator.cxx:17
MvaTESEvaluator::MvaInputVariables::centFrac
float centFrac
Definition: MvaTESEvaluator.h:53
ITauToolBase
The base class for all tau tools.
Definition: ITauToolBase.h:30
MvaTESEvaluator::MvaInputVariables::logPtCombined
float logPtCombined
Definition: MvaTESEvaluator.h:54
MvaTESEvaluator::~MvaTESEvaluator
virtual ~MvaTESEvaluator()=default
MvaTESEvaluator::MvaInputVariables::PanTauBDT_1p1n_vs_1pXn
float PanTauBDT_1p1n_vs_1pXn
Definition: MvaTESEvaluator.h:47
MvaTESEvaluator
Definition: MvaTESEvaluator.h:16
MvaTESEvaluator::MvaInputVariables::ptSeed_D_ptCombined
float ptSeed_D_ptCombined
Definition: MvaTESEvaluator.h:55
MvaTESEvaluator::MvaInputVariables::center_lambda
float center_lambda
Definition: MvaTESEvaluator.h:34
MvaTESEvaluator::MvaInputVariables::ptEM_D_ptLC
float ptEM_D_ptLC
Definition: MvaTESEvaluator.h:40
MvaTESEvaluator::MvaInputVariables::nTracks
float nTracks
Definition: MvaTESEvaluator.h:49
MvaTESEvaluator::m_sWeightFileName0p
std::string m_sWeightFileName0p
Definition: MvaTESEvaluator.h:72
MvaTESEvaluator::MvaInputVariables::rho
float rho
Definition: MvaTESEvaluator.h:32