00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // 00004 // Description: 00005 // 00006 // 00007 // Environment: 00008 // Software developed for the BaBar Detector at the SLAC B-Factory. 00009 // 00010 // Author(s): Justin Albert, Steve Schaffner 00011 // 00012 //------------------------------------------------------------------------ 00013 #include "TrkBase/TrkMomVisitor.h" 00014 #include "TrkBase/TrkSimpTraj.h" 00015 00016 00017 //------------------------------------------------------------------------ 00018 TrkMomVisitor::~TrkMomVisitor() { 00019 //------------------------------------------------------------------------ 00020 } 00021 00022 //------------------------------------------------------------------------ 00023 TrkMomVisitor::TrkMomVisitor(const TrkSimpTraj& theTraj) { 00024 //------------------------------------------------------------------------ 00025 // accept this puppy 00026 00027 theTraj.visitAccept(this); 00028 } 00029 00030 //------------------------------------------------------------------------ 00031 void 00032 TrkMomVisitor::trkVisitHelixTraj(const HelixTraj* theTraj) { 00033 //------------------------------------------------------------------------ 00034 // set the "array" 00035 00036 _ht = theTraj; 00037 _ct = 0; 00038 _nt = 0; 00039 _lt = 0; 00040 } 00041 00042 //------------------------------------------------------------------------ 00043 void 00044 TrkMomVisitor::trkVisitCircleTraj(const TrkCircleTraj* theTraj) { 00045 //------------------------------------------------------------------------ 00046 // set the "array" 00047 00048 _ht = 0; 00049 _ct = theTraj; 00050 _nt = 0; 00051 _lt = 0; 00052 } 00053 00054 //------------------------------------------------------------------------ 00055 void 00056 TrkMomVisitor::trkVisitNeutTraj(const NeutTraj* theTraj) { 00057 //------------------------------------------------------------------------ 00058 // set the "array" 00059 00060 _ht = 0; 00061 _ct = 0; 00062 _nt = theTraj; 00063 _lt = 0; 00064 } 00065 00066 //------------------------------------------------------------------------ 00067 void 00068 TrkMomVisitor::trkVisitLineTraj(const TrkDifLineTraj* theTraj) { 00069 //------------------------------------------------------------------------ 00070 // set the "array" 00071 00072 _ht = 0; 00073 _ct = 0; 00074 _nt = 0; 00075 _lt = theTraj; 00076 } 00077 00078 00079