FlyoDoc_2011 Pisa 2011 by GmP --- 011
|
00001 /*************************************************************************** 00002 devmagn.h - description 00003 ------------------- 00004 begin : Sat May 26 2001 00005 copyright : (C) 2001 by Giuseppe Pierazzini 00006 email : peppe@unipi.it 00007 ***************************************************************************/ 00008 00009 #ifndef DEVMAGN_H 00010 #define DEVMAGN_H 00011 00012 #include "devrtrt.h" 00013 //using namespace std; 00014 #include <cstring> 00015 00016 00017 00023 class DevMagn:public DevRtRt 00024 // Magnete Parallepipedo con buco rettangolare interno 00025 // campo magnetico interno fisso ==> campo=0; 00026 // l'introduzione di forme diverse richiede un aggiornamento di questa classe ?? 00027 // 2007 Il campo e' nel buco !! 00028 00029 { 00030 00031 protected: 00032 gvet B,X,XIN,PIN,VSIN,Puls,KIK,Pvers,Dvers ; 00033 00034 public: 00035 int iter_mag; 00036 double step, dse,path, rho,freestep,vol_max,cam_max; 00037 00038 00039 00040 DevMagn(); 00041 ~DevMagn(); 00042 double Get_CamMag(); 00043 virtual int Traccia(Particella *); 00044 virtual void Prgeom(); 00045 }; 00046 00047 #if defined(MAIN) 00048 DevMagn *Mag48=0,*Mnp33=0,*mnp1=0,*mnp2=0; 00049 #else 00050 extern DevMagn *Mag48,*Mnp33,*mnp1,*mnp2; 00051 00052 #endif 00053 00054 00055 00056 00057 00058 #endif