CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/SimDataFormats/Track/src/SimTrack.cc

Go to the documentation of this file.
00001 #include "SimDataFormats/Track/interface/SimTrack.h"
00002 
00003 SimTrack::SimTrack() {}
00004  
00005 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p) :
00006     Core(ipart, p), ivert(-1), igenpart(-1),
00007     tkposition(math::XYZVectorD(0.,0.,0.)),
00008     tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.)) {}
00009  
00010 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig) :
00011     Core(ipart, p), ivert(iv), igenpart(ig),
00012     tkposition(math::XYZVectorD(0.,0.,0.)),
00013     tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.))  {}
00014 
00015 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig,
00016                    const math::XYZVectorD&  tkp, const math::XYZTLorentzVectorD& tkm) :
00017     Core(ipart, p), ivert(iv), igenpart(ig),tkposition(tkp),tkmomentum(tkm)  {}
00018  
00019 SimTrack::SimTrack(const CoreSimTrack & t, int iv, int ig) :
00020     Core(t), ivert(iv), igenpart(ig) {}
00021  
00022 std::ostream & operator <<(std::ostream & o , const SimTrack & t) 
00023 {
00024     return o << (SimTrack::Core)(t) << ", "
00025              << t.vertIndex() << ", "
00026              << t.genpartIndex();
00027 }