ATLAS Offline Software
Loading...
Searching...
No Matches
Tool_ModeDiscriminator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef PANTAUALGS_TOOL_MODEDISCRIMINATOR_H
6#define PANTAUALGS_TOOL_MODEDISCRIMINATOR_H
7
9#include "AsgTools/AsgTool.h"
10#include "AsgTools/ToolHandle.h"
12
17
19#include <vector>
20#include <string>
21
22#include "MVAUtils/BDT.h"
23
24namespace PanTau {
25 class PanTauSeed;
26}
27
28
29
30namespace PanTau {
31
38
40
41 public:
42
43 Tool_ModeDiscriminator(const std::string& name);
45
46 virtual StatusCode initialize();
47
48 virtual double getResponse(PanTau::PanTauSeed* inSeed, bool& isOK) const;
49
50 private:
51
52 void updateReaderVariables(PanTau::PanTauSeed* inSeed, std::vector<float>& list_BDTVariableValues) const;
53
54 ToolHandle<PanTau::ITool_InformationStore> m_Tool_InformationStore{this, "Tool_InformationStore", "PanTau::Tool_InformationStore/Tool_InformationStore", "Handle to the information store tool"};
55 Gaudi::Property<std::string> m_calib_path{this, "calibFolder", "", "Location of calib files in cvmfs"};
56 Gaudi::Property<std::string> m_Name_ModeCase{this, "Name_ModeCase", "InvalidModeCase", "Name of the two modes to be distinguished for this instance"};
57 Gaudi::Property<std::string> m_Tool_InformationStoreName{this, "Tool_InformationStoreName", "PanTau::Tool_InformationStore/Tool_InformationStore", "Handle to the information store tool"};
58
60 std::vector<std::unique_ptr<MVAUtils::BDT> > m_MVABDT_List;
61
62 std::vector<double> m_BinEdges_Pt;
63 std::string m_MethodName;
64 std::vector<std::string> m_List_BDTVariableNames;
66
67 bool m_init=false;
68
69 public:
70 inline bool isInitialized(){return m_init;}
71
72 };
73} // end of namespace PanTau
74#endif // PANTAUALGS_TOOL_MODEDISCRIMINATOR_H
#define ASG_TOOL_CLASS1
Interface for PID from tau seeds.
PanTau::HelperFunctions m_HelperFunctions
std::vector< std::unique_ptr< MVAUtils::BDT > > m_MVABDT_List
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
ToolHandle< PanTau::ITool_InformationStore > m_Tool_InformationStore
std::vector< double > m_List_BDTVariableDefaultValues
Gaudi::Property< std::string > m_Name_ModeCase
Gaudi::Property< std::string > m_calib_path
Tool_ModeDiscriminator(const std::string &name)
void updateReaderVariables(PanTau::PanTauSeed *inSeed, std::vector< float > &list_BDTVariableValues) const
Gaudi::Property< std::string > m_Tool_InformationStoreName
std::vector< std::string > m_List_BDTVariableNames
virtual double getResponse(PanTau::PanTauSeed *inSeed, bool &isOK) const
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47