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 
4 
6  Core(ipart, p), ivert(-1), igenpart(-1),
7  tkposition(math::XYZVectorD(0.,0.,0.)),
8  tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.)) {}
9 
10 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig) :
11  Core(ipart, p), ivert(iv), igenpart(ig),
12  tkposition(math::XYZVectorD(0.,0.,0.)),
13  tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.)) {}
14 
15 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig,
16  const math::XYZVectorD& tkp, const math::XYZTLorentzVectorD& tkm) :
17  Core(ipart, p), ivert(iv), igenpart(ig),tkposition(tkp),tkmomentum(tkm) {}
18 
19 SimTrack::SimTrack(const CoreSimTrack & t, int iv, int ig) :
20  Core(t), ivert(iv), igenpart(ig) {}
21 
22 std::ostream & operator <<(std::ostream & o , const SimTrack & t)
23 {
24  return o << (SimTrack::Core)(t) << ", "
25  << t.vertIndex() << ", "
26  << t.genpartIndex();
27 }
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::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
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