TG4ElementTable* TG4ElementTable::fgInstance = 0;
-// lifecycle
-
+//_____________________________________________________________________________
TG4ElementTable::TG4ElementTable() {
//
Construct();
}
+//_____________________________________________________________________________
TG4ElementTable::TG4ElementTable(const TG4ElementTable& right) {
//
TG4Globals::Exception(
"Attempt to copy TG4ElementTable singleton.");
}
+//_____________________________________________________________________________
TG4ElementTable::~TG4ElementTable(){
//
}
// operators
+//_____________________________________________________________________________
TG4ElementTable& TG4ElementTable::operator=(const TG4ElementTable& right)
{
// check assignement to self
// static methods
+//_____________________________________________________________________________
TG4ElementTable* TG4ElementTable::Instance()
{
// singleton access method
// private methods
+//_____________________________________________________________________________
void TG4ElementTable::Construct()
{
// construct element table
#include <math.h>
+//_____________________________________________________________________________
TG4G3ControlVector::TG4G3ControlVector()
{
// initialize fControlVector
for (G4int i=0; i<kNoG3Controls; i++) fControlVector->insert(kUnset);
}
+//_____________________________________________________________________________
TG4G3ControlVector::TG4G3ControlVector(const TG4G3ControlVector& right)
{
// allocation
*this = right;
}
+//_____________________________________________________________________________
TG4G3ControlVector::~TG4G3ControlVector() {
//
delete fControlVector;
// operators
+//_____________________________________________________________________________
TG4G3ControlVector& TG4G3ControlVector::operator=(
const TG4G3ControlVector& right)
{
return *this;
}
+//_____________________________________________________________________________
G4double TG4G3ControlVector::operator[](G4int index) const
{
//
// public methods
+//_____________________________________________________________________________
void TG4G3ControlVector::SetG3Control(TG4G3Control control,
G4double controlValue)
{
}
}
+//_____________________________________________________________________________
void TG4G3ControlVector::SetG3Defaults()
{
// Sets G3 default values for all controls.
}
}
+//_____________________________________________________________________________
G4int TG4G3ControlVector::GetControl(G4VProcess* process) const
{
// Returns the control value for the particle associated with
#include <G4ParticleDefinition.hh>
#include <G4VProcess.hh>
+//_____________________________________________________________________________
TG4G3CutVector::TG4G3CutVector()
{
// initialize fCutVector
for (G4int i=0; i<kNoG3Cuts; i++) fCutVector->insert(0.);
}
+//_____________________________________________________________________________
TG4G3CutVector::TG4G3CutVector(const TG4G3CutVector& right)
{
// allocation
*this = right;
}
+//_____________________________________________________________________________
TG4G3CutVector::~TG4G3CutVector() {
//
delete fCutVector;
// operators
+//_____________________________________________________________________________
TG4G3CutVector& TG4G3CutVector::operator=(const TG4G3CutVector& right)
{
// check assignement to self
return *this;
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::operator[](G4int index) const
{
//
// public methods
+//_____________________________________________________________________________
void TG4G3CutVector::SetG3Cut(TG4G3Cut cut, G4double cutValue)
{
// Sets the cutValue for the specified cut.
}
}
+//_____________________________________________________________________________
void TG4G3CutVector::SetG3Defaults()
{
// Sets G3 default values for all cuts.
}
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkine(const G4Track& track) const
{
// Returns the cut value for the particle associated with
}
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkineForGamma(const G4Track& track) const
{
// Returns the cut value for gamma.
}
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkineForElectron(const G4Track& track) const
{
// Returns the cut value for e-.
}
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkineForHadron(const G4Track& track) const
{
// Returns the cut value for charged hadron.
return (*fCutVector)[kCUTHAD];
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkineForNeutralHadron(const G4Track& track) const
{
// Returns the cut value for neutral hadron.
return (*fCutVector)[kCUTNEU];
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkineForMuon(const G4Track& track) const
{
// Returns the cut value for neutral muon.
return (*fCutVector)[kCUTMUO];
}
+//_____________________________________________________________________________
G4double TG4G3CutVector::GetMinEkineForOther(const G4Track& track) const
{
// Returns 0.
TG4G3PhysicsManager* TG4G3PhysicsManager::fgInstance = 0;
+//_____________________________________________________________________________
TG4G3PhysicsManager::TG4G3PhysicsManager()
: fLock(false),
fCutVector(0),
FillG3ControlNameVector();
}
+//_____________________________________________________________________________
TG4G3PhysicsManager::TG4G3PhysicsManager(const TG4G3PhysicsManager& right) {
//
TG4Globals::Exception(
"Attempt to copy TG4G3PhysicsManager singleton.");
}
+//_____________________________________________________________________________
TG4G3PhysicsManager::~TG4G3PhysicsManager() {
//
delete fIsCutVector;
// operators
+//_____________________________________________________________________________
TG4G3PhysicsManager&
TG4G3PhysicsManager::operator=(const TG4G3PhysicsManager& right)
{
// private methods
+//_____________________________________________________________________________
void TG4G3PhysicsManager::FillG3CutNameVector()
{
// Defines fCutNameVector.
fG3CutNameVector.insert("PPCUTM");
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::FillG3ControlNameVector()
{
// Defines fControlNameVector.
fG3ControlNameVector.insert("MULS");
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetCut(TG4G3Cut cut, G4double cutValue)
{
// Sets kinetic energy cut (in a G3-like way).
SwitchIsCutVector(cut);
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetProcess(TG4G3Control control, G4int controlValue)
{
// Sets control process control (in a G3-like way).
fControlVector->SetG3Control(control, controlValue);
}
-
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SwitchIsCutVector(TG4G3Cut cut)
{
// Updates the vector of booleans (fIsCutVector) for the specified cut.
}
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SwitchIsControlVector(TG4G3Control control)
{
// Updates the vector of booleans (fIsControlVector) for the specified control.
}
}
+//_____________________________________________________________________________
TG4G3Cut TG4G3PhysicsManager::GetG3Cut(G4String cutName)
{
// Retrieves corresponding TG4G3Cut constant from the cutName.
else return kNoG3Cuts;
}
+//_____________________________________________________________________________
TG4G3Control TG4G3PhysicsManager::GetG3Control(G4String controlName)
{
// Retrieves corresponding TG4G3Control constant from the controlName.
// public methods
-
+//_____________________________________________________________________________
void TG4G3PhysicsManager::CheckLock()
{
// Gives exception in case the physics manager is locked.
}
}
-
+//_____________________________________________________________________________
G4VProcess* TG4G3PhysicsManager::FindProcess(G4String processName) const
{
// Finds G4VProcess with specified name.
return firstFoundProcess;
}
-
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckCutWithTheVector(G4String name,
G4double value, TG4G3Cut& cut)
{
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckControlWithTheVector(G4String name,
G4double value, TG4G3Control& control)
{
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckCutWithG3Defaults(G4String name,
G4double value, TG4G3Cut& cut)
{
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::CheckControlWithG3Defaults(G4String name,
G4double value, TG4G3Control& control)
{
return false;
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetG3DefaultCuts()
{
// Sets G3 default values of kinetic energy cuts.
fCutVector->SetG3Defaults();
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::SetG3DefaultControls()
{
// Sets G3 default values of control process controls.
fControlVector->SetG3Defaults();
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::IsSpecialCuts() const
{
// Returns true if any special cut value is set.
return false;
}
+//_____________________________________________________________________________
G4bool TG4G3PhysicsManager::IsSpecialControls() const
{
// Returns true if any special control value is set.
return false;
}
+//_____________________________________________________________________________
TG4G3ParticleWSP TG4G3PhysicsManager::GetG3ParticleWSP(
G4ParticleDefinition* particle) const
{
}
}
+//_____________________________________________________________________________
void TG4G3PhysicsManager::GetG3ParticleWSPName(G4int particleWSP,
G4String& name) const
{
const G4double TG4G3Units::fgkAtomicWeight = g/mole;
const G4double TG4G3Units::fgkField = tesla;
+//_____________________________________________________________________________
TG4G3Units::TG4G3Units() {
//
}
+//_____________________________________________________________________________
TG4G3Units::~TG4G3Units() {
//
}
#include <g4std/iostream>
#include <g4std/iomanip>
+//_____________________________________________________________________________
TG4GeometryOutputManager::TG4GeometryOutputManager() {
//
}
+//_____________________________________________________________________________
TG4GeometryOutputManager::~TG4GeometryOutputManager() {
//
}
// public methods
+//_____________________________________________________________________________
void TG4GeometryOutputManager::OpenFile(G4String filePath)
{
// Opens output files.
}
+//_____________________________________________________________________________
void TG4GeometryOutputManager::CloseFile()
{
// Closes output files.
}
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsvolu(
G4String vname, G4String shape, G4int nmed, G4double* Rpar,
G4int npar)
fOutFile << G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGspos(
G4String vname, G4int num, G4String vmoth, G4double x,
G4double y, G4double z, G4int irot, G4String vonly)
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsposp(
G4String vname, G4int num, G4String vmoth, G4double x,
G4double y, G4double z, G4int irot, G4String vonly,
fOutFile << G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsrotm(
G4int irot, G4double theta1, G4double phi1,
G4double theta2, G4double phi2, G4double theta3, G4double phi3)
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsdvn(
G4String vname, G4String vmoth, G4int ndiv, G4int iaxis)
{
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsdvn2(
G4String vname, G4String vmoth, G4int ndiv, G4int iaxis,
G4double c0, G4int numed)
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsdvt(
G4String vname, G4String vmoth, G4double step, G4int iaxis,
G4int numed, G4int ndvmx)
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsdvt2(
G4String vname, G4String vmoth, G4double step, G4int iaxis,
G4double c0, G4int numed, G4int ndvmx)
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsdvx(
G4String name, G4String moth, G4int ndiv, G4int iaxis,
G4double step, G4double c0, G4int numed, G4int ndvmx)
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsmate(
G4int imate, G4String name, G4double ain, G4double zin,
G4double densin, G4double radl, G4int nwbf, G4double* ubuf)
fOutFile << G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGsmixt(
G4int imate, G4String name, G4double* a, G4double* z,
G4double dens, G4int nlmat, G4double* wmat)
fOutFile << G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGstmed(
G4int itmed, G4String name, G4int nmat, G4int isvol,
G4int ifield, G4double fieldm, G4double tmaxfd,
fOutFile << G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGstpar(
G4int itmed, G4String param, G4double parval)
{
<< G4endl;
}
-
+//_____________________________________________________________________________
void TG4GeometryOutputManager::WriteGgclos()
{
// Writes GGCLOS token
#include <stdlib.h>
+//_____________________________________________________________________________
TG4Globals::TG4Globals() {
//
}
+//_____________________________________________________________________________
TG4Globals::~TG4Globals() {
//
}
// static methods
+//_____________________________________________________________________________
void TG4Globals::Exception(const char* string)
{
// Prints error message end exits the program.
exit(1);
}
+//_____________________________________________________________________________
void TG4Globals::Warning(const char* string)
{
// Prints warning message.
G4cerr << "+++++++++++++++++++++++" << G4endl;
}
+//_____________________________________________________________________________
void TG4Globals::AppendNumberToString(G4String& s, G4int a)
{
// Appends number to string.
typedef G4std::map<G4String, G4int, G4std::less<G4String> >
:: iterator IntMapIterator;
+//_____________________________________________________________________________
TG4IntMap::TG4IntMap(){
//
}
+//_____________________________________________________________________________
TG4IntMap::TG4IntMap(const TG4IntMap& right) {
//
TG4Globals::Exception("TG4IntMap is protected from copying.");
}
+//_____________________________________________________________________________
TG4IntMap::~TG4IntMap() {
//
}
// operators
+//_____________________________________________________________________________
TG4IntMap& TG4IntMap::operator=(const TG4IntMap& right)
{
// check assignement to self
// private methods
+//_____________________________________________________________________________
G4bool TG4IntMap::IsDefined(const G4String& first)
{
// Returns true if the first is already in the map.
// public methods
+//_____________________________________________________________________________
G4bool TG4IntMap::Add(const G4String& first, G4int second)
{
// Adds pair (name, int number) to the map.
return false;
}
+//_____________________________________________________________________________
G4int TG4IntMap::GetSecond(const G4String& name)
{
// Gets second name associated with given name.
}
}
+//_____________________________________________________________________________
void TG4IntMap::PrintAll()
{
// Dumps all map.
}
}
-
+//_____________________________________________________________________________
void TG4IntMap::Clear()
{
// Clears the map.
const G4double TG4Limits::fgkDefaultMaxStep = 10*cm;
+//_____________________________________________________________________________
TG4Limits::TG4Limits()
: G4UserLimits(),
// default values of G4UserLimits data members are set:
fControlVector = new TG4G3ControlVector();
}
+//_____________________________________________________________________________
TG4Limits::TG4Limits(const TG4Limits& right)
: G4UserLimits(right)
{
*this = right;
}
+//_____________________________________________________________________________
TG4Limits::~TG4Limits() {
//
delete fCutVector;
// operators
+//_____________________________________________________________________________
TG4Limits& TG4Limits::operator=(const TG4Limits& right)
{
// check assignement to self
// private methods
+//_____________________________________________________________________________
G4double TG4Limits::GetUserMinEkine(const G4Track& track)
{
// Returns the kinetic energy cut for the particle
// public methods
+//_____________________________________________________________________________
void TG4Limits::SetG3Cut(TG4G3Cut cut, G4double cutValue)
{
// Sets the cut value for the specified cut.
fIsCut = true;
}
+//_____________________________________________________________________________
void TG4Limits::SetG3Control(TG4G3Control control, G4double flagValue)
{
// Sets the process control value for the specified flag.
if (flagValue - kUnset > 0.01) fIsControl = true;
}
+//_____________________________________________________________________________
void TG4Limits::SetG3DefaultCuts()
{
// Sets the G3 default cut values for all cuts.
fIsCut = true;
}
+//_____________________________________________________________________________
void TG4Limits::SetG3DefaultControls()
{
// Sets the G3 default process control values for all flags.
fIsControl = true;
}
+//_____________________________________________________________________________
G4double TG4Limits::GetMinEkineForGamma(const G4Track& track) const
{
// Returns the cut value for gamma.
return fMinEkine;
}
+//_____________________________________________________________________________
G4double TG4Limits::GetMinEkineForElectron(const G4Track& track) const
{
// Returns the cut value for e-.
return fMinEkine;
}
+//_____________________________________________________________________________
G4double TG4Limits::GetMinEkineForHadron(const G4Track& track) const
{
// Returns the cut value for charged hadron.
return fMinEkine;
}
+//_____________________________________________________________________________
G4double TG4Limits::GetMinEkineForNeutralHadron(const G4Track& track) const
{
// Returns the cut value for neutral hadron.
return fMinEkine;
}
+//_____________________________________________________________________________
G4double TG4Limits::GetMinEkineForMuon(const G4Track& track) const
{
// Returns the cut value for neutral muon.
return fMinEkine;
}
+//_____________________________________________________________________________
G4double TG4Limits::GetMinEkineForOther(const G4Track& track) const
{
// Returns 0.
return fMinEkine;
}
+//_____________________________________________________________________________
G4int TG4Limits::GetControl(G4VProcess* process) const
{
// Returns the flag value for the particle associated with
#include <G4UIcmdWithoutParameter.hh>
#include <G4UIcmdWithABool.hh>
+//_____________________________________________________________________________
TG4Messenger::TG4Messenger(TG4GeometryManager* geometryManager,
TG4PhysicsManager* physicsManager,
TG4StepManager* stepManager)
fProcessActivationCmd->AvailableForStates(Idle);
}
+//_____________________________________________________________________________
TG4Messenger::TG4Messenger(){
//
}
+//_____________________________________________________________________________
TG4Messenger::TG4Messenger(const TG4Messenger& right) {
//
TG4Globals::Exception("TG4Messenger is protected from copying.");
}
+//_____________________________________________________________________________
TG4Messenger::~TG4Messenger() {
//
delete fSetEMCmd;
// operators
+//_____________________________________________________________________________
TG4Messenger& TG4Messenger::operator=(const TG4Messenger& right)
{
// check assignement to self
// public methods
+//_____________________________________________________________________________
void TG4Messenger::SetNewValue(G4UIcommand* command, G4String newValue)
{
// Applies command to the associated object.
#include <G4Decay.hh>
+//_____________________________________________________________________________
TG4ModularPhysicsList::TG4ModularPhysicsList()
: G4VModularPhysicsList(),
fExtDecayer(0)
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
TG4ModularPhysicsList::TG4ModularPhysicsList(const TG4ModularPhysicsList& right)
{
//
TG4Globals::Exception("TG4ModularPhysicsList is protected from copying.");
}
+//_____________________________________________________________________________
TG4ModularPhysicsList::~TG4ModularPhysicsList() {
//
//delete fExtDecayer;
// operators
+//_____________________________________________________________________________
TG4ModularPhysicsList&
TG4ModularPhysicsList::operator=(const TG4ModularPhysicsList &right)
{
// protected methods
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructParticle()
{
// In this method, static member functions should be called
G4VModularPhysicsList::ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructProcess()
{
// Constructs all processes.
if (verboseLevel>1) PrintAllProcesses();
}
-
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructAllBosons()
{
// Construct all bosons
pConstructor.ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructAllLeptons()
{
// Construct all leptons
pConstructor.ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructAllMesons()
{
// Construct all mesons
pConstructor.ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructAllBaryons()
{
// Construct all barions
pConstructor.ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructAllIons()
{
// Construct light ions
pConstructor.ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructAllShortLiveds()
{
// Construct resonaces and quarks
pConstructor.ConstructParticle();
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::ConstructGeneral()
{
// Constructs general processes.
// public methods
+//_____________________________________________________________________________
void TG4ModularPhysicsList::SetCuts()
{
// Sets the default cut value for all particle types
}
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::SetProcessActivation()
{
// (In)Activates built processes according
}
}
+//_____________________________________________________________________________
void TG4ModularPhysicsList::PrintAllProcesses() const
{
// Prints all processes.
typedef G4std::map<G4String, G4String, G4std::less<G4String> >
:: iterator MapIterator;
+//_____________________________________________________________________________
TG4NameMap::TG4NameMap()
: fSecond(fgUndefined) {
//
}
+//_____________________________________________________________________________
TG4NameMap::TG4NameMap(const TG4NameMap& right) {
//
TG4Globals::Exception("TG4NameMap is protected from copying.");
}
+//_____________________________________________________________________________
TG4NameMap::~TG4NameMap() {
//
}
// operators
+//_____________________________________________________________________________
TG4NameMap& TG4NameMap::operator=(const TG4NameMap& right)
{
// check assignement to self
// public methods
+//_____________________________________________________________________________
G4bool TG4NameMap::Add(const G4String& first, const G4String& second)
{
// Adds names pair to the map.
return false;
}
-
+//_____________________________________________________________________________
G4bool TG4NameMap::AddName(const G4String& name)
{
// Adds name to the map.
return false;
}
-
+//_____________________________________________________________________________
const G4String& TG4NameMap::GetSecond(const G4String& name)
{
// Gets second name associated with given name.
return (*i).second;
}
-
+//_____________________________________________________________________________
void TG4NameMap::PrintAll()
{
// Dumps all map.
}
}
-
+//_____________________________________________________________________________
void TG4NameMap::Clear()
{
// Clears the map.
TG4ParticlesManager* TG4ParticlesManager::fgInstance = 0;
+//_____________________________________________________________________________
TG4ParticlesManager::TG4ParticlesManager()
{
//
fgInstance = this;
}
+//_____________________________________________________________________________
TG4ParticlesManager::TG4ParticlesManager(const TG4ParticlesManager& right) {
//
TG4Globals::Exception(
"Attempt to copy TG4ParticlesManager singleton.");
}
+//_____________________________________________________________________________
TG4ParticlesManager::~TG4ParticlesManager() {
//
}
// private methods
+
+//_____________________________________________________________________________
G4int TG4ParticlesManager::GetPDGEncoding(G4ParticleDefinition* particle)
{
// Returns the PDG code of particle;
return pdgEncoding;
}
+
+//_____________________________________________________________________________
G4int TG4ParticlesManager::GetPDGEncoding(G4String particleName)
{
// Returns the PDG code of particle sepcified by name.
return GetPDGEncoding(particle);
}
+
+//_____________________________________________________________________________
void TG4ParticlesManager::MapParticles()
{
// map G4 particle names to TDatabasePDG names
return pdgEncoding;
}
-
+
+//_____________________________________________________________________________
TParticle* TG4ParticlesManager::GetParticle(const TClonesArray* particles,
G4int index) const
{
}
+//_____________________________________________________________________________
G4ParticleDefinition* TG4ParticlesManager::GetParticleDefinition(
const TParticle* particle) const
{
return particleDefinition;
}
+
+//_____________________________________________________________________________
G4DynamicParticle* TG4ParticlesManager::CreateDynamicParticle(
const TParticle* particle) const
{
return dynamicParticle;
}
+
+//_____________________________________________________________________________
G4ThreeVector TG4ParticlesManager::GetParticlePosition(
const TParticle* particle) const
{
}
+//_____________________________________________________________________________
G4ThreeVector TG4ParticlesManager::GetParticleMomentum(
const TParticle* particle) const
{
#include <G4MuPairProduction.hh>
#include <G4hIonisation.hh>
+//_____________________________________________________________________________
TG4PhysicsConstructorEM::TG4PhysicsConstructorEM(const G4String& name)
: G4VPhysicsConstructor(name)
{
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
TG4PhysicsConstructorEM::~TG4PhysicsConstructorEM() {
//
}
// protected methods
+//_____________________________________________________________________________
void TG4PhysicsConstructorEM::ConstructParticle()
{
// The particles are constructed in the
// ---
}
+//_____________________________________________________________________________
void TG4PhysicsConstructorEM::ConstructProcess()
{
// Constructs electromagnetic processes.
#include <G4KaonMinusAbsorptionAtRest.hh>
#endif
+//_____________________________________________________________________________
TG4PhysicsConstructorHadron::TG4PhysicsConstructorHadron(const G4String& name)
: G4VPhysicsConstructor(name)
{
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
TG4PhysicsConstructorHadron::~TG4PhysicsConstructorHadron() {
//
}
// protected methods
+//_____________________________________________________________________________
void TG4PhysicsConstructorHadron::ConstructParticle()
{
// The particles are constructed in the
// ---
}
+//_____________________________________________________________________________
void TG4PhysicsConstructorHadron::ConstructProcess()
{
// Makes discrete physics processes for the hadrons, at present limited
#include <G4OpRayleigh.hh>
#include <G4OpBoundaryProcess.hh>
+//_____________________________________________________________________________
TG4PhysicsConstructorOptical::TG4PhysicsConstructorOptical(const G4String& name)
: G4VPhysicsConstructor(name)
{
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
TG4PhysicsConstructorOptical::~TG4PhysicsConstructorOptical() {
//
}
// protected methods
+//_____________________________________________________________________________
void TG4PhysicsConstructorOptical::ConstructParticle()
{
// The particles are constructed in the
// ---
}
+//_____________________________________________________________________________
void TG4PhysicsConstructorOptical::ConstructProcess()
{
// Constructs optical processes.
#include <G4ProcessManager.hh>
#include <G4VProcess.hh>
+//_____________________________________________________________________________
TG4PhysicsConstructorSpecialControls::TG4PhysicsConstructorSpecialControls(
const G4String& name)
: G4VPhysicsConstructor(name)
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
TG4PhysicsConstructorSpecialControls::~TG4PhysicsConstructorSpecialControls() {
//
}
// protected methods
+//_____________________________________________________________________________
void TG4PhysicsConstructorSpecialControls::ConstructParticle()
{
// The particles are constructed in the
// ---
}
+//_____________________________________________________________________________
void TG4PhysicsConstructorSpecialControls::ConstructProcess()
{
// Adds TG4SpecialControls "process" that activates
#include <G4VProcess.hh>
+//_____________________________________________________________________________
TG4PhysicsConstructorSpecialCuts::TG4PhysicsConstructorSpecialCuts(
const G4String& name)
: G4VPhysicsConstructor(name)
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
TG4PhysicsConstructorSpecialCuts::~TG4PhysicsConstructorSpecialCuts() {
//
}
// protected methods
+//_____________________________________________________________________________
void TG4PhysicsConstructorSpecialCuts::ConstructParticle()
{
// The particles are constructed in the
// ---
}
+//_____________________________________________________________________________
void TG4PhysicsConstructorSpecialCuts::ConstructProcess()
{
// Adds TG4SpecialCuts "process" that activates
#include "TG4Polycone.h"
#include "TG4Globals.h"
+//_____________________________________________________________________________
TG4Polycone::TG4Polycone(const G4Polycone& rhs)
: G4Polycone(rhs) {
//
}
+//_____________________________________________________________________________
TG4Polycone::~TG4Polycone() {
//
}
// private methods
+
+//_____________________________________________________________________________
void TG4Polycone::CheckOrigin()
{
// Checks if polycone was created in a "historical way"
// public methods
+//_____________________________________________________________________________
G4int TG4Polycone::GetNofZPlanes()
{
// Returns nof z planes.
return original_parameters->Num_z_planes;
}
-
+//_____________________________________________________________________________
G4double* TG4Polycone::GetRmin()
{
// Returns array of rmin parameters of the planes.
return original_parameters->Rmin;
}
+//_____________________________________________________________________________
G4double* TG4Polycone::GetRmax()
{
// Returns array of rmax parameters of the planes.
return original_parameters->Rmax;
}
+//_____________________________________________________________________________
G4double* TG4Polycone::GetZ()
{
// Returns array of z parameters of the planes.
#include "TG4Polyhedra.h"
#include "TG4Globals.h"
+//_____________________________________________________________________________
TG4Polyhedra::TG4Polyhedra(const G4Polyhedra& rhs)
: G4Polyhedra(rhs) {
//
}
+//_____________________________________________________________________________
TG4Polyhedra::~TG4Polyhedra() {
//
}
// private methods
+
+//_____________________________________________________________________________
void TG4Polyhedra::CheckOrigin()
{
// Checks if polycone was created in a "historical way"
// public methods
+//_____________________________________________________________________________
G4int TG4Polyhedra::GetNofZPlanes()
{
// Returns nof z planes.
}
+//_____________________________________________________________________________
G4double* TG4Polyhedra::GetRmin()
{
// Returns array of rmin parameters of the planes.
return original_parameters->Rmin;
}
+//_____________________________________________________________________________
G4double* TG4Polyhedra::GetRmax()
{
// Returns array of rmax parameters of the planes.
return original_parameters->Rmax;
}
+//_____________________________________________________________________________
G4double* TG4Polyhedra::GetZ()
{
// Returns array of z parameters of the planes.
#include <G4UIcmdWithoutParameter.hh>
#include <G4UIcmdWithAString.hh>
+//_____________________________________________________________________________
TG4RunMessenger::TG4RunMessenger(TG4RunManager* runManager)
: fRunManager(runManager)
{
fG3DefaultsCmd->AvailableForStates(PreInit);
}
+//_____________________________________________________________________________
TG4RunMessenger::TG4RunMessenger(){
//
}
+//_____________________________________________________________________________
TG4RunMessenger::TG4RunMessenger(const TG4RunMessenger& right) {
//
TG4Globals::Exception("TG4RunMessenger is protected from copying.");
}
+//_____________________________________________________________________________
TG4RunMessenger::~TG4RunMessenger() {
//
delete fDirectory;
// operators
+//_____________________________________________________________________________
TG4RunMessenger& TG4RunMessenger::operator=(const TG4RunMessenger& right)
{
// check assignement to self
// public methods
+//_____________________________________________________________________________
void TG4RunMessenger::SetNewValue(G4UIcommand* command, G4String newValue)
{
// Applies command to the associated object.
#include <G4ProcessManager.hh>
#include <G4ProcessVector.hh>
+//_____________________________________________________________________________
TG4SpecialControls::TG4SpecialControls(const G4String& aName)
: G4VProcess(aName),
fSwitchControls(kUnswitch)
}
}
+//_____________________________________________________________________________
TG4SpecialControls::TG4SpecialControls(const TG4SpecialControls& right) {
//
TG4Globals::Exception(
"TG4SpecialControls is protected from copying.");
}
+//_____________________________________________________________________________
TG4SpecialControls::~TG4SpecialControls() {
//
}
// operators
+//_____________________________________________________________________________
TG4SpecialControls& TG4SpecialControls::operator=(
const TG4SpecialControls& right)
{
// public methods
+//_____________________________________________________________________________
G4double TG4SpecialControls::PostStepGetPhysicalInteractionLength(
const G4Track& track, G4double previousStepSize,
G4ForceCondition* condition)
return proposedStep;
}
+//_____________________________________________________________________________
G4VParticleChange* TG4SpecialControls::PostStepDoIt(
const G4Track& track, const G4Step& step)
{
#include <G4EnergyLossTables.hh>
+//_____________________________________________________________________________
TG4SpecialCuts::TG4SpecialCuts(TG4G3ParticleWSP particle,
TG4G3CutVector* cutVector,
const G4String& processName)
}
}
+//_____________________________________________________________________________
TG4SpecialCuts::TG4SpecialCuts() {
//
}
+//_____________________________________________________________________________
TG4SpecialCuts::TG4SpecialCuts(const TG4SpecialCuts& right) {
//
TG4Globals::Exception(
"TG4SpecialCuts is protected from copying.");
}
+//_____________________________________________________________________________
TG4SpecialCuts::~TG4SpecialCuts() {
//
}
// operators
+//_____________________________________________________________________________
TG4SpecialCuts& TG4SpecialCuts::operator=(const TG4SpecialCuts& right)
{
// check assignement to self
// public methods
+//_____________________________________________________________________________
G4double TG4SpecialCuts::PostStepGetPhysicalInteractionLength(
const G4Track& track, G4double previousStepSize,
G4ForceCondition* condition)
return proposedStep;
}
+//_____________________________________________________________________________
G4VParticleChange* TG4SpecialCuts::PostStepDoIt(const G4Track& track,
const G4Step& step)
{
#include <G4Track.hh>
#include <G4SteppingManager.hh>
+//_____________________________________________________________________________
TG4SteppingAction::TG4SteppingAction()
: fMaxNofSteps(kMaxNofSteps),
fStandardVerboseLevel(0),
//
}
+//_____________________________________________________________________________
TG4SteppingAction::TG4SteppingAction(const TG4SteppingAction& right) {
//
TG4Globals::Exception("TG4SteppingAction is protected from copying.");
}
+//_____________________________________________________________________________
TG4SteppingAction::~TG4SteppingAction() {
//
}
// operators
+//_____________________________________________________________________________
TG4SteppingAction&
TG4SteppingAction::operator=(const TG4SteppingAction &right)
{
// protected methods
+//_____________________________________________________________________________
void TG4SteppingAction::PrintTrackInfo(const G4Track* track) const
{
// Prints the track info
// public methods
+//_____________________________________________________________________________
void TG4SteppingAction::UserSteppingAction(const G4Step* step)
{
// Called by G4 kernel at the end of each step.
#include "TG4VSensitiveDetector.h"
#include "TG4Globals.h"
+//_____________________________________________________________________________
TG4TrackingAction::TG4TrackingAction() {
//
}
+//_____________________________________________________________________________
TG4TrackingAction::TG4TrackingAction(const TG4TrackingAction& right) {
//
TG4Globals::Exception("TG4TrackingAction is protected from copying.");
}
+//_____________________________________________________________________________
TG4TrackingAction::~TG4TrackingAction() {
//
}
// operators
+//_____________________________________________________________________________
TG4TrackingAction&
TG4TrackingAction::operator=(const TG4TrackingAction &right)
{
// public methods
+//_____________________________________________________________________________
void TG4TrackingAction::PreUserTrackingAction(const G4Track* track)
{
// Called by G4 kernel before starting tracking.
}
}
+//_____________________________________________________________________________
void TG4TrackingAction::PostUserTrackingAction(const G4Track* track)
{
// Called by G4 kernel after finishing tracking.
#include "TG4VXMLConvertor.h"
+//_____________________________________________________________________________
TG4VXMLConvertor::TG4VXMLConvertor() {
//
}
+//_____________________________________________________________________________
TG4VXMLConvertor::~TG4VXMLConvertor() {
//
}
#include <G4VRML2File.hh>
#endif
+//_____________________________________________________________________________
TG4VisManager::TG4VisManager(G4int verboseLevel) {
//
fVerbose = verboseLevel;
fColourFlag = true;
}
+//_____________________________________________________________________________
TG4VisManager::TG4VisManager(const TG4VisManager& right) {
//
TG4Globals::Exception(
"Attempt to copy TG4VisManager singleton.");
}
+//_____________________________________________________________________________
TG4VisManager::~TG4VisManager() {
//
}
// operators
+//_____________________________________________________________________________
TG4VisManager& TG4VisManager::operator=(const TG4VisManager& right)
{
// check assignement to self
// private methods
+//_____________________________________________________________________________
void TG4VisManager::RegisterGraphicsSystems()
{
// Registers the graphics systems.
//---------------------------------------------------------------
+//_____________________________________________________________________________
G4RWTPtrOrderedVector<G4LogicalVolume> TG4VisManager::GetLVList(G4String name)
{
// Get function returning the list of logical volumes
}
+//_____________________________________________________________________________
G4RWTPtrOrderedVector<G4VPhysicalVolume> TG4VisManager::GetPVList(G4String name)
{
// Get function returning the physical volume pointer for NAME
}
+//_____________________________________________________________________________
G4bool TG4VisManager::CaseInsensitiveEqual(const G4String string1,
const G4String string2)
{
}
+//_____________________________________________________________________________
void TG4VisManager::SetAtt4Daughters(G4LogicalVolume* const lv,
const TG4G3Attribute att, const G4int val)
{
}
+//_____________________________________________________________________________
G4bool TG4VisManager::IsSharedVisAttributes(const G4LogicalVolume* pLV)
{
// Function seeking if the volume's visible attributes are shared with
}
+//_____________________________________________________________________________
void TG4VisManager::SetG4Attribute(G4LogicalVolume* const lv,
const TG4G3Attribute att, const G4int val)
{
// functions for drawing
//-----------------------------------------------------------------
+
+//_____________________________________________________________________________
void TG4VisManager::DrawOneSpec(const char* name)
{
// Function called when one double-clicks on a volume name
}
+//_____________________________________________________________________________
void TG4VisManager::SetColors()
{
// Function for setting default volume colours
}
+//_____________________________________________________________________________
void TG4VisManager::Gsatt(const char* name, const char* att, Int_t val)
{
// Geant3 description :
}
+//_____________________________________________________________________________
void TG4VisManager::Gdraw(const char *name,Float_t theta, Float_t phi, Float_t psi,
Float_t u0,Float_t v0,Float_t ul,Float_t vl)
{
const G4int TG4XMLConvertor::fgkDefaultNumWidth = 7;
const G4int TG4XMLConvertor::fgkDefaultNumPrecision = 4;
+//_____________________________________________________________________________
TG4XMLConvertor::TG4XMLConvertor(G4std::ofstream& outFile)
: fOutFile(outFile),
fkBasicIndention(" "),
fOutFile.precision(fgkDefaultNumPrecision);
}
+//_____________________________________________________________________________
TG4XMLConvertor::~TG4XMLConvertor() {
//
}
// private methods
+//_____________________________________________________________________________
void TG4XMLConvertor::CutName(G4String& name) const
{
// Removes spaces after the name if present.
while (name(--i) == ' ') name = name(0,i);
}
+//_____________________________________________________________________________
void TG4XMLConvertor::CutName(G4String& name, G4int size) const
{
// Cuts name to given size.
if (name.length() > size) name = name(0, size);
}
+//_____________________________________________________________________________
void TG4XMLConvertor::PutName(G4String& element, G4String name,
G4String templ) const
{
while (element.contains(templ)) element.replace(element.find(templ), 1 , " ");
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteBox(G4String lvName, const G4Box* box,
G4String materialName)
{
<< element4 << G4endl << G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteTubs(G4String lvName, const G4Tubs* tubs,
G4String materialName)
{
<< element5 << G4endl << G4endl;
}
-
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteCons(G4String lvName, const G4Cons* cons,
G4String materialName)
{
<< element5 << G4endl << G4endl;
}
-
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteTrd(G4String lvName, const G4Trd* trd,
G4String materialName)
{
<< element4 << G4endl << G4endl;
}
-
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteTrap(G4String lvName, const G4Trap* trap,
G4String materialName)
{
<< element6 << G4endl << G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WritePara(G4String lvName, const G4Para* para,
G4String materialName)
{
<< element7 << G4endl << G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WritePolycone(G4String lvName, const G4Polycone* polycone,
G4String materialName)
{
<< element7 << G4endl << G4endl;
}
-
+//_____________________________________________________________________________
void TG4XMLConvertor::WritePolyhedra(G4String lvName, const G4Polyhedra* polyhedra,
G4String materialName)
{
// public methods
+//_____________________________________________________________________________
void TG4XMLConvertor::OpenMaterials(const G4String& version,
const G4String& date, const G4String& author,
const G4String dtdVersion)
<< element5 << G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::OpenSection(const G4String& name, const G4String& version,
const G4String& date, const G4String& author,
const G4String& topVolume)
IncreaseIndention();
}
+//_____________________________________________________________________________
void TG4XMLConvertor::CloseMaterials()
{
// Writes materials closing.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::CloseSection()
{
// Writes section closing.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::CloseComposition()
{
// Writes composition closing.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteMaterial(const G4Material* material)
{
// Writes G4Material.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteSolid(G4String lvName, const G4VSolid* solid,
G4String materialName)
{
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteRotation(const G4RotationMatrix* rotation)
{
// Writes G4RotationMatrix.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WritePosition(G4String lvName, G4ThreeVector position)
{
// Writes position without rotation with a given solid name.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WritePositionWithRotation(
G4String lvName, G4ThreeVector position,
const G4RotationMatrix* rotation)
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteReplica(G4String lvName, G4PVReplica* pvr)
{
// Writes position without rotation with a given solid name.
<< G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::WriteEmptyLine()
{
// Writes empty line.
fOutFile << G4endl;
}
+//_____________________________________________________________________________
void TG4XMLConvertor::IncreaseIndention()
{
// increase indention
fIndention.append(fkBasicIndention);
}
+//_____________________________________________________________________________
void TG4XMLConvertor::DecreaseIndention()
{
// decrease indention
TG4XMLGeometryGenerator* TG4XMLGeometryGenerator::fgInstance = 0;
+//_____________________________________________________________________________
TG4XMLGeometryGenerator::TG4XMLGeometryGenerator()
{
//
fConvertor = new TG4XMLConvertor(fOutFile);
}
+//_____________________________________________________________________________
TG4XMLGeometryGenerator::TG4XMLGeometryGenerator(const TG4XMLGeometryGenerator& right)
{
//
"TG4XMLGeometryGenerator: attempt to copy singleton.");
}
-
+//_____________________________________________________________________________
TG4XMLGeometryGenerator::~TG4XMLGeometryGenerator() {
//
}
// operators
+//_____________________________________________________________________________
TG4XMLGeometryGenerator&
TG4XMLGeometryGenerator::operator=(const TG4XMLGeometryGenerator& right)
{
// private methods
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::CutName(G4String& name) const
{
// Removes spaces after the name if present.
while (name(--i) == ' ') name = name(0,i);
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::ProcessSolids(G4LogicalVolume* lv)
{
// Writes all solids of given logical volume.
}
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::ProcessMaterials(G4LogicalVolume* lv)
{
// Writes all materials of given logical volume.
}
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::ProcessRotations(G4LogicalVolume* lv)
{
// Writes all rotation matrices of given logical volume.
}
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::ProcessLogicalVolume(G4LogicalVolume* lv)
{
// Writes logical volume tree.
}
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::ClearMaterialNames()
{
// Clears the set of material names.
fMaterialNames.erase(fMaterialNames.begin(), fMaterialNames.end());
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::ClearVolumeNames()
{
// Clears the set of volume names.
// public methods
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::GenerateMaterials(
const G4String& version, const G4String& date,
const G4String& author, const G4String dtdVersion,
fConvertor->WriteEmptyLine();
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::GenerateSection(const G4String& name,
const G4String& version, const G4String& date,
const G4String& author, const G4String& topVolume,
fConvertor->CloseSection();
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::OpenFile(G4String filePath)
{
// Opens output file.
}
+//_____________________________________________________________________________
void TG4XMLGeometryGenerator::CloseFile()
{
// Closes output file.