ATLAS Offline Software
Tool_TauConstituentSelector.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 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"
15 
19 
20 namespace PanTau {
21 
23 
25 
26  public:
27 
28  Tool_TauConstituentSelector(const std::string &name);
30 
31  virtual StatusCode initialize();
32 
33  virtual StatusCode SelectTauConstituents(const std::vector<TauConstituent*>& inputList,
34  std::vector<TauConstituent*>& outputList) const;
35 
36 
37  protected:
38 
39  virtual bool passesSelection_NeutralConstituent(TauConstituent* tauConstituent) const;
40  virtual bool passesSelection_Pi0NeutConstituent(TauConstituent* tauConstituent) const;
41  virtual bool passesSelection_ChargedConstituent(TauConstituent* tauConstituent) const;
46 
47  virtual double getEtCut(double eta, PanTau::TauConstituent::Type constituentType) const;
48 
49 
50  //member variables
51  ToolHandle<PanTau::ITool_InformationStore> m_Tool_InformationStore;
53 
54  double m_MaxEta = 0.0;
55  std::vector<double> m_BinEdges_Eta;
63 
64  bool m_init=false;
65 
66  public:
67  inline bool isInitialized(){return m_init;}
68 
69  }; //end class ConstituentGetter
70 
71 
72 }//end namespace PanTau
73 
74 #endif // PANTAUALGS_TOOL_TAUCONSTITUENTSELECTOR
PanTau::Tool_TauConstituentSelector::passesSelection_OutChrgConstituent
virtual bool passesSelection_OutChrgConstituent(TauConstituent *TauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:179
PanTau::Tool_TauConstituentSelector::m_Tool_InformationStore
ToolHandle< PanTau::ITool_InformationStore > m_Tool_InformationStore
Definition: Tool_TauConstituentSelector.h:51
PanTau::Tool_TauConstituentSelector::isInitialized
bool isInitialized()
Definition: Tool_TauConstituentSelector.h:67
PanTau::Tool_TauConstituentSelector::m_Selection_Neutral_EtaBinned_EtCut
std::vector< double > m_Selection_Neutral_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:56
PanTau::Tool_TauConstituentSelector::m_BinEdges_Eta
std::vector< double > m_BinEdges_Eta
Definition: Tool_TauConstituentSelector.h:55
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
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:53
PanTau::Tool_TauConstituentSelector::m_Selection_NeutLowA_EtaBinned_EtCut
std::vector< double > m_Selection_NeutLowA_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:61
PanTau::Tool_TauConstituentSelector::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: Tool_TauConstituentSelector.cxx:23
PanTau::Tool_TauConstituentSelector::m_MaxEta
double m_MaxEta
Definition: Tool_TauConstituentSelector.h:54
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:22
TauConstituent.h
PanTau::Tool_TauConstituentSelector::passesSelection_NeutralConstituent
virtual bool passesSelection_NeutralConstituent(TauConstituent *tauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:140
ITool_InformationStore.h
PanTau::Tool_TauConstituentSelector::m_Selection_NeutLowB_EtaBinned_EtCut
std::vector< double > m_Selection_NeutLowB_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:62
PanTau::Tool_TauConstituentSelector::passesSelection_OutNeutConstituent
virtual bool passesSelection_OutNeutConstituent(TauConstituent *TauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:171
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITool_TauConstituentSelector.h
PanTau::Tool_TauConstituentSelector::passesSelection_NeutLowBConstituent
virtual bool passesSelection_NeutLowBConstituent(TauConstituent *TauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:192
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PanTau
xAOD EDM
Definition: Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/HelperFunctions.h:18
PanTau::Tool_TauConstituentSelector::m_init
bool m_init
Definition: Tool_TauConstituentSelector.h:64
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:80
PanTau::Tool_TauConstituentSelector::passesSelection_NeutLowAConstituent
virtual bool passesSelection_NeutLowAConstituent(TauConstituent *TauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:185
PanTau::Tool_TauConstituentSelector::m_Selection_OutChrg_EtaBinned_EtCut
std::vector< double > m_Selection_OutChrg_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:60
PanTau::TauConstituent
Definition: TauConstituent.h:25
PanTau::Tool_TauConstituentSelector::passesSelection_Pi0NeutConstituent
virtual bool passesSelection_Pi0NeutConstituent(TauConstituent *tauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:153
PanTau::Tool_TauConstituentSelector::passesSelection_ChargedConstituent
virtual bool passesSelection_ChargedConstituent(TauConstituent *tauConstituent) const
Definition: Tool_TauConstituentSelector.cxx:165
ToolHandle.h
AsgTool.h
PanTau::Tool_TauConstituentSelector::m_Tool_InformationStoreName
std::string m_Tool_InformationStoreName
Definition: Tool_TauConstituentSelector.h:52
PanTau::Tool_TauConstituentSelector::m_Selection_OutNeut_EtaBinned_EtCut
std::vector< double > m_Selection_OutNeut_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:59
PanTau::Tool_TauConstituentSelector::m_Selection_Charged_EtaBinned_EtCut
std::vector< double > m_Selection_Charged_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:58
PanTau::Tool_TauConstituentSelector::m_Selection_Pi0Neut_EtaBinned_EtCut
std::vector< double > m_Selection_Pi0Neut_EtaBinned_EtCut
Definition: Tool_TauConstituentSelector.h:57