/scratch0/jsnuveri/BDSIM/BDSIMgit/bdsim/src/BDSMagField.cc

00001 /* BDSIM code.
00002 
00003 */
00004 
00005 #include "globals.hh"
00006 #include "BDSMagField.hh"
00007 
00008 BDSMagField::BDSMagField():rotation(NULL)
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::SetOriginRotation(G4RotationMatrix rot)
00048 {
00049   rotation = new G4RotationMatrix(rot);
00050 }
00051 
00052 G4RotationMatrix BDSMagField::Rotation() const{
00053   return *rotation;
00054 }
00055 
00056 void BDSMagField::SetOriginTranslation(G4ThreeVector trans)
00057 {
00058   translation = trans;
00059 }
00060 
00061 G4bool GetHasNPoleFields(){
00062   return false;
00063 }
00064 
00065 G4bool GetHasUniformField(){
00066   return false;
00067 }
00068 
00069 G4bool GetHasFieldMap(){
00070   return false;
00071 }

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7