Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: exGPSActionInitialization.hh 68058 2013-03-13 14:47:43Z gcosmo $
|
||||
//
|
||||
/// \file exGPSActionInitialization.hh
|
||||
/// \brief Definition of the exGPSActionInitialization class
|
||||
|
||||
#ifndef exGPSActionInitialization_h
|
||||
#define exGPSActionInitialization_h 1
|
||||
|
||||
#include "G4VUserActionInitialization.hh"
|
||||
|
||||
class exGPSGeometryConstruction;
|
||||
|
||||
/// Action initialization class.
|
||||
///
|
||||
|
||||
class exGPSActionInitialization : public G4VUserActionInitialization
|
||||
{
|
||||
public:
|
||||
exGPSActionInitialization();
|
||||
virtual ~exGPSActionInitialization();
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: exGPSEventAction.hh 76468 2013-11-11 10:27:19Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSEventAction.hh
|
||||
/// \brief Definition of the exGPSEventAction class
|
||||
//
|
||||
@@ -34,16 +36,16 @@
|
||||
#include "globals.hh"
|
||||
|
||||
class exGPSEventActionMessenger;
|
||||
class exGPSHistoManager;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class exGPSEventAction : public G4UserEventAction
|
||||
{
|
||||
public:
|
||||
exGPSEventAction() ;
|
||||
exGPSEventAction(exGPSHistoManager* histoManager) ;
|
||||
virtual ~exGPSEventAction();
|
||||
|
||||
public:
|
||||
virtual void BeginOfEventAction(const G4Event*);
|
||||
virtual void EndOfEventAction(const G4Event*);
|
||||
|
||||
@@ -54,6 +56,7 @@ class exGPSEventAction : public G4UserEventAction
|
||||
G4String fDrawFlag;
|
||||
G4int fPrintModulo;
|
||||
exGPSEventActionMessenger* fEventMessenger;
|
||||
exGPSHistoManager* fexGPSHistoManager;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,19 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: exGPSEventActionMessenger.hh 68020 2013-03-13 13:34:15Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSEventActionMessenger.hh
|
||||
/// \brief Definition of the exGPSEventActionMessenger class
|
||||
//
|
||||
// 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$
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -23,9 +23,12 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: exGPSGeometryConstruction.hh 71234 2013-06-12 13:19:12Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSGeometryConstruction.hh
|
||||
/// \brief Definition of the exGPSGeometryConstruction class
|
||||
//
|
||||
|
||||
#ifndef exGPSGeometryConstruction1_h
|
||||
#define exGPSGeometryConstruction1_h 1
|
||||
//
|
||||
@@ -41,14 +44,12 @@ class exGPSGeometryConstruction : public G4VUserDetectorConstruction
|
||||
exGPSGeometryConstruction ();
|
||||
virtual ~exGPSGeometryConstruction ();
|
||||
|
||||
public:
|
||||
virtual G4VPhysicalVolume *Construct ();
|
||||
virtual G4VPhysicalVolume* Construct ();
|
||||
|
||||
private:
|
||||
|
||||
G4VPhysicalVolume * fUniverse_phys ;
|
||||
G4VPhysicalVolume * fAl_phys ;
|
||||
G4VPhysicalVolume * fSphere_phys;
|
||||
G4VPhysicalVolume* fUniverse_phys ;
|
||||
G4VPhysicalVolume* fAl_phys ;
|
||||
G4VPhysicalVolume* fSphere_phys;
|
||||
|
||||
};
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
+40
-68
@@ -23,93 +23,65 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSAnalysisManager.hh
|
||||
/// \brief Definition of the exGPSAnalysisManager class
|
||||
/// \file eventgenerator/exgps/include/exGPSHistoManager.hh
|
||||
/// \brief Definition of the exGPSHistoManager class
|
||||
//
|
||||
#ifndef exGPSAnalysisManager_h
|
||||
#define exGPSAnalysisManager_h 1
|
||||
//
|
||||
// $Id: exGPSHistoManager.hh 74272 2013-10-02 14:48:50Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
#ifndef exGPSHistoManager_h
|
||||
#define exGPSHistoManager_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4root.hh"
|
||||
////#include "g4xml.hh"
|
||||
////#include "g4hbook.hh"
|
||||
class exGPSHistoMessenger;
|
||||
|
||||
namespace AIDA {
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class IAnalysisFactory;
|
||||
class ITree;
|
||||
class IPlotter;
|
||||
class IHistogram1D;
|
||||
class IHistogram2D;
|
||||
class ITuple;
|
||||
}
|
||||
|
||||
class exGPSAnalysisMessenger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class exGPSAnalysisManager
|
||||
class exGPSHistoManager
|
||||
{
|
||||
public:
|
||||
|
||||
private:
|
||||
exGPSAnalysisManager ();
|
||||
virtual ~exGPSAnalysisManager ();
|
||||
exGPSHistoManager();
|
||||
~exGPSHistoManager();
|
||||
|
||||
public:
|
||||
static exGPSAnalysisManager* GetInstance ();
|
||||
static void Dispose();
|
||||
void book();
|
||||
void save();
|
||||
|
||||
void Fill(G4int PDGid, G4double e,
|
||||
G4double x, G4double y, G4double z,
|
||||
G4double t, G4double p, G4double w);
|
||||
|
||||
public:
|
||||
void BeginOfRun();
|
||||
void EndOfRun();
|
||||
void PrintStatistic();
|
||||
|
||||
void SetFileName(G4String filename) {fIleName = filename;};
|
||||
void SetFileType(G4String filetype) {fIleType = filetype;};
|
||||
private:
|
||||
|
||||
void SetPosMax(G4double pmax) {fMaxpos = pmax;};
|
||||
void SetPosMin(G4double pmin) {fMinpos = pmin;};
|
||||
void SetEngMax(G4double emax) {fMaxeng = emax;};
|
||||
void SetEngMin(G4double emin) {fMineng = emin;};
|
||||
|
||||
void Fill(G4String, G4double, G4double, G4double, G4double, G4double,
|
||||
G4double, G4double);
|
||||
G4String fFileName[2];
|
||||
G4bool fFactoryOn;
|
||||
G4double fMinpos,fMaxpos,fMineng,fMaxeng;
|
||||
G4AnaH1 *fEnerHisto;
|
||||
G4AnaH2 *fPosiXY, *fPosiZX, *fPosiYZ, *fAnglCTP, *fAnglTP;
|
||||
exGPSHistoMessenger* fMessenger;
|
||||
|
||||
private:
|
||||
|
||||
static exGPSAnalysisManager* fInstance;
|
||||
|
||||
G4String fIleName;
|
||||
G4String fIleType;
|
||||
|
||||
AIDA::IAnalysisFactory* fAnalysisFactory;
|
||||
AIDA::ITree* fTree;
|
||||
AIDA::IPlotter* fPlotter;
|
||||
|
||||
G4double fMinpos, fMaxpos;
|
||||
G4double fMineng, fMaxeng;
|
||||
|
||||
AIDA::IHistogram1D* fEnerHisto;
|
||||
AIDA::IHistogram2D* fPosiXY;
|
||||
AIDA::IHistogram2D* fPosiXZ;
|
||||
AIDA::IHistogram2D* fPosiYZ;
|
||||
AIDA::IHistogram2D* fAnglCTP;
|
||||
AIDA::IHistogram2D* fAnglTP;
|
||||
AIDA::ITuple* fTuple;
|
||||
|
||||
exGPSAnalysisMessenger* fAnalysisMessenger;
|
||||
public:
|
||||
inline void SetEMin(G4double emin) {fMineng = emin;}
|
||||
inline void SetEMax(G4double emax) {fMaxeng = emax;}
|
||||
inline void SetPosMin(G4double posmin) {fMinpos = posmin;}
|
||||
inline void SetPosMax(G4double posmax) {fMaxpos = posmax;}
|
||||
inline void SetFileName(G4String name) {fFileName[0] = name;}
|
||||
|
||||
};
|
||||
|
||||
#endif // G4ANALYSIS_USE
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+19
-18
@@ -23,45 +23,46 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSAnalysisMessenger.hh
|
||||
/// \brief Definition of the exGPSAnalysisMessenger class
|
||||
// $Id: exGPSHistoMessenger.hh 71234 2013-06-12 13:19:12Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSHistoMessenger.hh
|
||||
/// \brief Definition of the exGPSHistoMessenger class
|
||||
//
|
||||
#ifndef exGPSAnalysisMessenger_h
|
||||
#define exGPSAnalysisMessenger_h 1
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
#ifndef exGPSHistoMessenger_h
|
||||
#define exGPSHistoMessenger_h 1
|
||||
|
||||
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class exGPSAnalysisManager;
|
||||
class exGPSHistoManager;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithADoubleAndUnit;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class exGPSAnalysisMessenger: public G4UImessenger
|
||||
class exGPSHistoMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
exGPSAnalysisMessenger(exGPSAnalysisManager* );
|
||||
virtual ~exGPSAnalysisMessenger();
|
||||
exGPSHistoMessenger(exGPSHistoManager* );
|
||||
virtual ~exGPSHistoMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
exGPSAnalysisManager* fExGPSAnalysis;
|
||||
G4UIdirectory* fExGPSAnalysisDir;
|
||||
exGPSHistoManager* fExGPSHisto;
|
||||
G4UIdirectory* fExGPSHistoDir;
|
||||
|
||||
G4UIcmdWithAString* fFileNameCmd;
|
||||
G4UIcmdWithAString* fFileTypeCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMaxEngCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMinEngCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMaxPosCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMinPosCmd;
|
||||
G4UIcmdWithAString* fFileNameCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMaxEngCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMinEngCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMaxPosCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fMinPosCmd;
|
||||
};
|
||||
|
||||
#endif // G4ANALYSIS_USE
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: exGPSPhysicsList.hh 71234 2013-06-12 13:19:12Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSPhysicsList.hh
|
||||
/// \brief Definition of the exGPSPhysicsList class
|
||||
//
|
||||
@@ -45,19 +47,14 @@ class exGPSPhysicsList: public G4VUserPhysicsList
|
||||
// Construct particle and physics
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
void SetCuts();
|
||||
virtual void SetCuts();
|
||||
|
||||
public:
|
||||
|
||||
protected:
|
||||
// these methods Construct particles
|
||||
void ConstructBosons();
|
||||
void ConstructLeptons();
|
||||
void ConstructMesons();
|
||||
void ConstructBaryons();
|
||||
void ConstructNuclei();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: exGPSPrimaryGeneratorAction.hh 71234 2013-06-12 13:19:12Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSPrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the exGPSPrimaryGeneratorAction class
|
||||
//
|
||||
@@ -41,11 +43,9 @@ class exGPSPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
exGPSPrimaryGeneratorAction();
|
||||
virtual ~exGPSPrimaryGeneratorAction();
|
||||
|
||||
public:
|
||||
virtual void GeneratePrimaries(G4Event* anEvent);
|
||||
|
||||
private:
|
||||
|
||||
G4GeneralParticleSource* fParticleGun;
|
||||
};
|
||||
|
||||
|
||||
@@ -23,9 +23,12 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: exGPSRunAction.hh 76468 2013-11-11 10:27:19Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/exgps/include/exGPSRunAction.hh
|
||||
/// \brief Definition of the exGPSRunAction class
|
||||
//
|
||||
|
||||
#ifndef exGPSRunAction_h
|
||||
#define exGPSRunAction_h 1
|
||||
|
||||
@@ -35,17 +38,19 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
class G4Run;
|
||||
class exGPSHistoManager;
|
||||
|
||||
class exGPSRunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
exGPSRunAction();
|
||||
exGPSRunAction(exGPSHistoManager* histo);
|
||||
virtual ~exGPSRunAction();
|
||||
|
||||
public:
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
private:
|
||||
exGPSHistoManager* fexGPSHistoManager;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user