ATLAS Offline Software
SecVertexMergingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 //Author: Lianyou Shan <lianyou.shan@cern.ch>
5 
6  #ifndef TrkVertexTools_SecVertexMergingTool_H
7  #define TrkVertexTools_SecVertexMergingTool_H
8 
10 #include "GaudiKernel/ToolHandle.h"
13 
14 
15 //xAOD include
16 #include "xAODTracking/VertexFwd.h"
22 
37  namespace Trk
38  {
39  class IVertexFitter;
40 
41  class SecVertexMergingTool : public AthAlgTool, virtual public IVertexMergingTool
42  {
43  public:
44  virtual StatusCode initialize() override;
45  virtual StatusCode finalize() override;
46 
50  SecVertexMergingTool(const std::string& t, const std::string& n, const IInterface* p);
51 
56 
60  virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
61  mergeVertexContainer(const xAOD::VertexContainer& MyVxCont) const override;
62 
63  private:
64 
65  int m_Compatidime ; // Lianyou added
66  float m_minDist ;
67  ToolHandle< Trk::IVertexFitter > m_iVertexFitter;
68 
69  bool checkCompatibility( const xAOD::Vertex * vx1, const xAOD::Vertex * vx2 ) const;
70 
71  }; //end of class description
72  }//end of namespace definition
73 
74  #endif
Trk::SecVertexMergingTool::mergeVertexContainer
virtual std::pair< xAOD::VertexContainer *, xAOD::VertexAuxContainer * > mergeVertexContainer(const xAOD::VertexContainer &MyVxCont) const override
Merging
Definition: SecVertexMergingTool.cxx:50
VertexContainerFwd.h
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Trk::SecVertexMergingTool::m_minDist
float m_minDist
Definition: SecVertexMergingTool.h:66
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::SecVertexMergingTool
Definition: SecVertexMergingTool.h:42
Trk::SecVertexMergingTool::m_iVertexFitter
ToolHandle< Trk::IVertexFitter > m_iVertexFitter
Definition: SecVertexMergingTool.h:67
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::SecVertexMergingTool::checkCompatibility
bool checkCompatibility(const xAOD::Vertex *vx1, const xAOD::Vertex *vx2) const
Definition: SecVertexMergingTool.cxx:242
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::SecVertexMergingTool::~SecVertexMergingTool
virtual ~SecVertexMergingTool()
destructor
IVertexFitter.h
VertexFwd.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
TrackParticleFwd.h
Trk::SecVertexMergingTool::initialize
virtual StatusCode initialize() override
Definition: SecVertexMergingTool.cxx:32
Trk::SecVertexMergingTool::finalize
virtual StatusCode finalize() override
EndOfInitialize.
Definition: SecVertexMergingTool.cxx:44
AthAlgTool
Definition: AthAlgTool.h:26
IVertexMergingTool.h
TrackParticleContainerFwd.h
Trk::IVertexMergingTool
Interface class for merging compatible vertices in a single collection.
Definition: Tracking/TrkVertexFitter/TrkVertexFitterInterfaces/TrkVertexFitterInterfaces/IVertexMergingTool.h:42
Trk::SecVertexMergingTool::m_Compatidime
int m_Compatidime
Definition: SecVertexMergingTool.h:65
VertexAuxContainer.h
Trk::SecVertexMergingTool::SecVertexMergingTool
SecVertexMergingTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: SecVertexMergingTool.cxx:16