Import Geant4 9.6.0 source tree
This commit is contained in:
+41
-38
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashDetectorConstruction.hh
|
||||
/// \brief Definition of the ExGflashDetectorConstruction class
|
||||
//
|
||||
#ifndef ExGflashDetectorConstruction_h
|
||||
#define ExGflashDetectorConstruction_h 1
|
||||
|
||||
@@ -41,47 +44,47 @@ class GFlashParticleBounds;
|
||||
|
||||
class ExGflashDetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
ExGflashDetectorConstruction();
|
||||
~ExGflashDetectorConstruction();
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
const G4VPhysicalVolume* GetCristal(int num__crystal)
|
||||
public:
|
||||
ExGflashDetectorConstruction();
|
||||
~ExGflashDetectorConstruction();
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
const G4VPhysicalVolume* GetCristal(int num__crystal)
|
||||
{return m_crystal_phys[num__crystal];};
|
||||
|
||||
|
||||
private:
|
||||
G4LogicalVolume* m_experimentalHall_log;
|
||||
G4LogicalVolume* m_calo_log;
|
||||
|
||||
G4VPhysicalVolume* m_experimentalHall_phys;
|
||||
G4VPhysicalVolume* m_calo_phys;
|
||||
|
||||
G4Box *m_experimentalHall_box;
|
||||
|
||||
G4double m_experimentalHall_x;
|
||||
G4double m_experimentalHall_y;
|
||||
G4double m_experimentalHall_z;
|
||||
|
||||
G4double m_calo_xside;
|
||||
G4double m_calo_yside;
|
||||
G4double m_calo_zside;
|
||||
|
||||
G4int m_NbOfCrystals; // Nb of chambers in the tracker region
|
||||
G4double m_CrystalWidth; // width of the chambers
|
||||
G4double m_CrystalWidht;
|
||||
G4double m_CrystalLenght;
|
||||
//@@@ ExGflashDetectorConstruction : wie mache ich das am besten ?
|
||||
G4Box *m_crystal[100];
|
||||
G4LogicalVolume* m_crystal_log[100];
|
||||
G4VPhysicalVolume* m_crystal_phys[100];
|
||||
|
||||
// Gflash members
|
||||
GFlashHomoShowerParameterisation *m_theParameterisation;
|
||||
GFlashHitMaker *m_theHMaker;
|
||||
GFlashParticleBounds *m_theParticleBounds;
|
||||
GFlashShowerModel* m_theFastShowerModel;
|
||||
G4Region* aRegion;
|
||||
private:
|
||||
G4LogicalVolume* m_experimentalHall_log;
|
||||
G4LogicalVolume* m_calo_log;
|
||||
|
||||
G4VPhysicalVolume* m_experimentalHall_phys;
|
||||
G4VPhysicalVolume* m_calo_phys;
|
||||
|
||||
G4Box *m_experimentalHall_box;
|
||||
|
||||
G4double m_experimentalHall_x;
|
||||
G4double m_experimentalHall_y;
|
||||
G4double m_experimentalHall_z;
|
||||
|
||||
G4double m_calo_xside;
|
||||
G4double m_calo_yside;
|
||||
G4double m_calo_zside;
|
||||
|
||||
G4int m_NbOfCrystals; // Nb of chambers in the tracker region
|
||||
G4double m_CrystalWidth; // width of the chambers
|
||||
G4double m_CrystalWidht;
|
||||
G4double m_CrystalLenght;
|
||||
//@@@ ExGflashDetectorConstruction : wie mache ich das am besten ?
|
||||
G4Box *m_crystal[100];
|
||||
G4LogicalVolume* m_crystal_log[100];
|
||||
G4VPhysicalVolume* m_crystal_phys[100];
|
||||
|
||||
// Gflash members
|
||||
GFlashHomoShowerParameterisation *m_theParameterisation;
|
||||
GFlashHitMaker *m_theHMaker;
|
||||
GFlashParticleBounds *m_theParticleBounds;
|
||||
GFlashShowerModel* m_theFastShowerModel;
|
||||
G4Region* aRegion;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashEventAction.hh
|
||||
/// \brief Definition of the ExGflashEventAction class
|
||||
//
|
||||
#ifndef ExGflashEventAction_h
|
||||
#define ExGflashEventAction_h
|
||||
|
||||
@@ -31,15 +34,15 @@
|
||||
|
||||
|
||||
class ExGflashEventAction: public G4UserEventAction {
|
||||
public:
|
||||
ExGflashEventAction();
|
||||
~ExGflashEventAction();
|
||||
|
||||
void BeginOfEventAction(const G4Event*);
|
||||
void EndOfEventAction(const G4Event*);
|
||||
private:
|
||||
G4int nevent;
|
||||
G4double dtime;
|
||||
G4int calorimeterCollectionId;
|
||||
public:
|
||||
ExGflashEventAction();
|
||||
~ExGflashEventAction();
|
||||
|
||||
void BeginOfEventAction(const G4Event*);
|
||||
void EndOfEventAction(const G4Event*);
|
||||
private:
|
||||
G4int nevent;
|
||||
G4double dtime;
|
||||
G4int calorimeterCollectionId;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashHit.hh
|
||||
/// \brief Definition of the ExGflashHit class
|
||||
//
|
||||
#ifndef ExGflashHit_h
|
||||
#define ExGflashHit_h 1
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashHitsCollection.hh
|
||||
/// \brief Definition of the ExGflashHitsCollection class
|
||||
//
|
||||
#ifndef ExGflashHitsCollection_h
|
||||
#define ExGflashHitsCollection_h
|
||||
#include "G4THitsCollection.hh"
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashMaterialManager.hh
|
||||
/// \brief Definition of the ExGflashMaterialManager class
|
||||
//
|
||||
#ifndef MATERIALMANAGER_H
|
||||
#define MATERIALMANAGER_H
|
||||
|
||||
@@ -41,27 +44,27 @@ typedef std::map< G4String, G4Material*, std::less<G4String> > MaterialList;
|
||||
|
||||
class ExGflashMaterialManager {
|
||||
private:
|
||||
ElementList elist;
|
||||
MaterialList mlist;
|
||||
ExGflashMaterialManager() {initialize();}
|
||||
static ExGflashMaterialManager *mpointer;
|
||||
ElementList elist;
|
||||
MaterialList mlist;
|
||||
ExGflashMaterialManager() {initialize();}
|
||||
static ExGflashMaterialManager *mpointer;
|
||||
public:
|
||||
static ExGflashMaterialManager* GetMaterialManager()
|
||||
{
|
||||
if (!mpointer)
|
||||
mpointer=new ExGflashMaterialManager;
|
||||
return mpointer;
|
||||
}
|
||||
void storeElement(G4String, G4String, double, double);
|
||||
G4Element* getElement(G4String);
|
||||
void storeMaterial(G4String, double, double, double);
|
||||
void storeMaterial(G4String, double, int);
|
||||
G4Material* getMaterial(G4String);
|
||||
void addMaterial(G4String,G4String,double);
|
||||
void addElement(G4String,G4String,double);
|
||||
void addElement(G4String,G4String,int);
|
||||
void printElementTable();
|
||||
void printMaterialTable();
|
||||
void initialize();
|
||||
static ExGflashMaterialManager* GetMaterialManager()
|
||||
{
|
||||
if (!mpointer)
|
||||
mpointer=new ExGflashMaterialManager;
|
||||
return mpointer;
|
||||
}
|
||||
void storeElement(G4String, G4String, double, double);
|
||||
G4Element* getElement(G4String);
|
||||
void storeMaterial(G4String, double, double, double);
|
||||
void storeMaterial(G4String, double, int);
|
||||
G4Material* getMaterial(G4String);
|
||||
void addMaterial(G4String,G4String,double);
|
||||
void addElement(G4String,G4String,double);
|
||||
void addElement(G4String,G4String,int);
|
||||
void printElementTable();
|
||||
void printMaterialTable();
|
||||
void initialize();
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashPhysicsList.hh
|
||||
/// \brief Definition of the ExGflashPhysicsList class
|
||||
//
|
||||
#ifndef ExGflashPhysicsList_h
|
||||
#define ExGflashPhysicsList_h 1
|
||||
|
||||
|
||||
+9
-6
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashPrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the ExGflashPrimaryGeneratorAction class
|
||||
//
|
||||
#ifndef ExGflashPrimaryGeneratorAction_h
|
||||
#define ExGflashPrimaryGeneratorAction_h
|
||||
|
||||
@@ -36,13 +39,13 @@ class G4Event;
|
||||
|
||||
class ExGflashPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
|
||||
|
||||
public:
|
||||
ExGflashPrimaryGeneratorAction();
|
||||
~ExGflashPrimaryGeneratorAction();
|
||||
void GeneratePrimaries(G4Event* anEvent);
|
||||
public:
|
||||
ExGflashPrimaryGeneratorAction();
|
||||
~ExGflashPrimaryGeneratorAction();
|
||||
void GeneratePrimaries(G4Event* anEvent);
|
||||
|
||||
private:
|
||||
G4GeneralParticleSource * particleGun;
|
||||
private:
|
||||
G4GeneralParticleSource * particleGun;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashRunAction.hh
|
||||
/// \brief Definition of the ExGflashRunAction class
|
||||
//
|
||||
#ifndef ExGflashRunAction_h
|
||||
#define ExGflashRunAction_h
|
||||
|
||||
@@ -35,15 +38,14 @@ class G4Run;
|
||||
class ExGflashRunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ExGflashRunAction();
|
||||
~ExGflashRunAction();
|
||||
void BeginOfRunAction(const G4Run* aRun);
|
||||
void EndOfRunAction(const G4Run* aRun);
|
||||
void setRunID (int i) {runID=i;};
|
||||
ExGflashRunAction();
|
||||
~ExGflashRunAction();
|
||||
void BeginOfRunAction(const G4Run* aRun);
|
||||
void EndOfRunAction(const G4Run* aRun);
|
||||
void setRunID (int i) {runID=i;};
|
||||
|
||||
private:
|
||||
G4int runID;
|
||||
G4int runID;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file parameterisations/gflash/include/ExGflashSensitiveDetector.hh
|
||||
/// \brief Definition of the ExGflashSensitiveDetector class
|
||||
//
|
||||
#ifndef TILE05SENSITIVEDETECTOR_H
|
||||
#define TILE05SENSITIVEDETECTOR_H
|
||||
|
||||
@@ -36,17 +39,17 @@ class G4Step;
|
||||
class G4HCofThisEvent;
|
||||
class G4TouchableHistory;
|
||||
class ExGflashSensitiveDetector: public G4VSensitiveDetector ,public G4VGFlashSensitiveDetector{
|
||||
public:
|
||||
ExGflashSensitiveDetector(G4String, ExGflashDetectorConstruction* det);
|
||||
~ExGflashSensitiveDetector();
|
||||
|
||||
void Initialize(G4HCofThisEvent*);
|
||||
G4bool ProcessHits(G4Step*,G4TouchableHistory*);
|
||||
G4bool ProcessHits(G4GFlashSpot*aSpot,G4TouchableHistory*);
|
||||
void EndOfEvent(G4HCofThisEvent*);
|
||||
private:
|
||||
ExGflashHitsCollection* caloHitsCollection;
|
||||
G4double edep;
|
||||
ExGflashDetectorConstruction* Detector;
|
||||
public:
|
||||
ExGflashSensitiveDetector(G4String, ExGflashDetectorConstruction* det);
|
||||
~ExGflashSensitiveDetector();
|
||||
|
||||
void Initialize(G4HCofThisEvent*);
|
||||
G4bool ProcessHits(G4Step*,G4TouchableHistory*);
|
||||
G4bool ProcessHits(G4GFlashSpot*aSpot,G4TouchableHistory*);
|
||||
void EndOfEvent(G4HCofThisEvent*);
|
||||
private:
|
||||
ExGflashHitsCollection* caloHitsCollection;
|
||||
G4double edep;
|
||||
ExGflashDetectorConstruction* Detector;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user