CMS 3D CMS Logo

SimTrack.cc
Go to the documentation of this file.
2 
3 SimTrack::SimTrack() : ivert(-1), igenpart(-1) {}
4 
5 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p) : Core(ipart, p), ivert(-1), igenpart(-1) {}
6 
7 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig)
8  : Core(ipart, p), ivert(iv), igenpart(ig) {}
9 
12  int iv,
13  int ig,
14  const math::XYZVectorD& tkp,
15  const math::XYZTLorentzVectorD& tkm)
16  : Core(ipart, p), ivert(iv), igenpart(ig), tkposition(tkp), tkmomentum(tkm) {}
17 
18 SimTrack::SimTrack(const CoreSimTrack& t, int iv, int ig) : Core(t), ivert(iv), igenpart(ig) {}
19 
20 std::ostream& operator<<(std::ostream& o, const SimTrack& t) {
21  return o << (SimTrack::Core)(t) << ", " << t.vertIndex() << ", " << t.genpartIndex();
22 }
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
CoreSimTrack Core
Definition: SimTrack.h:8
SimTrack()
constructor
Definition: SimTrack.cc:3
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
int igenpart
Definition: SimTrack.h:49
int genpartIndex() const
index of the corresponding Generator particle in the Event container (-1 if no Genpart) ...
Definition: SimTrack.h:34
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:30
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:52
int ivert
Definition: SimTrack.h:48
math::XYZVectorD tkposition
Definition: SimTrack.h:51
std::ostream & operator<<(std::ostream &o, const SimTrack &t)
Definition: SimTrack.cc:20