00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: TrkContext.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $ 00004 // 00005 // Description: 00006 // 00007 // 00008 // Environment: 00009 // Software developed for the BaBar Detector at the SLAC B-Factory. 00010 // 00011 // Author(s): Steve Schaffner 00012 // 00013 //------------------------------------------------------------------------ 00014 //#include "BaBar/BaBar.hh" 00015 #include "TrkBase/TrkContext.h" 00016 00017 //------------------------------------------------------------------------ 00018 TrkContext::TrkContext(const BField* bf) { 00019 //------------------------------------------------------------------------ 00020 _bf = bf; 00021 } 00022 00023 //------------------------------------------------------------------------ 00024 TrkContext::TrkContext(const TrkContext &rhs) { 00025 //------------------------------------------------------------------------ 00026 _bf = rhs._bf; 00027 } 00028 00029 //------------------------------------------------------------------------ 00030 TrkContext& 00031 TrkContext::operator= (const TrkContext& rhs) { 00032 //------------------------------------------------------------------------ 00033 if (&rhs == this) return *this; 00034 _bf = rhs._bf; 00035 return *this; 00036 } 00037 00038 //------------------------------------------------------------------------ 00039 TrkContext::~TrkContext() { 00040 //------------------------------------------------------------------------ 00041 } 00042 00043 //------------------------------------------------------------------------ 00044 void 00045 TrkContext::setBField(const BField* bf) { 00046 //------------------------------------------------------------------------ 00047 _bf = bf; 00048 } 00049 00050 //------------------------------------------------------------------------ 00051 bool 00052 TrkContext::operator==(const TrkContext& rhs) const { 00053 //------------------------------------------------------------------------ 00054 return (_bf == rhs._bf); 00055 }