Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -37,13 +37,12 @@
|
||||
class B01ActionInitialization : public G4VUserActionInitialization
|
||||
{
|
||||
public:
|
||||
B01ActionInitialization();
|
||||
B01ActionInitialization();
|
||||
virtual ~B01ActionInitialization();
|
||||
|
||||
public:
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,8 +32,9 @@
|
||||
#ifndef B01DetectorConstruction_hh
|
||||
#define B01DetectorConstruction_hh B01DetectorConstruction_hh
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
class G4VPhysicalVolume;
|
||||
class G4LogicalVolume;
|
||||
@@ -42,33 +43,32 @@ class G4VWeightWindowStore;
|
||||
|
||||
class B01DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
B01DetectorConstruction();
|
||||
~B01DetectorConstruction();
|
||||
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
public:
|
||||
B01DetectorConstruction();
|
||||
~B01DetectorConstruction();
|
||||
|
||||
G4VIStore* CreateImportanceStore();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
|
||||
G4VIStore* CreateImportanceStore();
|
||||
// create an importance store, caller is responsible for deleting it
|
||||
|
||||
G4VWeightWindowStore *CreateWeightWindowStore();
|
||||
// create an weight window store, caller is responsible for
|
||||
G4VWeightWindowStore* CreateWeightWindowStore();
|
||||
// create an weight window store, caller is responsible for
|
||||
// deleting it
|
||||
|
||||
G4String GetCellName(G4int i);
|
||||
G4String GetCellName(G4int i);
|
||||
|
||||
G4VPhysicalVolume* GetWorldVolume();
|
||||
G4VPhysicalVolume* GetWorldVolume();
|
||||
|
||||
void SetSensitive();
|
||||
void SetSensitive();
|
||||
|
||||
virtual void ConstructSDandField();
|
||||
virtual void ConstructSDandField();
|
||||
|
||||
private:
|
||||
std::vector< G4LogicalVolume * > fLogicalVolumeVector;
|
||||
std::vector< G4VPhysicalVolume * > fPhysicalVolumeVector;
|
||||
|
||||
G4VPhysicalVolume* fWorldVolume;
|
||||
private:
|
||||
std::vector<G4LogicalVolume*> fLogicalVolumeVector;
|
||||
std::vector<G4VPhysicalVolume*> fPhysicalVolumeVector;
|
||||
|
||||
G4VPhysicalVolume* fWorldVolume;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
//
|
||||
|
||||
#ifndef B01PrimaryGeneratorAction_hh
|
||||
#define B01PrimaryGeneratorAction_hh B01PrimaryGeneratorAction_hh
|
||||
#define B01PrimaryGeneratorAction_hh B01PrimaryGeneratorAction_hh
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
@@ -50,4 +50,3 @@ class B01PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
/// \brief Definition of the B01Run class
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------
|
||||
// (Purpose)
|
||||
// Example implementation for multi-functional-detector and
|
||||
// (Purpose)
|
||||
// Example implementation for multi-functional-detector and
|
||||
// primitive scorer.
|
||||
// This B01Run class has collections which accumulate
|
||||
// a event information into a run information.
|
||||
@@ -40,46 +40,45 @@
|
||||
#ifndef B01Run_h
|
||||
#define B01Run_h 1
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4Event.hh"
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4THitsMap.hh"
|
||||
|
||||
#include <vector>
|
||||
//
|
||||
class B01Run : public G4Run {
|
||||
class B01Run : public G4Run
|
||||
{
|
||||
public:
|
||||
// constructor and destructor.
|
||||
// vector of multifunctionaldetector name has to given to constructor.
|
||||
B01Run(const std::vector<G4String> mfdName);
|
||||
virtual ~B01Run();
|
||||
|
||||
public:
|
||||
// constructor and destructor.
|
||||
// vector of multifunctionaldetector name has to given to constructor.
|
||||
B01Run(const std::vector<G4String> mfdName);
|
||||
virtual ~B01Run();
|
||||
public:
|
||||
// virtual method from G4Run.
|
||||
// The method is overriden in this class for scoring.
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
|
||||
public:
|
||||
// virtual method from G4Run.
|
||||
// The method is overriden in this class for scoring.
|
||||
virtual void RecordEvent(const G4Event*);
|
||||
// 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();
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
@@ -27,49 +27,48 @@
|
||||
/// \brief Definition of the B01RunAction class
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef B01RunAction_h
|
||||
#define B01RunAction_h 1
|
||||
|
||||
#include "G4UserRunAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4Run;
|
||||
|
||||
//=======================================================================
|
||||
// B01RunAction
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//=======================================================================
|
||||
//
|
||||
class B01RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
// constructor and destructor
|
||||
B01RunAction();
|
||||
virtual ~B01RunAction();
|
||||
public:
|
||||
// constructor and destructor
|
||||
B01RunAction();
|
||||
virtual ~B01RunAction();
|
||||
|
||||
public:
|
||||
// virtual method from G4UserRunAction.
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
public:
|
||||
// virtual method from G4UserRunAction.
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
public:
|
||||
void PrintHeader(std::ostream *out);
|
||||
std::string FillString(const std::string &name, char c, G4int n
|
||||
, G4bool back=true);
|
||||
|
||||
private:
|
||||
// Data member
|
||||
// - vector of MultiFunctionalDetector names.
|
||||
std::vector<G4String> fSDName;
|
||||
// G4int fFieldName;
|
||||
G4int fFieldValue;
|
||||
public:
|
||||
void PrintHeader(std::ostream* out);
|
||||
std::string FillString(const std::string& name, char c, G4int n, G4bool back = true);
|
||||
|
||||
private:
|
||||
// Data member
|
||||
// - vector of MultiFunctionalDetector names.
|
||||
std::vector<G4String> fSDName;
|
||||
// G4int fFieldName;
|
||||
G4int fFieldValue;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user