Import Geant4 9.6.0 source tree
This commit is contained in:
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01CalorHit.hh
|
||||
/// \brief Definition of the F01CalorHit class
|
||||
//
|
||||
// $Id: F01CalorHit.hh,v 1.4 2006-06-29 17:15:26 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -46,7 +48,7 @@ class F01CalorHit : public G4VHit
|
||||
public:
|
||||
|
||||
F01CalorHit();
|
||||
~F01CalorHit();
|
||||
~F01CalorHit();
|
||||
F01CalorHit(const F01CalorHit&);
|
||||
const F01CalorHit& operator=(const F01CalorHit&);
|
||||
G4int operator==(const F01CalorHit&) const;
|
||||
@@ -54,22 +56,22 @@ class F01CalorHit : public G4VHit
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void*);
|
||||
|
||||
void Print();
|
||||
virtual void Print();
|
||||
|
||||
public:
|
||||
|
||||
void AddAbs(G4double de, G4double dl) {EdepAbs += de; TrackLengthAbs += dl;};
|
||||
void AddGap(G4double de, G4double dl) {EdepGap += de; TrackLengthGap += dl;};
|
||||
void AddAbs(G4double de, G4double dl) {fEdepAbs += de; fTrackLengthAbs += dl;};
|
||||
void AddGap(G4double de, G4double dl) {fEdepGap += de; fTrackLengthGap += dl;};
|
||||
|
||||
G4double GetEdepAbs() { return EdepAbs; };
|
||||
G4double GetTrakAbs() { return TrackLengthAbs; };
|
||||
G4double GetEdepGap() { return EdepGap; };
|
||||
G4double GetTrakGap() { return TrackLengthGap; };
|
||||
G4double GetEdepAbs() { return fEdepAbs; };
|
||||
G4double GetTrackAbs() { return fTrackLengthAbs; };
|
||||
G4double GetEdepGap() { return fEdepGap; };
|
||||
G4double GetTrackGap() { return fTrackLengthGap; };
|
||||
|
||||
private:
|
||||
|
||||
G4double EdepAbs, TrackLengthAbs;
|
||||
G4double EdepGap, TrackLengthGap;
|
||||
G4double fEdepAbs, fTrackLengthAbs;
|
||||
G4double fEdepGap, fTrackLengthGap;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01CalorimeterSD.hh
|
||||
/// \brief Definition of the F01CalorimeterSD class
|
||||
//
|
||||
// $Id: F01CalorimeterSD.hh,v 1.4 2006-06-29 17:15:32 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -50,19 +52,19 @@ class F01CalorimeterSD : public G4VSensitiveDetector
|
||||
public:
|
||||
|
||||
F01CalorimeterSD(G4String, F01DetectorConstruction* );
|
||||
~F01CalorimeterSD();
|
||||
~F01CalorimeterSD();
|
||||
|
||||
void Initialize(G4HCofThisEvent*);
|
||||
G4bool ProcessHits(G4Step*,G4TouchableHistory*);
|
||||
void EndOfEvent(G4HCofThisEvent*);
|
||||
void clear();
|
||||
void PrintAll();
|
||||
virtual void Initialize(G4HCofThisEvent*);
|
||||
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
|
||||
virtual void EndOfEvent(G4HCofThisEvent*);
|
||||
virtual void clear();
|
||||
virtual void PrintAll();
|
||||
|
||||
private:
|
||||
|
||||
F01CalorHitsCollection* CalCollection;
|
||||
F01DetectorConstruction* Detector;
|
||||
G4int* HitID;
|
||||
F01CalorHitsCollection* fCalCollection;
|
||||
F01DetectorConstruction* fDetector;
|
||||
G4int* fHitID;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01DetectorConstruction.hh
|
||||
/// \brief Definition of the F01DetectorConstruction class
|
||||
//
|
||||
// $Id: F01DetectorConstruction.hh,v 1.7 2006-06-29 17:15:35 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -52,7 +54,7 @@ class F01DetectorConstruction : public G4VUserDetectorConstruction
|
||||
public:
|
||||
|
||||
F01DetectorConstruction();
|
||||
~F01DetectorConstruction();
|
||||
~F01DetectorConstruction();
|
||||
|
||||
public:
|
||||
|
||||
@@ -66,7 +68,7 @@ class F01DetectorConstruction : public G4VUserDetectorConstruction
|
||||
void SetWorldSizeZ(G4double);
|
||||
void SetWorldSizeR(G4double);
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
|
||||
void UpdateGeometry();
|
||||
|
||||
@@ -74,47 +76,47 @@ class F01DetectorConstruction : public G4VUserDetectorConstruction
|
||||
|
||||
void PrintCalorParameters();
|
||||
|
||||
G4Material* GetWorldMaterial() {return WorldMaterial;};
|
||||
G4double GetWorldSizeZ() {return WorldSizeZ;};
|
||||
G4double GetWorldSizeR() {return WorldSizeR;};
|
||||
G4Material* GetWorldMaterial() {return fWorldMaterial;}
|
||||
G4double GetWorldSizeZ() {return fWorldSizeZ;}
|
||||
G4double GetWorldSizeR() {return fWorldSizeR;}
|
||||
|
||||
G4double GetAbsorberZpos() {return zAbsorber;};
|
||||
G4double GetzstartAbs() {return zstartAbs;};
|
||||
G4double GetzendAbs() {return zendAbs;};
|
||||
G4double GetAbsorberZpos() {return fZAbsorber;}
|
||||
G4double GetZStartAbs() {return fZStartAbs;}
|
||||
G4double GetZEndAbs() {return fZEndAbs;}
|
||||
|
||||
G4Material* GetAbsorberMaterial() {return AbsorberMaterial;};
|
||||
G4double GetAbsorberThickness() {return AbsorberThickness;};
|
||||
G4double GetAbsorberRadius() {return AbsorberRadius;};
|
||||
G4Material* GetAbsorberMaterial() {return fAbsorberMaterial;}
|
||||
G4double GetAbsorberThickness() {return fAbsorberThickness;}
|
||||
G4double GetAbsorberRadius() {return fAbsorberRadius;}
|
||||
|
||||
const G4VPhysicalVolume* GetphysiWorld() {return physiWorld;};
|
||||
const G4VPhysicalVolume* GetAbsorber() {return physiAbsorber;};
|
||||
G4LogicalVolume* GetLogicalAbsorber() {return logicAbsorber;};
|
||||
const G4VPhysicalVolume* GetphysiWorld() {return fPhysiWorld;}
|
||||
const G4VPhysicalVolume* GetAbsorber() {return fPhysiAbsorber;}
|
||||
G4LogicalVolume* GetLogicalAbsorber() {return fLogicAbsorber;}
|
||||
|
||||
private:
|
||||
|
||||
G4Tubs* solidWorld; // pointer to the solid World
|
||||
G4LogicalVolume* logicWorld; // pointer to the logical World
|
||||
G4VPhysicalVolume* physiWorld; // pointer to the physical World
|
||||
G4Tubs* fSolidWorld; // pointer to the solid World
|
||||
G4LogicalVolume* fLogicWorld; // pointer to the logical World
|
||||
G4VPhysicalVolume* fPhysiWorld; // pointer to the physical World
|
||||
|
||||
G4Tubs* solidAbsorber; // pointer to the solid Absorber
|
||||
G4LogicalVolume* logicAbsorber; // pointer to the logical Absorber
|
||||
G4VPhysicalVolume* physiAbsorber; // pointer to the physical Absorber
|
||||
G4Tubs* fSolidAbsorber; // pointer to the solid Absorber
|
||||
G4LogicalVolume* fLogicAbsorber; // pointer to the logical Absorber
|
||||
G4VPhysicalVolume* fPhysiAbsorber; // pointer to the physical Absorber
|
||||
|
||||
F01FieldSetup* fEmFieldSetup;
|
||||
F01DetectorMessenger* detectorMessenger; // pointer to the Messenger
|
||||
F01CalorimeterSD* calorimeterSD; // pointer to the sensitive detector
|
||||
F01DetectorMessenger* fDetectorMessenger; // pointer to the Messenger
|
||||
F01CalorimeterSD* fCalorimeterSD; // pointer to the sensitive detector
|
||||
|
||||
G4Material* AbsorberMaterial;
|
||||
G4double AbsorberThickness;
|
||||
G4double AbsorberRadius;
|
||||
G4bool worldchanged;
|
||||
G4Material* fAbsorberMaterial;
|
||||
G4double fAbsorberThickness;
|
||||
G4double fAbsorberRadius;
|
||||
G4bool fWorldChanged;
|
||||
|
||||
G4double zAbsorber ;
|
||||
G4double zstartAbs , zendAbs ;
|
||||
G4double fZAbsorber;
|
||||
G4double fZStartAbs, fZEndAbs;
|
||||
|
||||
G4Material* WorldMaterial;
|
||||
G4double WorldSizeR;
|
||||
G4double WorldSizeZ;
|
||||
G4Material* fWorldMaterial;
|
||||
G4double fWorldSizeR;
|
||||
G4double fWorldSizeZ;
|
||||
|
||||
private:
|
||||
|
||||
@@ -129,8 +131,8 @@ inline void F01DetectorConstruction::ComputeCalorParameters()
|
||||
{
|
||||
// Compute derived parameters of the calorimeter
|
||||
|
||||
zstartAbs = zAbsorber-0.5*AbsorberThickness;
|
||||
zendAbs = zAbsorber+0.5*AbsorberThickness;
|
||||
fZStartAbs = fZAbsorber-0.5*fAbsorberThickness;
|
||||
fZEndAbs = fZAbsorber+0.5*fAbsorberThickness;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01DetectorMessenger.hh
|
||||
/// \brief Definition of the F01DetectorMessenger class
|
||||
//
|
||||
// $Id: F01DetectorMessenger.hh,v 1.4 2006-06-29 17:15:37 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -51,26 +53,26 @@ class F01DetectorMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
F01DetectorMessenger(F01DetectorConstruction* );
|
||||
~F01DetectorMessenger();
|
||||
~F01DetectorMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
F01DetectorConstruction* F01Detector;
|
||||
F01DetectorConstruction* fDetector;
|
||||
|
||||
G4UIdirectory* F01detDir;
|
||||
G4UIdirectory* fDetDir;
|
||||
|
||||
G4UIcmdWithAString* AbsMaterCmd;
|
||||
G4UIcmdWithADoubleAndUnit* AbsThickCmd;
|
||||
G4UIcmdWithADoubleAndUnit* AbsRadCmd;
|
||||
G4UIcmdWithAString* fAbsMaterCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fAbsThickCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fAbsRadCmd;
|
||||
|
||||
G4UIcmdWithADoubleAndUnit* AbsZposCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fAbsZposCmd;
|
||||
|
||||
G4UIcmdWithAString* WorldMaterCmd;
|
||||
G4UIcmdWithADoubleAndUnit* WorldZCmd;
|
||||
G4UIcmdWithADoubleAndUnit* WorldRCmd;
|
||||
G4UIcmdWithAString* fWorldMaterCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fWorldZCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fWorldRCmd;
|
||||
|
||||
G4UIcmdWithoutParameter* UpdateCmd;
|
||||
G4UIcmdWithoutParameter* fUpdateCmd;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01EventAction.hh
|
||||
/// \brief Definition of the F01EventAction class
|
||||
//
|
||||
// $Id: F01EventAction.hh,v 1.5 2006-06-29 17:15:39 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -47,26 +49,21 @@ class F01EventAction : public G4UserEventAction
|
||||
{
|
||||
public:
|
||||
F01EventAction(F01RunAction* F01RA);
|
||||
~F01EventAction();
|
||||
~F01EventAction();
|
||||
|
||||
public:
|
||||
void BeginOfEventAction(const G4Event*);
|
||||
void EndOfEventAction(const G4Event*);
|
||||
virtual void BeginOfEventAction(const G4Event*);
|
||||
virtual void EndOfEventAction(const G4Event*);
|
||||
|
||||
G4int GetEventno();
|
||||
void setEventVerbose(G4int level);
|
||||
|
||||
void SetDrawFlag(G4String val) {drawFlag = val;};
|
||||
void SetPrintModulo(G4int val) {printModulo = val;};
|
||||
void SetEventVerbose(G4int level);
|
||||
void SetPrintModulo(G4int val) {fPrintModulo = val;};
|
||||
|
||||
private:
|
||||
G4int calorimeterCollID;
|
||||
F01EventActionMessenger* eventMessenger;
|
||||
F01RunAction* runaction;
|
||||
G4int verboselevel;
|
||||
|
||||
G4String drawFlag;
|
||||
G4int printModulo;
|
||||
G4int fCalorimeterCollID;
|
||||
F01EventActionMessenger* fEventMessenger;
|
||||
F01RunAction* fRunAction;
|
||||
G4int fVerboseLevel;
|
||||
G4int fPrintModulo;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01EventActionMessenger.hh
|
||||
/// \brief Definition of the F01EventActionMessenger class
|
||||
//
|
||||
// $Id: F01EventActionMessenger.hh,v 1.3 2006-06-29 17:15:41 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -39,7 +41,6 @@
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class F01EventAction;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
class G4UIcmdWithADoubleAndUnit;
|
||||
|
||||
@@ -54,10 +55,9 @@ class F01EventActionMessenger: public G4UImessenger
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
F01EventAction* eventAction;
|
||||
G4UIcmdWithAnInteger* setVerboseCmd;
|
||||
G4UIcmdWithAString* DrawCmd;
|
||||
G4UIcmdWithAnInteger* PrintCmd;
|
||||
F01EventAction* fEventAction;
|
||||
G4UIcmdWithAnInteger* fSetVerboseCmd;
|
||||
G4UIcmdWithAnInteger* fPrintCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01FieldMessenger.hh
|
||||
/// \brief Definition of the F01FieldMessenger class
|
||||
//
|
||||
// $Id: F01FieldMessenger.hh,v 1.7 2006-06-29 17:15:43 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -40,7 +42,6 @@
|
||||
|
||||
class F01FieldSetup;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
class G4UIcmdWithADoubleAndUnit;
|
||||
class G4UIcmdWithoutParameter;
|
||||
@@ -50,24 +51,20 @@ class F01FieldMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
F01FieldMessenger(F01FieldSetup* );
|
||||
~F01FieldMessenger();
|
||||
~F01FieldMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
void SetNewValue(G4UIcommand*, G4int);
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
|
||||
F01FieldSetup* fEMfieldSetup;
|
||||
|
||||
G4UIdirectory* F01detDir;
|
||||
|
||||
G4UIcmdWithAnInteger* StepperCmd;
|
||||
G4UIcmdWithADoubleAndUnit* MagFieldCmd;
|
||||
G4UIcmdWithADoubleAndUnit* MinStepCmd;
|
||||
G4UIcmdWithoutParameter* UpdateCmd;
|
||||
|
||||
G4UIcmdWithAString* AbsMaterCmd;
|
||||
G4UIdirectory* fFieldDir;
|
||||
|
||||
G4UIcmdWithAnInteger* fStepperCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMagFieldCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMinStepCmd;
|
||||
G4UIcmdWithoutParameter* fUpdateCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01FieldSetup.hh
|
||||
/// \brief Definition of the F01FieldSetup class
|
||||
//
|
||||
// $Id: F01FieldSetup.hh,v 1.3 2006-06-29 17:15:45 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
// A class for control of the Magnetic Field of the detector.
|
||||
@@ -59,7 +61,7 @@ public:
|
||||
F01FieldSetup(G4ThreeVector) ; // The value of the field
|
||||
F01FieldSetup() ; // A zero field
|
||||
|
||||
~F01FieldSetup() ;
|
||||
~F01FieldSetup() ;
|
||||
|
||||
|
||||
void SetStepperType( G4int i) { fStepperType = i ; }
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01PhysicsList.hh
|
||||
/// \brief Definition of the F01PhysicsList class
|
||||
//
|
||||
// $Id: F01PhysicsList.hh,v 1.6 2010-04-08 14:09:44 gcosmo Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
|
||||
#ifndef F01PhysicsList_h
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01PhysicsListMessenger.hh
|
||||
/// \brief Definition of the F01PhysicsListMessenger class
|
||||
//
|
||||
// $Id: F01PhysicsListMessenger.hh,v 1.4 2006-06-29 17:15:49 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01PrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the F01PrimaryGeneratorAction class
|
||||
//
|
||||
// $Id: F01PrimaryGeneratorAction.hh,v 1.3 2006-06-29 17:15:52 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -49,27 +51,27 @@ class F01PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
F01PrimaryGeneratorAction(F01DetectorConstruction*);
|
||||
~F01PrimaryGeneratorAction();
|
||||
~F01PrimaryGeneratorAction();
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event*);
|
||||
void SetRndmFlag(G4String val) { rndmFlag = val;}
|
||||
void Setxvertex(G4double x) ;
|
||||
void Setyvertex(G4double y) ;
|
||||
void Setzvertex(G4double z) ;
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
void SetRndmFlag(G4String val) { fRndmFlag = val;}
|
||||
void SetXVertex(G4double x) ;
|
||||
void SetYVertex(G4double y) ;
|
||||
void SetZVertex(G4double z) ;
|
||||
|
||||
static G4String GetPrimaryName() ;
|
||||
|
||||
private:
|
||||
G4ParticleGun* particleGun; //pointer a to G4 service class
|
||||
F01DetectorConstruction* F01Detector; //pointer to the geometry
|
||||
G4ParticleGun* fParticleGun; //pointer a to G4 service class
|
||||
F01DetectorConstruction* fDetector; //pointer to the geometry
|
||||
|
||||
F01PrimaryGeneratorMessenger* gunMessenger; //messenger of this class
|
||||
G4String rndmFlag; //flag for a random impact point
|
||||
F01PrimaryGeneratorMessenger* fGunMessenger; //messenger of this class
|
||||
G4String fRndmFlag; //flag for a random impact point
|
||||
|
||||
static G4String thePrimaryParticleName ;
|
||||
G4double xvertex,yvertex,zvertex;
|
||||
G4bool vertexdefined ;
|
||||
static G4String fgPrimaryParticleName ;
|
||||
G4double fXVertex, fYVertex, fZVertex;
|
||||
G4bool fVertexDefined ;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01PrimaryGeneratorMessenger.hh
|
||||
/// \brief Definition of the F01PrimaryGeneratorMessenger class
|
||||
//
|
||||
// $Id: F01PrimaryGeneratorMessenger.hh,v 1.3 2006-06-29 17:16:01 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -48,16 +50,16 @@ class F01PrimaryGeneratorMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
F01PrimaryGeneratorMessenger(F01PrimaryGeneratorAction*);
|
||||
~F01PrimaryGeneratorMessenger();
|
||||
~F01PrimaryGeneratorMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
F01PrimaryGeneratorAction* F01Action;
|
||||
G4UIcmdWithAString* RndmCmd;
|
||||
G4UIcmdWithADoubleAndUnit* setxvertexCmd;
|
||||
G4UIcmdWithADoubleAndUnit* setyvertexCmd;
|
||||
G4UIcmdWithADoubleAndUnit* setzvertexCmd;
|
||||
F01PrimaryGeneratorAction* fAction;
|
||||
G4UIcmdWithAString* fRndmCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSetXVertexCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSetYVertexCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSetZVertexCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01RunAction.hh
|
||||
/// \brief Definition of the F01RunAction class
|
||||
//
|
||||
// $Id: F01RunAction.hh,v 1.6 2006-06-29 17:16:07 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -50,19 +52,19 @@ class F01RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
F01RunAction();
|
||||
~F01RunAction();
|
||||
~F01RunAction();
|
||||
|
||||
public:
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
void SetRndmFreq(G4int val) {saveRndm = val;}
|
||||
G4int GetRndmFreq() {return saveRndm;}
|
||||
void SetRndmFreq(G4int val) {fSaveRndm = val;}
|
||||
G4int GetRndmFreq() const {return fSaveRndm;}
|
||||
|
||||
private:
|
||||
|
||||
F01RunMessenger* runMessenger;
|
||||
G4int saveRndm;
|
||||
F01RunMessenger* fMessenger;
|
||||
G4int fSaveRndm;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,10 +23,12 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01RunMessenger.hh
|
||||
/// \brief Definition of the F01RunMessenger class
|
||||
//
|
||||
|
||||
//
|
||||
// $Id: F01RunMessenger.hh,v 1.4 2006-06-29 17:16:10 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -54,17 +56,17 @@ class F01RunMessenger: public G4UImessenger
|
||||
public:
|
||||
|
||||
F01RunMessenger(F01RunAction* );
|
||||
~F01RunMessenger();
|
||||
~F01RunMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand* ,G4String );
|
||||
virtual void SetNewValue(G4UIcommand* ,G4String );
|
||||
|
||||
private:
|
||||
|
||||
F01RunAction* runAction;
|
||||
F01RunAction* fRunAction;
|
||||
|
||||
G4UIdirectory* RndmDir;
|
||||
G4UIcmdWithAnInteger* RndmSaveCmd;
|
||||
G4UIcmdWithAString* RndmReadCmd;
|
||||
G4UIdirectory* fRndmDir;
|
||||
G4UIcmdWithAnInteger* fRndmSaveCmd;
|
||||
G4UIcmdWithAString* fRndmReadCmd;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01StepCut.hh
|
||||
/// \brief Definition of the F01StepCut class
|
||||
//
|
||||
// $Id: F01StepCut.hh,v 1.5 2006-06-29 17:16:12 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
|
||||
@@ -46,28 +48,28 @@ class F01StepCut : public G4VDiscreteProcess
|
||||
|
||||
~F01StepCut();
|
||||
|
||||
G4double PostStepGetPhysicalInteractionLength(
|
||||
virtual G4double PostStepGetPhysicalInteractionLength(
|
||||
const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition
|
||||
);
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition
|
||||
);
|
||||
|
||||
G4VParticleChange* PostStepDoIt(
|
||||
const G4Track& ,
|
||||
const G4Step&
|
||||
);
|
||||
virtual G4VParticleChange* PostStepDoIt(
|
||||
const G4Track& ,
|
||||
const G4Step&
|
||||
);
|
||||
|
||||
void SetMaxStep(G4double);
|
||||
|
||||
protected:
|
||||
|
||||
// it is not needed here !
|
||||
G4double GetMeanFreePath(const G4Track& aTrack,
|
||||
virtual G4double GetMeanFreePath(const G4Track& aTrack,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition
|
||||
);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator as private
|
||||
@@ -75,7 +77,7 @@ class F01StepCut : public G4VDiscreteProcess
|
||||
|
||||
private:
|
||||
|
||||
G4double MaxChargedStep ;
|
||||
G4double fMaxChargedStep ;
|
||||
};
|
||||
|
||||
// inlined function members implementation
|
||||
@@ -94,15 +96,15 @@ inline G4double F01StepCut::PostStepGetPhysicalInteractionLength(
|
||||
// condition is set to "Not Forced"
|
||||
*condition = NotForced;
|
||||
|
||||
G4double ProposedStep = DBL_MAX;
|
||||
G4double proposedStep = DBL_MAX;
|
||||
|
||||
if((MaxChargedStep > 0.) &&
|
||||
if((fMaxChargedStep > 0.) &&
|
||||
(aTrack.GetVolume() != 0) &&
|
||||
(aTrack.GetVolume()->GetName() == "Absorber") &&
|
||||
(aTrack.GetDynamicParticle()->GetDefinition()->GetPDGCharge() != 0.))
|
||||
ProposedStep = MaxChargedStep ;
|
||||
proposedStep = fMaxChargedStep ;
|
||||
|
||||
return ProposedStep;
|
||||
return proposedStep;
|
||||
}
|
||||
|
||||
inline G4VParticleChange* F01StepCut::PostStepDoIt(
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: F01SteppingAction.hh,v 1.4 2006-06-29 17:16:14 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef F01SteppingAction_h
|
||||
#define F01SteppingAction_h 1
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class F01SteppingMessenger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class F01SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
F01SteppingAction();
|
||||
~F01SteppingAction();
|
||||
|
||||
void UserSteppingAction(const G4Step*);
|
||||
|
||||
private:
|
||||
|
||||
F01SteppingMessenger* steppingMessenger;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,66 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: F01SteppingMessenger.hh,v 1.3 2006-06-29 17:16:17 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef F01SteppingMessenger_h
|
||||
#define F01SteppingMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class F01SteppingAction;
|
||||
class G4UIdirectory;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class F01SteppingMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
|
||||
F01SteppingMessenger(F01SteppingAction* );
|
||||
~F01SteppingMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand* ,G4String );
|
||||
|
||||
private:
|
||||
|
||||
F01SteppingAction* steppingAction;
|
||||
|
||||
G4UIdirectory* steppingDir;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file field/field01/include/F01SteppingVerbose.hh
|
||||
/// \brief Definition of the F01SteppingVerbose class
|
||||
//
|
||||
// $Id: F01SteppingVerbose.hh,v 1.4 2006-06-29 17:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user