CMS 3D CMS Logo

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