Import Geant4 10.5.1 source tree

This commit is contained in:
Gabriele Cosmo
2019-04-17 10:39:02 +02:00
parent a7fdc52004
commit 28a70706e0
661 changed files with 55791 additions and 106984 deletions
+7
View File
@@ -16,6 +16,13 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
- Mar. 11, 2019 Gabriele Cosmo (procman-V10-04-05)
- Fixed typos in printouts in G4ProcessTableMessenger, G4ProcessManager
and G4VRest*Process.
- Jan. 31, 2019 Ivana Hrivnacova
- Merged GitHub PR #4: all Boolean operators now return G4bool.
- Nov. 24, 2018 Hisaya Kurashige (procman-V10-04-04)
- Fix a bug in G4ProcessTableMessenger.cc (Coverity 98892)
@@ -67,8 +67,8 @@ class G4ProcTblElement
G4ProcTblElement & operator=(const G4ProcTblElement &right);
// Assignment operator
G4int operator==(const G4ProcTblElement &right) const;
G4int operator!=(const G4ProcTblElement &right) const;
G4bool operator==(const G4ProcTblElement &right) const;
G4bool operator!=(const G4ProcTblElement &right) const;
// equal / unequal operator
protected:
@@ -65,8 +65,8 @@ class G4ProcessAttribute
G4ProcessAttribute & operator=(const G4ProcessAttribute &right);
// Assignment operator
G4int operator==(const G4ProcessAttribute &right) const;
G4int operator!=(const G4ProcessAttribute &right) const;
G4bool operator==(const G4ProcessAttribute &right) const;
G4bool operator!=(const G4ProcessAttribute &right) const;
// equal / unequal operator
@@ -101,13 +101,13 @@ inline
}
inline
G4int G4ProcessAttribute::operator==(const G4ProcessAttribute &right) const
G4bool G4ProcessAttribute::operator==(const G4ProcessAttribute &right) const
{
return this->pProcess == right.pProcess;
}
inline
G4int G4ProcessAttribute::operator!=(const G4ProcessAttribute &right) const
G4bool G4ProcessAttribute::operator!=(const G4ProcessAttribute &right) const
{
return this->pProcess != right.pProcess;
}
@@ -43,13 +43,13 @@
// two vectors for processes with PostStepGetPhysicalInteractionLength
// and PostStepDoIt
// The tracking will message three types of GetPhysicalInteractionLength
// in order to limit the Step and select the occurence of processes.
// in order to limit the Step and select the occurrence of processes.
// It will message the corresponding DoIt() to apply the selected
// processes. In addition, the Tracking will limit the Step
// and select the occurence of the processes according to
// and select the occurrence of the processes according to
// the shortest physical interaction length computed (except for
// processes at rest, for which the Tracking will select the
// occurence of the process which returns the shortest mean
// occurrence of the process which returns the shortest mean
// life-time from the GetPhysicalInteractionLength()).
//
// History:
@@ -122,8 +122,8 @@ class G4ProcessManager
~G4ProcessManager();
// Destructor
G4int operator==(const G4ProcessManager &right) const;
G4int operator!=(const G4ProcessManager &right) const;
G4bool operator==(const G4ProcessManager &right) const;
G4bool operator!=(const G4ProcessManager &right) const;
public: // with description
G4ProcessVector* GetProcessList() const;
@@ -68,8 +68,8 @@ class G4ProcessTable
G4ProcessTable(const G4ProcessTable &right);
G4ProcessTable & operator=(const G4ProcessTable &right);
// Assignment operator
G4int operator==(const G4ProcessTable &right) const;
G4int operator!=(const G4ProcessTable &right) const;
G4bool operator==(const G4ProcessTable &right) const;
G4bool operator!=(const G4ProcessTable &right) const;
// equal / unequal operator
@@ -97,8 +97,8 @@ class G4VProcess
virtual ~G4VProcess();
// equal opperators
G4int operator==(const G4VProcess &right) const;
G4int operator!=(const G4VProcess &right) const;
G4bool operator==(const G4VProcess &right) const;
G4bool operator!=(const G4VProcess &right) const;
public: // with description
////////////////////////////
@@ -102,10 +102,10 @@ class G4VRestContinuousDiscreteProcess : public G4VProcess
protected: // with description
virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0;
// Calculates the mean life-time (i.e. for decays) of the
// particle at rest due to the occurence of the given process,
// particle at rest due to the occurrence of the given process,
// or converts the probability of interaction (i.e. for
// annihilation) into the life-time of the particle for the
// occurence of the given process.
// occurrence of the given process.
virtual G4double GetContinuousStepLimit(const G4Track& aTrack,
G4double previousStepSize,
@@ -127,10 +127,10 @@ class G4VRestContinuousProcess : public G4VProcess
virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0;
// Calculates the mean life-time (i.e. for decays) of the
// particle at rest due to the occurence of the given process,
// particle at rest due to the occurrence of the given process,
// or converts the probability of interaction (i.e. for
// annihilation) into the life-time of the particle for the
// occurence of the given process.
// occurrence of the given process.
private:
// hide default constructor and assignment operator as private
@@ -110,10 +110,10 @@ class G4VRestDiscreteProcess : public G4VProcess
virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0;
// Calculates the mean life-time (i.e. for decays) of the
// particle at rest due to the occurence of the given process,
// particle at rest due to the occurrence of the given process,
// or converts the probability of interaction (i.e. for
// annihilation) into the life-time of the particle for the
// occurence of the given process.
// occurrence of the given process.
private:
// hide default constructor and assignment operator as private
@@ -109,10 +109,10 @@ class G4VRestProcess : public G4VProcess
virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0;
// Calculates the mean life-time (i.e. for decays) of the
// particle at rest due to the occurence of the given process,
// particle at rest due to the occurrence of the given process,
// or converts the probability of interaction (i.e. for
// annihilation) into the life-time of the particle for the
// occurence of the given process.
// occurrence of the given process.
private:
// hide default constructor and assignment operator as private
@@ -67,8 +67,8 @@ class G4WrapperProcess : public G4VProcess
virtual ~G4WrapperProcess();
// equality opperators
inline G4int operator==(const G4WrapperProcess &right) const;
inline G4int operator!=(const G4WrapperProcess &right) const;
inline G4bool operator==(const G4WrapperProcess &right) const;
inline G4bool operator!=(const G4WrapperProcess &right) const;
public: // with description
virtual void RegisterProcess(G4VProcess*);
@@ -190,13 +190,13 @@ inline
}
inline
G4int G4WrapperProcess::operator==(const G4WrapperProcess &right) const
G4bool G4WrapperProcess::operator==(const G4WrapperProcess &right) const
{
return (this == &right);
}
inline
G4int G4WrapperProcess::operator!=(const G4WrapperProcess &right) const
G4bool G4WrapperProcess::operator!=(const G4WrapperProcess &right) const
{
return (this != &right);
}
@@ -89,14 +89,14 @@ G4ProcTblElement & G4ProcTblElement::operator=(const G4ProcTblElement &right)
//////////////////////////
G4int G4ProcTblElement::operator==(const G4ProcTblElement &right) const
G4bool G4ProcTblElement::operator==(const G4ProcTblElement &right) const
{
return (this == &right);
}
//////////////////////////
G4int G4ProcTblElement::operator!=(const G4ProcTblElement &right) const
G4bool G4ProcTblElement::operator!=(const G4ProcTblElement &right) const
{
return (this != &right);
}
@@ -990,13 +990,13 @@ G4VProcess* G4ProcessManager::ActivateProcess(G4int index)
}
// ///////////////////////////////////////
G4int G4ProcessManager::operator==(const G4ProcessManager &right) const
G4bool G4ProcessManager::operator==(const G4ProcessManager &right) const
{
return (this == &right);
}
// ///////////////////////////////////////
G4int G4ProcessManager::operator!=(const G4ProcessManager &right) const
G4bool G4ProcessManager::operator!=(const G4ProcessManager &right) const
{
return (this != &right);
}
@@ -132,13 +132,13 @@ G4ProcessTable & G4ProcessTable::operator=(const G4ProcessTable &)
}
//////////////////////////
G4int G4ProcessTable::operator==(const G4ProcessTable &right) const
G4bool G4ProcessTable::operator==(const G4ProcessTable &right) const
{
return (this == &right);
}
//////////////////////////
G4int G4ProcessTable::operator!=(const G4ProcessTable &right) const
G4bool G4ProcessTable::operator!=(const G4ProcessTable &right) const
{
return (this != &right);
}
@@ -79,7 +79,7 @@ G4ProcessTableMessenger::G4ProcessTableMessenger(G4ProcessTable* pTable)
listCmd = new G4UIcmdWithAString("/process/list",this);
listCmd->SetGuidance("List up process names");
listCmd->SetGuidance(" list [type] ");
listCmd->SetGuidance(" type: process type [all:for all proceeses]");
listCmd->SetGuidance(" type: process type [all:for all processes]");
listCmd->SetParameterName("type", true);
listCmd->SetDefaultValue("all");
SetNumberOfProcessType();
@@ -108,7 +108,7 @@ G4ProcessTableMessenger::G4ProcessTableMessenger(G4ProcessTable* pTable)
procVerboseCmd->SetGuidance(" level: verbose level ");
procVerboseCmd->SetGuidance(" name : process name ");
procVerboseCmd->SetGuidance(" type : process type ");
procVerboseCmd->SetGuidance(" [all] for all proceeses ");
procVerboseCmd->SetGuidance(" [all] for all processes ");
G4UIparameter* param = new G4UIparameter("verbose",'i',false);
procVerboseCmd->SetParameter(param);
param = new G4UIparameter("type",'s',true);
@@ -165,12 +165,12 @@ G4VProcess & G4VProcess::operator=(const G4VProcess &)
return *this;
}
G4int G4VProcess::operator==(const G4VProcess &right) const
G4bool G4VProcess::operator==(const G4VProcess &right) const
{
return (this == &right);
}
G4int G4VProcess::operator!=(const G4VProcess &right) const
G4bool G4VProcess::operator!=(const G4VProcess &right) const
{
return (this != &right);
}