Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
/// \file B4PrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the B4PrimaryGeneratorAction class
|
||||
|
||||
@@ -38,19 +38,19 @@ class G4Event;
|
||||
|
||||
/// The primary generator action class with particle gum.
|
||||
///
|
||||
/// It defines a single particle which hits the calorimeter
|
||||
/// It defines a single particle which hits the calorimeter
|
||||
/// perpendicular to the input face. The type of the particle
|
||||
/// can be changed via the G4 build-in commands of G4ParticleGun class
|
||||
/// can be changed via the G4 build-in commands of G4ParticleGun class
|
||||
/// (see the macros provided with this example).
|
||||
|
||||
class B4PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
B4PrimaryGeneratorAction();
|
||||
B4PrimaryGeneratorAction();
|
||||
virtual ~B4PrimaryGeneratorAction();
|
||||
|
||||
virtual void GeneratePrimaries(G4Event* event);
|
||||
|
||||
|
||||
// set methods
|
||||
void SetRandomFlag(G4bool value);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
/// \file B4RunAction.hh
|
||||
/// \brief Definition of the B4RunAction class
|
||||
|
||||
@@ -37,9 +37,9 @@ class G4Run;
|
||||
|
||||
/// Run action class
|
||||
///
|
||||
/// It accumulates statistic and computes dispersion of the energy deposit
|
||||
/// It accumulates statistic and computes dispersion of the energy deposit
|
||||
/// and track lengths of charged particles with use of analysis tools:
|
||||
/// H1D histograms are created in BeginOfRunAction() for the following
|
||||
/// H1D histograms are created in BeginOfRunAction() for the following
|
||||
/// physics quantities:
|
||||
/// - Edep in absorber
|
||||
/// - Edep in gap
|
||||
@@ -49,7 +49,7 @@ class G4Run;
|
||||
/// The histograms and ntuple are saved in the output file in a format
|
||||
/// accoring to a selected technology in B4Analysis.hh.
|
||||
///
|
||||
/// In EndOfRunAction(), the accumulated statistic and computed
|
||||
/// In EndOfRunAction(), the accumulated statistic and computed
|
||||
/// dispersion is printed.
|
||||
///
|
||||
|
||||
|
||||
@@ -47,4 +47,4 @@ class B4cActionInitialization : public G4VUserActionInitialization
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class B4cCalorHit : public G4VHit
|
||||
// get methods
|
||||
G4double GetEdep() const;
|
||||
G4double GetTrackLength() const;
|
||||
|
||||
|
||||
private:
|
||||
G4double fEdep; ///< Energy deposit in the sensitive volume
|
||||
G4double fTrackLength; ///< Track length in the sensitive volume
|
||||
@@ -99,16 +99,16 @@ inline void B4cCalorHit::operator delete(void *hit)
|
||||
}
|
||||
|
||||
inline void B4cCalorHit::Add(G4double de, G4double dl) {
|
||||
fEdep += de;
|
||||
fEdep += de;
|
||||
fTrackLength += dl;
|
||||
}
|
||||
|
||||
inline G4double B4cCalorHit::GetEdep() const {
|
||||
return fEdep;
|
||||
inline G4double B4cCalorHit::GetEdep() const {
|
||||
return fEdep;
|
||||
}
|
||||
|
||||
inline G4double B4cCalorHit::GetTrackLength() const {
|
||||
return fTrackLength;
|
||||
inline G4double B4cCalorHit::GetTrackLength() const {
|
||||
return fTrackLength;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -50,11 +50,11 @@ class G4HCofThisEvent;
|
||||
class B4cCalorimeterSD : public G4VSensitiveDetector
|
||||
{
|
||||
public:
|
||||
B4cCalorimeterSD(const G4String& name,
|
||||
const G4String& hitsCollectionName,
|
||||
B4cCalorimeterSD(const G4String& name,
|
||||
const G4String& hitsCollectionName,
|
||||
G4int nofCells);
|
||||
virtual ~B4cCalorimeterSD();
|
||||
|
||||
|
||||
// methods from base class
|
||||
virtual void Initialize(G4HCofThisEvent* hitCollection);
|
||||
virtual G4bool ProcessHits(G4Step* step, G4TouchableHistory* history);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
/// \file B4cDetectorConstruction.hh
|
||||
/// \brief Definition of the B4cDetectorConstruction class
|
||||
|
||||
@@ -49,7 +49,7 @@ class G4GlobalMagFieldMessenger;
|
||||
///
|
||||
/// In ConstructSDandField() sensitive detectors of B4cCalorimeterSD type
|
||||
/// are created and associated with the Absorber and Gap volumes.
|
||||
/// In addition a transverse uniform magnetic field is defined
|
||||
/// In addition a transverse uniform magnetic field is defined
|
||||
/// via G4GlobalMagFieldMessenger class.
|
||||
|
||||
class B4cDetectorConstruction : public G4VUserDetectorConstruction
|
||||
@@ -61,16 +61,16 @@ class B4cDetectorConstruction : public G4VUserDetectorConstruction
|
||||
public:
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
virtual void ConstructSDandField();
|
||||
|
||||
|
||||
private:
|
||||
// methods
|
||||
//
|
||||
void DefineMaterials();
|
||||
G4VPhysicalVolume* DefineVolumes();
|
||||
|
||||
|
||||
// data members
|
||||
//
|
||||
static G4ThreadLocal G4GlobalMagFieldMessenger* fMagFieldMessenger;
|
||||
static G4ThreadLocal G4GlobalMagFieldMessenger* fMagFieldMessenger;
|
||||
// magnetic field messenger
|
||||
|
||||
G4bool fCheckOverlaps; // option to activate checking of volumes overlaps
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
/// \file B4cEventAction.hh
|
||||
/// \brief Definition of the B4cEventAction class
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
|
||||
/// Event action class
|
||||
///
|
||||
/// In EndOfEventAction(), it prints the accumulated quantities of the energy
|
||||
/// deposit and track lengths of charged particles in Absober and Gap layers
|
||||
/// In EndOfEventAction(), it prints the accumulated quantities of the energy
|
||||
/// deposit and track lengths of charged particles in Absober and Gap layers
|
||||
/// stored in the hits collections.
|
||||
|
||||
class B4cEventAction : public G4UserEventAction
|
||||
@@ -50,21 +50,21 @@ public:
|
||||
|
||||
virtual void BeginOfEventAction(const G4Event* event);
|
||||
virtual void EndOfEventAction(const G4Event* event);
|
||||
|
||||
|
||||
private:
|
||||
// methods
|
||||
B4cCalorHitsCollection* GetHitsCollection(G4int hcID,
|
||||
const G4Event* event) const;
|
||||
void PrintEventStatistics(G4double absoEdep, G4double absoTrackLength,
|
||||
G4double gapEdep, G4double gapTrackLength) const;
|
||||
|
||||
// data members
|
||||
|
||||
// data members
|
||||
G4int fAbsHCID;
|
||||
G4int fGapHCID;
|
||||
};
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user