Added to SVN repository

This commit is contained in:
paraiso 2006-02-16 17:17:26 +00:00
parent 17de382c99
commit ebe1b24b33

View File

@ -1,10 +1,10 @@
//§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§//*
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION
// ID : LEMuSR.cc , v 1.0
// AUTHOR: Taofiq PARAISO
// DATE : 2004-06-24 09:57
//§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§//
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
//
// & &&&&&&&&&& &&&&&&& &&&&&&&&
// & & && && & &&
@ -18,44 +18,43 @@
// &
// &
//
//§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§//
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
// G4 CLASSES
// I G4 CLASSES
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
#include "G4ios.hh"
#include <iomanip.h>
// LEMuSR CLASSES
// II LEMuSR CLASSES
// a_ Mandatory Classes
#include "LEMuSRDetectorConstruction.hh"
#include "LEMuSRPhysicsList.hh"
#include "PhysicsList.hh"
#include "LEMuSRPrimaryGeneratorAction.hh"
// b_ Optionnal Classes
#include "LEMuSRRunAction.hh"
#include "LEMuSREventAction.hh"
#include "LEMuSRSteppingAction.hh"
#include "LEMuSRStackingAction.hh"
#include "LEMuSRTrackingAction.hh"
// DUMMY PLANES STEPPING ACTIONS
// III TEST STEPPING ACTIONS CLASSES
#include "AsymCheck.hh"
#include "FieldCheck.hh"
#include "TDCheck.hh"
#include "FocalLengthTest.hh"
// LEMuSR VISUALIZATION CLASS
// IV LEMuSR VISUALIZATION CLASS
#include "LEMuSRVisManager.hh"
// Interactive root xwindow
// V Interactive root xwindow
#ifdef G4UI_USE_ROOT
#include "G4UIRoot.hh"
#endif
@ -72,64 +71,62 @@ int main(int argc,char** argv)//argc:: defines the user interface
HepRandom::setTheEngine(theRanGenerator);
// 1 The run manager construction
//! 1 The run manager construction
G4RunManager* runManager = new G4RunManager;
// 2 The three mandatory classes
//! 2 The three mandatory classes
// 2.1 LEMuSR Initialization classes
//! 2.1 LEMuSR Initialization classes
LEMuSRDetectorConstruction* lemuDetector = new LEMuSRDetectorConstruction();
LEMuSRPhysicsList* lemuPhysicsList = new LEMuSRPhysicsList();
LEMuSRPhysicsList* lemuPhysicsList = new LEMuSRPhysicsList();
// 2.2 LEMuSR Action class
LEMuSRPrimaryGeneratorAction* lemuPGA = new LEMuSRPrimaryGeneratorAction();
//! 2.2 LEMuSR Action class
LEMuSRPrimaryGeneratorAction* lemuPGA = new LEMuSRPrimaryGeneratorAction();
// 2.3 Setting the mandatory Initialization classes
//! 2.3 Setting the mandatory Initialization classes
runManager ->SetUserInitialization( lemuDetector );
runManager ->SetUserInitialization( lemuPhysicsList );
// 2.4 Setting the mandatory Action class
//! 2.4 Setting the mandatory Action class
runManager ->SetUserAction( lemuPGA );
// 3 The optionnal classes
//! 3 The optionnal classes
runManager ->SetUserAction( new LEMuSRRunAction());
//#ifndef LEMU_TEST_FOCAL_LENGTH
runManager ->SetUserAction( new LEMuSREventAction());// scintillators, sensitive detectors
//#endif
runManager ->SetUserAction( new LEMuSRTrackingAction());
// optionnal stepping action: enable one at once
//! Optionnal stepping action: enable one at once only
#if defined LEMU_TEST_ASYM
runManager ->SetUserAction( new AsymCheck());
runManager ->SetUserAction( new AsymCheck()); //! To test the asymmetry
#elif defined LEMU_TEST_FIELD
runManager ->SetUserAction( new FieldCheck());
runManager ->SetUserAction( new FieldCheck()); //! To test the EM fields
#elif defined LEMU_TEST_CFOIL
runManager ->SetUserAction( new TDCheck());
runManager ->SetUserAction( new TDCheck()); //! To test the trigger foil
#elif defined LEMU_TEST_FOCAL_LENGTH
runManager ->SetUserAction( new FocalLengthTest());
runManager ->SetUserAction( new FocalLengthTest()); //! To test the focal length of the einzel lens
#else
runManager ->SetUserAction( new LEMuSRSteppingAction());// fur debugging
runManager ->SetUserAction( new LEMuSRSteppingAction()); //! For a normal run
#endif
// 4 The visualization manager construction and initialization
// ! will be initialize only if the env variable G4VIS_USE=1 !
//! 4 The visualization manager construction and initialization. It will be initialize only if the env variable G4VIS_USE=1 !
#ifdef G4VIS_USE
LEMuSRVisManager* lemuVisManager = new LEMuSRVisManager;
lemuVisManager -> Initialize();
#endif
// 5 Initialize G4 kernel
//! 5 Initialize G4 kernel
runManager -> Initialize();
// Configuration of the User Interface manager
//! 6 Configuration of the User Interface manager
G4UImanager* UI = G4UImanager::GetUIpointer();
G4UIsession* session = 0;
@ -160,10 +157,11 @@ int main(int argc,char** argv)//argc:: defines the user interface
G4cout<<"\n READY TO TEST ASYMETRY! ";
#endif
//! JOB START
session->SessionStart();
// JOB TERMINATION
//! JOB TERMINATION
delete session;