Added to SVN repository

This commit is contained in:
paraiso
2006-02-16 17:21:13 +00:00
parent b67a2876ac
commit b98f222ba8
49 changed files with 1577 additions and 183 deletions

View File

@@ -1,29 +1,69 @@
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION
//
// ID :LEMuSRElMag_SpinEqRhs.hh , v 1.3
// AUTHOR: Taofiq PARAISO
// DATE : 2004-09-17 10:20
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
//
// & &&&&&&&&&& &&&&&&& &&&&&&&&
// & & && && & &&
// & & & & & & &&
// & &&&&&&& & & &&&&&& &&&&&&&&
// & & & && & & &&
// & & && & & && && & &
// &&&&&&&&&& &&&&&&&&&& & &&&&& && &&&&&&& & &&
// &
// &
// &
// &
// ElectroMagnetic Spin Equation
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
/**
* This class defines the motion equation to use to calculate the evolution of a
* particle in an electromagnetic field. The derivatives vector is calculated for
* the electric field, and for the magnetic field, taking into account the spin precession
* and the time evolution.
*/
#ifndef LEMuSRELMAG_SPIN_EQRHS
#define LEMuSRELMAG_SPIN_EQRHS
#define LEMuSRELMAG_SPIN_EQRHS 1
#include "G4Types.hh"
#include "G4Mag_EqRhs.hh"
#include "G4SteppingManager.hh" // Include from 'tracking'
#include "G4TrackingManager.hh" // Include from 'tracking'
#include "LEMuSRTrackingAction.hh"
#include "LEMuSRSteppingAction.hh"
#include "G4EventManager.hh"
#include "G4TrackingManager.hh"
#include "G4Track.hh"
#include "G4ParticleDefinition.hh" // Include from 'tracking'
class G4MagneticField;
class LEMuSRElMag_SpinEqRhs : public G4Mag_EqRhs
{
public: // with description
//! Constructor.
LEMuSRElMag_SpinEqRhs( G4MagneticField* MagField );
//! Destructor.
~LEMuSRElMag_SpinEqRhs();
// Constructor and destructor. No actions.
//! Set constant particle parameters
void SetChargeMomentumMass(G4double particleCharge, // in e+ units
G4double MomentumXc,
G4double mass);
//! Calculate derivatives.
void EvaluateRhsGivenB( const G4double y[],
const G4double B[3],
G4double dydx[] ) const;
// Given the value of the magnetic field B, this function
// Given the value of the electromagnetic field B, this function
// calculates the value of the derivative dydx.
private:
@@ -35,7 +75,10 @@ class LEMuSRElMag_SpinEqRhs : public G4Mag_EqRhs
G4double E;
G4double gamma, m_mass;
G4double beta;
G4double cst;
G4double cst;
G4double oldomegac; //for debugging :: to remove
};
#endif /* LEMuSRELMAG_SPIN_EQRHS */
#endif