ATLAS Offline Software
Tool_TauConstituentSelector.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_TAUCONSTITUENTSELECTOR
6 #define PANTAUALGS_TOOL_TAUCONSTITUENTSELECTOR
7 
8 #include <map>
9 #include <vector>
10 #include <string>
11 
13 #include "AsgTools/AsgTool.h"
14 #include "AsgTools/ToolHandle.h"
16 
20 
21 namespace PanTau {
22 
24 
26 
27  public:
28 
29  Tool_TauConstituentSelector(const std::string &name);
31 
32  virtual StatusCode initialize();
33 
34  virtual StatusCode SelectTauConstituents(const std::vector<TauConstituent*>& inputList,
35  std::vector<TauConstituent*>& outputList) const;
36 
37 
38  protected:
39 
40  virtual bool passesSelection_NeutralConstituent(TauConstituent* tauConstituent) const;
41 
42  virtual double getEtCut(double eta, PanTau::TauConstituent::Type constituentType) const;
43 
44 
45  //member variables
46  ToolHandle<PanTau::ITool_InformationStore> m_Tool_InformationStore{this, "Tool_InformationStore", "PanTau::Tool_InformationStore/Tool_InformationStore","Link to tool with all information"};
47  Gaudi::Property<std::string> m_Tool_InformationStoreName{this, "Tool_InformationStoreName", "", "Link to tool with all information"};
48 
49  double m_MaxEta = 0.0;
50  std::vector<double> m_BinEdges_Eta;
52 
53  bool m_init=false;
54 
55  public:
56  inline bool isInitialized(){return m_init;}
57 
58  }; //end class ConstituentGetter
59 
60 
61 }//end namespace PanTau
62 
63 #endif // PANTAUALGS_TOOL_TAUCONSTITUENTSELECTOR
PanTau::Tool_TauConstituentSelector::m_Tool_InformationStore
ToolHandle< PanTau::ITool_InformationStore > m_Tool_InformationStore
Definition: Tool_TauConstituentSelector.h:46
PanTau::Tool_TauConstituentSelector::isInitialized
bool isInitialized()
Definition: Tool_TauConstituentSelector.h:56
PanTau::Tool_TauConstituentSelector::m_Selection_Neutral_EtaBinned_EtCut
std::vector< double > m_Selection_Neutral_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:51
PanTau::Tool_TauConstituentSelector::m_BinEdges_Eta
std::vector< double > m_BinEdges_Eta
Definition: Tool_TauConstituentSelector.h:50
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
PropertyWrapper.h
PanTau::TauConstituent::Type
Type
Type enumeration to specify type of this tau constituent.
Definition: TauConstituent.h:42
PanTau::Tool_TauConstituentSelector::getEtCut
virtual double getEtCut(double eta, PanTau::TauConstituent::Type constituentType) const
Definition: Tool_TauConstituentSelector.cxx:40
PanTau::Tool_TauConstituentSelector::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: Tool_TauConstituentSelector.cxx:20
PanTau::Tool_TauConstituentSelector::m_MaxEta
double m_MaxEta
Definition: Tool_TauConstituentSelector.h:49
PanTau::Tool_TauConstituentSelector::~Tool_TauConstituentSelector
virtual ~Tool_TauConstituentSelector()
PanTau::ITool_TauConstituentSelector
Interface for Tool_TauConstituentSelector.
Definition: ITool_TauConstituentSelector.h:22
PanTau::Tool_TauConstituentSelector
Definition: Tool_TauConstituentSelector.h:23
PanTau::Tool_TauConstituentSelector::m_Tool_InformationStoreName
Gaudi::Property< std::string > m_Tool_InformationStoreName
Definition: Tool_TauConstituentSelector.h:47
TauConstituent.h
PanTau::Tool_TauConstituentSelector::passesSelection_NeutralConstituent
virtual bool passesSelection_NeutralConstituent(TauConstituent *tauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:106
ITool_InformationStore.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITool_TauConstituentSelector.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
PanTau
xAOD EDM
Definition: Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/HelperFunctions.h:18
PanTau::Tool_TauConstituentSelector::m_init
bool m_init
Definition: Tool_TauConstituentSelector.h:53
PanTau::Tool_TauConstituentSelector::Tool_TauConstituentSelector
Tool_TauConstituentSelector(const std::string &name)
Definition: Tool_TauConstituentSelector.cxx:11
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition: AsgToolMacros.h:75
run_AODTCCLinking.inputList
list inputList
Definition: run_AODTCCLinking.py:93
PanTau::Tool_TauConstituentSelector::SelectTauConstituents
virtual StatusCode SelectTauConstituents(const std::vector< TauConstituent * > &inputList, std::vector< TauConstituent * > &outputList) const
Function to further select PFOs of the various categories (basically apply additional ET cuts):
Definition: Tool_TauConstituentSelector.cxx:61
PanTau::TauConstituent
Definition: TauConstituent.h:25
ToolHandle.h
AsgTool.h