CMS 3D CMS Logo

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