Import Geant4 3.1.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5CalorHit.cc,v 1.2 1999/12/15 14:49:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5CalorimeterSD.cc,v 1.2 1999/12/15 14:49:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5DetectorConstruction.cc,v 1.4 2000/01/20 15:34:39 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: Em5DetectorConstruction.cc,v 1.5 2001/03/27 09:24:00 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -130,6 +130,10 @@ density = 8.960*g/cm3;
|
||||
a = 63.55*g/mole;
|
||||
G4Material* Cu = new G4Material(name="Copper" , z=29., a, density);
|
||||
|
||||
density = 19.30*g/cm3;
|
||||
a =183.85*g/mole;
|
||||
G4Material* W = new G4Material(name="Tungsten" , z=74., a, density);
|
||||
|
||||
density = 19.32*g/cm3;
|
||||
a =196.97*g/mole;
|
||||
G4Material* Au = new G4Material(name="Gold" , z=79., a, density);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5DetectorMessenger.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5EventAction.cc,v 1.3 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: Em5EventAction.cc,v 1.4 2001/02/20 16:26:49 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -56,11 +56,17 @@ Em5EventAction::~Em5EventAction()
|
||||
void Em5EventAction::BeginOfEventAction(const G4Event* evt)
|
||||
{
|
||||
G4int evtNb = evt->GetEventID();
|
||||
|
||||
//printing survey
|
||||
if (evtNb%printModulo == 0)
|
||||
G4cout << "\n---> Begin of Event: " << evtNb << G4endl;
|
||||
|
||||
if(verboselevel>1)
|
||||
G4cout << "<<< Event " << evtNb << " started." << G4endl;
|
||||
|
||||
//save rndm status
|
||||
if (runaction->GetRndmFreq() == 2)
|
||||
{
|
||||
HepRandom::saveEngineStatus("beginOfEvent.rndm");
|
||||
if (evtNb%printModulo == 0) HepRandom::showEngineStatus();
|
||||
}
|
||||
|
||||
if (calorimeterCollID==-1)
|
||||
{
|
||||
@@ -139,22 +145,6 @@ void Em5EventAction::EndOfEventAction(const G4Event* evt)
|
||||
trj->DrawTrajectory(50);
|
||||
}
|
||||
}
|
||||
|
||||
if(verboselevel>0)
|
||||
G4cout << "<<< Event " << evt->GetEventID() << " ended." << G4endl;
|
||||
|
||||
|
||||
//save rndm status
|
||||
if (runaction->GetRndmFreq() == 2)
|
||||
{
|
||||
HepRandom::saveEngineStatus("endOfEvent.rndm");
|
||||
G4int evtNb = evt->GetEventID();
|
||||
if (evtNb%printModulo == 0)
|
||||
{
|
||||
G4cout << "\n---> End of Event: " << evtNb << G4endl;
|
||||
HepRandom::showEngineStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5EventActionMessenger.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5PhysicsList.cc,v 1.6 2000/05/24 16:13:21 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: Em5PhysicsList.cc,v 1.7 2001/01/09 12:36:38 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -42,8 +42,6 @@ Em5PhysicsList::Em5PhysicsList(Em5DetectorConstruction* p)
|
||||
cutForElectron = defaultCutValue;
|
||||
cutForProton = defaultCutValue;
|
||||
|
||||
MaxChargedStep = DBL_MAX;
|
||||
|
||||
SetVerboseLevel(1);
|
||||
physicsListMessenger = new Em5PhysicsListMessenger(this);
|
||||
}
|
||||
@@ -145,8 +143,6 @@ void Em5PhysicsList::ConstructProcess()
|
||||
|
||||
#include "G4hIonisation.hh"
|
||||
|
||||
#include "Em5StepCut.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void Em5PhysicsList::ConstructEM()
|
||||
@@ -169,20 +165,12 @@ void Em5PhysicsList::ConstructEM()
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
|
||||
Em5StepCut* theeminusStepCut = new Em5StepCut();
|
||||
theeminusStepCut->SetMaxStep(MaxChargedStep);
|
||||
pmanager->AddProcess(theeminusStepCut, -1,-1,4);
|
||||
|
||||
} else if (particleName == "e+") {
|
||||
//positron
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
|
||||
|
||||
Em5StepCut* theeplusStepCut = new Em5StepCut();
|
||||
theeplusStepCut->SetMaxStep(MaxChargedStep) ;
|
||||
pmanager->AddProcess(theeplusStepCut, -1,-1,5);
|
||||
|
||||
} else if( particleName == "mu+" ||
|
||||
particleName == "mu-" ) {
|
||||
@@ -190,8 +178,8 @@ void Em5PhysicsList::ConstructEM()
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
|
||||
pmanager->AddProcess(new G4MuIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
|
||||
|
||||
} else if (
|
||||
particleName == "proton"
|
||||
|| particleName == "antiproton"
|
||||
@@ -203,10 +191,6 @@ void Em5PhysicsList::ConstructEM()
|
||||
{
|
||||
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
|
||||
pmanager->AddProcess(new G4hIonisation, -1,2,2);
|
||||
|
||||
Em5StepCut* thehadronStepCut = new Em5StepCut();
|
||||
thehadronStepCut->SetMaxStep(MaxChargedStep);
|
||||
pmanager->AddProcess( thehadronStepCut, -1,-1,3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -214,21 +198,28 @@ void Em5PhysicsList::ConstructEM()
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#include "G4Decay.hh"
|
||||
#include "Em5StepCut.hh"
|
||||
|
||||
void Em5PhysicsList::ConstructGeneral()
|
||||
{
|
||||
// Add Decay Process
|
||||
G4Decay* theDecayProcess = new G4Decay();
|
||||
pStepCut = new Em5StepCut();
|
||||
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() ){
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
|
||||
//add decay process
|
||||
if (theDecayProcess->IsApplicable(*particle)) {
|
||||
pmanager ->AddProcess(theDecayProcess);
|
||||
// set ordering for PostStepDoIt and AtRestDoIt
|
||||
pmanager ->SetProcessOrdering(theDecayProcess, idxPostStep);
|
||||
pmanager ->SetProcessOrdering(theDecayProcess, idxAtRest);
|
||||
}
|
||||
|
||||
//user StepCut
|
||||
pmanager ->AddDiscreteProcess(pStepCut);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -364,9 +355,8 @@ void Em5PhysicsList::GetRange(G4double val)
|
||||
|
||||
void Em5PhysicsList::SetMaxStep(G4double step)
|
||||
{
|
||||
MaxChargedStep = step ;
|
||||
G4cout << " MaxChargedStep=" << MaxChargedStep << G4endl;
|
||||
G4cout << G4endl;
|
||||
pStepCut->SetMaxStep(step);
|
||||
G4cout << " MaxChargedStep=" << step/mm << " mm" << G4endl;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5PhysicsListMessenger.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5PrimaryGeneratorAction.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5PrimaryGeneratorMessenger.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,14 +5,13 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5RunAction.cc,v 1.5 2000/12/07 13:32:34 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: Em5RunAction.cc,v 1.8 2001/03/27 09:24:00 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#include "Em5RunAction.hh"
|
||||
#include "Em5RunMessenger.hh"
|
||||
|
||||
@@ -24,6 +23,11 @@
|
||||
|
||||
#include "Randomize.hh"
|
||||
|
||||
#ifndef G4NOHIST
|
||||
#include "CLHEP/Hist/HBookFile.h"
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Em5RunAction::Em5RunAction()
|
||||
@@ -31,7 +35,12 @@ Em5RunAction::Em5RunAction()
|
||||
nbinTsec(0),nbinTh(0),nbinThback(0),nbinR(0),nbinGamma(0),nbinvertexz(0)
|
||||
{
|
||||
runMessenger = new Em5RunMessenger(this);
|
||||
saveRndm = 1;
|
||||
saveRndm = 1;
|
||||
|
||||
#ifndef G4NOHIST
|
||||
histo1=0; histo2=0; histo3=0; histo4=0; histo5=0; histo6=0; histo7=0;
|
||||
histo8=0; histo9=0; histo10=0;hi2bis=0;
|
||||
#endif
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -39,12 +48,101 @@ Em5RunAction::Em5RunAction()
|
||||
Em5RunAction::~Em5RunAction()
|
||||
{
|
||||
delete runMessenger;
|
||||
#ifndef G4NOHIST
|
||||
// Write histogram file
|
||||
hbookManager->write();
|
||||
|
||||
if(histo1) delete histo1 ;
|
||||
if(histo2) {delete histo2 ; delete hi2bis;}
|
||||
if(histo3) delete histo3 ;
|
||||
if(histo4) delete histo4 ;
|
||||
if(histo5) delete histo5 ;
|
||||
if(histo6) delete histo6 ;
|
||||
if(histo7) delete histo7 ;
|
||||
if(histo8) delete histo8 ;
|
||||
if(histo9) delete histo9 ;
|
||||
if(histo10) delete histo10;
|
||||
delete hbookManager;
|
||||
#endif
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void Em5RunAction::bookHisto()
|
||||
{}
|
||||
{
|
||||
#ifndef G4NOHIST
|
||||
// init hbook
|
||||
hbookManager = new HBookFile(histName, 68);
|
||||
assert (hbookManager != 0);
|
||||
|
||||
// book histograms
|
||||
if(nbinStep>0)
|
||||
{
|
||||
histo1 = hbookManager->histogram("number of steps/event"
|
||||
,nbinStep,Steplow,Stephigh) ;
|
||||
assert (histo1 != 0);
|
||||
}
|
||||
if(nbinEn>0)
|
||||
{
|
||||
histo2 = hbookManager->histogram("energy deposit in absorber(in MeV)"
|
||||
,nbinEn,Enlow,Enhigh) ;
|
||||
assert (histo2 != 0);
|
||||
|
||||
hi2bis = hbookManager->histogram("energy deposit: normalized distribution"
|
||||
,nbinEn,Enlow,Enhigh) ;
|
||||
assert (hi2bis != 0);
|
||||
}
|
||||
if(nbinTh>0)
|
||||
{
|
||||
histo3 = hbookManager->histogram("angle distribution at exit(deg)"
|
||||
,nbinTh,Thlow/deg,Thhigh/deg) ;
|
||||
assert (histo3 != 0);
|
||||
}
|
||||
if(nbinR>0)
|
||||
{
|
||||
histo4 = hbookManager->histogram("lateral distribution at exit(mm)"
|
||||
,nbinR ,Rlow,Rhigh) ;
|
||||
assert (histo4 != 0);
|
||||
}
|
||||
if(nbinTt>0)
|
||||
{
|
||||
histo5 = hbookManager->histogram("kinetic energy of the primary at exit(MeV)"
|
||||
,nbinTt,Ttlow,Tthigh) ;
|
||||
assert (histo5 != 0);
|
||||
}
|
||||
if(nbinThback>0)
|
||||
{
|
||||
histo6 = hbookManager->histogram("angle distribution of backscattered primaries(deg)"
|
||||
,nbinThback,Thlowback/deg,Thhighback/deg) ;
|
||||
assert (histo6 != 0);
|
||||
}
|
||||
if(nbinTb>0)
|
||||
{
|
||||
histo7 = hbookManager->histogram("kinetic energy of the backscattered primaries (MeV)"
|
||||
,nbinTb,Tblow,Tbhigh) ;
|
||||
assert (histo7 != 0);
|
||||
}
|
||||
if(nbinTsec>0)
|
||||
{
|
||||
histo8 = hbookManager->histogram("kinetic energy of the charged secondaries (MeV)"
|
||||
,nbinTsec,Tseclow,Tsechigh) ;
|
||||
assert (histo8 != 0);
|
||||
}
|
||||
if(nbinvertexz>0)
|
||||
{
|
||||
histo9 = hbookManager->histogram("z of secondary charged vertices(mm)"
|
||||
,nbinvertexz ,zlow,zhigh) ;
|
||||
assert (histo9 != 0);
|
||||
}
|
||||
if(nbinGamma>0)
|
||||
{
|
||||
histo10= hbookManager->histogram("kinetic energy of gammas escaping the absorber (MeV)"
|
||||
// ,nbinGamma,ElowGamma,EhighGamma) ;
|
||||
,nbinGamma,log10(ElowGamma),log10(EhighGamma)) ;
|
||||
assert (histo10 != 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -337,7 +435,9 @@ void Em5RunAction::EndOfRunAction(const G4Run* aRun)
|
||||
for(G4int ien=0; ien<nbinEn; ien++)
|
||||
{
|
||||
E += dEn ;
|
||||
|
||||
#ifndef G4NOHIST
|
||||
hi2bis->accumulate(E+0.5*dEn,distEn[ien]/TotNbofEvents);
|
||||
#endif
|
||||
if(distEn[ien]>fmax)
|
||||
{
|
||||
fmax=distEn[ien];
|
||||
@@ -631,7 +731,7 @@ void Em5RunAction::EndOfRunAction(const G4Run* aRun)
|
||||
G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
|
||||
|
||||
// save Rndm status
|
||||
if (saveRndm == 1)
|
||||
if (saveRndm > 0)
|
||||
{ HepRandom::showEngineStatus();
|
||||
HepRandom::saveEngineStatus("endOfRun.rndm");
|
||||
}
|
||||
@@ -707,6 +807,9 @@ void Em5RunAction::FillNbOfSteps(G4double ns)
|
||||
ibin= bin ;
|
||||
distStep[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo1->accumulate(ns);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -731,6 +834,9 @@ void Em5RunAction::FillEn(G4double En)
|
||||
ibin= bin ;
|
||||
distEn[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo2->accumulate(En/MeV);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -757,6 +863,9 @@ void Em5RunAction::FillTt(G4double En)
|
||||
ibin= bin ;
|
||||
distTt[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo5->accumulate(En/MeV);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -783,6 +892,9 @@ void Em5RunAction::FillTb(G4double En)
|
||||
ibin= bin ;
|
||||
distTb[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo7->accumulate(En/MeV) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -807,6 +919,9 @@ void Em5RunAction::FillTsec(G4double En)
|
||||
ibin= bin ;
|
||||
distTsec[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo8->accumulate(En/MeV) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -831,6 +946,9 @@ void Em5RunAction::FillGammaSpectrum(G4double En)
|
||||
ibin= bin ;
|
||||
distGamma[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo10->accumulate(log10(En/MeV)) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -869,7 +987,10 @@ void Em5RunAction::FillTh(G4double Th)
|
||||
wg=0. ;
|
||||
}
|
||||
distTh[ibin] += wg ;
|
||||
}
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo3->accumulate(Th/deg, wg) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -907,7 +1028,11 @@ void Em5RunAction::FillThBack(G4double Th)
|
||||
}
|
||||
distThback[ibin] += wg ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo6->accumulate(Th/deg, wg) ;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -932,7 +1057,10 @@ void Em5RunAction::FillR(G4double R )
|
||||
bin = (R -Rlow)/dR ;
|
||||
ibin= bin ;
|
||||
distR[ibin] += 1. ;
|
||||
}
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo4->accumulate(R/mm) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -957,6 +1085,9 @@ void Em5RunAction::Fillvertexz(G4double z )
|
||||
ibin= bin ;
|
||||
distvertexz[ibin] += 1. ;
|
||||
}
|
||||
#ifndef G4NOHIST
|
||||
histo9->accumulate(z/mm) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5RunMessenger.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: Em5RunMessenger.cc,v 1.3 2001/02/20 16:26:50 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -167,8 +167,8 @@ Em5RunMessenger::Em5RunMessenger(Em5RunAction* RA)
|
||||
RndmSaveCmd->SetGuidance("set frequency to save rndm status on external files.");
|
||||
RndmSaveCmd->SetGuidance("freq = 0 not saved");
|
||||
RndmSaveCmd->SetGuidance("freq > 0 saved on: beginOfRun.rndm");
|
||||
RndmSaveCmd->SetGuidance("freq = 1 saved on: endOfRun.rndm");
|
||||
RndmSaveCmd->SetGuidance("freq = 2 saved on: endOfEvent.rndm");
|
||||
RndmSaveCmd->SetGuidance("freq > 0 saved on: endOfRun.rndm");
|
||||
RndmSaveCmd->SetGuidance("freq = 2 saved on: beginOfEvent.rndm");
|
||||
RndmSaveCmd->SetParameterName("frequency",false);
|
||||
RndmSaveCmd->SetRange("frequency>=0 && frequency<=2");
|
||||
RndmSaveCmd->AvailableForStates(PreInit,Idle);
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5StepCut.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#include "Em5StepCut.hh"
|
||||
|
||||
#include "G4Step.hh"
|
||||
#include "G4UserLimits.hh"
|
||||
#include "G4VParticleChange.hh"
|
||||
#include "G4EnergyLossTables.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Em5StepCut::Em5StepCut(const G4String& aName)
|
||||
: G4VDiscreteProcess(aName),MaxChargedStep(DBL_MAX)
|
||||
{
|
||||
if (verboseLevel>0) {
|
||||
G4cout << GetProcessName() << " is created "<< G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Em5StepCut::~Em5StepCut()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Em5StepCut::Em5StepCut(Em5StepCut& right)
|
||||
:G4VDiscreteProcess(right)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void Em5StepCut::SetMaxStep(G4double step)
|
||||
{
|
||||
MaxChargedStep = step ;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5SteppingAction.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5SteppingMessenger.cc,v 1.2 1999/12/15 14:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5SteppingVerbose.cc,v 1.4 2000/12/06 18:25:55 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: Em5SteppingVerbose.cc,v 1.6 2001/02/19 14:08:39 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
|
||||
@@ -46,7 +46,7 @@ void Em5SteppingVerbose::StepInfo()
|
||||
<< G4std::setw( 9) << "dEStep" << " "
|
||||
<< G4std::setw(10) << "StepLeng"
|
||||
<< G4std::setw(10) << "TrakLeng"
|
||||
<< G4std::setw(10) << "NextVolu"
|
||||
<< G4std::setw(10) << "Volume" << " "
|
||||
<< G4std::setw(10) << "Process" << G4endl;
|
||||
}
|
||||
|
||||
@@ -61,16 +61,17 @@ void Em5SteppingVerbose::StepInfo()
|
||||
|
||||
// if( fStepStatus != fWorldBoundary){
|
||||
if( fTrack->GetNextVolume() != 0 ) {
|
||||
G4cout << G4std::setw(10) << fTrack->GetNextVolume()->GetName();
|
||||
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
} else {
|
||||
G4cout << G4std::setw(10) << "OutOfWorld";
|
||||
}
|
||||
|
||||
if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
|
||||
G4cout << G4std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName();
|
||||
G4cout << " "
|
||||
<< G4std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName();
|
||||
} else {
|
||||
G4cout << "User Limit";
|
||||
G4cout << " UserLimit";
|
||||
}
|
||||
|
||||
G4cout << G4endl;
|
||||
@@ -86,12 +87,12 @@ void Em5SteppingVerbose::StepInfo()
|
||||
<< ",Along=" << G4std::setw(2) << fN2ndariesAlongStepDoIt
|
||||
<< ",Post=" << G4std::setw(2) << fN2ndariesPostStepDoIt
|
||||
<< "), "
|
||||
<< "#SpawnTotal=" << G4std::setw(3) << (*fSecondary).entries()
|
||||
<< "#SpawnTotal=" << G4std::setw(3) << (*fSecondary).size()
|
||||
<< " ---------------"
|
||||
<< G4endl;
|
||||
|
||||
for(G4int lp1=(*fSecondary).entries()-tN2ndariesTot;
|
||||
lp1<(*fSecondary).entries(); lp1++){
|
||||
for(G4int lp1=(*fSecondary).size()-tN2ndariesTot;
|
||||
lp1<(*fSecondary).size(); lp1++){
|
||||
G4cout << " : "
|
||||
<< G4std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
|
||||
@@ -115,8 +116,8 @@ void Em5SteppingVerbose::StepInfo()
|
||||
|
||||
}
|
||||
G4cout.precision(prec);
|
||||
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
|
||||
|
||||
void Em5SteppingVerbose::TrackingStarted()
|
||||
@@ -134,7 +135,7 @@ G4int prec = G4cout.precision(3);
|
||||
<< G4std::setw( 9) << "dEStep" << " "
|
||||
<< G4std::setw(10) << "StepLeng"
|
||||
<< G4std::setw(10) << "TrakLeng"
|
||||
<< G4std::setw(10) << "NextVolu"
|
||||
<< G4std::setw(10) << "Volume" << " "
|
||||
<< G4std::setw(10) << "Process" << G4endl;
|
||||
|
||||
G4cout << G4std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
|
||||
@@ -147,13 +148,13 @@ G4int prec = G4cout.precision(3);
|
||||
<< G4std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
|
||||
if(fTrack->GetNextVolume()){
|
||||
G4cout << G4std::setw(10) << fTrack->GetNextVolume()->GetName() << " ";
|
||||
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
} else {
|
||||
G4cout << G4std::setw(10) << "OutOfWorld" << " ";
|
||||
G4cout << G4std::setw(10) << "OutOfWorld";
|
||||
}
|
||||
G4cout << G4std::setw(10) << "initStep" << G4endl;
|
||||
G4cout << " initStep" << G4endl;
|
||||
}
|
||||
G4cout.precision(prec);
|
||||
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em5VisManager.cc,v 1.2 1999/12/15 14:49:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
|
||||
Reference in New Issue
Block a user