ATLAS Offline Software
InDetV0Finder.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 /***************************************************************************
6  InDetV0Finder.h - Description
7  -------------------
8  begin : 20-07-2005
9  authors : Evelina Bouhova-Thacker (Lancaster University), Rob Henderson (Lancater University)
10  email : e.bouhova@cern.ch, r.henderson@lancaster.ac.uk
11  changes :
12 
13  ***************************************************************************/
14 
15 #ifndef INDETV0FINDER_INDETV0FINDER_H
16 #define INDETV0FINDER_INDETV0FINDER_H
17 
20 #include "GaudiKernel/ToolHandle.h"
22 
23 
32 /* Forward declarations */
33 
34 namespace InDet
35 {
36  class InDetV0FinderTool;
37 
38  class InDetV0Finder : public AthAlgorithm
39  {
40  public:
41  InDetV0Finder(const std::string &name, ISvcLocator *pSvcLocator);
42  virtual ~InDetV0Finder();
47 
48 
49  protected:
50  // input primary vertices
51  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexKey { this, "VxPrimaryCandidateName", "PrimaryVertices",
52  "key for retrieving vertices" };
53  // V0 candidate output containers
54  SG::WriteHandleKey<xAOD::VertexContainer> m_v0Key { this, "V0ContainerName", "V0Candidates", "V0 container" };
55  SG::WriteHandleKey<xAOD::VertexContainer> m_ksKey { this, "KshortContainerName", "KshortCandidates", "Ks container" };
56  SG::WriteHandleKey<xAOD::VertexContainer> m_laKey { this, "LambdaContainerName", "LambdaCandidates",
57  "Lambda container" };
58  SG::WriteHandleKey<xAOD::VertexContainer> m_lbKey { this, "LambdabarContainerName", "LambdabarCandidates",
59  "Lambdabar container" };
60 
61  // Tools
62 
63  ToolHandle<InDet::InDetV0FinderTool> m_v0FinderTool{this, "InDetV0FinderToolName", "InDet::InDetV0FinderTool"};
64  ToolHandle<InDet::V0MainDecorator> m_v0DecoTool{this, "Decorator", "InDet::V0MainDecorator"};
65 
66  // Other members
67 
68  BooleanProperty m_decorate{this, "decorateV0", true};
69 
71  long m_V0s_stored = 0;
72  long m_Kshort_stored = 0;
73  long m_Lambda_stored = 0;
75 
76  };
77 
78 }//end of namespace InDet
79 
80 #endif
81 
InDet::InDetV0Finder::resetStatistics
StatusCode resetStatistics()
Definition: InDetV0Finder.cxx:155
InDet::InDetV0Finder::m_lbKey
SG::WriteHandleKey< xAOD::VertexContainer > m_lbKey
Definition: InDetV0Finder.h:58
VertexContainerFwd.h
InDet::InDetV0Finder::m_Kshort_stored
long m_Kshort_stored
Definition: InDetV0Finder.h:72
InDet::InDetV0Finder::m_v0Key
SG::WriteHandleKey< xAOD::VertexContainer > m_v0Key
Definition: InDetV0Finder.h:54
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetV0Finder::m_ksKey
SG::WriteHandleKey< xAOD::VertexContainer > m_ksKey
Definition: InDetV0Finder.h:55
InDet::InDetV0Finder::m_v0FinderTool
ToolHandle< InDet::InDetV0FinderTool > m_v0FinderTool
Definition: InDetV0Finder.h:63
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
InDet::InDetV0Finder::InDetV0Finder
InDetV0Finder(const std::string &name, ISvcLocator *pSvcLocator)
Definition: InDetV0Finder.cxx:40
AthAlgorithm.h
InDet::InDetV0Finder::m_laKey
SG::WriteHandleKey< xAOD::VertexContainer > m_laKey
Definition: InDetV0Finder.h:56
InDet::InDetV0Finder::m_Lambda_stored
long m_Lambda_stored
Definition: InDetV0Finder.h:73
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
InDet::InDetV0Finder::m_vertexKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Definition: InDetV0Finder.h:51
V0MainDecorator.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::InDetV0Finder::execute
StatusCode execute()
Definition: InDetV0Finder.cxx:67
InDet::InDetV0Finder
Definition: InDetV0Finder.h:39
AthAlgorithm
Definition: AthAlgorithm.h:47
InDet::InDetV0Finder::initialize
StatusCode initialize()
Definition: InDetV0Finder.cxx:46
InDet::InDetV0Finder::m_decorate
BooleanProperty m_decorate
decorate V0 containers
Definition: InDetV0Finder.h:68
InDet::InDetV0Finder::m_v0DecoTool
ToolHandle< InDet::V0MainDecorator > m_v0DecoTool
Definition: InDetV0Finder.h:64
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
InDet::InDetV0Finder::m_Lambdabar_stored
long m_Lambdabar_stored
Definition: InDetV0Finder.h:74
InDet::InDetV0Finder::m_events_processed
long m_events_processed
Definition: InDetV0Finder.h:70
InDet::InDetV0Finder::finalize
StatusCode finalize()
Definition: InDetV0Finder.cxx:140
InDet::InDetV0Finder::m_V0s_stored
long m_V0s_stored
Definition: InDetV0Finder.h:71
InDet::InDetV0Finder::~InDetV0Finder
virtual ~InDetV0Finder()