34 #ifndef INPUTPARAMETERS_H
35 #define INPUTPARAMETERS_H
38 #include "starlightconstants.h"
49 bool init(
const std::string& configFileName =
"./config/slight.in");
50 bool init(std::ifstream &configStream );
52 unsigned int beam1Z ()
const {
return _beam1Z; }
53 unsigned int beam1A ()
const {
return _beam1A; }
54 unsigned int beam2Z ()
const {
return _beam2Z; }
55 unsigned int beam2A ()
const {
return _beam2A; }
57 double maxW ()
const {
return _maxW; }
58 double minW ()
const {
return _minW; }
59 unsigned int nmbWBins ()
const {
return _nmbWBins; }
69 unsigned int nmbEvents ()
const {
return _nmbEventsTot; }
83 starlightConstants::particleTypeEnum
prodParticleType ()
const {
return _particleType; }
85 starlightConstants::interactionTypeEnum
interactionType ()
const {
return _interactionType; }
88 double getProtonEnergy()
const {
return _protonEnergy; }
90 std::ostream&
print(std::ostream& out)
const;
91 std::ostream&
write(std::ostream& out)
const;
96 std::string _configFileName;
100 unsigned int _beam1A;
101 unsigned int _beam2Z;
102 unsigned int _beam2A;
103 double _beamLorentzGamma;
106 unsigned int _nmbWBins;
108 unsigned int _nmbRapidityBins;
116 unsigned int _nmbEventsTot;
124 int _beamBreakupMode;
129 bool _interferenceEnabled;
136 double _interferenceStrength;
137 bool _coherentProduction;
138 double _incoherentFactor;
139 double _deuteronSlopePar;
140 double _maxPtInterference;
141 int _nmbPtBinsInterference;
142 double _ptBinWidthInterference;
143 double _protonEnergy;
145 starlightConstants::particleTypeEnum _particleType;
146 starlightConstants::decayTypeEnum _decayType;
147 starlightConstants::interactionTypeEnum _interactionType;
154 operator <<(std::ostream& out,
157 return par.
print(out);
161 #endif // INPUTPARAMETERS_H