File indexing completed on 2025-01-18 10:06:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef Pythia8_PhysicsBase_H
0013 #define Pythia8_PhysicsBase_H
0014
0015 #include "Pythia8/Info.h"
0016 #include "Pythia8/Settings.h"
0017 #include "Pythia8/SharedPointers.h"
0018
0019 namespace Pythia8 {
0020
0021
0022
0023
0024
0025
0026
0027 class PhysicsBase {
0028
0029 public:
0030
0031
0032 enum Status { INCOMPLETE = -1, COMPLETE = 0, CONSTRUCTOR_FAILED,
0033 INIT_FAILED, LHEF_END, LOWENERGY_FAILED, PROCESSLEVEL_FAILED,
0034 PROCESSLEVEL_USERVETO, MERGING_FAILED, PARTONLEVEL_FAILED,
0035 PARTONLEVEL_USERVETO, HADRONLEVEL_FAILED, CHECK_FAILED,
0036 OTHER_UNPHYSICAL, HEAVYION_FAILED, HADRONLEVEL_USERVETO };
0037
0038
0039 void initInfoPtr(Info& infoPtrIn);
0040
0041
0042 virtual ~PhysicsBase() {}
0043
0044
0045 bool flag(string key) const {return settingsPtr->flag(key);}
0046 int mode(string key) const {return settingsPtr->mode(key);}
0047 double parm(string key) const {return settingsPtr->parm(key);}
0048 string word(string key) const {return settingsPtr->word(key);}
0049 vector<bool> fvec(string key) const {return settingsPtr->fvec(key);}
0050 vector<int> mvec(string key) const {return settingsPtr->mvec(key);}
0051 vector<double> pvec(string key) const {return settingsPtr->pvec(key);}
0052 vector<string> wvec(string key) const {return settingsPtr->wvec(key);}
0053
0054 protected:
0055
0056
0057 PhysicsBase() {}
0058
0059
0060
0061 virtual void onInitInfoPtr() {}
0062
0063
0064 virtual void onBeginEvent() {}
0065
0066
0067
0068 virtual void onEndEvent(Status) {}
0069
0070
0071 virtual void onStat() {}
0072
0073
0074 void registerSubObject(PhysicsBase& pb);
0075
0076
0077
0078 Info* infoPtr = {};
0079
0080
0081 Settings* settingsPtr = {};
0082
0083
0084 ParticleData* particleDataPtr = {};
0085
0086
0087 Logger* loggerPtr = {};
0088
0089
0090 HadronWidths* hadronWidthsPtr = {};
0091
0092
0093 Rndm* rndmPtr = {};
0094
0095
0096 CoupSM* coupSMPtr = {};
0097 CoupSUSY* coupSUSYPtr = {};
0098
0099
0100
0101 BeamSetup* beamSetupPtr = {};
0102 BeamParticle* beamAPtr = {};
0103 BeamParticle* beamBPtr = {};
0104 BeamParticle* beamPomAPtr = {};
0105 BeamParticle* beamPomBPtr = {};
0106 BeamParticle* beamGamAPtr = {};
0107 BeamParticle* beamGamBPtr = {};
0108 BeamParticle* beamVMDAPtr = {};
0109 BeamParticle* beamVMDBPtr = {};
0110
0111
0112 PartonSystems* partonSystemsPtr = {};
0113
0114
0115 SigmaTotal* sigmaTotPtr = {};
0116 SigmaCombined* sigmaCmbPtr = {};
0117
0118
0119
0120 set<PhysicsBase*> subObjects;
0121
0122
0123
0124 UserHooksPtr userHooksPtr;
0125
0126 private:
0127
0128 friend class Pythia;
0129
0130
0131 void beginEvent();
0132
0133
0134 void endEvent(Status status);
0135
0136
0137 void stat();
0138
0139 };
0140
0141
0142
0143 }
0144
0145 #endif