8 #include "Pythia8/PhysicsBase.h"
20 void PhysicsBase::initInfoPtr(Info& infoIn) {
26 settingsPtr = infoPtr->settingsPtr;
27 particleDataPtr = infoPtr->particleDataPtr;
28 hadronWidthsPtr = infoPtr->hadronWidthsPtr;
29 rndmPtr = infoPtr->rndmPtr;
30 coupSMPtr = infoPtr->coupSMPtr;
31 coupSUSYPtr = infoPtr->coupSUSYPtr;
32 beamAPtr = infoPtr->beamAPtr;
33 beamBPtr = infoPtr->beamBPtr;
34 beamPomAPtr = infoPtr->beamPomAPtr;
35 beamPomBPtr = infoPtr->beamPomBPtr;
36 beamGamAPtr = infoPtr->beamGamAPtr;
37 beamGamBPtr = infoPtr->beamGamBPtr;
38 beamVMDAPtr = infoPtr->beamVMDAPtr;
39 beamVMDBPtr = infoPtr->beamVMDBPtr;
40 partonSystemsPtr = infoPtr->partonSystemsPtr;
41 sigmaTotPtr = infoPtr->sigmaTotPtr;
42 userHooksPtr = infoPtr->userHooksPtr;
51 void PhysicsBase::registerSubObject(PhysicsBase & pb) {
52 pb.initInfoPtr(*infoPtr);
53 subObjects.insert(&pb);
59 void PhysicsBase::beginEvent() {
61 for (PhysicsBase* subObjectPtr : subObjects)
62 subObjectPtr->beginEvent();
68 void PhysicsBase::endEvent(Status status) {
70 for (PhysicsBase* subObjectPtr : subObjects)
71 subObjectPtr->endEvent(status);
77 void PhysicsBase::stat() {
79 for (PhysicsBase* subObjectPtr : subObjects)