ATLAS Offline Software
BacklinkAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BACKLINK_ALG_H
6 #define BACKLINK_ALG_H
7 
9 
11 #include "xAODJet/JetContainer.h"
14 
15 namespace FlavorTagDiscriminants {
16  template <typename OLD, typename NEW>
18  {
19  public:
20  BacklinkAlg(const std::string& name, ISvcLocator* svcloc);
21  virtual StatusCode initialize() override;
22  virtual StatusCode execute(const EventContext& cxt) const override;
23  virtual StatusCode finalize() override;
24  private:
25 
26  // Better would be to make everything work with AuxElement, e.g.
27  //
28  // using EC = DataVector<SG::AuxElement>;
29  // using NEW = EC;
30  // using OLD = EC;
31  //
32  // But I haven't figured out how to make this work (I'd need to
33  // assign a class ID, and even then I'm not sure it would be
34  // supported).
35 
37  this, "oldLink", "", "Existing link"};
39  this, "newLink", "", "Link to be added"};
40  };
41 }
42 
43 #include "BacklinkAlg.icc"
44 
45 #endif
SG::WriteDecorHandleKey< NEW >
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: AssociationEnums.h:11
FlavorTagDiscriminants::BacklinkAlg::BacklinkAlg
BacklinkAlg(const std::string &name, ISvcLocator *svcloc)
FlavorTagDiscriminants::BacklinkAlg::finalize
virtual StatusCode finalize() override
BacklinkAlg.icc
FlavorTagDiscriminants::BacklinkAlg::m_oldLink
SG::ReadDecorHandleKey< OLD > m_oldLink
Definition: BacklinkAlg.h:36
FlavorTagDiscriminants::BacklinkAlg
Definition: BacklinkAlg.h:18
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
FlavorTagDiscriminants::BacklinkAlg::initialize
virtual StatusCode initialize() override
BTaggingContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
JetContainer.h
FlavorTagDiscriminants::BacklinkAlg::execute
virtual StatusCode execute(const EventContext &cxt) const override
FlavorTagDiscriminants::BacklinkAlg::m_newLink
SG::WriteDecorHandleKey< NEW > m_newLink
Definition: BacklinkAlg.h:38
SG::ReadDecorHandleKey< OLD >