ATLAS Offline Software
VertexPositions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  VertexPositions.h - Description
7  -------------------
8  begin : Autumn 2006
9  authors : Giacinto Piacquadio (Freiburg University)
10  email : giacinto.piacquadio@cern.ch
11  changes :
12 
13  ***************************************************************************/
14 
15 #ifndef VXJETVERTEX_VERTEXPOSITIONS_H
16 #define VXJETVERTEX_VERTEXPOSITIONS_H
17 
20 #include "GaudiKernel/MsgStream.h"
22 #include <atomic>
24 namespace Trk {
25 
27 class VertexPositions : public Trk::ObjectCounter<Trk::VertexPositions>
28 {
29 public:
30  VertexPositions();
32  VertexPositions(const VertexPositions&) = default;
33  VertexPositions(VertexPositions&&) = default;
34  VertexPositions& operator=(const VertexPositions&) = default;
36  virtual ~VertexPositions() = default;
37 
39  virtual MsgStream& dump(MsgStream& sl) const;
41  virtual std::ostream& dump(std::ostream& sl) const;
42 
43  const Amg::VectorX& position() const;
44 
45  void setPosition(const Amg::VectorX&);
46 
47 protected:
49  bool m_useWeightTimesPosition; // bool for storing weightTimesPosition
50 };
51 
54 MsgStream&
55 operator<<(MsgStream& sl, const VertexPositions& sf);
56 std::ostream&
57 operator<<(std::ostream& sl, const VertexPositions& sf);
58 
59 } // end of namespace Trk
60 
61 #endif
Trk::VertexPositions::position
const Amg::VectorX & position() const
return position of vertex
Definition: VertexPositions.cxx:95
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition: EventPrimitives.h:30
JetVtxParamDefs.h
TrkObjectCounter.h
Trk::ObjectCounter
Helper to enable counting number of instantiations in debug builds.
Definition: TrkObjectCounter.h:18
Trk::VertexPositions::setPosition
void setPosition(const Amg::VectorX &)
Definition: VertexPositions.cxx:109
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Trk::VertexPositions::m_useWeightTimesPosition
bool m_useWeightTimesPosition
Definition: VertexPositions.h:65
EventPrimitives.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::VertexPositions::VertexPositions
VertexPositions()
default constructor
Definition: VertexPositions.cxx:29
Trk::VertexPositions::dump
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition: VertexPositions.cxx:45
Trk::VertexPositions::operator=
VertexPositions & operator=(const VertexPositions &)=default
Assignment operator.
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
Trk::VertexPositions::m_position
Amg::VectorX m_position
vertex position
Definition: VertexPositions.h:64
Trk::VertexPositions
VertexPositions class to represent and store a vertex.
Definition: VertexPositions.h:36
Trk::VertexPositions::~VertexPositions
virtual ~VertexPositions()=default