ATLAS Offline Software
Loading...
Searching...
No Matches
TruthDressingTool.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 DERIVATIONFRAMEWORK_TRUTHDRESSINGTOOL_H
6#define DERIVATIONFRAMEWORK_TRUTHDRESSINGTOOL_H
7
8#include <string>
9
14#include "Gaudi/Property.h"
15#include "GaudiKernel/ToolHandle.h"
19
20namespace DerivationFramework {
21
22 class TruthDressingTool : public extends<AthAlgTool, IAugmentationTool> {
23 public:
24
25 using base_class::base_class;
26
27 virtual StatusCode initialize() override final;
28 virtual StatusCode addBranches(const EventContext& ctx) const override final;
29
30 private:
33 {this, "particlesKey", "TruthParticles", "ReadHandleKey for TruthParticles for photon list input"};
34
36 {this, "decorationName", m_particlesKey, "unusedPhotonDecoration", "Name of the decoration for photons that were used in dressing"};
37
39 {this, "dressParticlesKey", "", "ReadHandleKey for input particles to be dressed. If taus are selected, everything in this input key will be used"};
40 // WriteDecorHandleKeys for decorations for container of particles to be dressed
42 {this, "e_dressed", m_dressParticlesKey, "e_dressed", "e_dressed decoration"};
44 {this, "pt_dressed", m_dressParticlesKey, "pt_dressed", "pt_dressed decoration"};
46 {this, "eta_dressed", m_dressParticlesKey, "eta_dressed", "eta_dressed decoration"};
48 {this, "phi_dressed", m_dressParticlesKey, "phi_dressed", "phi_dressed decoration"};
50 {this, "pt_vis_dressed", m_dressParticlesKey, "pt_vis_dressed", "pt_vis_dressed decoration"};
52 {this, "eta_vis_dressed", m_dressParticlesKey, "eta_vis_dressed", "eta_vis_dressed decoration"};
54 {this, "phi_vis_dressed", m_dressParticlesKey, "phi_vis_dressed", "phi_vis_dressed decoration"};
56 {this, "m_vis_dressed", m_dressParticlesKey, "m_vis_dressed", "m_vis_dressed decoration"};
58 {this, "nPhotons_dressed", m_dressParticlesKey, "nPhotons_dressed", "nPhotons_dressed decoration"};
59
61
63 Gaudi::Property<bool> m_usePhotonsFromHadrons
64 {this, "usePhotonsFromHadrons", false, "Add photons coming from hadron decays while dressing"};
65
66 Gaudi::Property<bool> m_useLeptonsFromHadrons
67 {this, "useLeptonsFromHadrons", false, "Consider leptons coming from hadron decays?"};
68
69 Gaudi::Property<float> m_coneSize
70 {this, "dressingConeSize", 0.1, "Size of dR cone in which to include FSR photons in dressing"};
71
72 Gaudi::Property< std::vector<int> > m_listOfPIDs
73 {this, "particleIDsToDress", {11,13}, "List of the pdgID's of particles to be dressed (usually 11,13). Special treatment for taus (15)"};
74
75 Gaudi::Property<bool> m_useAntiKt
76 {this, "useAntiKt", false, "use anti-k_T instead of fixed-cone dressing"};
77
78 Gaudi::Property<bool> m_decoratePhotons
79 {this, "decoratePhotons", true, "Do we want to decorate the photons used for dressing?"};
80 };
81}
82
83#endif // DERIVATIONFRAMEWORK_TRUTHDRESSINGTool_H
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Gaudi::Property< bool > m_usePhotonsFromHadrons
Parameter: Use photons from hadron decays?
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_phi_visKey
Gaudi::Property< bool > m_decoratePhotons
Parameter: Do we want to decorate the photons used for dressing?
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
ReadHandleKey input collection key.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_etaKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_dressParticlesKey
ReadHandleKey for particles to be dressed.
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthClassKey
To ensure that the algorithm is scheduled after the truth classifier.
virtual StatusCode initialize() override final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_ptKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_eKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_m_visKey
Gaudi::Property< bool > m_useLeptonsFromHadrons
Parameter: Use leptons from hadron decays?
Gaudi::Property< float > m_coneSize
Parameter: Cone size for dressing.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_pt_visKey
Gaudi::Property< std::vector< int > > m_listOfPIDs
Parameter: List of pdgIDs of particles to dress.
Gaudi::Property< bool > m_useAntiKt
Parameter: Use antikT algorithm for dressing?
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_eta_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_phiKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorationKey
WriteDecorHandleKeys for decorations for particlesKey.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_nphotonKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
THE reconstruction tool.