ATLAS Offline Software
TruthDressingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DERIVATIONFRAMEWORK_TRUTHDRESSINGTOOL_H
6 #define DERIVATIONFRAMEWORK_TRUTHDRESSINGTOOL_H
7 
8 #include <string>
9 
14 #include "Gaudi/Property.h"
15 #include "GaudiKernel/ToolHandle.h"
19 
20 namespace DerivationFramework {
21 
23  public:
24  TruthDressingTool(const std::string& t, const std::string& n, const IInterface* p);
27  virtual StatusCode addBranches() const;
28 
29  private:
32  {this, "particlesKey", "TruthParticles", "ReadHandleKey for TruthParticles for photon list input"};
35  {this, "dressParticlesKey", "TruthParticles", "ReadHandleKey for input particles to be dressed. If taus are selected, everything in this input key will be used"};
37  SG::ReadDecorHandleKey<xAOD::TruthParticleContainer> m_truthClassKey{this, "truthClassifierKey", "", "Will be over written during initialize"};
40  {this, "e_dressed", "TruthParticles.e_dressed", "e_dressed decoration"};
42  {this, "pt_dressed", "TruthParticles.pt_dressed", "pt_dressed decoration"};
44  {this, "eta_dressed", "TruthParticles.eta_dressed", "eta_dressed decoration"};
46  {this, "phi_dressed", "TruthParticles.phi_dressed", "phi_dressed decoration"};
48  {this, "pt_vis_dressed", "TruthParticles.pt_vis_dressed", "pt_vis_dressed decoration"};
50  {this, "eta_vis_dressed", "TruthParticles.eta_vis_dressed", "eta_vis_dressed decoration"};
52  {this, "phi_vis_dressed", "TruthParticles.phi_vis_dressed", "phi_vis_dressed decoration"};
54  {this, "m_vis_dressed", "TruthParticles.m_vis_dressed", "m_vis_dressed decoration"};
56  {this, "nPhotons_dressed", "TruthParticles.nPhotons_dressed", "nPhotons_dressed decoration"};
58  {this, "DressingKey", "TruthParticles.dressedPhoton", "Dressed photon decoration"};
59 
61  Gaudi::Property<bool> m_usePhotonsFromHadrons
62  {this, "usePhotonsFromHadrons", false, "Add photons coming from hadron decays while dressing"};
64  Gaudi::Property<bool> m_useLeptonsFromHadrons
65  {this, "useLeptonsFromHadrons", false, "Consider leptons coming from hadron decays?"};
67  Gaudi::Property<float> m_coneSize
68  {this, "dressingConeSize", 0.1, "Size of dR cone in which to include FSR photons in dressing"};
70  Gaudi::Property< std::vector<int> > m_listOfPIDs
71  {this, "particleIDsToDress", {11,13}, "List of the pdgID's of particles to be dressed (usually 11,13). Special treatment for taus (15)"};
73  Gaudi::Property<bool> m_useAntiKt
74  {this, "useAntiKt", false, "use anti-k_T instead of fixed-cone dressing"};
76  Gaudi::Property<std::string> m_decorationName
77  {this, "decorationName", "", "Name of the decoration for photons that were used in dressing"};
78  };
79 }
80 
81 #endif // DERIVATIONFRAMEWORK_TRUTHDRESSINGTool_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DerivationFramework::TruthDressingTool::initialize
StatusCode initialize()
Definition: TruthDressingTool.cxx:42
DerivationFramework::TruthDressingTool::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
ReadHandleKey input collection key.
Definition: TruthDressingTool.h:32
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::TruthDressingTool::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: TruthDressingTool.cxx:74
IAugmentationTool.h
DerivationFramework::TruthDressingTool::m_useLeptonsFromHadrons
Gaudi::Property< bool > m_useLeptonsFromHadrons
Parameter: Use leptons from hadron decays?
Definition: TruthDressingTool.h:65
TruthParticleContainer.h
DerivationFramework::TruthDressingTool::m_listOfPIDs
Gaudi::Property< std::vector< int > > m_listOfPIDs
Parameter: List of pdgIDs of particles to dress.
Definition: TruthDressingTool.h:71
DerivationFramework::TruthDressingTool::m_decorator_nphotonKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_nphotonKey
Definition: TruthDressingTool.h:56
DerivationFramework::TruthDressingTool::m_dressParticlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_dressParticlesKey
ReadHandleKey for particles to be dressed.
Definition: TruthDressingTool.h:35
DerivationFramework::TruthDressingTool::m_coneSize
Gaudi::Property< float > m_coneSize
Parameter: Cone size for dressing.
Definition: TruthDressingTool.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::TruthDressingTool::m_decorationName
Gaudi::Property< std::string > m_decorationName
Parameter: Name of the decoration to apply.
Definition: TruthDressingTool.h:77
DerivationFramework::TruthDressingTool::m_decorator_m_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_m_visKey
Definition: TruthDressingTool.h:54
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
DerivationFramework::TruthDressingTool::m_usePhotonsFromHadrons
Gaudi::Property< bool > m_usePhotonsFromHadrons
Parameter: Use photons from hadron decays?
Definition: TruthDressingTool.h:62
DerivationFramework::TruthDressingTool::m_decorator_phi_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_phi_visKey
Definition: TruthDressingTool.h:52
DerivationFramework::TruthDressingTool::m_decorator_phiKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_phiKey
Definition: TruthDressingTool.h:46
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::TruthDressingTool::m_truthClassKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthClassKey
Ensure that the algorithm is scheduled after the truth classifier.
Definition: TruthDressingTool.h:37
DerivationFramework::TruthDressingTool::m_useAntiKt
Gaudi::Property< bool > m_useAntiKt
Parameter: Use antikT algorithm for dressing?
Definition: TruthDressingTool.h:74
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthDressingTool::TruthDressingTool
TruthDressingTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthDressingTool.cxx:29
DerivationFramework::TruthDressingTool::m_decorator_eta_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_eta_visKey
Definition: TruthDressingTool.h:50
DerivationFramework::TruthDressingTool::m_decorator_etaKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_etaKey
Definition: TruthDressingTool.h:44
DecayGraphHelper.h
DerivationFramework::TruthDressingTool::m_decorationKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorationKey
Definition: TruthDressingTool.h:58
DerivationFramework::TruthDressingTool
Definition: TruthDressingTool.h:22
DerivationFramework::TruthDressingTool::m_decorator_ptKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_ptKey
Definition: TruthDressingTool.h:42
DerivationFramework::TruthDressingTool::m_decorator_eKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_eKey
WriteDecorHandleKeys for decorations.
Definition: TruthDressingTool.h:40
DerivationFramework::TruthDressingTool::~TruthDressingTool
~TruthDressingTool()
Definition: TruthDressingTool.cxx:38
DerivationFramework::TruthDressingTool::m_decorator_pt_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_pt_visKey
Definition: TruthDressingTool.h:48
AthAlgTool
Definition: AthAlgTool.h:26
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer >