ATLAS Offline Software
Tool_InputConverter.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_INPUTCONVERTER_H
6 #define PANTAUALGS_TOOL_INPUTCONVERTER_H
7 
8 #include <map>
9 #include <vector>
10 #include <string>
11 
12 #include "AsgTools/AsgTool.h"
13 #include "AsgTools/ToolHandle.h"
14 
17 
18 #include "xAODPFlow/PFO.h"
19 #include "xAODTau/TauJet.h"
20 #include "xAODPFlow/PFODefs.h"
21 
22 namespace Rec {
23  class TrackParticle;
24 }
25 
26 namespace PanTau {
27  class TauConstituent;
28 }
29 
30 
31 namespace PanTau {
32 
34 
36 
37  public:
38 
39  Tool_InputConverter(const std::string &name);
41 
42  virtual StatusCode initialize();
43 
44  virtual StatusCode ConvertToTauConstituent(const xAOD::PFO* pfo,
45  PanTau::TauConstituent* &tauConstituent,
46  const xAOD::TauJet* tauJet) const;
47 
48  protected:
49 
50  //member variables
51  ToolHandle<PanTau::ITool_InformationStore> m_Tool_InformationStore;
52  std::string m_Tool_InformationStoreName;//optional
53 
54  virtual bool passesPreselectionEnergy(double energy) const;
55 
58 
61 
62  std::vector<double> m_Config_CellBased_BinEdges_Eta;
65 
66  bool m_init=false;
67  public:
68  inline bool isInitialized(){return m_init;}
69 
70  }; //end class Tool_InputConverter
71 
72 
73 } //end namespace PanTau
74 
75 
76 #endif // PANTAUALGS_TOOL_INPUTCONVERTER_H
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
PanTau::Tool_InputConverter::m_init
bool m_init
Definition: Tool_InputConverter.h:66
PanTau::Tool_InputConverter::isInitialized
bool isInitialized()
Definition: Tool_InputConverter.h:68
PanTau::Tool_InputConverter::passesPreselectionEnergy
virtual bool passesPreselectionEnergy(double energy) const
Definition: Tool_InputConverter.cxx:46
PanTau::Tool_InputConverter::m_Tool_InformationStore
ToolHandle< PanTau::ITool_InformationStore > m_Tool_InformationStore
Definition: Tool_InputConverter.h:51
PanTau::Tool_InputConverter
Definition: Tool_InputConverter.h:33
PanTau::ITool_InputConverter
Interface for Tool_InputConverter.
Definition: ITool_InputConverter.h:27
PanTau::Tool_InputConverter::m_Config_UsePionMass
int m_Config_UsePionMass
Definition: Tool_InputConverter.h:56
PanTau::Tool_InputConverter::m_Config_CellBased_EtaBinned_Pi0MVACut_1prong
std::vector< double > m_Config_CellBased_EtaBinned_Pi0MVACut_1prong
Definition: Tool_InputConverter.h:63
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
PFO.h
PanTau::Tool_InputConverter::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: Tool_InputConverter.cxx:25
ITool_InformationStore.h
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
Rec
Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
Definition: FakeTrackBuilder.h:10
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PanTau::Tool_InputConverter::m_Config_TauConstituents_PreselectionMinEnergy
double m_Config_TauConstituents_PreselectionMinEnergy
Definition: Tool_InputConverter.h:60
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
PanTau::Tool_InputConverter::m_Config_CellBased_BinEdges_Eta
std::vector< double > m_Config_CellBased_BinEdges_Eta
Definition: Tool_InputConverter.h:62
PanTau::Tool_InputConverter::ConvertToTauConstituent
virtual StatusCode ConvertToTauConstituent(const xAOD::PFO *pfo, PanTau::TauConstituent *&tauConstituent, const xAOD::TauJet *tauJet) const
Definition: Tool_InputConverter.cxx:52
PanTau::Tool_InputConverter::~Tool_InputConverter
virtual ~Tool_InputConverter()
PanTau::Tool_InputConverter::m_Tool_InformationStoreName
std::string m_Tool_InformationStoreName
Definition: Tool_InputConverter.h:52
PanTau::Tool_InputConverter::m_Config_TauConstituents_UseShrinkingCone
int m_Config_TauConstituents_UseShrinkingCone
Definition: Tool_InputConverter.h:57
ITool_InputConverter.h
xAOD::PFO_v1
Class describing a particle flow object.
Definition: PFO_v1.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PanTau::Tool_InputConverter::m_Config_TauConstituents_Types_DeltaRCore
double m_Config_TauConstituents_Types_DeltaRCore
Definition: Tool_InputConverter.h:59
PanTau::Tool_InputConverter::m_Config_CellBased_EtaBinned_Pi0MVACut_3prong
std::vector< double > m_Config_CellBased_EtaBinned_Pi0MVACut_3prong
Definition: Tool_InputConverter.h:64
PanTau
xAOD EDM
Definition: Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/HelperFunctions.h:18
TauJet.h
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition: AsgToolMacros.h:75
PFODefs.h
PanTau::TauConstituent
Definition: TauConstituent.h:25
ToolHandle.h
AsgTool.h
PanTau::Tool_InputConverter::Tool_InputConverter
Tool_InputConverter(const std::string &name)
Definition: Tool_InputConverter.cxx:15