/home/cern/BDSIM_new/src/BDSField.cc

00001 /* BDSIM code.
00002 
00003 */
00004 
00005 #include "globals.hh"
00006 #include "BDSField.hh"
00007 
00008 BDSField::BDSField()
00009 {
00010 }
00011 
00012 BDSField::~BDSField()
00013 { 
00014 }
00015 
00016 G4bool   BDSField::DoesFieldChangeEnergy() const
00017 {
00018   //default
00019   return false;
00020 }
00021 
00022 
00023 
00024 void BDSField::GetFieldValue(const G4double Point[4],G4double *Bfield ) const
00025 {
00026   // default 0
00027 
00028   Bfield[0] = 0;
00029   Bfield[1] = 0;
00030   Bfield[2] = 0;
00031 
00032   Bfield[3] = 0;
00033   Bfield[4] = 0;
00034   Bfield[5] = 0;
00035 
00036 }
00037 
00038 void BDSField::Prepare(G4VPhysicalVolume *referenceVolume)
00039 {
00040   // default - do nothing
00041 }
00042 
00043 void BDSField::SetOriginRotation(G4RotationMatrix rot)
00044 {
00045   rotation = rot;
00046 }
00047 
00048 void BDSField::SetOriginTranslation(G4ThreeVector trans)
00049 {
00050   translation = trans;
00051 }

Generated on Wed Mar 5 17:25:22 2008 for BDSIM by  doxygen 1.5.3