src/BDSMagField.cc

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

Generated on 27 Aug 2013 for BDSIM by  doxygen 1.4.7