|
ATLAS Offline Software
|
Go to the documentation of this file.
18 const std::string&
name, ISvcLocator* svcloc):
38 return StatusCode::SUCCESS;
43 std::vector<SG::WriteDecorHandle<xAOD::TrackParticleContainer, char>> track_wdhs;
45 track_wdhs.emplace_back(wdhk, ctx);
49 std::vector<SG::ReadDecorHandle<xAOD::BTaggingContainer, std::vector<char>>> jet_rdhs;
51 jet_rdhs.emplace_back(rdhk, ctx);
58 for (
const auto track: *tracks) {
59 for (
auto& wdh: track_wdhs) {
70 auto irdh = jet_rdhs.begin();
71 auto iwdh = track_wdhs.begin();
72 for (; irdh != jet_rdhs.end() && iwdh != track_wdhs.end(); ++irdh, ++iwdh) {
73 std::vector<char>
values = (*irdh)(*jet);
74 auto& trackLinks = trackLinks_rdh(*
jet);
75 if (
values.size() != trackLinks.size()) {
78 std::vector<ElementLink<xAOD::TrackParticleContainer>>::const_iterator
it = trackLinks.begin();
79 std::vector<char>::const_iterator
ival =
values.begin();
81 (*iwdh)(***it) = *
ival;
86 return StatusCode::SUCCESS;
90 return StatusCode::SUCCESS;
GNNAuxTaskDecoratorAlg(const std::string &name, ISvcLocator *svcloc)
This file contains "getter" functions used for accessing tagger inputs from the EDM.
virtual StatusCode execute(const EventContext &cxt) const override
const std::string & key() const
Return the StoreGate ID for the referenced object.
An algorithm that can be simultaneously executed in multiple threads.
Handle class for reading a decoration on an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
SG::ReadHandleKey< xAOD::BTaggingContainer > m_jetContainerKey
std::vector< SG::ReadDecorHandleKey< xAOD::BTaggingContainer > > m_readDecorKeys
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::string to_string(const DetectorType &type)
Gaudi::Property< std::map< std::string, std::string > > m_trackAuxTasks
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Handle class for reading a decoration on an object.
std::vector< SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > > m_trackAuxTasksDecorKeys
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
virtual StatusCode initialize() override
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackLinksKey