![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
15 const std::string&
name, ISvcLocator* svcloc):
25 const auto& key_from_btag_tracks =
m_btagTracks.contHandleKey().key();
26 const auto& key_from_jet_link =
m_jetLinks.contHandleKey().key();
27 if (key_from_btag_tracks != key_from_jet_link) {
29 "Inconsistent keys for btag tracks '"
30 << key_from_btag_tracks <<
"' and btag -> jet links '"
31 << key_from_jet_link <<
"'");
32 return StatusCode::FAILURE;
34 return StatusCode::SUCCESS;
49 if (!jetTracks.isValid()) {
51 return StatusCode::FAILURE;
60 const auto& jet_link = jetLinks(*btag);
62 if (!jet_link.isValid()) {
64 return StatusCode::FAILURE;
68 if (hash_from_link != hash_from_jc) {
70 "Your btag -> jet link points to '" << jet_link.dataID()
71 <<
"' but you're trying to copy tracks from '"
73 return StatusCode::FAILURE;
77 std::vector<ElementLink<TC> > tmpTracks;
78 for (
const auto& elpart: jetTracks(*
jet)) {
81 btagTracks(*btag) = tmpTracks;
84 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
BTagTrackLinkCopyAlg(const std::string &name, ISvcLocator *svcloc)
This file contains "getter" functions used for accessing tagger inputs from the EDM.
virtual StatusCode finalize() override
Base class for elements of a container that can have aux data.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &cxt) const override
SG::ReadDecorHandleKey< JC > m_jetTracks
An algorithm that can be simultaneously executed in multiple threads.
Handle class for reading a decoration on an object.
SG::WriteDecorHandleKey< BC > m_btagTracks
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
ElementLink implementation for ROOT usage.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Handle class for reading a decoration on an object.
SG::ReadDecorHandleKey< BC > m_jetLinks