ATLAS Offline Software
Tracking/TrkVertexFitter/TrkVertexTools/TrkVertexTools/VertexMergingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5  #ifndef TrkVertexTools_VertexMergingTool_H
6  #define TrkVertexTools_VertexMergingTool_H
7 
9 #include "GaudiKernel/ToolHandle.h"
13 
14 //xAOD include
15 #include "xAODTracking/VertexFwd.h"
21 
37  namespace Trk
38  {
39  class IVertexFitter;
40 
41  class VertexMergingTool : public AthAlgTool, virtual public IVertexMergingTool
42  {
43  public:
44  StatusCode initialize() override;
45 
49  VertexMergingTool(const std::string& t, const std::string& n, const IInterface* p);
50 
54  virtual ~VertexMergingTool();
55 
59  virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
60  mergeVertexContainer(const xAOD::VertexContainer& MyVxCont) const override;
61 
62  private:
63 
64  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
65  ToolHandle< Trk::IVertexFitter > m_iVertexFitter;
67 
68  bool checkCompatibility( const xAOD::Vertex * vx1, const xAOD::Vertex * vx2 ) const;
69 
70  }; //end of class description
71  }//end of namespace definition
72 
73  #endif
VertexContainerFwd.h
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Trk::VertexMergingTool::mergeVertexContainer
virtual std::pair< xAOD::VertexContainer *, xAOD::VertexAuxContainer * > mergeVertexContainer(const xAOD::VertexContainer &MyVxCont) const override
Merging
Definition: Tracking/TrkVertexFitter/TrkVertexTools/src/VertexMergingTool.cxx:42
Trk::VertexMergingTool
Definition: Tracking/TrkVertexFitter/TrkVertexTools/TrkVertexTools/VertexMergingTool.h:42
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::VertexMergingTool::VertexMergingTool
VertexMergingTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: Tracking/TrkVertexFitter/TrkVertexTools/src/VertexMergingTool.cxx:13
Trk::VertexMergingTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: Tracking/TrkVertexFitter/TrkVertexTools/TrkVertexTools/VertexMergingTool.h:64
TrackParticleAuxContainer.h
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::VertexMergingTool::checkCompatibility
bool checkCompatibility(const xAOD::Vertex *vx1, const xAOD::Vertex *vx2) const
Definition: Tracking/TrkVertexFitter/TrkVertexTools/src/VertexMergingTool.cxx:127
IVertexFitter.h
VertexFwd.h
SG::ReadCondHandleKey< InDet::BeamSpotData >
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
Trk::VertexMergingTool::initialize
StatusCode initialize() override
Definition: Tracking/TrkVertexFitter/TrkVertexTools/src/VertexMergingTool.cxx:27
TrackParticleFwd.h
Trk::VertexMergingTool::m_useBeamConstraint
bool m_useBeamConstraint
Definition: Tracking/TrkVertexFitter/TrkVertexTools/TrkVertexTools/VertexMergingTool.h:66
Trk::VertexMergingTool::~VertexMergingTool
virtual ~VertexMergingTool()
destructor
BeamSpotData.h
AthAlgTool
Definition: AthAlgTool.h:26
IVertexMergingTool.h
TrackParticleContainerFwd.h
Trk::VertexMergingTool::m_iVertexFitter
ToolHandle< Trk::IVertexFitter > m_iVertexFitter
Definition: Tracking/TrkVertexFitter/TrkVertexTools/TrkVertexTools/VertexMergingTool.h:65
Trk::IVertexMergingTool
Interface class for merging compatible vertices in a single collection.
Definition: Tracking/TrkVertexFitter/TrkVertexFitterInterfaces/TrkVertexFitterInterfaces/IVertexMergingTool.h:42
VertexAuxContainer.h