Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:14

0001 #include "SimDataFormats/Track/interface/SimTrack.h"
0002 
0003 SimTrack::SimTrack() : ivert(-1), igenpart(-1), crossedBoundary_(false) {}
0004 
0005 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p)
0006     : Core(ipart, p), ivert(-1), igenpart(-1), crossedBoundary_(false) {}
0007 
0008 SimTrack::SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig)
0009     : Core(ipart, p), ivert(iv), igenpart(ig), crossedBoundary_(false) {}
0010 
0011 SimTrack::SimTrack(int ipart,
0012                    const math::XYZTLorentzVectorD& p,
0013                    int iv,
0014                    int ig,
0015                    const math::XYZVectorD& tkp,
0016                    const math::XYZTLorentzVectorD& tkm)
0017     : Core(ipart, p), ivert(iv), igenpart(ig), tkposition(tkp), tkmomentum(tkm), crossedBoundary_(false) {}
0018 
0019 SimTrack::SimTrack(const CoreSimTrack& t, int iv, int ig) : Core(t), ivert(iv), igenpart(ig), crossedBoundary_(false) {}
0020 
0021 std::ostream& operator<<(std::ostream& o, const SimTrack& t) {
0022   return o << (SimTrack::Core)(t) << ", " << t.vertIndex() << ", " << t.genpartIndex();
0023 }