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,3 +1,25 @@
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION
//
// ID : LEMuSRParticleGun.hh , v 1.2
// AUTHOR: Taofiq PARAISO
// DATE : 2004-08-20 10:48
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
//
// & &&&&&&&&&& &&&&&&& &&&&&&&&
// & & && && & &&
// & & & & & & &&
// & &&&&&&& & & &&&&&& &&&&&&&&
// & & & && & & &&
// & & && & & && && & &
// &&&&&&&&&& &&&&&&&&&& & &&&&& && &&&&&&& & &&
// &
// &
// &
// &
// PARTICLE GUN
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
#ifndef LEMuSRParticleGun_h
#define LEMuSRParticleGun_h 1
@ -8,24 +30,40 @@
class LEMuSRParticleGunMessenger;
#include"G4ParticleGunMessenger.hh"
/*!
* The LEMuSRParticleGun is the class which stores the initial settings of the particles.
* Its interplay with the LEMuSRPrimaryGeneratorAction (PGA) is very strong.
* Indeed, the particle gun object is instanciated and initialized in the PGA.
*
* After this initialization, the PGA calls the particle gun's GeneratePrimaryVertex method
* to create an event with the defined initial conditions.
*
* As an image one can think that the PGA loads the gun with some defined particles,
* set the shooting energy, aims and fires. Hence the name.
*/
class LEMuSRParticleGun: public G4ParticleGun
{
public:
//!\ct
LEMuSRParticleGun();
//!\dt
~LEMuSRParticleGun();
//! Creates the first event.
void GeneratePrimaryVertex(G4Event* evt);
//! Assign a decay time
inline void SetDecayTime(G4double d) {decaytime = d;}
G4double decaytime;
protected:
//! Default initialization of the gun.
void SetInitialValues();
private:
//! Messenger
LEMuSRParticleGunMessenger* theMessenger;
G4ParticleGunMessenger* Messenger;