/scratch0/jsnuveri/BDSIM/BDSIMgit/bdsim/include/BDSMultipoleMagField.hh

00001 /* BDSIM
00002 
00003 19 May 2008 by Marchiori G.
00004 17 Apr 2006 by Ilya Agapov
00005 
00006 */
00007 
00008 #ifndef BDSMULTIPOLEMAGFIELD_H
00009 #define BDSMULTIPOLEMAGFIELD_H
00010 
00011 #include <list>
00012 #include "G4Types.hh"
00013 #include "G4MagneticField.hh"
00014 
00015 class BDSMultipoleMagField: public G4MagneticField
00016 {
00017 public:  // with description
00018 
00019   BDSMultipoleMagField(std::list<G4double> knl, std::list<G4double> ksl);
00020   virtual ~BDSMultipoleMagField();
00021   // Constructor and destructor. No actions.
00022 
00023 
00024   virtual void  GetFieldValue( const G4double *Point,
00025                                G4double *Bfield ) const;
00026 
00027 public:
00028   
00029   std::list<G4double> bn; // field normal coefficients = kn * Brho
00030   std::list<G4double> bs; // field skew coefficients = ks * Brho
00031 
00032 };
00033 
00034 
00035 #endif 

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7