Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B4Analysis.hh 68058 2013-03-13 14:47:43Z gcosmo $
|
||||
//
|
||||
/// \file B4Analysis.hh
|
||||
/// \brief Selection of the analysis technology
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B4DetectorConstruction.hh 75215 2013-10-29 16:07:06Z gcosmo $
|
||||
//
|
||||
/// \file B4DetectorConstruction.hh
|
||||
/// \brief Definition of the B4DetectorConstruction class
|
||||
@@ -34,10 +34,8 @@
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Box;
|
||||
class G4VPhysicalVolume;
|
||||
class G4UniformMagField;
|
||||
class G4GenericMessenger;
|
||||
class G4GlobalMagFieldMessenger;
|
||||
|
||||
/// Detector construction class to define materials and geometry.
|
||||
/// The calorimeter is a box made of a given number of layers. A layer consists
|
||||
@@ -50,11 +48,8 @@ class G4GenericMessenger;
|
||||
/// - the number of layers,
|
||||
/// - the transverse size of the calorimeter (the input face is a square).
|
||||
///
|
||||
/// In addition a transverse uniform magnetic field is defined in
|
||||
/// SetMagField() method which can be activated
|
||||
/// via a command defined using G4GenericMessenger class:
|
||||
/// - /B4/det/setMagField value unit
|
||||
|
||||
/// In addition a transverse uniform magnetic field is defined
|
||||
/// via G4GlobalMagFieldMessenger class.
|
||||
|
||||
class B4DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
@@ -64,11 +59,8 @@ class B4DetectorConstruction : public G4VUserDetectorConstruction
|
||||
|
||||
public:
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
virtual void ConstructSDandField();
|
||||
|
||||
// set methods
|
||||
//
|
||||
void SetMagField(G4double fieldValue);
|
||||
|
||||
// get methods
|
||||
//
|
||||
const G4VPhysicalVolume* GetAbsorberPV() const;
|
||||
@@ -82,11 +74,11 @@ class B4DetectorConstruction : public G4VUserDetectorConstruction
|
||||
|
||||
// data members
|
||||
//
|
||||
G4GenericMessenger* fMessenger; // messenger
|
||||
G4UniformMagField* fMagField; // magnetic field
|
||||
|
||||
G4VPhysicalVolume* fAbsorberPV; // the absorber physical volume
|
||||
G4VPhysicalVolume* fGapPV; // the gap physical volume
|
||||
static G4ThreadLocal G4GlobalMagFieldMessenger* fMagFieldMessenger;
|
||||
// magnetic field messenger
|
||||
|
||||
G4VPhysicalVolume* fAbsorberPV; // the absorber physical volume
|
||||
G4VPhysicalVolume* fGapPV; // the gap physical volume
|
||||
|
||||
G4bool fCheckOverlaps; // option to activate checking of volumes overlaps
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B4PrimaryGeneratorAction.hh 68058 2013-03-13 14:47:43Z gcosmo $
|
||||
//
|
||||
/// \file B4PrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the B4PrimaryGeneratorAction class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B4RunAction.hh 74265 2013-10-02 14:41:20Z gcosmo $
|
||||
//
|
||||
/// \file B4RunAction.hh
|
||||
/// \brief Definition of the B4RunAction class
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: B4aActionInitialization.hh 68058 2013-03-13 14:47:43Z gcosmo $
|
||||
//
|
||||
/// \file B4aActionInitialization.hh
|
||||
/// \brief Definition of the B4aActionInitialization class
|
||||
|
||||
#ifndef B4aActionInitialization_h
|
||||
#define B4aActionInitialization_h 1
|
||||
|
||||
#include "G4VUserActionInitialization.hh"
|
||||
|
||||
class B4DetectorConstruction;
|
||||
|
||||
/// Action initialization class.
|
||||
///
|
||||
|
||||
class B4aActionInitialization : public G4VUserActionInitialization
|
||||
{
|
||||
public:
|
||||
B4aActionInitialization(B4DetectorConstruction*);
|
||||
virtual ~B4aActionInitialization();
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
|
||||
private:
|
||||
B4DetectorConstruction* fDetConstruction;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B4aEventAction.hh 75215 2013-10-29 16:07:06Z gcosmo $
|
||||
//
|
||||
/// \file B4aEventAction.hh
|
||||
/// \brief Definition of the B4aEventAction class
|
||||
@@ -34,10 +34,6 @@
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class B4RunAction;
|
||||
|
||||
class G4GenericMessenger;
|
||||
|
||||
/// Event action class
|
||||
///
|
||||
/// It defines data members to hold the energy deposit and track lengths
|
||||
@@ -45,11 +41,6 @@ class G4GenericMessenger;
|
||||
/// - fEnergyAbs, fEnergyGap, fTrackLAbs, fTrackLGap
|
||||
/// which are collected step by step via the functions
|
||||
/// - AddAbs(), AddGap()
|
||||
///
|
||||
/// The data member fPrintModulo defines the frequency of printing
|
||||
/// the accumulated quantities. Its value can be changed via a command
|
||||
/// defined using G4GenericMessenger class:
|
||||
/// - /B4/event/setPrintModulo value
|
||||
|
||||
class B4aEventAction : public G4UserEventAction
|
||||
{
|
||||
@@ -62,19 +53,12 @@ class B4aEventAction : public G4UserEventAction
|
||||
|
||||
void AddAbs(G4double de, G4double dl);
|
||||
void AddGap(G4double de, G4double dl);
|
||||
|
||||
void SetPrintModulo(G4int value);
|
||||
|
||||
private:
|
||||
G4GenericMessenger* fMessenger;
|
||||
B4RunAction* fRunAction;
|
||||
|
||||
G4double fEnergyAbs;
|
||||
G4double fEnergyGap;
|
||||
G4double fTrackLAbs;
|
||||
G4double fTrackLGap;
|
||||
|
||||
G4int fPrintModulo;
|
||||
};
|
||||
|
||||
// inline functions
|
||||
@@ -88,10 +72,6 @@ inline void B4aEventAction::AddGap(G4double de, G4double dl) {
|
||||
fEnergyGap += de;
|
||||
fTrackLGap += dl;
|
||||
}
|
||||
|
||||
inline void B4aEventAction::SetPrintModulo(G4int value) {
|
||||
fPrintModulo = value;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: B4aSteppingAction.hh 68058 2013-03-13 14:47:43Z gcosmo $
|
||||
//
|
||||
/// \file B4aSteppingAction.hh
|
||||
/// \brief Definition of the B4aSteppingAction class
|
||||
|
||||
Reference in New Issue
Block a user