Geant4  10.02
G4INCLConfig.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // INCL++ intra-nuclear cascade model
27 // Alain Boudard, CEA-Saclay, France
28 // Joseph Cugnon, University of Liege, Belgium
29 // Jean-Christophe David, CEA-Saclay, France
30 // Pekka Kaitaniemi, CEA-Saclay, France, and Helsinki Institute of Physics, Finland
31 // Sylvie Leray, CEA-Saclay, France
32 // Davide Mancusi, CEA-Saclay, France
33 //
34 #define INCLXX_IN_GEANT4_MODE 1
35 
36 #include "globals.hh"
37 
38 #ifndef G4INCLConfig_hh
39 #define G4INCLConfig_hh 1
40 
41 #include "G4INCLParticleSpecies.hh"
42 #include "G4INCLConfigEnums.hh"
44 #include <iostream>
45 #include <string>
46 #include <sstream>
47 // #include <cassert>
48 
49 class ConfigParser;
50 
51 namespace G4INCL {
52 
60  class Config {
61  public:
63  Config();
64 
66  ~Config();
67 
69  void init();
70 
72  std::string summary();
73 
75  G4int getVerbosity() const { return verbosity; }
76 
78  std::string const &getCalculationTitle() const { return title; }
79 
81  std::string const &getOutputFileRoot() const { return outputFileRoot; }
82 
84  G4int getNumberOfShots() const { return nShots; }
85 
87  G4bool isNaturalTarget() const { return naturalTarget; }
88 
94  G4int getTargetA() const { return targetSpecies.theA; }
95 
97  G4int getTargetZ() const { return targetSpecies.theZ; }
98 
101 
104 
107 
110 
113 
116 
119 
121  G4int getVerboseEvent() const { return verboseEvent; }
122 
124  static std::string const getVersionID();
125 
127  static std::string const getVersionHash();
128 
130  static std::string const getVersionString() {
131  std::stringstream ss;
132  ss << getVersionID() << "-" << getVersionHash();
133  return ss.str();
134  }
135 
138  return randomSeedVector;
139  }
140 
142  PauliType getPauliType() const { return pauliType; }
143 
145  G4bool getCDPP() const { return CDPP; }
146 
149 
151  void setCoulombType(CoulombType const c) { coulombType = c; }
152 
155 
158 
161 
163  void setPionPotential(const G4bool pionPot) { pionPotential = pionPot; }
164 
167 
170 
173 
176 
178  std::string const &getLogFileName() const { return logFileName; }
179 
182 
184  std::string getDeExcitationString() const { return deExcitationString; }
185 
188 
191 
194 
197 
200 
203 
206 
208  void setUseRealMasses(G4bool use) { useRealMasses = use; }
209 
211  void setINCLXXDataFilePath(std::string const &s) { INCLXXDataFilePath=s; }
212 
213  std::string const &getINCLXXDataFilePath() const {
214  return INCLXXDataFilePath;
215  }
216 
217 #ifdef INCL_DEEXCITATION_ABLAXX
218  std::string const &getABLAv3pCxxDataFilePath() const {
219  return ablav3pCxxDataFilePath;
220  }
221 #endif
222 
223 #ifdef INCL_DEEXCITATION_ABLA07
224  std::string const &getABLA07DataFilePath() const {
225  return abla07DataFilePath;
226  }
227 #endif
228 #ifdef INCL_DEEXCITATION_GEMINIXX
229  std::string const &getGEMINIXXDataFilePath() const {
230  return geminixxDataFilePath;
231  }
232 #endif
233 
235 
238 
241 
244 
247 
249  void setFermiMomentum(const G4double p) { fermiMomentum = p; }
250 
251  G4double getCutNN() const { return cutNN; }
252 
253 #ifdef INCL_ROOT_USE
254  std::string const &getROOTSelectionString() const {
255  return rootSelectionString;
256  }
257 #endif
258 
259 #ifdef INCL_DEEXCITATION_FERMI_BREAKUP
260  G4int getMaxMassFermiBreakUp() const {
261  return maxMassFermiBreakUp;
262  }
263 
264  G4int getMaxChargeFermiBreakUp() const {
265  return maxChargeFermiBreakUp;
266  }
267 #endif
268 
271 // assert(t==Proton || t==Neutron);
273  }
274 
276  void setRPCorrelationCoefficient(const ParticleType t, const G4double corrCoeff) {
277 // assert(t==Proton || t==Neutron);
278  if(t==Proton)
280  else
282  }
283 
285  void setRPCorrelationCoefficient(const G4double corrCoeff) {
288  }
289 
291  G4double getNeutronSkin() const { return neutronSkin; }
292 
294  void setNeutronSkin(const G4double d) { neutronSkin=d; }
295 
297  G4double getNeutronHalo() const { return neutronHalo; }
298 
300  void setNeutronHalo(const G4double d) { neutronHalo=d; }
301 
303  G4bool getRefraction() const { return refraction; }
304 
306  void setRefraction(const G4bool r) { refraction = r; }
307 
309  RNGType getRNGType() const { return rngType; }
310 
312  void setRNGType(RNGType const r) { rngType=r; }
313 
316 
319 
322 
325 
327  unsigned int getAutosaveFrequency() const { return autosaveFrequency; }
328 
330  void setAutosaveFrequency(const unsigned int f) { autosaveFrequency=f; }
331 
334 
337 
340 
343 
346 
349 
350 #ifdef INCL_ROOT_USE
351  G4bool getConciseROOTTree() const { return conciseROOTTree; }
352 #endif
353 
355 
356  private:
357 
359  std::string inputFileName;
360  std::string title;
361  std::string outputFileRoot;
362  std::string fileSuffix;
363  std::string logFileName;
364 
366 
367  std::string targetString;
370 
371  std::string projectileString;
374 
376 
377  std::string randomSeeds;
379 
380  std::string pauliString;
383 
384  std::string coulombString;
386 
387  std::string potentialString;
390 
391  std::string localEnergyBBString;
393 
394  std::string localEnergyPiString;
396 
399  std::string deExcitationString;
401 #ifdef INCL_DEEXCITATION_ABLAXX
402  std::string ablav3pCxxDataFilePath;
403 #endif
404 #ifdef INCL_DEEXCITATION_ABLA07
405  std::string abla07DataFilePath;
406 #endif
407 #ifdef INCL_DEEXCITATION_GEMINIXX
408  std::string geminixxDataFilePath;
409 #endif
410  std::string INCLXXDataFilePath;
411 
414 
416 
418 
420 
422 
425 
426  std::string fermiMomentumString;
428 
430 
432 
433 #ifdef INCL_ROOT_USE
434  std::string rootSelectionString;
435 #endif
436 
437 #ifdef INCL_DEEXCITATION_FERMI_BREAKUP
438  G4int maxMassFermiBreakUp;
439  G4int maxChargeFermiBreakUp;
440 #endif
441 
445 
448 
450 
453 
454  std::string phaseSpaceGenerator;
456 
457  unsigned int autosaveFrequency;
458 
459  std::string crossSectionsString;
462 
463  std::string cascadeAction;
465 
467 
468 #ifdef INCL_ROOT_USE
469  G4bool conciseROOTTree;
470 #endif
471 
473 
474  friend class ::ConfigParser;
475  };
476 
477 }
478 
479 #endif
DeExcitationType getDeExcitationType() const
Get the de-excitation model.
std::string fermiMomentumString
CascadeActionType getCascadeActionType() const
Get the cascade-action type.
The INCL configuration object.
Definition: G4INCLConfig.hh:60
ParticleType getProjectileType() const
Get the projectile type.
LocalEnergyType localEnergyPiType
G4int maxNumberMultipions
PauliType pauliType
std::string separationEnergyString
std::string targetString
void setFermiMomentumType(FermiMomentumType const f)
Set the Fermi-momentum type.
void setProjectileSpecies(ParticleSpecies const &ps)
Set the projectile species.
ClusterAlgorithmType clusterAlgorithmType
std::string potentialString
void setRPCorrelationCoefficient(const G4double corrCoeff)
Set the r-p correlation coefficient.
std::string localEnergyBBString
PotentialType potentialType
FermiMomentumType fermiMomentumType
std::string deExcitationOptionDescription
void setHadronizationTime(const G4double t)
Set the hadronization time.
G4double neutronSkin
G4int getTargetZ() const
Get the target charge number.
Definition: G4INCLConfig.hh:97
G4int getNumberOfShots() const
Get the number of shots.
Definition: G4INCLConfig.hh:84
G4double neutronHalo
G4double getNeutronSkin() const
Get the neutron-skin thickness.
std::string pauliString
std::string const & getINCLXXDataFilePath() const
G4int getVerboseEvent() const
Get the number of the verbose event.
void setProjectileKineticEnergy(G4double const kinE)
Set the projectile kinetic energy.
PhaseSpaceGeneratorType phaseSpaceGeneratorType
G4int getClusterMaxMass() const
Get the maximum mass for production of clusters.
G4double fermiMomentum
void setCascadeActionType(CascadeActionType const c)
Set the cascade-action type.
std::string localEnergyPiString
~Config()
Default destructor.
Definition: G4INCLConfig.cc:49
void setINCLXXDataFilePath(std::string const &s)
Set the INCLXX datafile path.
std::string clusterAlgorithmString
void setRPCorrelationCoefficient(const ParticleType t, const G4double corrCoeff)
Set the r-p correlation coefficient.
std::string phaseSpaceGenerator
std::string outputFileRoot
G4bool backToSpectator
G4bool isNaturalTarget() const
Natural targets.
Definition: G4INCLConfig.hh:87
G4double getFermiMomentum() const
Get the Fermi momentum.
G4double hadronizationTime
G4bool inverseKinematics
int G4int
Definition: G4Types.hh:78
SeparationEnergyType getSeparationEnergyType() const
Get the separation-energy type.
void setMaxNumberMultipions(const G4int n)
Set the maximum number of pions for multipion collisions.
CoulombType coulombType
std::string coulombString
void setLocalEnergyBBType(const LocalEnergyType t)
Set the type of local energy for N-N avatars.
G4int getVerbosity() const
Get the verbosity.
Definition: G4INCLConfig.hh:75
unsigned int autosaveFrequency
static const double s
Definition: G4SIunits.hh:168
G4double getImpactParameter() const
Random::SeedVector randomSeedVector
G4bool getCDPP() const
Do we want CDPP?
std::string cascadeAction
static std::string const getVersionString()
Get the INCL version string.
LocalEnergyType localEnergyBBType
double A(double temperature)
void setNeutronHalo(const G4double d)
Set the neutron-halo size.
void setFermiMomentum(const G4double p)
Set the Fermi momentum.
void setTargetA(G4int A)
Set target mass number.
G4bool getBackToSpectator() const
Get back-to-spectator.
G4double rpCorrelationCoefficientProton
std::string deExcitationModelList
PauliType getPauliType() const
Get the Pauli-blocking algorithm.
void setRefraction(const G4bool r)
Set the refraction variable.
bool G4bool
Definition: G4Types.hh:79
G4int getTargetA() const
Get the target mass number.
Definition: G4INCLConfig.hh:94
void setLocalEnergyPiType(const LocalEnergyType t)
Set the type of local energy for N-N avatars.
G4bool getPionPotential() const
Do we want the pion potential?
void setClusterAlgorithm(ClusterAlgorithmType const c)
Set the clustering algorithm.
G4double impactParameter
G4double rpCorrelationCoefficient
void setPhaseSpaceGeneratorType(PhaseSpaceGeneratorType const p)
Set the phase-space-generator type.
PhaseSpaceGeneratorType getPhaseSpaceGeneratorType() const
Get the phase-space-generator type.
ParticleSpecies targetSpecies
const G4int n
G4bool getUseRealMasses() const
Whether to use real masses.
G4bool useRealMasses
G4double projectileKineticEnergy
void setAutosaveFrequency(const unsigned int f)
Set the autosave frequency.
Config()
Default constructor.
Definition: G4INCLConfig.cc:45
G4double getHadronizationTime() const
Get the hadronization time.
std::string deExcitationString
G4bool naturalTarget
CascadeActionType cascadeActionType
unsigned int getAutosaveFrequency() const
Get the autosave frequency.
std::string randomSeeds
G4int getMaxNumberMultipions() const
Get the maximum number of pions for multipion collisions.
RNGType getRNGType() const
Get the RNG type.
G4double getNeutronHalo() const
Get the neutron-halo size.
Random::SeedVector getRandomSeeds() const
Get the seeds for the random-number generator.
ClusterAlgorithmType getClusterAlgorithm() const
Get the clustering algorithm.
std::string title
void setRNGType(RNGType const r)
Set the RNG type.
FermiMomentumType getFermiMomentumType() const
Get the Fermi-momentum type.
std::string const & getLogFileName() const
Get the log file name.
PotentialType getPotentialType() const
Get the type of the potential for nucleons.
std::string getDeExcitationString() const
Get the de-excitation string.
static std::string const getVersionID()
Get the INCL version ID.
void setCoulombType(CoulombType const c)
Set the Coulomb-distortion algorithm.
ParticleSpecies getProjectileSpecies() const
Get the projectile species.
void init()
Initialise the members.
Definition: G4INCLConfig.cc:51
void setPotentialType(PotentialType type)
Set the type of the potential for nucleons.
LocalEnergyType getLocalEnergyPiType() const
Get the type of local energy for pi-N and decay avatars.
LocalEnergyType getLocalEnergyBBType() const
Get the type of local energy for N-N avatars.
G4bool pionPotential
std::string fileSuffix
CoulombType getCoulombType() const
Get the Coulomb-distortion algorithm.
CrossSectionsType crossSectionsType
std::string const & getOutputFileRoot() const
Get the output file root.
Definition: G4INCLConfig.hh:81
std::string const & getCalculationTitle() const
Get the run title.
Definition: G4INCLConfig.hh:78
std::string summary()
Return a summary of the run configuration.
void setClusterMaxMass(const G4int m)
Set the maximum mass for production of clusters.
static const double m
Definition: G4SIunits.hh:128
std::string projectileString
G4double rpCorrelationCoefficientNeutron
std::string INCLXXDataFilePath
std::string randomNumberGenerator
void setPionPotential(const G4bool pionPot)
Set the type of the potential for nucleons.
G4bool getInverseKinematics() const
void setUseRealMasses(G4bool use)
Set whether to use real masses.
std::string inputFileName
double G4double
Definition: G4Types.hh:76
DeExcitationType deExcitationType
void setBackToSpectator(const G4bool b)
Set back-to-spectator.
void setNeutronSkin(const G4double d)
Set the neutron-skin thickness.
CrossSectionsType getCrossSectionsType() const
Get the Cross Section type.
G4double getProjectileKineticEnergy() const
Get the projectile kinetic energy.
void setCrossSectionsType(CrossSectionsType const c)
Set the Cross Section type.
SeparationEnergyType separationEnergyType
G4double getRPCorrelationCoefficient(const ParticleType t) const
Get the r-p correlation coefficient.
std::string logFileName
G4double getCutNN() const
std::string crossSectionsString
static std::string const getVersionHash()
Get the INCL version hash.
G4bool getRefraction() const
True if we should use refraction.
void setTargetZ(G4int Z)
Set target charge number.
ParticleSpecies projectileSpecies