Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:42

0001 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
0002 #include "TrackingTools/TransientTrack/interface/TrackTransientTrack.h"
0003 #include "TrackingTools/TransientTrack/interface/CandidatePtrTransientTrack.h"
0004 
0005 #include <iostream>
0006 
0007 using namespace reco;
0008 
0009 typedef TrackTransientTrack TTT;
0010 typedef CandidatePtrTransientTrack CTT;
0011 
0012 TransientTrack::TransientTrack(const Track& tk, const MagneticField* field) : Base(new TTT(tk, field)) {}
0013 TransientTrack::TransientTrack(const Track& tk, const double time, const double dtime, const MagneticField* field)
0014     : Base(new TTT(tk, time, dtime, field)) {}
0015 
0016 TransientTrack::TransientTrack(const CandidatePtr& ptr, const MagneticField* field) : Base(new CTT(ptr, field)) {}
0017 
0018 TransientTrack::TransientTrack(const TrackRef& tk, const MagneticField* field) : Base(new TTT(tk, field)) {}
0019 
0020 TransientTrack::TransientTrack(const TrackRef& tk, const double time, const double dtime, const MagneticField* field)
0021     : Base(new TTT(tk, time, dtime, field)) {}
0022 
0023 TransientTrack::TransientTrack(const Track& tk,
0024                                const MagneticField* field,
0025                                const edm::ESHandle<GlobalTrackingGeometry>& tg)
0026     : Base(new TTT(tk, field, tg)) {}
0027 TransientTrack::TransientTrack(const Track& tk,
0028                                const double time,
0029                                const double dtime,
0030                                const MagneticField* field,
0031                                const edm::ESHandle<GlobalTrackingGeometry>& tg)
0032     : Base(new TTT(tk, time, dtime, field, tg)) {}
0033 
0034 TransientTrack::TransientTrack(const TrackRef& tk,
0035                                const MagneticField* field,
0036                                const edm::ESHandle<GlobalTrackingGeometry>& tg)
0037     : Base(new TTT(tk, field, tg)) {}
0038 TransientTrack::TransientTrack(const TrackRef& tk,
0039                                const double time,
0040                                const double dtime,
0041                                const MagneticField* field,
0042                                const edm::ESHandle<GlobalTrackingGeometry>& tg)
0043     : Base(new TTT(tk, time, dtime, field, tg)) {}
0044 
0045 TransientTrack::TransientTrack(const CandidatePtr& tk,
0046                                const MagneticField* field,
0047                                const edm::ESHandle<GlobalTrackingGeometry>& tg)
0048     : Base(new CTT(tk, field, tg)) {}
0049 
0050 TransientTrack::TransientTrack(const CandidatePtr& tk,
0051                                const double time,
0052                                const double dtime,
0053                                const MagneticField* field,
0054                                const edm::ESHandle<GlobalTrackingGeometry>& tg)
0055     : Base(new CTT(tk, time, dtime, field, tg)) {}
0056 
0057 // TransientTrack::TransientTrack( const TransientTrack & tt ) :
0058 //   Base( new TTT(tt)) {}
0059 
0060 // TransientTrack& TransientTrack::operator=(const TransientTrack & tt) {
0061 // //   std::cout << "assign op." << std::endl;
0062 //   if (this == &tt) return *this;
0063 //   //
0064 //   //  std::cout << tt.tk_ << std::endl;
0065 // //   std::cout << "assign base." << std::endl;
0066 //   Track::operator=(tt);
0067 // //   std::cout << "done assign base." << std::endl;
0068 //   //  tk_ = &(tt.persistentTrack());
0069 //   //  tk_ = tt.tk_;
0070 // //   std::cout << "assign ref." << std::endl;
0071 //   tkr_ = tt.persistentTrackRef();
0072 //   initialTSOSAvailable =  tt.initialTSOSAvailable;
0073 //   initialTSCPAvailable = tt.initialTSCPAvailable;
0074 //   initialTSCP = tt.initialTSCP;
0075 //   initialTSOS = tt.initialTSOS;
0076 //   theField = tt.field();
0077 //   initialFTS = tt.initialFreeState();
0078 // //   std::cout << "assign op. OK" << std::endl;
0079 //
0080 //   return *this;
0081 // }