Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -27,24 +27,24 @@
|
||||
/// \brief Definition of the RE02Run class
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef RE02Run_h
|
||||
#define RE02Run_h 1
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4Event.hh"
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4THitsMap.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
/// User run class
|
||||
///
|
||||
/// (Description)
|
||||
/// An example implementation for the multi-functional-detector and
|
||||
/// (Description)
|
||||
/// An example implementation for the multi-functional-detector and
|
||||
/// primitive scorers.
|
||||
/// This RE02Run class has collections which accumulate event information
|
||||
/// This RE02Run class has collections which accumulate event information
|
||||
/// into run information.
|
||||
///
|
||||
/// - constructor
|
||||
@@ -60,7 +60,7 @@
|
||||
/// - G4THitsMap<G4double>* GetHitsMap(G4int i)
|
||||
/// gets a run HitsMap of the i-th primitive scorer
|
||||
///
|
||||
/// - G4THitsMap<G4double>* GetHitsMap(const G4String& detName,
|
||||
/// - G4THitsMap<G4double>* GetHitsMap(const G4String& detName,
|
||||
/// const G4String& colName)
|
||||
/// gets a run HitsMap with the detName and the colName
|
||||
///
|
||||
@@ -71,39 +71,38 @@
|
||||
/// shows all HitsMap information of this run.
|
||||
/// This method calls G4THisMap::PrintAll() for individual HitsMap.
|
||||
//---------------------------------------------------------------------
|
||||
class RE02Run : public G4Run {
|
||||
class RE02Run : public G4Run
|
||||
{
|
||||
public:
|
||||
// constructor and destructor.
|
||||
// vector of multifunctionaldetector name has to given to constructor.
|
||||
RE02Run(const std::vector<G4String> mfdName);
|
||||
virtual ~RE02Run();
|
||||
|
||||
public:
|
||||
// constructor and destructor.
|
||||
// vector of multifunctionaldetector name has to given to constructor.
|
||||
RE02Run(const std::vector<G4String> mfdName);
|
||||
virtual ~RE02Run();
|
||||
public:
|
||||
// virtual method from G4Run.
|
||||
// The method is overriden in this class for scoring.
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
public:
|
||||
// virtual method from G4Run.
|
||||
// The method is overriden in this class for scoring.
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
virtual void Merge(const G4Run*);
|
||||
// Access methods for scoring information.
|
||||
// - Number of HitsMap for this RUN.
|
||||
// This is equal to number of collections.
|
||||
G4int GetNumberOfHitsMap() const { return fRunMap.size(); }
|
||||
// - Get HitsMap of this RUN.
|
||||
// by sequential number, by multifucntional name and collection name,
|
||||
// and by collection name with full path.
|
||||
G4THitsMap<G4double>* GetHitsMap(G4int i) { return fRunMap[i]; }
|
||||
G4THitsMap<G4double>* GetHitsMap(const G4String& detName, const G4String& colName);
|
||||
G4THitsMap<G4double>* GetHitsMap(const G4String& fullName);
|
||||
// - Dump All HitsMap of this RUN.
|
||||
// This method calls G4THisMap::PrintAll() for individual HitsMap.
|
||||
void DumpAllScorer();
|
||||
|
||||
// Access methods for scoring information.
|
||||
// - Number of HitsMap for this RUN.
|
||||
// This is equal to number of collections.
|
||||
G4int GetNumberOfHitsMap() const {return fRunMap.size();}
|
||||
// - Get HitsMap of this RUN.
|
||||
// by sequential number, by multifucntional name and collection name,
|
||||
// and by collection name with full path.
|
||||
G4THitsMap<G4double>* GetHitsMap(G4int i){return fRunMap[i];}
|
||||
G4THitsMap<G4double>* GetHitsMap(const G4String& detName,
|
||||
const G4String& colName);
|
||||
G4THitsMap<G4double>* GetHitsMap(const G4String& fullName);
|
||||
// - Dump All HitsMap of this RUN.
|
||||
// This method calls G4THisMap::PrintAll() for individual HitsMap.
|
||||
void DumpAllScorer();
|
||||
|
||||
private:
|
||||
std::vector<G4String> fCollName;
|
||||
std::vector<G4int> fCollID;
|
||||
std::vector<G4THitsMap<G4double>*> fRunMap;
|
||||
private:
|
||||
std::vector<G4String> fCollName;
|
||||
std::vector<G4int> fCollID;
|
||||
std::vector<G4THitsMap<G4double>*> fRunMap;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user