Import Geant4 10.7.0.beta source tree
This commit is contained in:
+67
-68
@@ -40,82 +40,81 @@ class G4DCtable;
|
||||
// This class represents a run. An object of this class is constructed
|
||||
// and deleted by G4RunManager. Basically the user should use only the
|
||||
// get methods. All properties are set by G4RunManager.
|
||||
//
|
||||
//
|
||||
|
||||
class G4Run
|
||||
{
|
||||
public:
|
||||
G4Run();
|
||||
virtual ~G4Run();
|
||||
public:
|
||||
G4Run();
|
||||
virtual ~G4Run();
|
||||
|
||||
private:
|
||||
// These copy constructor and = operator must not be used.
|
||||
G4Run(const G4Run &) {;}
|
||||
G4Run& operator=(const G4Run &) { return *this; }
|
||||
private:
|
||||
// These copy constructor and = operator must not be used.
|
||||
G4Run(const G4Run&) { ; }
|
||||
G4Run& operator=(const G4Run&) { return *this; }
|
||||
|
||||
protected:
|
||||
G4int runID;
|
||||
G4int numberOfEvent;
|
||||
G4int numberOfEventToBeProcessed;
|
||||
G4HCtable* HCtable;
|
||||
G4DCtable* DCtable;
|
||||
G4String randomNumberStatus;
|
||||
std::vector<const G4Event*>* eventVector;
|
||||
protected:
|
||||
G4int runID;
|
||||
G4int numberOfEvent;
|
||||
G4int numberOfEventToBeProcessed;
|
||||
G4HCtable* HCtable;
|
||||
G4DCtable* DCtable;
|
||||
G4String randomNumberStatus;
|
||||
std::vector<const G4Event*>* eventVector;
|
||||
|
||||
public: // with description
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
// Method to be overwritten by the user for recording events in this run.
|
||||
// In such a case, it is the user's responsibility to increment numberOfEvent.
|
||||
// Also, user's run class object must be instantiated in user's runAction.
|
||||
virtual void Merge(const G4Run*);
|
||||
// Method to be overwritten by the user for merging local G4Run object to
|
||||
// the global G4Run object.
|
||||
public: // with description
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
// Method to be overwritten by the user for recording events in this run.
|
||||
// In such a case, it is the user's responsibility to increment
|
||||
// numberOfEvent. Also, user's run class object must be instantiated in
|
||||
// user's runAction.
|
||||
virtual void Merge(const G4Run*);
|
||||
// Method to be overwritten by the user for merging local G4Run object to
|
||||
// the global G4Run object.
|
||||
|
||||
public: // with description
|
||||
inline G4int GetRunID() const
|
||||
{ return runID; }
|
||||
// Returns the run ID. Run ID is set by G4RunManager.
|
||||
inline G4int GetNumberOfEvent() const
|
||||
{ return numberOfEvent; }
|
||||
// Returns number of events processed in this run. The number is
|
||||
// incremented at the end of each event processing.
|
||||
inline G4int GetNumberOfEventToBeProcessed() const
|
||||
{ return numberOfEventToBeProcessed; }
|
||||
inline const G4HCtable* GetHCtable() const
|
||||
{ return HCtable; }
|
||||
// List of names of hits collection
|
||||
inline const G4DCtable* GetDCtable() const
|
||||
{ return DCtable; }
|
||||
// List of names of digi collection
|
||||
inline const G4String& GetRandomNumberStatus() const
|
||||
{ return randomNumberStatus; }
|
||||
// Return random number status at the beginning of this run
|
||||
public:
|
||||
inline void SetRunID(G4int id)
|
||||
{ runID = id; }
|
||||
inline void SetNumberOfEventToBeProcessed(G4int n_ev)
|
||||
{ numberOfEventToBeProcessed = n_ev; }
|
||||
inline void SetHCtable(G4HCtable* HCtbl)
|
||||
{ HCtable = HCtbl; }
|
||||
inline void SetDCtable(G4DCtable* DCtbl)
|
||||
{ DCtable = DCtbl; }
|
||||
inline void SetRandomNumberStatus(G4String& st)
|
||||
{ randomNumberStatus = st; }
|
||||
public: // with description
|
||||
inline G4int GetRunID() const { return runID; }
|
||||
// Returns the run ID. Run ID is set by G4RunManager.
|
||||
inline G4int GetNumberOfEvent() const { return numberOfEvent; }
|
||||
// Returns number of events processed in this run. The number is
|
||||
// incremented at the end of each event processing.
|
||||
inline G4int GetNumberOfEventToBeProcessed() const
|
||||
{
|
||||
return numberOfEventToBeProcessed;
|
||||
}
|
||||
inline const G4HCtable* GetHCtable() const { return HCtable; }
|
||||
// List of names of hits collection
|
||||
inline const G4DCtable* GetDCtable() const { return DCtable; }
|
||||
// List of names of digi collection
|
||||
inline const G4String& GetRandomNumberStatus() const
|
||||
{
|
||||
return randomNumberStatus;
|
||||
}
|
||||
// Return random number status at the beginning of this run
|
||||
public:
|
||||
inline void SetRunID(G4int id) { runID = id; }
|
||||
inline void SetNumberOfEventToBeProcessed(G4int n_ev)
|
||||
{
|
||||
numberOfEventToBeProcessed = n_ev;
|
||||
}
|
||||
inline void SetHCtable(G4HCtable* HCtbl) { HCtable = HCtbl; }
|
||||
inline void SetDCtable(G4DCtable* DCtbl) { DCtable = DCtbl; }
|
||||
inline void SetRandomNumberStatus(G4String& st) { randomNumberStatus = st; }
|
||||
|
||||
public: // with description
|
||||
void StoreEvent(G4Event* evt);
|
||||
// Store a G4Event object until this run object is deleted.
|
||||
// Given the potential large memory size of G4Event and its datamember
|
||||
// objects stored in G4Event, the user must be careful and responsible for
|
||||
// not to store too many G4Event objects. This method is invoked by G4RunManager
|
||||
// if the user invokes G4EventManager::KeepTheCurrentEvent() or
|
||||
// /event/keepCurrentEvent UI command while the particular event is in process
|
||||
// (typically in EndOfEventAction).
|
||||
inline const std::vector<const G4Event*>* GetEventVector() const
|
||||
{ return eventVector; }
|
||||
// Return the event vector
|
||||
public: // with description
|
||||
void StoreEvent(G4Event* evt);
|
||||
// Store a G4Event object until this run object is deleted.
|
||||
// Given the potential large memory size of G4Event and its datamember
|
||||
// objects stored in G4Event, the user must be careful and responsible for
|
||||
// not to store too many G4Event objects. This method is invoked by
|
||||
// G4RunManager if the user invokes G4EventManager::KeepTheCurrentEvent() or
|
||||
// /event/keepCurrentEvent UI command while the particular event is in process
|
||||
// (typically in EndOfEventAction).
|
||||
inline const std::vector<const G4Event*>* GetEventVector() const
|
||||
{
|
||||
return eventVector;
|
||||
}
|
||||
// Return the event vector
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user