File indexing completed on 2024-11-15 09:00:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 #ifndef eSTARLIGHT_H
0036 #define eSTARLIGHT_H
0037
0038
0039 #include <string>
0040
0041 #include "eventchannel.h"
0042
0043
0044 class inputParameters;
0045 class beam;
0046 class beamBeamSystem;
0047
0048
0049 class e_starlight {
0050
0051 public:
0052
0053 e_starlight();
0054 ~e_starlight();
0055
0056 bool init();
0057
0058 eXEvent produceEvent();
0059
0060 std::string baseFileName () const { return _baseFileName; }
0061 unsigned long nmbAttempts () const { return _eventChannel->nmbAttempts(); }
0062 unsigned long nmbAccepted () const { return _eventChannel->nmbAccepted(); }
0063 double getTotalCrossSection () const { return _eventChannel->getTotalChannelCrossSection(); }
0064 void setInputParameters(inputParameters* inputParams) { _inputParameters = inputParams; }
0065
0066 private:
0067
0068 bool luminosityTableIsValid() const;
0069
0070 bool createEventChannel();
0071
0072 beamBeamSystem* _beamSystem;
0073 eventChannel* _eventChannel;
0074 unsigned int _nmbEventsPerFile;
0075 std::string _baseFileName;
0076 std::string _lumLookUpTableFileName;
0077 bool _isInitialised;
0078 inputParameters* _inputParameters;
0079 };
0080
0081
0082 #endif