Import Geant4 10.6.1 source tree

This commit is contained in:
Gabriele Cosmo
2020-02-14 15:32:52 +01:00
parent 5baee230e9
commit 8c87fe78c4
278 changed files with 24232 additions and 22963 deletions
@@ -153,6 +153,18 @@ class G4ScoringManager
if(writer) writer->SetVerboseLevel(verboseLevel);
}
// Replace score writers.
public:
inline void SetFactor(G4double val=1.0)
{ if(writer) writer->SetFactor(val); }
inline G4double GetFactor() const
{
if(writer)
{ return writer->GetFactor(); }
else
{ return -1.0; }
}
private:
//Disable copy constructor and assignement operator
G4ScoringManager(const G4ScoringManager&);
@@ -129,6 +129,8 @@ class G4ScoringMessenger: public G4UImessenger
// Dump scoring result to file
G4UIcommand * dumpQtyToFileCmd;
G4UIcommand * dumpAllQtsToFileCmd;
G4UIcommand * dumpQtyWithFactorCmd;
G4UIcommand * dumpAllQtsWithFactorCmd;
//
};
@@ -55,9 +55,9 @@ public:
// set a socring mesh to retrieve its quantities
void SetScoringMesh(G4VScoringMesh * sm);
// set a verbose level
inline void SetVerboseLevel(G4int vl) {
verboseLevel = vl;
}
inline void SetVerboseLevel(G4int vl) { verboseLevel = vl; }
inline void SetFactor(G4double val=1.0) { fact = val; }
inline G4double GetFactor() const { return fact; }
protected:
// get an index from (x,y,z)
@@ -67,6 +67,7 @@ protected:
G4int fNMeshSegments[3]; // number of segments of the mesh
G4VScoringMesh * fScoringMesh;
G4int verboseLevel;
G4double fact;
};