CMS 3D CMS Logo

CoreSimVertex.h
Go to the documentation of this file.
1 #ifndef CoreSimVertex_H
2 #define CoreSimVertex_H
3 
7 
8 #include <cmath>
9 
13 public:
16 
17  CoreSimVertex(const math::XYZVectorD& v, float tof) { theVertex.SetXYZT(v.x(), v.y(), v.z(), tof); }
18 
19  CoreSimVertex(const math::XYZTLorentzVectorD& v) { theVertex.SetXYZT(v.x(), v.y(), v.z(), v.t()); }
20 
21  const math::XYZTLorentzVectorD& position() const { return theVertex; }
22 
24 
25  EncodedEventId eventId() const { return eId; }
26 
27  void setTof(float tof) { theVertex.SetXYZT(theVertex.x(), theVertex.y(), theVertex.z(), tof); }
28 
29 private:
32 };
33 
34 #include <iosfwd>
35 std::ostream& operator<<(std::ostream& o, const CoreSimVertex& v);
36 
37 #endif
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
CoreSimVertex()
constructors
Definition: CoreSimVertex.h:15
std::ostream & operator<<(std::ostream &o, const CoreSimVertex &v)
Definition: CoreSimVertex.cc:3
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
CoreSimVertex(const math::XYZTLorentzVectorD &v)
Definition: CoreSimVertex.h:19
math::XYZTLorentzVectorD theVertex
Definition: CoreSimVertex.h:31
const math::XYZTLorentzVectorD & position() const
Definition: CoreSimVertex.h:21
CoreSimVertex(const math::XYZVectorD &v, float tof)
Definition: CoreSimVertex.h:17
EncodedEventId eventId() const
Definition: CoreSimVertex.h:25
EncodedEventId eId
Definition: CoreSimVertex.h:30
void setEventId(EncodedEventId e)
Definition: CoreSimVertex.h:23
void setTof(float tof)
Definition: CoreSimVertex.h:27