Import Geant4 9.6.0 source tree
This commit is contained in:
@@ -31,9 +31,7 @@
|
||||
#ifndef B4Analysis_h
|
||||
#define B4Analysis_h 1
|
||||
|
||||
#include "g4analysis_defs.hh"
|
||||
|
||||
using namespace G4Root;
|
||||
//using namespace G4Xml;
|
||||
#include "g4root.hh"
|
||||
//#include "g4xml.hh"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,11 +34,10 @@
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "B4DetectorMessenger.hh"
|
||||
|
||||
class G4Box;
|
||||
class G4VPhysicalVolume;
|
||||
class G4UniformMagField;
|
||||
class G4GenericMessenger;
|
||||
|
||||
/// Detector construction class to define materials and geometry.
|
||||
/// The calorimeter is a box made of a given number of layers. A layer consists
|
||||
@@ -53,7 +52,8 @@ class G4UniformMagField;
|
||||
///
|
||||
/// In addition a transverse uniform magnetic field is defined in
|
||||
/// SetMagField() method which can be activated
|
||||
/// via a command defined in the B4DetectorMessenger class.
|
||||
/// via a command defined using G4GenericMessenger class:
|
||||
/// - /B4/det/setMagField value unit
|
||||
|
||||
class B4DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
@@ -81,7 +81,7 @@ class B4DetectorConstruction : public G4VUserDetectorConstruction
|
||||
|
||||
// data members
|
||||
//
|
||||
B4DetectorMessenger fMessenger; // messenger
|
||||
G4GenericMessenger* fMessenger; // messenger
|
||||
G4UniformMagField* fMagField; // magnetic field
|
||||
|
||||
G4VPhysicalVolume* fAbsorberPV; // the absorber physical volume
|
||||
|
||||
@@ -1,65 +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$
|
||||
//
|
||||
/// \file B4DetectorMessenger.hh
|
||||
/// \brief Definition of the B4DetectorMessenger class
|
||||
|
||||
#ifndef B4DetectorMessenger_h
|
||||
#define B4DetectorMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class B4DetectorConstruction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithADoubleAndUnit;
|
||||
|
||||
/// Messenger class that defines commands for B4DetectorConstruction.
|
||||
///
|
||||
/// It implements commands:
|
||||
/// - /B4/det/setMagField value unit
|
||||
|
||||
class B4DetectorMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
B4DetectorMessenger(B4DetectorConstruction* detectorConstruction);
|
||||
virtual ~B4DetectorMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
B4DetectorConstruction* fDetectorConstruction;
|
||||
|
||||
G4UIdirectory* fB4Directory;
|
||||
G4UIdirectory* fDetDirectory;
|
||||
G4UIcmdWithADoubleAndUnit* fSetMagFieldCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "B4bEventActionMessenger.hh"
|
||||
class G4GenericMessenger;
|
||||
|
||||
/// Event action class
|
||||
///
|
||||
@@ -43,8 +43,9 @@
|
||||
/// stored in B4bRunData object.
|
||||
///
|
||||
/// The data member fPrintModulo defines the frequency of printing.
|
||||
/// Its value can be changed via a command defined in B4bEventActionMassenger
|
||||
/// class.
|
||||
/// the accumulated quantities. Its value can be changed via a command
|
||||
/// defined using G4GenericMessenger class:
|
||||
/// - /B4/event/setPrintModulo value
|
||||
|
||||
class B4bEventAction : public G4UserEventAction
|
||||
{
|
||||
@@ -63,7 +64,7 @@ class B4bEventAction : public G4UserEventAction
|
||||
G4double gapEdep, G4double gapTrackLength) const;
|
||||
|
||||
// data members
|
||||
B4bEventActionMessenger fMessenger;
|
||||
G4GenericMessenger* fMessenger;
|
||||
|
||||
G4int fPrintModulo;
|
||||
};
|
||||
|
||||
@@ -1,62 +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$
|
||||
//
|
||||
/// \file B4bEventActionMessenger.hh
|
||||
/// \brief Definition of the B4bEventActionMessenger class
|
||||
|
||||
#ifndef B4bEventActionMessenger_h
|
||||
#define B4bEventActionMessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class B4bEventAction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAnInteger;
|
||||
|
||||
/// Messenger class that defines commands for B4bEventAction class.
|
||||
///
|
||||
/// It implements commands:
|
||||
/// - /B4/event/setPrintModulo value
|
||||
|
||||
class B4bEventActionMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
B4bEventActionMessenger(B4bEventAction* eventAction);
|
||||
virtual ~B4bEventActionMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand* command, G4String value);
|
||||
|
||||
private:
|
||||
B4bEventAction* fEventAction;
|
||||
G4UIdirectory* fDirectory;
|
||||
G4UIcmdWithAnInteger* fSetPrintModuloCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user