91 lines
2.7 KiB
C++
91 lines
2.7 KiB
C++
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//*
|
|
// LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION
|
|
// ID : LEMuSRRunAction.cc , v 1.0
|
|
// AUTHOR: Taofiq PARAISO
|
|
// DATE : 2004-07-12 16:15
|
|
//
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
|
|
//
|
|
// & &&&&&&&&&& &&&&&&& &&&&&&&&
|
|
// & & && && & &&
|
|
// & & & & & & &&
|
|
// & &&&&&&& & & &&&&&& &&&&&&&&
|
|
// & & & && & & &&
|
|
// & & && & & && && & &
|
|
// &&&&&&&&&& &&&&&&&&&& & &&&&& && &&&&&&& & &&
|
|
// &
|
|
// &
|
|
// &
|
|
// &
|
|
// RUN ACTION.CC
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
|
|
|
|
#include "LEMuSRRunAction.hh"
|
|
|
|
#include "G4Run.hh"
|
|
#include "G4RunManager.hh"
|
|
#include "G4UImanager.hh"
|
|
#include "G4VVisManager.hh"
|
|
#include "G4ios.hh"
|
|
|
|
|
|
#include "G4VPhysicalVolume.hh"
|
|
#include "LEMuSRDetectorConstruction.hh"
|
|
|
|
// ROOT
|
|
#include "TROOT.h"
|
|
#include "TApplication.h"
|
|
#include "TSystem.h"
|
|
#include "TH1.h"
|
|
#include "TPad.h"
|
|
#include "TCanvas.h"
|
|
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
LEMuSRRunAction::LEMuSRRunAction()
|
|
{
|
|
|
|
}
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
LEMuSRRunAction::~LEMuSRRunAction()
|
|
{}
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
//! Actions to take before the run.
|
|
/*!
|
|
* -# Initializes the user interface manager.
|
|
* -# Initialize the visualization
|
|
*/
|
|
void LEMuSRRunAction::BeginOfRunAction(const G4Run* aRun)
|
|
{
|
|
// G4UImanager* UI = G4UImanager::GetUIpointer();
|
|
/* G4cout<<"WILL REBUILD THE DETECTOR"<<G4endl;
|
|
UI->ApplyCommand("/Detector/View total");
|
|
G4VPhysicalVolume* newDetector = LEMuSRDetectorConstruction::GetInstance()->Construct();
|
|
|
|
*/
|
|
|
|
|
|
G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
|
|
|
|
G4RunManager::GetRunManager()->SetRandomNumberStore(true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
/*! Updates the user interface manager.*/
|
|
void LEMuSRRunAction::EndOfRunAction(const G4Run*)
|
|
{
|
|
|
|
}
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|