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: DetectorConstruction.hh,v 1.6 2006-06-29 16:54:31 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -66,7 +68,7 @@ class DetectorConstruction : public G4VUserDetectorConstruction
void SetMagField(G4double);
G4VPhysicalVolume* Construct();
virtual G4VPhysicalVolume* Construct();
void UpdateGeometry();
@@ -74,48 +76,48 @@ class DetectorConstruction : public G4VUserDetectorConstruction
void PrintCalorParameters();
G4Material* GetAbsorberMaterial() {return AbsorberMaterial;};
G4double GetAbsorberThickness() {return AbsorberThickness;};
G4double GetAbsorberSizeYZ() {return AbsorberSizeYZ;};
G4Material* GetAbsorberMaterial() {return fAbsorberMaterial;};
G4double GetAbsorberThickness() {return fAbsorberThickness;};
G4double GetAbsorberSizeYZ() {return fAbsorberSizeYZ;};
G4double GetAbsorberXpos() {return XposAbs;};
G4double GetxstartAbs() {return xstartAbs;};
G4double GetxendAbs() {return xendAbs;};
G4double GetAbsorberXpos() {return fXposAbs;};
G4double GetxstartAbs() {return fXstartAbs;};
G4double GetxendAbs() {return fXendAbs;};
G4Material* GetWorldMaterial() {return WorldMaterial;};
G4double GetWorldSizeX() {return WorldSizeX;};
G4double GetWorldSizeYZ() {return WorldSizeYZ;};
G4Material* GetWorldMaterial() {return fWorldMaterial;};
G4double GetWorldSizeX() {return fWorldSizeX;};
G4double GetWorldSizeYZ() {return fWorldSizeYZ;};
const G4VPhysicalVolume* GetphysiWorld() {return physiWorld;};
const G4VPhysicalVolume* GetAbsorber() {return physiAbsorber;};
const G4VPhysicalVolume* GetphysiWorld() {return fPhysiWorld;};
const G4VPhysicalVolume* GetAbsorber() {return fPhysiAbsorber;};
const G4MaterialCutsCouple* GetAbsorbMaterialCut() const
{return logicAbsorber->GetMaterialCutsCouple();};
{return fLogicAbsorber->GetMaterialCutsCouple();};
private:
G4Material* AbsorberMaterial;
G4double AbsorberThickness;
G4double AbsorberSizeYZ;
G4Material* fAbsorberMaterial;
G4double fAbsorberThickness;
G4double fAbsorberSizeYZ;
G4double XposAbs;
G4double xstartAbs, xendAbs;
G4double fXposAbs;
G4double fXstartAbs, fXendAbs;
G4Material* WorldMaterial;
G4double WorldSizeX;
G4double WorldSizeYZ;
G4Material* fWorldMaterial;
G4double fWorldSizeX;
G4double fWorldSizeYZ;
G4bool defaultWorld;
G4bool fDefaultWorld;
G4Box* solidWorld;
G4LogicalVolume* logicWorld;
G4VPhysicalVolume* physiWorld;
G4Box* fSolidWorld;
G4LogicalVolume* fLogicWorld;
G4VPhysicalVolume* fPhysiWorld;
G4Box* solidAbsorber;
G4LogicalVolume* logicAbsorber;
G4VPhysicalVolume* physiAbsorber;
G4Box* fSolidAbsorber;
G4LogicalVolume* fLogicAbsorber;
G4VPhysicalVolume* fPhysiAbsorber;
G4UniformMagField* magField;
G4UniformMagField* fMagField;
DetectorMessenger* detectorMessenger;
DetectorMessenger* fDetectorMessenger;
private:
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: DetectorMessenger.hh,v 1.5 2006-06-29 16:54:33 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,26 +52,26 @@ class DetectorMessenger: public G4UImessenger
DetectorMessenger(DetectorConstruction* );
~DetectorMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
DetectorConstruction* Detector;
DetectorConstruction* fDetector;
G4UIdirectory* testemDir;
G4UIdirectory* detDir;
G4UIdirectory* fTestemDir;
G4UIdirectory* fDetDir;
G4UIcmdWithAString* AbsMaterCmd;
G4UIcmdWithADoubleAndUnit* AbsThickCmd;
G4UIcmdWithADoubleAndUnit* AbsSizYZCmd;
G4UIcmdWithAString* fAbsMaterCmd;
G4UIcmdWithADoubleAndUnit* fAbsThickCmd;
G4UIcmdWithADoubleAndUnit* fAbsSizYZCmd;
G4UIcmdWithADoubleAndUnit* AbsXposCmd;
G4UIcmdWithADoubleAndUnit* fAbsXposCmd;
G4UIcmdWithAString* WorldMaterCmd;
G4UIcmdWithADoubleAndUnit* WorldXCmd;
G4UIcmdWithADoubleAndUnit* WorldYZCmd;
G4UIcmdWithAString* fWorldMaterCmd;
G4UIcmdWithADoubleAndUnit* fWorldXCmd;
G4UIcmdWithADoubleAndUnit* fWorldYZCmd;
G4UIcmdWithADoubleAndUnit* MagFieldCmd;
G4UIcmdWithoutParameter* UpdateCmd;
G4UIcmdWithADoubleAndUnit* fMagFieldCmd;
G4UIcmdWithoutParameter* fUpdateCmd;
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: EventAction.hh,v 1.3 2006-06-29 16:54:35 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/EventAction.hh
/// \brief Definition of the EventAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -36,7 +38,6 @@
#include "globals.hh"
class RunAction;
class HistoManager;
class EventMessenger;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -44,41 +45,40 @@ class EventMessenger;
class EventAction : public G4UserEventAction
{
public:
EventAction(RunAction* , HistoManager*);
EventAction(RunAction*);
~EventAction();
public:
void BeginOfEventAction(const G4Event*);
void EndOfEventAction(const G4Event*);
virtual void BeginOfEventAction(const G4Event*);
virtual void EndOfEventAction(const G4Event*);
void AddEnergy (G4double edep) {EnergyDeposit += edep;};
void AddTrakLenCharg(G4double length) {TrakLenCharged += length;};
void AddTrakLenNeutr(G4double length) {TrakLenNeutral += length;};
void AddEnergy (G4double edep) {fEnergyDeposit += edep;};
void AddTrakLenCharg(G4double length) {fTrakLenCharged += length;};
void AddTrakLenNeutr(G4double length) {fTrakLenNeutral += length;};
void CountStepsCharg () {nbStepsCharged++ ;};
void CountStepsNeutr () {nbStepsNeutral++ ;};
void CountStepsCharg () {fNbStepsCharged++ ;};
void CountStepsNeutr () {fNbStepsNeutral++ ;};
void SetTransmitFlag (G4int flag)
{if (flag > TransmitFlag) TransmitFlag = flag;};
{if (flag > fTransmitFlag) fTransmitFlag = flag;};
void SetReflectFlag (G4int flag)
{if (flag > ReflectFlag) ReflectFlag = flag;};
void SetDrawFlag(G4String val) {drawFlag = val;};
void SetPrintModulo(G4int val) {printModulo = val;};
{if (flag > fReflectFlag) fReflectFlag = flag;};
void SetDrawFlag(G4String val) {fDrawFlag = val;};
void SetPrintModulo(G4int val) {fPrintModulo = val;};
private:
RunAction* runaction;
HistoManager* histoManager;
RunAction* fRunAction;
G4double EnergyDeposit;
G4double TrakLenCharged, TrakLenNeutral;
G4int nbStepsCharged, nbStepsNeutral;
G4int TransmitFlag, ReflectFlag;
G4double fEnergyDeposit;
G4double fTrakLenCharged, fTrakLenNeutral;
G4int fNbStepsCharged, fNbStepsNeutral;
G4int fTransmitFlag, fReflectFlag;
G4String drawFlag;
G4int printModulo;
G4String fDrawFlag;
G4int fPrintModulo;
EventMessenger* eventMessenger;
EventMessenger* fEventMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: EventMessenger.hh,v 1.5 2006-06-29 16:54:38 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/EventMessenger.hh
/// \brief Definition of the EventMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,13 +50,13 @@ class EventMessenger: public G4UImessenger
EventMessenger(EventAction*);
~EventMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
EventAction* eventAction;
G4UIdirectory* eventDir;
G4UIcmdWithAString* DrawCmd;
G4UIcmdWithAnInteger* PrintCmd;
EventAction* fEventAction;
G4UIdirectory* fEventDir;
G4UIcmdWithAString* fDrawCmd;
G4UIcmdWithAnInteger* fPrintCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,185 @@
//
// ********************************************************************
// * 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 electromagnetic/TestEm5/include/ExG4HbookAnalysisManager.hh
/// \brief Definition of the ExG4HbookAnalysisManager class
//
// $Id$
//
/// \file ExG4HbookAnalysisManager.hh
/// \brief Definition of the ExG4HbookAnalysisManager class
// Author: Ivana Hrivnacova, 15/06/2011 (ivana@ipno.in2p3.fr)
#ifdef G4_USE_HBOOK
#ifndef ExG4HbookAnalysisManager_h
#define ExG4HbookAnalysisManager_h 1
#include "G4VAnalysisManager.hh"
#include "globals.hh"
#include <tools/hbook/wfile>
#include <tools/hbook/h1>
#include <tools/hbook/h2>
#include <tools/hbook/wntuple>
#include <vector>
#include <map>
#define setpawc setpawc_
#define setntuc setntuc_
//#define ntuc ntuc_
class ExG4HbookAnalysisManager;
namespace G4Hbook {
typedef tools::hbook::h1 G4AnaH1;
typedef ExG4HbookAnalysisManager G4AnalysisManager;
}
/// HBook Analysis manager
///
/// The class implements the G4VAnalysisManager manager for HBook.
/// It is provided separately from geant4/source/analysis in order
/// to avoid a need of linking Geant4 kernel libraries with cerblib.
class ExG4HbookAnalysisManager : public G4VAnalysisManager
{
public:
ExG4HbookAnalysisManager();
virtual ~ExG4HbookAnalysisManager();
// static methods
static ExG4HbookAnalysisManager* Instance();
// Methods to manipulate files
virtual G4bool OpenFile(const G4String& fileName);
virtual G4bool Write();
virtual G4bool CloseFile();
// Methods to create histogrammes, ntuples
virtual G4int CreateH1(const G4String& name, const G4String& title,
G4int nbins, G4double xmin, G4double xmax);
virtual G4int CreateH2(const G4String& name, const G4String& title,
G4int nxbins, G4double xmin, G4double xmax,
G4int nybins, G4double ymin, G4double ymax);
virtual void CreateNtuple(const G4String& name, const G4String& title);
virtual G4int CreateNtupleIColumn(const G4String& name);
virtual G4int CreateNtupleFColumn(const G4String& name);
virtual G4int CreateNtupleDColumn(const G4String& name);
virtual void FinishNtuple();
// Methods to fill histogrammes, ntuples
virtual G4bool FillH1(G4int id, G4double value, G4double weight = 1.0);
virtual G4bool FillH2(G4int id, G4double xvalue, G4double yvalue,
G4double weight = 1.0);
virtual G4bool FillNtupleIColumn(G4int id, G4int value);
virtual G4bool FillNtupleFColumn(G4int id, G4float value);
virtual G4bool FillNtupleDColumn(G4int id, G4double value);
virtual G4bool AddNtupleRow();
// Access methods
virtual tools::hbook::h1* GetH1(G4int id, G4bool warn = true) const;
virtual tools::hbook::h2* GetH2(G4int id, G4bool warn = true) const;
virtual tools::hbook::wntuple* GetNtuple() const;
//tools::hbook::h1* GetH1(const G4String& name, G4bool warn = true) const;
// HBOOK does not allow IDs the same IDs for H1 and H2,
// and also IDs starting from 0; thats why there is defined an offset
// with respect to the G4AnalysisManager generic Ids.
// The default values of these offsets can be changed by the user.
//
// Set the offset of HBOOK ID for H1
// ( default value = firstHistoID if firstHistoID > 0; otherwise = 1)
G4bool SetH1HbookIdOffset(G4int offset);
//
// Set the offset of HBOOK ID for H2
// ( default value = firstHistoID + 100 if firstHistoID > 0; otherwise = 101 )
G4bool SetH2HbookIdOffset(G4int offset);
//
// Set the HBOOK ID for the ntuple
// (default value = 1 )
G4bool SetNtupleHbookId(G4int ntupleId);
G4int GetH1HbookIdOffset() const;
G4int GetH2HbookIdOffset() const;
G4int GetNtupleHbookId() const;
private:
// static data members
//
static ExG4HbookAnalysisManager* fgInstance;
static const G4int fgkDefaultH2HbookIdOffset;
static const G4int fgkDefaultNtupleHbookId;
static const G4String fgkDefaultNtupleDirectoryName;
// methods
//
tools::hbook::wntuple::column<int>* GetNtupleIColumn(G4int id) const;
tools::hbook::wntuple::column<float>* GetNtupleFColumn(G4int id) const;
tools::hbook::wntuple::column<double>* GetNtupleDColumn(G4int id) const;
// data members
//
G4int fH1HbookIdOffset;
G4int fH2HbookIdOffset;
G4int fNtupleHbookId;
tools::hbook::wfile* fFile;
std::vector<tools::hbook::h1*> fH1Vector;
std::map<G4String, tools::hbook::h1*> fH1MapByName;
std::vector<tools::hbook::h2*> fH2Vector;
std::map<G4String, tools::hbook::h2*> fH2MapByName;
G4String fNtupleName;
G4String fNtupleTitle;
tools::hbook::wntuple* fNtuple;
std::map<G4int, tools::hbook::wntuple::column<int>* > fNtupleIColumnMap;
std::map<G4int, tools::hbook::wntuple::column<float>* > fNtupleFColumnMap;
std::map<G4int, tools::hbook::wntuple::column<double>* > fNtupleDColumnMap;
};
// inline functions
inline G4int ExG4HbookAnalysisManager::GetH1HbookIdOffset() const {
return fH1HbookIdOffset;
}
inline G4int ExG4HbookAnalysisManager::GetH2HbookIdOffset() const {
return fH2HbookIdOffset;
}
inline G4int ExG4HbookAnalysisManager::GetNtupleHbookId() const {
return fNtupleHbookId;
}
#endif
#endif
@@ -23,76 +23,35 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: HistoManager.hh,v 1.14 2007-11-30 11:46:25 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/HistoManager.hh
/// \brief Definition of the HistoManager class
//
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef HistoManager_h
#define HistoManager_h 1
#include "globals.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
namespace AIDA {
class IAnalysisFactory;
class ITree;
class IHistogram1D;
}
class HistoMessenger;
const G4int MaxHisto = 50;
#include "g4root.hh"
//#include "g4xml.hh"
////#include "g4hbook.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class HistoManager
{
public:
HistoManager();
~HistoManager();
void SetFileName (const G4String& name) { fileName[0] = name;};
void SetFileType (const G4String& name) { fileType = name;};
void SetFileOption (const G4String& name) { fileOption = 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 RemoveHisto (G4int);
void Scale (G4int, G4double);
void PrintHisto (G4int);
G4bool HistoExist (G4int id) {return exist[id];}
G4double GetHistoUnit(G4int id) {return Unit[id];}
G4double GetBinWidth (G4int id) {return Width[id];}
private:
G4String fileName[2];
G4String fileType;
G4String fileOption;
AIDA::IAnalysisFactory* af;
AIDA::ITree* tree;
AIDA::IHistogram1D* histo[MaxHisto];
G4bool exist[MaxHisto];
G4String Label[MaxHisto];
G4String Title[MaxHisto];
G4int Nbins[MaxHisto];
G4double Vmin [MaxHisto];
G4double Vmax [MaxHisto];
G4double Unit [MaxHisto];
G4double Width[MaxHisto];
G4bool ascii[MaxHisto];
G4bool factoryOn;
HistoMessenger* histoMessenger;
private:
void saveAscii();
void Book();
G4String fFileName;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysListEmStandard.hh,v 1.6 2006-08-10 08:44:39 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PhysListEmStandard.hh
/// \brief Definition of the PhysListEmStandard class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -41,16 +43,16 @@ class PhysListEmStandard : public G4VPhysicsConstructor
{
public:
PhysListEmStandard(const G4String& name = "standard");
virtual ~PhysListEmStandard();
~PhysListEmStandard();
public:
// This method is dummy for physics
void ConstructParticle() {};
virtual void ConstructParticle() {};
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
void ConstructProcess();
virtual void ConstructProcess();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysListEmStandardGS.hh,v 1.1 2009-11-16 13:54:53 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PhysListEmStandardGS.hh
/// \brief Definition of the PhysListEmStandardGS class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -41,16 +43,16 @@ class PhysListEmStandardGS : public G4VPhysicsConstructor
{
public:
PhysListEmStandardGS(const G4String& name = "standardGS");
virtual ~PhysListEmStandardGS();
~PhysListEmStandardGS();
public:
// This method is dummy for physics
void ConstructParticle() {};
virtual void ConstructParticle() {};
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
void ConstructProcess();
virtual void ConstructProcess();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysListEmStandardSS.hh,v 1.1 2006-08-10 08:45:14 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PhysListEmStandardSS.hh
/// \brief Definition of the PhysListEmStandardSS class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -41,16 +43,16 @@ class PhysListEmStandardSS : public G4VPhysicsConstructor
{
public:
PhysListEmStandardSS(const G4String& name = "standardSS");
virtual ~PhysListEmStandardSS();
~PhysListEmStandardSS();
public:
// This method is dummy for physics
void ConstructParticle() {};
virtual void ConstructParticle() {};
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
void ConstructProcess();
virtual void ConstructProcess();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,52 +23,46 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: HistoMessenger.hh,v 1.8 2007-11-12 17:48:16 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PhysListEmStandardSSM.hh
/// \brief Definition of the PhysListEmStandardSSM class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef HistoMessenger_h
#define HistoMessenger_h 1
#ifndef PhysListEmStandardSSM_h
#define PhysListEmStandardSSM_h 1
#include "G4UImessenger.hh"
#include "G4VPhysicsConstructor.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
class PhysListEmStandardSSM : public G4VPhysicsConstructor
{
public:
HistoMessenger(HistoManager* );
~HistoMessenger();
void SetNewValue(G4UIcommand* ,G4String );
private:
HistoManager* histoManager;
G4UIdirectory* histoDir;
G4UIcmdWithAString* factoryCmd;
G4UIcmdWithAString* typeCmd;
G4UIcmdWithAString* optionCmd;
G4UIcommand* histoCmd;
G4UIcmdWithAnInteger* prhistoCmd;
G4UIcmdWithAnInteger* rmhistoCmd;
public:
PhysListEmStandardSSM(const G4String& name = "standardSSM");
~PhysListEmStandardSSM();
public:
// This method is dummy for physics
virtual void ConstructParticle() {};
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
virtual void ConstructProcess();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -23,9 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file electromagnetic/TestEm5/include/PhysListEmStandardWVI.hh
/// \brief Definition of the PhysListEmStandardWVI class
//
// $Id: PhysListEmStandardWVI.hh,v 1.1 2010-11-19 15:59:01 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -46,12 +48,12 @@ class PhysListEmStandardWVI : public G4VPhysicsConstructor
public:
// This method is dummy for physics
void ConstructParticle() {};
virtual void ConstructParticle() {};
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
void ConstructProcess();
virtual void ConstructProcess();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysicsList.hh,v 1.11 2009-03-06 18:04:23 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PhysicsList.hh
/// \brief Definition of the PhysicsList class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -44,31 +46,31 @@ class PhysicsList: public G4VModularPhysicsList
{
public:
PhysicsList();
virtual ~PhysicsList();
~PhysicsList();
void ConstructParticle();
virtual void ConstructParticle();
void AddPhysicsList(const G4String& name);
void ConstructProcess();
virtual void ConstructProcess();
void AddDecay();
void AddStepMax();
void SetCuts();
virtual void SetCuts();
void SetCutForGamma(G4double);
void SetCutForElectron(G4double);
void SetCutForPositron(G4double);
private:
PhysicsListMessenger* pMessenger;
PhysicsListMessenger* fMessenger;
G4String emName;
G4VPhysicsConstructor* emPhysicsList;
G4String fEmName;
G4VPhysicsConstructor* fEmPhysicsList;
G4double cutForGamma;
G4double cutForElectron;
G4double cutForPositron;
G4double fCutForGamma;
G4double fCutForElectron;
G4double fCutForPositron;
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysicsListMessenger.hh,v 1.9 2009-03-06 18:04:23 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PhysicsListMessenger.hh
/// \brief Definition of the PhysicsListMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -47,20 +49,20 @@ class PhysicsListMessenger: public G4UImessenger
public:
PhysicsListMessenger(PhysicsList* );
~PhysicsListMessenger();
~PhysicsListMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
PhysicsList* pPhysicsList;
PhysicsList* fPhysicsList;
G4UIdirectory* physDir;
G4UIcmdWithAString* pListCmd;
G4UIcmdWithADoubleAndUnit* gammaCutCmd;
G4UIcmdWithADoubleAndUnit* electCutCmd;
G4UIcmdWithADoubleAndUnit* protoCutCmd;
G4UIcmdWithADoubleAndUnit* allCutCmd;
G4UIdirectory* fPhysDir;
G4UIcmdWithAString* fListCmd;
G4UIcmdWithADoubleAndUnit* fGammaCutCmd;
G4UIcmdWithADoubleAndUnit* fElectCutCmd;
G4UIcmdWithADoubleAndUnit* fProtoCutCmd;
G4UIcmdWithADoubleAndUnit* fAllCutCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PrimaryGeneratorAction.hh,v 1.4 2006-06-29 16:55:08 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,16 +52,16 @@ class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
public:
void SetDefaultKinematic();
void SetRndmBeam(G4double val) {rndmBeam = val;};
void GeneratePrimaries(G4Event*);
G4ParticleGun* GetParticleGun() {return particleGun;};
void SetRndmBeam(G4double val) {fRndmBeam = val;};
virtual void GeneratePrimaries(G4Event*);
G4ParticleGun* GetParticleGun() {return fParticleGun;};
private:
G4ParticleGun* particleGun;
DetectorConstruction* Detector;
G4double rndmBeam;
G4ParticleGun* fParticleGun;
DetectorConstruction* fDetector;
G4double fRndmBeam;
PrimaryGeneratorMessenger* gunMessenger;
PrimaryGeneratorMessenger* fGunMessenger;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PrimaryGeneratorMessenger.hh,v 1.4 2006-06-29 16:55:10 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/PrimaryGeneratorMessenger.hh
/// \brief Definition of the PrimaryGeneratorMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,14 +50,14 @@ class PrimaryGeneratorMessenger: public G4UImessenger
PrimaryGeneratorMessenger(PrimaryGeneratorAction*);
~PrimaryGeneratorMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
PrimaryGeneratorAction* Action;
PrimaryGeneratorAction* fAction;
G4UIdirectory* gunDir;
G4UIcmdWithoutParameter* DefaultCmd;
G4UIcmdWithADouble* RndmCmd;
G4UIdirectory* fGunDir;
G4UIcmdWithoutParameter* fDefaultCmd;
G4UIcmdWithADouble* fRndmCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RunAction.hh,v 1.9 2009-01-22 17:41:43 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/RunAction.hh
/// \brief Definition of the RunAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -54,68 +56,68 @@ class RunAction : public G4UserRunAction
public:
RunAction(DetectorConstruction*, PrimaryGeneratorAction*, HistoManager*);
virtual ~RunAction();
RunAction(DetectorConstruction*, PrimaryGeneratorAction*);
~RunAction();
void BeginOfRunAction(const G4Run*);
void EndOfRunAction(const G4Run*);
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
void AddEnergy (G4double edep)
{EnergyDeposit += edep; EnergyDeposit2 += edep*edep;};
{fEnergyDeposit += edep; fEnergyDeposit2 += edep*edep;};
void AddTrakLenCharg (G4double length)
{TrakLenCharged += length; TrakLenCharged2 += length*length;};
{fTrakLenCharged += length; fTrakLenCharged2 += length*length;};
void AddTrakLenNeutr (G4double length)
{TrakLenNeutral += length; TrakLenNeutral2 += length*length;};
{fTrakLenNeutral += length; fTrakLenNeutral2 += length*length;};
void AddMscProjTheta (G4double theta)
{if (std::abs(theta) <= MscThetaCentral) { MscEntryCentral++;
MscProjecTheta += theta; MscProjecTheta2 += theta*theta;}
};
{if (std::abs(theta) <= fMscThetaCentral) { fMscEntryCentral++;
fMscProjecTheta += theta; fMscProjecTheta2 += theta*theta;}
};
void CountStepsCharg (G4int nSteps)
{nbStepsCharged += nSteps; nbStepsCharged2 += nSteps*nSteps;};
{fNbStepsCharged += nSteps; fNbStepsCharged2 += nSteps*nSteps;};
void CountStepsNeutr (G4int nSteps)
{nbStepsNeutral += nSteps; nbStepsNeutral2 += nSteps*nSteps;};
{fNbStepsNeutral += nSteps; fNbStepsNeutral2 += nSteps*nSteps;};
void CountParticles (G4ParticleDefinition* part)
{ if (part == G4Gamma::Gamma()) nbGamma++ ;
else if (part == G4Electron::Electron()) nbElect++ ;
else if (part == G4Positron::Positron()) nbPosit++ ; };
{ if (part == G4Gamma::Gamma()) fNbGamma++ ;
else if (part == G4Electron::Electron()) fNbElect++ ;
else if (part == G4Positron::Positron()) fNbPosit++ ; };
void CountTransmit (G4int flag)
{ if (flag == 1) Transmit[0]++;
else if (flag == 2) {Transmit[0]++; Transmit[1]++; }};
{ if (flag == 1) fTransmit[0]++;
else if (flag == 2) {fTransmit[0]++; fTransmit[1]++; }};
void CountReflect (G4int flag)
{ if (flag == 1) Reflect[0]++;
else if (flag == 2) {Reflect[0]++; Reflect[1]++; }};
{ if (flag == 1) fReflect[0]++;
else if (flag == 2) {fReflect[0]++; fReflect[1]++; }};
G4double ComputeMscHighland();
void AddEnergyLeak (G4double eleak, G4int index)
{ EnergyLeak[index] += eleak; EnergyLeak2[index] += eleak*eleak;};
{ fEnergyLeak[index] += eleak; fEnergyLeak2[index] += eleak*eleak;};
private:
G4double EnergyDeposit, EnergyDeposit2;
G4double TrakLenCharged, TrakLenCharged2;
G4double TrakLenNeutral, TrakLenNeutral2;
G4double nbStepsCharged, nbStepsCharged2;
G4double nbStepsNeutral, nbStepsNeutral2;
G4double MscProjecTheta, MscProjecTheta2;
G4double MscThetaCentral;
G4double fEnergyDeposit, fEnergyDeposit2;
G4double fTrakLenCharged, fTrakLenCharged2;
G4double fTrakLenNeutral, fTrakLenNeutral2;
G4double fNbStepsCharged, fNbStepsCharged2;
G4double fNbStepsNeutral, fNbStepsNeutral2;
G4double fMscProjecTheta, fMscProjecTheta2;
G4double fMscThetaCentral;
G4int nbGamma, nbElect, nbPosit;
G4int Transmit[2], Reflect[2];
G4int MscEntryCentral;
G4int fNbGamma, fNbElect, fNbPosit;
G4int fTransmit[2], fReflect[2];
G4int fMscEntryCentral;
G4double EnergyLeak[2], EnergyLeak2[2];
G4double fEnergyLeak[2], fEnergyLeak2[2];
DetectorConstruction* detector;
PrimaryGeneratorAction* primary;
HistoManager* histoManager;
DetectorConstruction* fDetector;
PrimaryGeneratorAction* fPrimary;
HistoManager* fHistoManager;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StackingAction.hh,v 1.4 2006-09-25 17:06:29 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/StackingAction.hh
/// \brief Definition of the StackingAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -37,7 +39,6 @@
class RunAction;
class EventAction;
class HistoManager;
class StackingMessenger;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -45,20 +46,19 @@ class StackingMessenger;
class StackingAction : public G4UserStackingAction
{
public:
StackingAction(RunAction*,EventAction*,HistoManager* );
StackingAction(RunAction*,EventAction*);
~StackingAction();
void SetKillStatus(G4int value) {killSecondary = value;};
void SetKillStatus(G4int value) { fKillSecondary = value;};
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*);
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*);
private:
RunAction* runaction;
EventAction* eventaction;
HistoManager* histoManager;
RunAction* fRunAction;
EventAction* fEventAction;
G4int killSecondary;
StackingMessenger* stackMessenger;
G4int fKillSecondary;
StackingMessenger* fStackMessenger;
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StackingMessenger.hh,v 1.6 2006-09-25 17:06:29 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/StackingMessenger.hh
/// \brief Definition of the StackingMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -47,13 +49,13 @@ class StackingMessenger: public G4UImessenger
StackingMessenger(StackingAction*);
~StackingMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
StackingAction* stackAction;
StackingAction* fStackAction;
G4UIdirectory* stackDir;
G4UIcmdWithAnInteger* killCmd;
G4UIdirectory* fStackDir;
G4UIcmdWithAnInteger* fKillCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StepMax.hh,v 1.3 2006-06-29 16:55:19 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/StepMax.hh
/// \brief Definition of the StepMax class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -48,23 +50,23 @@ class StepMax : public G4VDiscreteProcess
StepMax(const G4String& processName ="UserStepMax");
~StepMax();
G4bool IsApplicable(const G4ParticleDefinition&);
virtual G4bool IsApplicable(const G4ParticleDefinition&);
void SetMaxStep(G4double);
G4double GetMaxStep() {return MaxChargedStep;};
G4double GetMaxStep() {return fMaxChargedStep;};
G4double PostStepGetPhysicalInteractionLength( const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition);
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition);
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
G4double GetMeanFreePath(const G4Track&, G4double, G4ForceCondition*)
virtual G4double GetMeanFreePath(const G4Track&,G4double,G4ForceCondition*)
{return 0.;}; // it is not needed here !
private:
G4double MaxChargedStep;
StepMaxMessenger* pMess;
G4double fMaxChargedStep;
StepMaxMessenger* fMess;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: StepMaxMessenger.hh,v 1.3 2006-06-29 16:55:21 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/StepMaxMessenger.hh
/// \brief Definition of the StepMaxMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -46,11 +48,11 @@ class StepMaxMessenger: public G4UImessenger
StepMaxMessenger(StepMax*);
~StepMaxMessenger();
void SetNewValue(G4UIcommand*, G4String);
virtual void SetNewValue(G4UIcommand*, G4String);
private:
StepMax* pStepMax;
G4UIcmdWithADoubleAndUnit* StepMaxCmd;
StepMax* fStepMax;
G4UIcmdWithADoubleAndUnit* fStepMaxCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: SteppingAction.hh,v 1.4 2009-03-06 18:04:23 maire Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/SteppingAction.hh
/// \brief Definition of the SteppingAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -38,23 +40,21 @@
class DetectorConstruction;
class RunAction;
class EventAction;
class HistoManager;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class SteppingAction : public G4UserSteppingAction
{
public:
SteppingAction(DetectorConstruction*,RunAction*,EventAction*,HistoManager* );
SteppingAction(DetectorConstruction*,RunAction*,EventAction*);
~SteppingAction();
void UserSteppingAction(const G4Step*);
virtual void UserSteppingAction(const G4Step*);
private:
DetectorConstruction* detector;
RunAction* runaction;
EventAction* eventaction;
HistoManager* histoManager;
DetectorConstruction* fDetector;
RunAction* fRunAction;
EventAction* fEventAction;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: SteppingVerbose.hh,v 1.3 2006-06-29 16:55:25 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/SteppingVerbose.hh
/// \brief Definition of the SteppingVerbose class
//
// $Id$
//
// This class manages the verbose outputs in G4SteppingManager.
// It inherits from G4SteppingVerbose.
@@ -47,8 +49,8 @@ public:
SteppingVerbose();
~SteppingVerbose();
void StepInfo();
void TrackingStarted();
virtual void StepInfo();
virtual void TrackingStarted();
};
@@ -23,8 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: TrackingAction.hh,v 1.4 2006-06-29 16:55:27 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// \file electromagnetic/TestEm5/include/TrackingAction.hh
/// \brief Definition of the TrackingAction class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -38,27 +40,25 @@
class DetectorConstruction;
class RunAction;
class EventAction;
class HistoManager;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class TrackingAction : public G4UserTrackingAction {
public:
TrackingAction(DetectorConstruction*,RunAction*,EventAction*,HistoManager* );
TrackingAction(DetectorConstruction*,RunAction*,EventAction*);
~TrackingAction() {};
void PreUserTrackingAction(const G4Track*);
void PostUserTrackingAction(const G4Track*);
virtual void PreUserTrackingAction(const G4Track*);
virtual void PostUserTrackingAction(const G4Track*);
private:
DetectorConstruction* detector;
RunAction* runaction;
EventAction* eventaction;
HistoManager* histoManager;
DetectorConstruction* fDetector;
RunAction* fRunAction;
EventAction* fEventAction;
G4double xstartAbs, xendAbs;
G4double primaryCharge;
G4double fXstartAbs, fXendAbs;
G4double fPrimaryCharge;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,42 @@
//
// ********************************************************************
// * 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 electromagnetic/TestEm5/include/g4hbook.hh
/// \brief Definition of the g4hbook class
//
// $Id$
// Author: Ivana Hrivnacova, 15/06/2011 (ivana@ipno.in2p3.fr)
#ifndef g4hbook_h
#define g4hbook_h
#include "g4hbook_defs.hh"
using namespace G4Hbook;
#endif
@@ -0,0 +1,51 @@
//
// ********************************************************************
// * 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 electromagnetic/TestEm5/include/g4hbook_defs.hh
/// \brief Definition of the g4hbook_defs class
//
// $Id$
// Author: Ivana Hrivnacova, 15/06/2011 (ivana@ipno.in2p3.fr)
#ifndef g4hbook_defs_h
#define g4hbook_defs_h
#include <tools/hbook/h1>
#include <tools/hbook/h2>
#include <tools/hbook/wntuple>
#include "ExG4HbookAnalysisManager.hh"
namespace G4Hbook {
typedef tools::hbook::h1 G4AnaH1;
typedef tools::hbook::h2 G4AnaH2;
typedef tools::hbook::wntuple G4Ntuple;
typedef ExG4HbookAnalysisManager G4AnalysisManager;
}
#endif