ATLAS Offline Software
JetSecVtxFindingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BTAGGING_JETSECVTXFINDINGALG_H
6 #define BTAGGING_JETSECVTXFINDINGALG_H
7 
9 #include "CxxUtils/CachedValue.h"
10 #include "GaudiKernel/ToolHandle.h"
11 
12 #include <string>
13 
14 //general interface for secondary vertex finders
16 
17 #include "xAODJet/JetContainer.h"
20 
23 
25 namespace Analysis
26 {
27 
29  {
30  public:
32  JetSecVtxFindingAlg(const std::string& name, ISvcLocator *pSvcLocator);
33  virtual ~JetSecVtxFindingAlg() = default;
34 
36  virtual StatusCode initialize() override final;
37  virtual StatusCode execute(const EventContext& ctx) const override final;
38 
39  private:
40 
41  ToolHandle< InDet::ISecVertexInJetFinder > m_secVertexFinderToolHandle;
42 
43  SG::ReadHandleKey<xAOD::JetContainer > m_JetCollectionName {this, "JetCollectionName", "", "Input jet container"};
44  SG::ReadDecorHandleKey<xAOD::JetContainer> m_TracksToTag { this, "TracksToTag", "", "Element Link vector from jet to IParticleContainer"};
45  SG::ReadHandleKey<xAOD::VertexContainer> m_VertexCollectionName {this, "vxPrimaryCollectionName", "", "Input primary vertex container"};
46  SG::WriteHandleKey<Trk::VxSecVertexInfoContainer> m_VxSecVertexInfoName {this, "BTagVxSecVertexInfoName", "", "Output VxSecVertexInfo container"};
47 
51 
52  }; // End class
53 
54 } // End namespace
55 
56 #endif // JETSECVTXFINDINGALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
Analysis::JetSecVtxFindingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: JetSecVtxFindingAlg.cxx:47
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
Analysis::JetSecVtxFindingAlg::m_secVertexFinderToolHandle
ToolHandle< InDet::ISecVertexInJetFinder > m_secVertexFinderToolHandle
Definition: JetSecVtxFindingAlg.h:41
Analysis::JetSecVtxFindingAlg::m_VxSecVertexInfoName
SG::WriteHandleKey< Trk::VxSecVertexInfoContainer > m_VxSecVertexInfoName
Definition: JetSecVtxFindingAlg.h:46
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
Analysis::JetSecVtxFindingAlg
Definition: JetSecVtxFindingAlg.h:29
ISecVertexInJetFinder.h
Analysis::JetSecVtxFindingAlg::m_JetCollectionName
SG::ReadHandleKey< xAOD::JetContainer > m_JetCollectionName
Definition: JetSecVtxFindingAlg.h:43
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CxxUtils::CachedValue
Cached value with atomic update.
Definition: CachedValue.h:55
VxSecVertexInfo.h
Analysis::JetSecVtxFindingAlg::initialize
virtual StatusCode initialize() override final
Main routines specific to an ATHENA algorithm.
Definition: JetSecVtxFindingAlg.cxx:22
Analysis::JetSecVtxFindingAlg::~JetSecVtxFindingAlg
virtual ~JetSecVtxFindingAlg()=default
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
Analysis::JetSecVtxFindingAlg::m_VertexCollectionName
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexCollectionName
Definition: JetSecVtxFindingAlg.h:45
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
CachedValue.h
Cached value with atomic update.
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Analysis::JetSecVtxFindingAlg::JetSecVtxFindingAlg
JetSecVtxFindingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructors and destructors.
Definition: JetSecVtxFindingAlg.cxx:14
VertexContainer.h
Analysis::JetSecVtxFindingAlg::m_TracksToTag
SG::ReadDecorHandleKey< xAOD::JetContainer > m_TracksToTag
Definition: JetSecVtxFindingAlg.h:44
JetContainer.h
Analysis::JetSecVtxFindingAlg::m_decorIDs
CxxUtils::CachedValue< std::vector< SG::auxid_t > > m_decorIDs
List of the track decorations that we produce.
Definition: JetSecVtxFindingAlg.h:50
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition: JetContainer.h:17
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85