39 #include "starlightconfig.h"
62 using namespace starlightConstants;
68 _nmbEventsPerFile (100),
69 _isInitialised (
false),
82 if(Starlight_VERSION_MAJOR == 9999)
84 cout << endl <<
"#########################################" << endl
85 <<
" Initialising Starlight version: trunk..." << endl
86 <<
"#########################################" << endl << endl;
90 cout << endl <<
"#########################################" << endl
91 <<
" Initialising Starlight version: " << Starlight_VERSION_MAJOR <<
"."
92 << Starlight_VERSION_MINOR <<
"." << Starlight_VERSION_MINOR_MINOR <<
"..." << endl
93 <<
"#########################################" << endl << endl;
101 cout.setf(ios_base::fixed,ios_base::floatfield);
116 bool createChannel =
true;
129 if (!lumTableIsValid) {
130 printInfo <<
"creating luminosity table for coherent photon-Pomeron channel" <<endl;
144 <<
" cannot initialize eSTARlight." << endl;
177 lumLookUpTableFile.precision(15);
178 if ((!lumLookUpTableFile) || (!lumLookUpTableFile.good())) {
182 unsigned int targetBeamZ, targetBeamA;
183 double beamLorentzGamma = 0;
184 double maxW = 0, minW = 0;
185 unsigned int nmbWBins;
186 double maxRapidity = 0;
187 unsigned int nmbRapidityBins;
188 int productionMode, beamBreakupMode;
192 bool coherentProduction =
false;
194 int nmbPtBinsInterference;
195 std::string validationKey;
196 if (!(lumLookUpTableFile
198 >> targetBeamZ >> targetBeamA
200 >> maxW >> minW >> nmbWBins
201 >> maxRapidity >> nmbRapidityBins
205 >> nmbPtBinsInterference
206 >> coherentProduction >> incoherentFactor
211 std::string validationKeyEnd;
212 while(!lumLookUpTableFile.eof())
214 lumLookUpTableFile >> validationKeyEnd;
216 lumLookUpTableFile.close();
230 printWarn <<
"cannot construct Gammagammaleptonpair event channel." << endl;
256 cout<<
" This is f2, f2prim, rho^0 rho^0, or axion "<<endl;
261 printWarn <<
"cannot construct Gammagammasingle event channel." << endl;
292 printWarn <<
"cannot construct Gammaanarrowvm event channel." << endl;
302 printWarn <<
"cannot construct Gammaawidevm event channel." << endl;
310 <<
"cannot create event channel." << endl;
316 <<
" cannot create event channel." << endl;