Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the DetectorConstruction class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: DetectorConstruction.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -47,7 +47,7 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
|
||||
G4double GetWorldSizeXY() {return fWorldSizeXY;};
|
||||
G4double GetWorldSizeZ() {return fWorldSizeZ;};
|
||||
|
||||
@@ -23,11 +23,10 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file eventgenerator/particleGun/include/HistoManager.hh
|
||||
/// \file hadronic/Hadr03/include/HistoManager.hh
|
||||
/// \brief Definition of the HistoManager class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: HistoManager.hh 68734 2013-04-05 09:47:02Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -36,58 +35,21 @@
|
||||
#define HistoManager_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
#include "g4root.hh"
|
||||
////#include "g4xml.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class HistoMessenger;
|
||||
|
||||
const G4int MaxHisto = 9;
|
||||
//#include "g4xml.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class HistoManager
|
||||
{
|
||||
public:
|
||||
|
||||
HistoManager();
|
||||
~HistoManager();
|
||||
|
||||
void SetFileName (const G4String& name) { fileName[0] = name;};
|
||||
void book();
|
||||
void save();
|
||||
void SetHisto (G4int,G4int,G4double,G4double,const G4String& unit="none");
|
||||
void FillHisto(G4int id, G4double e, G4double weight = 1.0);
|
||||
void Normalize(G4int id, G4double fac);
|
||||
void PrintHisto (G4int);
|
||||
|
||||
G4bool HistoExist (G4int id) {return fExist[id];}
|
||||
G4double GetHistoUnit(G4int id) {return fUnit[id];}
|
||||
G4double GetBinWidth (G4int id) {return fWidth[id];}
|
||||
HistoManager();
|
||||
~HistoManager();
|
||||
|
||||
private:
|
||||
|
||||
G4String fileName[2];
|
||||
G4bool factoryOn;
|
||||
|
||||
G4int fNbHist;
|
||||
G4int fHistId[MaxHisto];
|
||||
G4AnaH1* fHistPt[MaxHisto];
|
||||
G4bool fExist[MaxHisto];
|
||||
G4String fLabel[MaxHisto];
|
||||
G4String fTitle[MaxHisto];
|
||||
G4int fNbins[MaxHisto];
|
||||
G4double fVmin [MaxHisto];
|
||||
G4double fVmax [MaxHisto];
|
||||
G4double fUnit [MaxHisto];
|
||||
G4double fWidth[MaxHisto];
|
||||
G4bool fAscii[MaxHisto];
|
||||
|
||||
HistoMessenger* fHistoMessenger;
|
||||
|
||||
private:
|
||||
void saveAscii();
|
||||
void Book();
|
||||
G4String fFileName;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -1,74 +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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file eventgenerator/particleGun/include/HistoMessenger.hh
|
||||
/// \brief Definition of the HistoMessenger class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef HistoMessenger_h
|
||||
#define HistoMessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class HistoManager;
|
||||
class G4UIdirectory;
|
||||
class G4UIcommand;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class HistoMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
|
||||
HistoMessenger(HistoManager* );
|
||||
~HistoMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand* ,G4String );
|
||||
|
||||
private:
|
||||
|
||||
HistoManager* fHistoManager;
|
||||
|
||||
G4UIdirectory* fHistoDir;
|
||||
G4UIcmdWithAString* fFileNameCmd;
|
||||
G4UIcommand* fHistoCmd;
|
||||
G4UIcmdWithAnInteger* fPrtHistoCmd;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PhysicsList class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PhysicsList.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -48,9 +48,9 @@ class PhysicsList: public G4VUserPhysicsList
|
||||
|
||||
protected:
|
||||
// Construct particle and physics
|
||||
void ConstructParticle();
|
||||
void ConstructProcess();
|
||||
void SetCuts();
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
virtual void SetCuts();
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PrimaryGeneratorAction class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PrimaryGeneratorAction.hh 68734 2013-04-05 09:47:02Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -56,27 +56,27 @@ class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
~PrimaryGeneratorAction();
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event*);
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
|
||||
public:
|
||||
G4ParticleGun* GetParticleGun() { return particleGun; };
|
||||
G4ParticleGun* GetParticleGun() { return fParticleGun; };
|
||||
|
||||
void SelectAction(G4int i) { selectedAction = i; };
|
||||
G4int GetSelectedAction() { return selectedAction; };
|
||||
PrimaryGeneratorAction1* GetAction1() { return action1; };
|
||||
PrimaryGeneratorAction2* GetAction2() { return action2; };
|
||||
PrimaryGeneratorAction3* GetAction3() { return action3; };
|
||||
PrimaryGeneratorAction4* GetAction4() { return action4; };
|
||||
void SelectAction(G4int i) { fSelectedAction = i; };
|
||||
G4int GetSelectedAction() { return fSelectedAction; };
|
||||
PrimaryGeneratorAction1* GetAction1() { return fAction1; };
|
||||
PrimaryGeneratorAction2* GetAction2() { return fAction2; };
|
||||
PrimaryGeneratorAction3* GetAction3() { return fAction3; };
|
||||
PrimaryGeneratorAction4* GetAction4() { return fAction4; };
|
||||
|
||||
private:
|
||||
G4ParticleGun* particleGun;
|
||||
PrimaryGeneratorAction1* action1;
|
||||
PrimaryGeneratorAction2* action2;
|
||||
PrimaryGeneratorAction3* action3;
|
||||
PrimaryGeneratorAction4* action4;
|
||||
G4int selectedAction;
|
||||
G4ParticleGun* fParticleGun;
|
||||
PrimaryGeneratorAction1* fAction1;
|
||||
PrimaryGeneratorAction2* fAction2;
|
||||
PrimaryGeneratorAction3* fAction3;
|
||||
PrimaryGeneratorAction4* fAction4;
|
||||
G4int fSelectedAction;
|
||||
|
||||
PrimaryGeneratorMessenger* gunMessenger;
|
||||
PrimaryGeneratorMessenger* fGunMessenger;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PrimaryGeneratorAction1 class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PrimaryGeneratorAction1.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PrimaryGeneratorAction2 class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PrimaryGeneratorAction2.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -51,7 +51,7 @@ class PrimaryGeneratorAction2
|
||||
~PrimaryGeneratorAction2();
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event*);
|
||||
void GeneratePrimaries(G4Event*);
|
||||
|
||||
public:
|
||||
G4double RejectAccept();
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PrimaryGeneratorAction3 class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PrimaryGeneratorAction3.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PrimaryGeneratorAction4 class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PrimaryGeneratorAction4.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
/// \file eventgenerator/particleGun/include/PrimaryGeneratorMessenger.hh
|
||||
/// \brief Definition of the PrimaryGeneratorMessenger class
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PrimaryGeneratorMessenger.hh 68024 2013-03-13 13:42:01Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -49,7 +49,7 @@ class PrimaryGeneratorMessenger: public G4UImessenger
|
||||
PrimaryGeneratorMessenger(PrimaryGeneratorAction*);
|
||||
~PrimaryGeneratorMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
PrimaryGeneratorAction* Action;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the RunAction class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: RunAction.hh 68734 2013-04-05 09:47:02Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -46,11 +46,11 @@ class HistoManager;
|
||||
class RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
RunAction(HistoManager*);
|
||||
RunAction();
|
||||
~RunAction();
|
||||
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
private:
|
||||
HistoManager* fHistoManager;
|
||||
|
||||
@@ -23,14 +23,14 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file eventgenerator/particleGun/include/SteppingVerbose.hh
|
||||
/// \file radioactivedecay/rdecay01/include/SteppingVerbose.hh
|
||||
/// \brief Definition of the SteppingVerbose class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: SteppingVerbose.hh 71030 2013-06-10 09:07:23Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef SteppingVerbose_h
|
||||
#define SteppingVerbose_h 1
|
||||
@@ -45,10 +45,9 @@ public:
|
||||
|
||||
SteppingVerbose();
|
||||
~SteppingVerbose();
|
||||
|
||||
void StepInfo();
|
||||
void TrackingStarted();
|
||||
|
||||
|
||||
virtual void TrackingStarted();
|
||||
virtual void StepInfo();
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the TrackingAction class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: TrackingAction.hh 68734 2013-04-05 09:47:02Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -40,22 +40,20 @@
|
||||
#include "globals.hh"
|
||||
|
||||
class PrimaryGeneratorAction;
|
||||
class HistoManager;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class TrackingAction : public G4UserTrackingAction {
|
||||
|
||||
public:
|
||||
TrackingAction(PrimaryGeneratorAction*, HistoManager*);
|
||||
TrackingAction(PrimaryGeneratorAction*);
|
||||
~TrackingAction() {};
|
||||
|
||||
void PreUserTrackingAction(const G4Track*);
|
||||
void PostUserTrackingAction(const G4Track*);
|
||||
virtual void PreUserTrackingAction(const G4Track*);
|
||||
virtual void PostUserTrackingAction(const G4Track*);
|
||||
|
||||
private:
|
||||
PrimaryGeneratorAction* fPrimary;
|
||||
HistoManager* fHistoManager;
|
||||
|
||||
// parameters for generator action #3
|
||||
G4ThreeVector fNewUz;
|
||||
|
||||
Reference in New Issue
Block a user