Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: CheckVolumeSD.hh,v 1.3 2006-06-29 17:23:25 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/CheckVolumeSD.hh
/// \brief Definition of the CheckVolumeSD class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -33,7 +35,7 @@
// Created: 31.01.2003 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -67,7 +69,7 @@ public: // Without description
private:
HistoManager* theHisto;
HistoManager* fHisto;
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: DetectorConstruction.hh,v 1.4 2006-06-29 17:23:28 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -33,7 +35,7 @@
// Created: 31.01.2003 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -75,19 +77,19 @@ private:
DetectorConstruction & operator=(const DetectorConstruction &right);
DetectorConstruction(const DetectorConstruction&);
G4double radius;
G4double fRadius;
G4Material* targetMaterial;
G4Material* worldMaterial;
G4Material* fTargetMaterial;
G4Material* fWorldMaterial;
CheckVolumeSD* checkSD;
TargetSD* targetSD;
CheckVolumeSD* fCheckSD;
TargetSD* fTargetSD;
G4LogicalVolume* logicTarget;
G4LogicalVolume* logicCheck;
G4LogicalVolume* logicWorld;
G4LogicalVolume* fLogicTarget;
G4LogicalVolume* fLogicCheck;
G4LogicalVolume* fLogicWorld;
DetectorMessenger* detectorMessenger;
DetectorMessenger* fDetectorMessenger;
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: DetectorMessenger.hh,v 1.7 2007-05-16 11:43:30 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -33,7 +35,7 @@
// Created: 31.01.03 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
// 16.11.2006 Add beamCmd (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
@@ -66,19 +68,19 @@ public:
private:
DetectorConstruction* Detector;
DetectorConstruction* fDetector;
G4UIdirectory* testDir;
G4UIcmdWithAString* matCmd;
G4UIcmdWithAString* mat1Cmd;
G4UIcmdWithADoubleAndUnit* rCmd;
G4UIcmdWithADoubleAndUnit* lCmd;
G4UIcmdWithADoubleAndUnit* edepCmd;
G4UIcmdWithAnInteger* binCmd;
G4UIcmdWithAnInteger* nOfAbsCmd;
G4UIcmdWithAnInteger* verbCmd;
G4UIcmdWithABool* beamCmd;
G4UIcmdWithoutParameter* updateCmd;
G4UIdirectory* fTestDir;
G4UIcmdWithAString* fMatCmd;
G4UIcmdWithAString* fMat1Cmd;
G4UIcmdWithADoubleAndUnit* fRCmd;
G4UIcmdWithADoubleAndUnit* fLCmd;
G4UIcmdWithADoubleAndUnit* fEdepCmd;
G4UIcmdWithAnInteger* fBinCmd;
G4UIcmdWithAnInteger* fNOfAbsCmd;
G4UIcmdWithAnInteger* fVerbCmd;
G4UIcmdWithABool* fBeamCmd;
G4UIcmdWithoutParameter* fUpdateCmd;
};
@@ -23,17 +23,18 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: EventAction.hh,v 1.3 2006-06-29 17:23:34 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/EventAction.hh
/// \brief Definition of the EventAction class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
// EventAction
//
// Created: 31.04.2006 V.Ivanchenko
// Created: 21.06.2008 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -58,29 +59,39 @@ public: // Without description
EventAction();
virtual ~EventAction();
void BeginOfEventAction(const G4Event*);
void EndOfEventAction(const G4Event*);
virtual void BeginOfEventAction(const G4Event*);
virtual void EndOfEventAction(const G4Event*);
void SetPrintModulo(G4int val) {printModulo = val;};
void SetDrawFlag(G4String val) {drawFlag = val;};
void AddEventToDebug(G4int val) {selectedEvents.push_back(val);
nSelected++;};
inline void SetPrintModulo(G4int val);
inline void AddEventToDebug(G4int val);
private:
EventActionMessenger* eventMessenger;
EventAction & operator=(const EventAction &right);
EventAction(const EventAction&);
EventActionMessenger* fEventMessenger;
G4UImanager* UI;
std::vector<G4int> selectedEvents;
std::vector<G4int> fSelectedEvents;
G4int printModulo;
G4int nSelected;
G4int fPrintModulo;
G4int fSelected;
// drawFlags = all, charged, neutral, charged+n
G4String drawFlag;
G4bool debugStarted;
G4bool fDebugStarted;
};
inline void EventAction::SetPrintModulo(G4int val)
{
fPrintModulo = val;
}
inline void EventAction::AddEventToDebug(G4int val)
{
fSelectedEvents.push_back(val);
++fSelected;
}
#endif
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: EventActionMessenger.hh,v 1.3 2006-06-29 17:23:36 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/EventActionMessenger.hh
/// \brief Definition of the EventActionMessenger class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -33,7 +35,7 @@
// Created: 31.01.03 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -57,14 +59,13 @@ public:
EventActionMessenger(EventAction*);
virtual ~EventActionMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
EventAction* eventAction;
G4UIcmdWithAString* drawCmd;
G4UIcmdWithAnInteger* printCmd;
G4UIcmdWithAnInteger* dCmd;
EventAction* fEventAction;
G4UIcmdWithAnInteger* fPrintCmd;
G4UIcmdWithAnInteger* fCmd;
};
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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 hadronic/Hadr01/include/G4EmUserPhysics.hh
/// \brief Definition of the G4EmUserPhysics class
//
// $Id$
//
//---------------------------------------------------------------------------
//
// ClassName: G4EmUserPhysics
//
// Author: V.Ivanchenko 11.07.2012
//
// Modified:
//
//----------------------------------------------------------------------------
//
// This class shows how extra EM options can be defined on top of
// any reference Physics List
//
#ifndef G4EmUserPhysics_h
#define G4EmUserPhysics_h 1
#include "G4VPhysicsConstructor.hh"
#include "globals.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4EmUserPhysics : public G4VPhysicsConstructor
{
public:
G4EmUserPhysics(G4int ver = 1);
virtual ~G4EmUserPhysics();
virtual void ConstructParticle();
virtual void ConstructProcess();
private:
G4int verbose;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: Histo.hh,v 1.6 2007-05-24 13:52:31 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/Histo.hh
/// \brief Definition of the Histo class
//
// $Id$
#ifndef Histo_h
#define Histo_h 1
@@ -43,96 +45,98 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#include "globals.hh"
#include <vector>
#include "G4DynamicParticle.hh"
#include "G4VPhysicalVolume.hh"
#include "G4DataVector.hh"
#include "G4Track.hh"
#include <vector>
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class G4RootAnalysisManager;
class HistoMessenger;
namespace AIDA {
class ITree;
class ITuple;
class IHistogram1D;
class IAnalysisFactory;
}
class Histo
{
public:
Histo(G4int ver);
Histo();
~Histo();
void book();
// Book predefined histogramms
void Book();
void save();
// Save histogramms to file
void Save();
void reset();
// Reset histogramms
// In this method 1-D histogramms are predefined
void Add1D(const G4String&, const G4String&, G4int nb, G4double x1,
G4double x2, G4double u=1.);
void add1D(const G4String&, const G4String&, G4int nb=100, G4double x1=0.,
G4double x2=1., G4double u=1.);
// In this method histogramms are predefined
void setHisto1D(G4int, G4int, G4double, G4double, G4double);
// It change bins and boundaries
void SetHisto1D(G4int, G4int, G4double, G4double, G4double);
// Histogram activation/deactivation
void Activate(G4int, G4bool);
void fill(G4int, G4double, G4double);
// Histogramms are filled
void Fill(G4int, G4double, G4double);
void scale(G4int, G4double);
// Histogramms are scaled
void ScaleH1(G4int, G4double);
void addTuple(const G4String&, const G4String&, const G4String&);
// In this method nTuple is booked
void AddTuple(const G4String&);
// In this method nTuple is booked
void AddTupleI(const G4String&);
void AddTupleF(const G4String&);
void AddTupleD(const G4String&);
void fillTuple(const G4String&, G4double);
// Fill nTuple parameter
void FillTupleI(G4int, G4int);
void FillTupleF(G4int, G4float);
void FillTupleD(G4int, G4double);
void addRow();
// Save tuple event
void AddRow();
void setFileName(const G4String& nam) {histName = nam;};
// Set output file
void SetFileName(const G4String&);
void SetFileType(const G4String&);
void setFileOption(const G4String& nam) {option = nam;};
inline void SetVerbose(G4int val) { fVerbose = val; };
void setFileType(const G4String& nam);
void print(G4int i);
void setVerbose(G4int val) {verbose = val;};
inline G4bool IsActive() const { return fHistoActive; };
private:
G4String histName;
G4String histType;
G4String option;
G4String tupleName;
G4String tupleId;
G4String tupleList;
G4int nHisto;
G4int verbose;
G4int defaultAct;
G4RootAnalysisManager* fManager;
HistoMessenger* fMessenger;
G4String fHistName;
G4String fHistType;
G4String fTupleName;
G4String fTupleTitle;
G4int fNHisto;
G4int fVerbose;
G4bool fDefaultAct;
G4bool fHistoActive;
G4bool fNtupleActive;
std::vector<G4int> fHisto;
std::vector<G4int> fTupleI;
std::vector<G4int> fTupleF;
std::vector<G4int> fTupleD;
std::vector<G4int> fBins;
std::vector<G4bool> fActive;
std::vector<G4double> fXmin;
std::vector<G4double> fXmax;
std::vector<G4double> fUnit;
std::vector<G4String> fIds;
std::vector<G4String> fTitles;
std::vector<G4String> fNtupleI;
std::vector<G4String> fNtupleF;
std::vector<G4String> fNtupleD;
std::vector<AIDA::IHistogram1D*> histo;
AIDA::IAnalysisFactory* af;
AIDA::ITuple* ntup;
AIDA::ITree* tree;
HistoMessenger* messenger;
std::vector<G4int> active;
std::vector<G4int> bins;
std::vector<G4double> xmin;
std::vector<G4double> xmax;
std::vector<G4double> unit;
std::vector<G4String> ids;
std::vector<G4String> titles;
};
#endif
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: HistoManager.hh,v 1.9 2009-08-28 09:21:34 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/HistoManager.hh
/// \brief Definition of the HistoManager class
//
// $Id$
//
//---------------------------------------------------------------------------
//
@@ -40,7 +42,7 @@
// Author: V.Ivanchenko 27/09/00
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
// 03.10.2006 Add csFlag (V.Ivanchenko)
// 16.11.2006 Add beamFlag (V.Ivanchenko)
//
@@ -87,80 +89,68 @@ public:
void AddTargetStep(const G4Step*);
void AddLeakingParticle(const G4Track*);
void SetTargetLength(G4double val) {length = val;};
void SetNumberOfSlices(G4int val) {nSlices = val;};
void SetNumberOfBinsE(G4int val) {nBinsE = val;};
G4double Length() const {return length;};
G4int NumberOfSlices() const {return nSlices;};
void SetVerbose(G4int val);
G4int GetVerbose() const {return verbose;};
void SetDefaultBeamPositionFlag(G4bool f) {beamFlag = f;};
G4bool DefaultBeamPosition() const {return beamFlag;};
inline void SetTargetLength(G4double val) {fLength = val;};
inline void SetNumberOfSlices(G4int val) {fNSlices = val;};
inline void SetNumberOfBinsE(G4int val) {fNBinsE = val;};
inline void SetDefaultBeamPositionFlag(G4bool f) {fBeamFlag = f;};
inline void SetMaxEnergyDeposit(G4double val) {fEdepMax = val;};
void SetTargetMaterial(const G4Material* mat);
const G4Material* TargetMaterial() const {return material;};
const G4Element* TargetElement() const {return elm;};
G4double CurrentKinEnergy() {return currentKinEnergy;};
const G4ParticleDefinition* CurrentParticle() {return currentDef;};
void SetMaxEnergyDeposit(G4double val) {edepMax = val;};
inline G4double Length() const {return fLength;};
inline G4bool DefaultBeamPosition() const {return fBeamFlag;};
inline G4int NumberOfSlices() const {return fNSlices;};
inline G4int GetVerbose() const {return fVerbose;};
private:
static HistoManager* fManager;
const G4ParticleDefinition* primaryDef;
const G4ParticleDefinition* currentDef;
const G4ParticleDefinition* neutron;
const G4Material* material;
G4Element* elm;
const G4ParticleDefinition* fPrimaryDef;
const G4ParticleDefinition* fNeutron;
G4double edepMax;
G4double edepEvt;
G4double edepEM;
G4double edepPI;
G4double edepP;
G4double edepSum;
G4double edepSum2;
G4double beamEnergy;
G4double length;
G4double absZ0;
G4double primaryKineticEnergy;
G4double currentKinEnergy;
G4double fEdepMax;
G4double fEdepEvt;
G4double fEdepEM;
G4double fEdepPI;
G4double fEdepP;
G4double fEdepSum;
G4double fEdepSum2;
G4double fBeamEnergy;
G4double fLength;
G4double fAbsZ0;
G4double fPrimaryKineticEnergy;
G4int verbose;
G4int nBinsE;
G4int nSlices;
G4int fVerbose;
G4int fNBinsE;
G4int fNSlices;
G4int n_evt;
G4int n_elec;
G4int n_posit;
G4int n_gam;
G4int n_prot_leak;
G4int n_pion_leak;
G4int n_cpions;
G4int n_pi0;
G4int n_kaons;
G4int n_muons;
G4int n_ions;
G4int n_deut;
G4int n_alpha;
G4int n_neutron;
G4int n_proton;
G4int n_aproton;
G4int n_neu_forw;
G4int n_neu_leak;
G4int n_neu_back;
G4int n_step;
G4int nHisto;
G4int fNevt;
G4int fNelec;
G4int fNposit;
G4int fNgam;
G4int fNprot_leak;
G4int fNpiofNleak;
G4int fNcpions;
G4int fNpi0;
G4int fNkaons;
G4int fNmuons;
G4int fNions;
G4int fNdeut;
G4int fNalpha;
G4int fNneutron;
G4int fNproton;
G4int fNaproton;
G4int fNneu_forw;
G4int fNneu_leak;
G4int fNneu_back;
G4int fNstep;
G4int fNHisto;
G4bool beamFlag;
G4bool fBeamFlag;
G4bool fHistoBooked;
Histo* histo;
Histo* fHisto;
};
#endif
@@ -23,22 +23,16 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: HistoMessenger.hh,v 1.5 2006-11-15 14:58:10 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/HistoMessenger.hh
/// \brief Definition of the HistoMessenger class
//
/////////////////////////////////////////////////////////////////////////
// $Id$
//
// HistoMessenger
//
// Created: 31.01.2003 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef HistoMessenger_h
#define HistoMessenger_h 1
@@ -48,9 +42,9 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class Histo;
class G4UIdirectory;
class G4UIcommand;
class G4UIcmdWithAString;
class G4UIcmdWithAnInteger;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -61,18 +55,17 @@ public:
HistoMessenger(Histo* );
virtual ~HistoMessenger();
void SetNewValue(G4UIcommand* ,G4String );
virtual void SetNewValue(G4UIcommand* ,G4String );
private:
Histo* histo;
Histo* fHisto;
G4UIcmdWithAString* factoryCmd;
G4UIcmdWithAString* fileCmd;
G4UIcmdWithAString* optCmd;
G4UIcmdWithAnInteger* printCmd;
G4UIcommand* histoCmd;
G4UIdirectory* fHistoDir;
G4UIcmdWithAString* fFactoryCmd;
G4UIcmdWithAString* fFileCmd;
G4UIcommand* fHistoCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,9 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file hadronic/Hadr01/include/PhysicsList.hh
/// \brief Definition of the PhysicsList class
//
// $Id: PhysicsList.hh,v 1.9 2010-11-19 20:12:32 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -34,7 +36,7 @@
// Created: 31.04.2006 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -77,17 +79,17 @@ private:
void SetBuilderList3();
void SetBuilderList4();
G4double cutForGamma;
G4double cutForElectron;
G4double cutForPositron;
G4double cutForProton;
G4double fCutForGamma;
G4double fCutForElectron;
G4double fCutForPositron;
G4double fCutForProton;
G4VPhysicsConstructor* emPhysicsList;
G4VPhysicsConstructor* particleList;
std::vector<G4VPhysicsConstructor*> hadronPhys;
G4VPhysicsConstructor* fEmPhysicsList;
G4VPhysicsConstructor* fParticleList;
std::vector<G4VPhysicsConstructor*> fHadronPhys;
PhysicsListMessenger* pMessenger;
G4bool dump;
PhysicsListMessenger* fMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,9 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file hadronic/Hadr01/include/PhysicsListMessenger.hh
/// \brief Definition of the PhysicsListMessenger class
//
// $Id: PhysicsListMessenger.hh,v 1.4 2009-12-29 19:23:26 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// $Id$
//
//
/////////////////////////////////////////////////////////////////////////
@@ -35,7 +37,7 @@
// Created: 31.01.2006 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -64,15 +66,15 @@ public:
private:
PhysicsList* pPhysicsList;
PhysicsList* fPhysicsList;
G4UIcmdWithADoubleAndUnit* gammaCutCmd;
G4UIcmdWithADoubleAndUnit* electCutCmd;
G4UIcmdWithADoubleAndUnit* posCutCmd;
G4UIcmdWithADoubleAndUnit* pCutCmd;
G4UIcmdWithADoubleAndUnit* allCutCmd;
G4UIcmdWithAString* pListCmd;
G4UIcmdWithoutParameter* listCmd;
G4UIcmdWithADoubleAndUnit* fGammaCutCmd;
G4UIcmdWithADoubleAndUnit* fElectCutCmd;
G4UIcmdWithADoubleAndUnit* fPosCutCmd;
G4UIcmdWithADoubleAndUnit* fCutCmd;
G4UIcmdWithADoubleAndUnit* fAllCutCmd;
G4UIcmdWithAString* fPListCmd;
G4UIcmdWithoutParameter* fListCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,19 +23,21 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file hadronic/Hadr01/include/PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//
// $Id: PrimaryGeneratorAction.hh,v 1.3 2006-06-29 17:23:52 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// $Id$
//
//
/////////////////////////////////////////////////////////////////////////
//
// EventActionMessenger
// PrimaryGeneratorAction
//
// Created: 31.01.03 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -58,15 +60,14 @@ public:
virtual ~PrimaryGeneratorAction();
void GeneratePrimaries(G4Event*);
G4ParticleGun* GetParticleGun() {return particleGun;};
private:
PrimaryGeneratorAction & operator=(const PrimaryGeneratorAction &right);
PrimaryGeneratorAction(const PrimaryGeneratorAction&);
G4ParticleGun* particleGun;
HistoManager* histo;
G4ParticleGun* fParticleGun;
HistoManager* fHisto;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,12 +23,19 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file hadronic/Hadr01/include/RunAction.hh
/// \brief Definition of the RunAction class
//
// $Id$
//
#ifndef RunAction_h
#define RunAction_h 1
// -------------------------------------------------------------
//
// GEANT4
// GEANT4 Header file
// RunAction
//
//
// -------------------------------------------------------------
@@ -47,14 +54,14 @@ class RunAction : public G4UserRunAction
public: // Without description
RunAction();
~RunAction();
virtual ~RunAction();
public: // With description
void BeginOfRunAction(const G4Run*);
virtual void BeginOfRunAction(const G4Run*);
// In this method histogramms are booked
void EndOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
// In this method bookHisto method is called in which histogramms are filled
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StackingAction.hh,v 1.3 2006-06-29 17:23:56 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/StackingAction.hh
/// \brief Definition of the StackingAction class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -33,7 +35,7 @@
// Created: 31.04.2006 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -47,6 +49,7 @@
class HistoManager;
class StackingMessenger;
class G4Track;
class G4ParticleDefinition;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -57,18 +60,18 @@ public:
StackingAction();
virtual ~StackingAction();
void SetKillStatus(G4bool value) {killSecondary = value;};
void SetKill(const G4String& name) {pname = name;};
void SetKillStatus(G4bool value);
void SetKill(const G4String& name);
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*);
private:
HistoManager* histoManager;
StackingMessenger* stackMessenger;
HistoManager* fHistoManager;
StackingMessenger* fStackMessenger;
G4bool fKillSecondary;
G4String pname;
G4bool killSecondary;
const G4ParticleDefinition* fParticle;
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StackingMessenger.hh,v 1.3 2006-06-29 17:23:58 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/StackingMessenger.hh
/// \brief Definition of the StackingMessenger class
//
// $Id$
//
//
/////////////////////////////////////////////////////////////////////////
@@ -34,7 +36,7 @@
// Created: 31.05.2006 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -62,10 +64,10 @@ public:
private:
StackingAction* stackAction;
StackingAction* fStackAction;
G4UIcmdWithABool* killCmd;
G4UIcmdWithAString* kCmd;
G4UIcmdWithABool* fKillCmd;
G4UIcmdWithAString* fKCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: TargetSD.hh,v 1.4 2006-06-29 17:24:00 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file hadronic/Hadr01/include/TargetSD.hh
/// \brief Definition of the TargetSD class
//
// $Id$
//
/////////////////////////////////////////////////////////////////////////
//
@@ -33,7 +35,7 @@
// Created: 31.01.2003 V.Ivanchenko
//
// Modified:
// 04.06.2006 Adoptation of hadr01 (V.Ivanchenko)
// 04.06.2006 Adoptation of Hadr01 (V.Ivanchenko)
//
////////////////////////////////////////////////////////////////////////
//
@@ -66,7 +68,7 @@ public: // Without description
private:
HistoManager* theHisto;
HistoManager* fHisto;
};