test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimTrack.cc
Go to the documentation of this file.
2 
3 SimTrack::SimTrack() : ivert(-1), igenpart(-1) {}
4 
6  Core(ipart, p), ivert(-1), igenpart(-1) {}
7 
8 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig) :
9  Core(ipart, p), ivert(iv), igenpart(ig) {}
10 
11 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig,
12  const math::XYZVectorD& tkp, const math::XYZTLorentzVectorD& tkm) :
13  Core(ipart, p), ivert(iv), igenpart(ig),tkposition(tkp),tkmomentum(tkm) {}
14 
15 SimTrack::SimTrack(const CoreSimTrack & t, int iv, int ig) :
16  Core(t), ivert(iv), igenpart(ig) {}
17 
18 std::ostream & operator <<(std::ostream & o , const SimTrack & t)
19 {
20  return o << (SimTrack::Core)(t) << ", "
21  << t.vertIndex() << ", "
22  << t.genpartIndex();
23 }
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:11
SimTrack()
constructor
Definition: SimTrack.cc:3
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:8
int genpartIndex() const
index of the corresponding Generator particle in the Event container (-1 if no Genpart) ...
Definition: SimTrack.h:33
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:29