Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2DetectorConstruction.hh,v 1.1.4.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2DetectorConstruction_h
|
||||
#define Em2DetectorConstruction_h 1
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4Material.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
|
||||
class G4Tubs;
|
||||
class G4LogicalVolume;
|
||||
class G4UniformMagField;
|
||||
class Em2DetectorMessenger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
Em2DetectorConstruction();
|
||||
~Em2DetectorConstruction();
|
||||
|
||||
public:
|
||||
|
||||
void SetMaterial(G4String);
|
||||
void SetLBining (G4ThreeVector);
|
||||
void SetRBining (G4ThreeVector);
|
||||
void SetMagField(G4double);
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
void UpdateGeometry();
|
||||
|
||||
public:
|
||||
|
||||
const
|
||||
G4VPhysicalVolume* GetEcal() {return physiEcal;};
|
||||
G4Material* GetMaterial() {return myMaterial;};
|
||||
|
||||
G4int GetnLtot() {return nLtot;};
|
||||
G4int GetnRtot() {return nRtot;};
|
||||
G4double GetdLradl() {return dLradl;};
|
||||
G4double GetdRradl() {return dRradl;};
|
||||
G4double GetfullLength() {return EcalLength;};
|
||||
G4double GetfullRadius() {return EcalRadius;};
|
||||
|
||||
private:
|
||||
|
||||
G4int nLtot, nRtot; // nb of bins: longitudinal and radial
|
||||
G4double dLradl, dRradl; // bin thickness (in radl unit)
|
||||
|
||||
G4Material* myMaterial; //pointer to the material
|
||||
G4UniformMagField* magField; //pointer to the mag field
|
||||
|
||||
G4double EcalLength; //full length of the Calorimeter
|
||||
G4double EcalRadius; //radius of the Calorimeter
|
||||
|
||||
G4Tubs* solidEcal; //pointer to the solid calorimeter
|
||||
G4LogicalVolume* logicEcal; //pointer to the logical calorimeter
|
||||
G4VPhysicalVolume* physiEcal; //pointer to the physical calorimeter
|
||||
|
||||
G4Tubs* solidSlice; //pointer to the solid L-slice
|
||||
G4LogicalVolume* logicSlice; //pointer to the logical L-slide
|
||||
G4VPhysicalVolume* physiSlice; //pointer to the physical L-slide
|
||||
|
||||
G4Tubs* solidRing; //pointer to the solid R-slice
|
||||
G4LogicalVolume* logicRing; //pointer to the logical R-slide
|
||||
G4VPhysicalVolume* physiRing; //pointer to the physical R-slide
|
||||
|
||||
Em2DetectorMessenger* detectorMessenger; //pointer to the Messenger object
|
||||
|
||||
private:
|
||||
|
||||
void DefineMaterials();
|
||||
G4VPhysicalVolume* ConstructVolumes();
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2DetectorMessenger.hh,v 1.1.4.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2DetectorMessenger_h
|
||||
#define Em2DetectorMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class Em2DetectorConstruction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWith3Vector;
|
||||
class G4UIcmdWithADoubleAndUnit;
|
||||
class G4UIcmdWithoutParameter;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2DetectorMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
Em2DetectorMessenger(Em2DetectorConstruction* );
|
||||
~Em2DetectorMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
Em2DetectorConstruction* Em2Detector;
|
||||
|
||||
G4UIdirectory* Em2detDir;
|
||||
G4UIcmdWithAString* MaterCmd;
|
||||
G4UIcmdWith3Vector* LBinCmd;
|
||||
G4UIcmdWith3Vector* RBinCmd;
|
||||
G4UIcmdWithADoubleAndUnit* FieldCmd;
|
||||
G4UIcmdWithoutParameter* UpdateCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2EventAction.hh,v 1.1.4.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2EventAction_h
|
||||
#define Em2EventAction_h 1
|
||||
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class Em2RunAction;
|
||||
class Em2EventActionMessenger;
|
||||
|
||||
class G4Event;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2EventAction : public G4UserEventAction
|
||||
{
|
||||
public:
|
||||
|
||||
Em2EventAction(Em2RunAction*);
|
||||
~Em2EventAction();
|
||||
|
||||
void BeginOfEventAction(const G4Event*);
|
||||
void EndOfEventAction(const G4Event*);
|
||||
|
||||
void SetDrawFlag (G4String val) {drawFlag = val;};
|
||||
void SetPrintModulo(G4int val) {printModulo = val;};
|
||||
|
||||
private:
|
||||
|
||||
Em2RunAction* Em2Run;
|
||||
G4String drawFlag;
|
||||
G4int printModulo;
|
||||
Em2EventActionMessenger* eventMessenger;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2EventActionMessenger.hh,v 1.1.4.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2EventActionMessenger_h
|
||||
#define Em2EventActionMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class Em2EventAction;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2EventActionMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
Em2EventActionMessenger(Em2EventAction*);
|
||||
~Em2EventActionMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
Em2EventAction* eventAction;
|
||||
G4UIcmdWithAString* DrawCmd;
|
||||
G4UIcmdWithAnInteger* PrintCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,50 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2PhysicsList.hh,v 1.1.4.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2PhysicsList_h
|
||||
#define Em2PhysicsList_h 1
|
||||
|
||||
#include "G4VUserPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2PhysicsList: public G4VUserPhysicsList
|
||||
{
|
||||
public:
|
||||
Em2PhysicsList();
|
||||
~Em2PhysicsList();
|
||||
|
||||
protected:
|
||||
// Construct particles
|
||||
void ConstructParticle();
|
||||
void ConstructBosons();
|
||||
void ConstructLeptons();
|
||||
void ConstructMesons();
|
||||
void ConstructBarions();
|
||||
|
||||
public:
|
||||
void SetCuts();
|
||||
|
||||
protected:
|
||||
// Construct processes and register them
|
||||
void ConstructProcess();
|
||||
void ConstructGeneral();
|
||||
void ConstructEM();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2PrimaryGeneratorAction.hh,v 1.1.4.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2PrimaryGeneratorAction_h
|
||||
#define Em2PrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Event;
|
||||
class Em2DetectorConstruction;
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
Em2PrimaryGeneratorAction(Em2DetectorConstruction*);
|
||||
~Em2PrimaryGeneratorAction();
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event*);
|
||||
G4ParticleGun* GetParticleGun() {return particleGun;};
|
||||
|
||||
private:
|
||||
G4ParticleGun* particleGun;
|
||||
Em2DetectorConstruction* Em2Detector;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2RunAction.hh,v 1.1.2.1.2.1 1999/12/07 20:46:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2RunAction_h
|
||||
#define Em2RunAction_h 1
|
||||
|
||||
#include "G4UserRunAction.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4Electron.hh"
|
||||
#include "G4Positron.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "g4rw/tvvector.h"
|
||||
typedef G4RWTValVector<G4double> MyVector;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2DetectorConstruction;
|
||||
class Em2PrimaryGeneratorAction;
|
||||
class Em2RunActionMessenger;
|
||||
|
||||
class G4Run;
|
||||
|
||||
class HepTupleManager;
|
||||
class HepHistogram;
|
||||
|
||||
class Em2RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
|
||||
Em2RunAction(Em2DetectorConstruction*, Em2PrimaryGeneratorAction*);
|
||||
~Em2RunAction();
|
||||
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
|
||||
inline void initializePerEvent();
|
||||
void fillPerEvent();
|
||||
inline void fillPerTrack(G4double,G4double);
|
||||
inline void fillPerStep (G4double,G4int,G4int);
|
||||
inline void particleFlux(G4ParticleDefinition*,G4int);
|
||||
|
||||
void SetSaveFlag (G4String val) {saveFlag = val;}
|
||||
void SetRndmFreq(G4int val) {saveRndm = val;}
|
||||
G4int GetRndmFreq() {return saveRndm;}
|
||||
|
||||
private:
|
||||
|
||||
void bookHisto();
|
||||
void cleanHisto();
|
||||
|
||||
private:
|
||||
|
||||
Em2DetectorConstruction* Em2Det;
|
||||
Em2PrimaryGeneratorAction* Em2Kin;
|
||||
|
||||
G4int nLbin;
|
||||
MyVector dEdL;
|
||||
MyVector sumELongit;
|
||||
MyVector sumE2Longit;
|
||||
MyVector sumELongitCumul;
|
||||
MyVector sumE2LongitCumul;
|
||||
|
||||
G4int nRbin;
|
||||
MyVector dEdR;
|
||||
MyVector sumERadial;
|
||||
MyVector sumE2Radial;
|
||||
MyVector sumERadialCumul;
|
||||
MyVector sumE2RadialCumul;
|
||||
|
||||
MyVector gammaFlux;
|
||||
MyVector electronFlux;
|
||||
MyVector positronFlux;
|
||||
|
||||
G4double ChargTrLength;
|
||||
G4double sumChargTrLength;
|
||||
G4double sum2ChargTrLength;
|
||||
|
||||
G4double NeutrTrLength;
|
||||
G4double sumNeutrTrLength;
|
||||
G4double sum2NeutrTrLength;
|
||||
|
||||
HepTupleManager* hbookManager;
|
||||
HepHistogram *histo1, *histo2, *histo3;
|
||||
HepHistogram *histo4, *histo5, *histo6;
|
||||
HepHistogram *histo7, *histo8, *histo9;
|
||||
HepHistogram *hist10, *hist11, *hist12;
|
||||
|
||||
Em2RunActionMessenger* runMessenger;
|
||||
G4String saveFlag;
|
||||
G4int saveRndm;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
void Em2RunAction::initializePerEvent()
|
||||
{
|
||||
//initialize arrays of energy deposit per bin
|
||||
for (G4int i=0; i<nLbin; i++)
|
||||
{ dEdL(i) = 0.; }
|
||||
|
||||
for (G4int j=0; j<nRbin; j++)
|
||||
{ dEdR(j) = 0.; }
|
||||
|
||||
//initialize tracklength
|
||||
ChargTrLength = NeutrTrLength = 0.;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
void Em2RunAction::fillPerTrack(G4double charge, G4double trkLength)
|
||||
{
|
||||
if (charge != 0.) ChargTrLength += trkLength;
|
||||
else NeutrTrLength += trkLength;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
void Em2RunAction::fillPerStep(G4double dEstep, G4int Lbin, G4int Rbin)
|
||||
{
|
||||
dEdL(Lbin) += dEstep; dEdR(Rbin) += dEstep;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
void Em2RunAction::particleFlux(G4ParticleDefinition* particle, G4int Lplan)
|
||||
{
|
||||
if (particle == G4Gamma::Gamma()) gammaFlux(Lplan)++;
|
||||
else if (particle == G4Electron::Electron()) electronFlux(Lplan)++;
|
||||
else if (particle == G4Positron::Positron()) positronFlux(Lplan)++;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2RunActionMessenger.hh,v 1.1.4.1 1999/12/07 20:46:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2RunActionMessenger_h
|
||||
#define Em2RunActionMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class Em2RunAction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2RunActionMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
Em2RunActionMessenger(Em2RunAction*);
|
||||
~Em2RunActionMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
Em2RunAction* Em2Run;
|
||||
G4UIcmdWithAString* SaveCmd;
|
||||
G4UIdirectory* RndmDir;
|
||||
G4UIcmdWithAnInteger* RndmSaveCmd;
|
||||
G4UIcmdWithAString* RndmReadCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,39 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2SteppingAction.hh,v 1.1.4.1 1999/12/07 20:46:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2SteppingAction_h
|
||||
#define Em2SteppingAction_h 1
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
|
||||
class Em2DetectorConstruction;
|
||||
class Em2RunAction;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
Em2SteppingAction(Em2DetectorConstruction*,Em2RunAction*);
|
||||
~Em2SteppingAction();
|
||||
|
||||
void UserSteppingAction(const G4Step*);
|
||||
|
||||
private:
|
||||
Em2DetectorConstruction* Em2Det;
|
||||
Em2RunAction* Em2Run;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,34 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2TrackingAction.hh,v 1.1.4.1 1999/12/07 20:46:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef Em2TrackingAction_h
|
||||
#define Em2TrackingAction_h 1
|
||||
|
||||
#include "G4UserTrackingAction.hh"
|
||||
|
||||
class Em2RunAction;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2TrackingAction : public G4UserTrackingAction {
|
||||
|
||||
public:
|
||||
Em2TrackingAction(Em2RunAction*);
|
||||
~Em2TrackingAction() {};
|
||||
|
||||
void PostUserTrackingAction(const G4Track*);
|
||||
|
||||
private:
|
||||
Em2RunAction* Em2Run;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,50 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Em2VisManager.hh,v 1.1.4.1 1999/12/07 20:46:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
// Example Visualization Manager implementing virtual function
|
||||
// RegisterGraphicsSystems. Exploits C-pre-processor variables
|
||||
// G4VIS_USE_DAWN, etc., which are set by the GNUmakefiles if
|
||||
// environment variables of the same name are set.
|
||||
|
||||
// So all you have to do is set environment variables and compile and
|
||||
// instantiate this in your main().
|
||||
|
||||
// Alternatively, you can implement an empty function here and just
|
||||
// register the systems you want in your main(), e.g.:
|
||||
// G4VisManager* myVisManager = new MyVisManager;
|
||||
// myVisManager -> RegisterGraphicsSystem (new MyGraphicsSystem);
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef Em2VisManager_h
|
||||
#define Em2VisManager_h 1
|
||||
|
||||
#include "G4VisManager.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class Em2VisManager: public G4VisManager {
|
||||
|
||||
public:
|
||||
|
||||
Em2VisManager ();
|
||||
|
||||
private:
|
||||
|
||||
void RegisterGraphicsSystems ();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user