Import Geant4 11.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2025-12-05 08:54:02 +01:00
parent a499fb82e9
commit b4a16de652
6484 changed files with 232674 additions and 221097 deletions
+6 -1
View File
@@ -282,17 +282,21 @@ class G4Event
private:
G4Event* motherEvent = nullptr;
G4int subEventType = -1;
const G4SubEvent* fSubEvent = nullptr;
public:
void FlagAsSubEvent(G4Event* me, G4int ty)
void FlagAsSubEvent(G4Event* me, G4int ty, const G4SubEvent* se)
{
motherEvent = me;
subEventType = ty;
fSubEvent = se;
}
inline G4Event* GetMotherEvent() const
{ return motherEvent; }
inline G4int GetSubEventType() const
{ return subEventType; }
inline const G4SubEvent* GetSubEvent() const
{ return fSubEvent; }
private:
mutable G4bool scoresRecorded = false;
@@ -302,6 +306,7 @@ class G4Event
G4bool ScoresAlreadyRecorded() const { return scoresRecorded; }
void EventCompleted() const { eventCompleted = true; }
G4bool IsEventCompleted() const { return eventCompleted; }
};
extern G4EVENT_DLL G4Allocator<G4Event>*& anEventAllocator();