ATLAS Offline Software
Loading...
Searching...
No Matches
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
22public:
23
25 JetQuarkChargeLabelingTool(const std::string& name);
26
27 StatusCode initialize() override;
28 StatusCode decorate(const xAOD::JetContainer& jets) const override;
29
30protected:
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
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Interface for adding a decoration to a jet container.
Gaudi::Property< std::string > m_chargeDecorator
Gaudi::Property< std::string > m_partonAccessor
StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_hadronAccessor
Gaudi::Property< std::map< int, int > > m_mapOption
JetQuarkChargeLabelingTool(const std::string &name)
Constructor.
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
JetContainer_v1 JetContainer
Definition of the current "jet container version".