ATLAS Offline Software
HIJetDRAssociationTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // HIJetDRAssociationTool.h
6 
7 #ifndef HIJETREC_HIJETDRASSOCIATIONTOOL_H
8 #define HIJETREC_HIJETDRASSOCIATIONTOOL_H
9 
26 #include <string>
27 #include "JetRec/JetModifierBase.h"
28 
31 
33 {
34 
36 
37 public:
38 
39  HIJetDRAssociationTool(const std::string& t);
40 
41  virtual StatusCode initialize() override;
42 
44  virtual StatusCode modify(xAOD::JetContainer& jets) const override;
45 
47  virtual int modifyJet(xAOD::Jet&) const override {return 1;};
48 
49 private:
50 
52  SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey { this, "ContainerKey", "", "Name of IParticleContainer w/ particles to associate"};
53 
55  Gaudi::Property< std::string > m_assocName { this, "AssociationName", "" , "Name of jet attribute providing link between jets and IParticles" };
56 
58  Gaudi::Property< float > m_DR { this, "DeltaR", 0.8, "DR cut defining association" };
60  Gaudi::Property< bool > m_applyFilter { this, "ApplyFilter",false, "Flag to enable kinematic requirements on associated IParticle" };
62  Gaudi::Property< float > m_Emin { this, "FilterMinE", -999., "Minimum E requirement for associated IParticle, in addition to DR" };
64  Gaudi::Property< float > m_pTmin { this, "FilterMinPt", 0., "Minimum pT requirement for associated IParticle, in addition to DR" };
65 
66 };
67 
68 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
HIJetDRAssociationTool::m_pTmin
Gaudi::Property< float > m_pTmin
Minimum pT requirement for associated IParticle, in addition to DR.
Definition: HIJetDRAssociationTool.h:64
HIJetDRAssociationTool::m_applyFilter
Gaudi::Property< bool > m_applyFilter
Flag to enable kinematic requirements on associated IParticle.
Definition: HIJetDRAssociationTool.h:60
HIJetDRAssociationTool::m_assocName
Gaudi::Property< std::string > m_assocName
Name of jet attribute providing link between jets and IParticles.
Definition: HIJetDRAssociationTool.h:55
HIJetDRAssociationTool::modify
virtual StatusCode modify(xAOD::JetContainer &jets) const override
Implementing abstract methods from base.
Definition: HIJetDRAssociationTool.cxx:26
HIJetDRAssociationTool::m_DR
Gaudi::Property< float > m_DR
DR cut defining association.
Definition: HIJetDRAssociationTool.h:58
HIJetDRAssociationTool::ASG_TOOL_CLASS0
ASG_TOOL_CLASS0(HIJetDRAssociationTool)
HIJetDRAssociationTool::modifyJet
virtual int modifyJet(xAOD::Jet &) const override
Implementing abstract methods from base, not used.
Definition: HIJetDRAssociationTool.h:47
HIJetDRAssociationTool
JetModifier that stores links to IParticles w/in DR of a jet. In HIJetRec this association is needed ...
Definition: HIJetDRAssociationTool.h:33
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
HIJetDRAssociationTool::HIJetDRAssociationTool
HIJetDRAssociationTool(const std::string &t)
Definition: HIJetDRAssociationTool.cxx:10
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
HIJetDRAssociationTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: HIJetDRAssociationTool.cxx:17
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
JetModifierBase.h
HIJetDRAssociationTool::m_Emin
Gaudi::Property< float > m_Emin
Minimum E requirement for associated IParticle, in addition to DR.
Definition: HIJetDRAssociationTool.h:62
HIJetDRAssociationTool::m_containerKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey
name of IParticleContainer w/ particles to associate
Definition: HIJetDRAssociationTool.h:52
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
JetModifierBase
Definition: JetModifierBase.h:22