ATLAS Offline Software
JetQuarkChargeLabelingTool.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 #ifndef JETQUARKCHARGELABELINGTOOL_H
6 #define JETQUARKCHARGELABELINGTOOL_H
7 
8 #include "AsgTools/AsgTool.h"
10 
17 
19 
22 public:
23 
25  JetQuarkChargeLabelingTool(const std::string& name);
26 
27  StatusCode initialize() override;
28  StatusCode decorate(const xAOD::JetContainer& jets) const override;
29 
30 protected:
31 
32  Gaudi::Property<std::string> m_hadronAccessor{this, "HadronDecorationName", "HadronGhostInitialTruthLabelPdgId", "Name of attribute for hadron labeling."};
33  Gaudi::Property<std::string> m_partonAccessor{this, "PartonDecorationName", "PartonExtendedTruthLabelID", "Name of attribute for parton labeling."};
34  Gaudi::Property<std::string> m_chargeDecorator{this, "OutputName", "QuarkChargeTruthLabelID", "Name of the output variable containing the charge ID."};
35  Gaudi::Property<std::map<int,int>> m_mapOption{this, "HadronChargeMap", std::map <int,int>(), "Map relating the PdgID of the hadrons to the charge of the original heavy quark."};
36 
37  std::map<int,int> m_map;
38 };
39 
40 
41 #endif
JetQuarkChargeLabelingTool::decorate
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: JetQuarkChargeLabelingTool.cxx:29
JetQuarkChargeLabelingTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JetQuarkChargeLabelingTool.cxx:19
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
PropertyWrapper.h
TruthParticleContainer.h
JetQuarkChargeLabelingTool::m_map
std::map< int, int > m_map
Definition: JetQuarkChargeLabelingTool.h:37
IJetDecorator
Interface for adding a decoration to a jet container.
Definition: IJetDecorator.h:21
defineDB.jets
jets
Definition: JetTagCalibration/share/defineDB.py:24
IJetDecorator.h
JetQuarkChargeLabelingTool::m_partonAccessor
Gaudi::Property< std::string > m_partonAccessor
Definition: JetQuarkChargeLabelingTool.h:33
ParticleJetLabelCommon.h
JetQuarkChargeLabelingTool::JetQuarkChargeLabelingTool
JetQuarkChargeLabelingTool(const std::string &name)
Constructor.
Definition: JetQuarkChargeLabelingTool.cxx:15
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
JetQuarkChargeLabelingTool::m_mapOption
Gaudi::Property< std::map< int, int > > m_mapOption
Definition: JetQuarkChargeLabelingTool.h:35
JetQuarkChargeLabelingTool::m_chargeDecorator
Gaudi::Property< std::string > m_chargeDecorator
Definition: JetQuarkChargeLabelingTool.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
WriteDecorHandleKey.h
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
JetQuarkChargeLabelingTool
Definition: JetQuarkChargeLabelingTool.h:20
AsgTool.h
TruthParticle.h
TruthEventContainer.h
JetQuarkChargeLabelingTool::m_hadronAccessor
Gaudi::Property< std::string > m_hadronAccessor
Definition: JetQuarkChargeLabelingTool.h:32