Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -33,181 +33,19 @@
// -----------
// 16 Jan 2002 Alex Howard Created
// 22 Oct 2009 Luciano Pandola Added TreeFactory, removed ntuple4
//
// 31 May 2013 Luciano Pandola Migrated to g4analysis
// -------------------------------------------------------------------
#ifdef G4ANALYSIS_USE
#ifndef DMXAnalysisManager_h
#define DMXAnalysisManager_h 1
#include "globals.hh"
#include "g4root.hh"
//#include "g4xml.hh"
//#include "g4csv.hh" // can be used only with ntuples
// Histogramming from AIDA
#include "AIDA/IAnalysisFactory.h"
#include "AIDA/ITreeFactory.h"
#include "AIDA/ITree.h"
#include "AIDA/IHistogramFactory.h"
#include "AIDA/IHistogram1D.h"
#include "AIDA/IHistogram2D.h"
#include "AIDA/IHistogram3D.h"
// #include "AIDA/IPlotterFactory.h"
// #include "AIDA/IPlotterRegion.h"
// #include "AIDA/IPlotter.h"
#include "AIDA/ITupleFactory.h"
#include "AIDA/ITuple.h"
#include "AIDA/IManagedObject.h"
// # include "AIDA/IFitter.h"
// # include "AIDA/IFitResult.h"
// # include "AIDA/IFitData.h"
// # include "AIDA/IRangeSet.h"
// # include "AIDA/IFitParameterSettings.h"
// # include "AIDA/IFunctionFactory.h"
// # include "AIDA/IFunction.h"
// # include "AIDA/IFitFactory.h"
namespace AIDA {
class IAnalysisFactory;
class ITree;
class ITreeFactory;
class IHistogramFactory;
class ITupleFactory;
class ITuple;
class IHistogram1D;
class IHistogram2D;
//class IPlotter;
// class IFitter;
//class IFitResult;
//class IFitData;
//class IRangeSet;
//class IFitParameterSettings;
//class IFunctionFactory;
//class IFunction;
//class IFitFactory;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class DMXAnalysisManager
{
public:
virtual ~DMXAnalysisManager();
// void book();
void book(G4String, G4bool);
void Init();
void Finish();
//fill histograms with SHC (Scint Hits) data from DMXEventAction
void analyseScintHits(G4int event_id, G4double energy_pri, G4double totEnergy, G4int S_hits, G4double firstLXeHitTime, G4int P_hits, G4double aveTimePmtHits, G4String firstparticleName, G4double firstParticleE, G4bool gamma_ev, G4bool neutron_ev, G4bool positron_ev, G4bool electron_ev, G4bool other_ev, long seed1, long seed2);
//fill histograms with PHC (Pmt Hits) data from DMXEventAction
void analysePMTHits(G4int, G4int, G4double, G4double, G4double);
//fill histograms with data from DMXParticleSource / secondary history
void analyseParticleSource(G4double, G4String);
//fill histograms with data from DMXPrimaryGenerator
void analysePrimaryGenerator(G4double);
//fill histograms with data from DMXPrimaryGenerator
void HistTime(G4double);
//fit exponential decay time of scintillation time:
void PulseTimeFit();
//Method to interactively display histograms
void PlotHistos(G4bool);
//Method to interactively display histograms
void PlotHistosInit();
//Method to interactively display histograms
void PlotHistosInter(G4int flag);
//method to call to create an instance of this class
static DMXAnalysisManager* getInstance();
private:
//private constructor in order to create a singleton
DMXAnalysisManager();
static DMXAnalysisManager* instance;
// Quantities for the ntuple
G4int event_id;
G4double energy_pri;
G4double totEnergy;
G4int S_hits;
G4double firstLXeHitTime;
G4int P_hits;
G4double aveTimePmtHits;
G4String firstparticleName;
G4double firstParticleE;
G4bool gamma_ev;
G4bool neutron_ev;
G4bool positron_ev;
G4bool electron_ev;
G4bool other_ev;
long seed1; long seed2;
G4int i; G4double x; G4double y; G4double z;
G4double energy; G4double name;
G4double time;
G4bool interactive;
AIDA::IAnalysisFactory *af;
AIDA::ITreeFactory *tf;
AIDA::ITree *tree;
AIDA::IHistogramFactory *hf;
AIDA::ITupleFactory *tpf;
AIDA::ITuple *ntuple1;
AIDA::ITuple *ntuple2;
AIDA::ITuple *ntuple3;
AIDA::IHistogram1D* hEsourcep;
AIDA::IHistogram1D* hEdepp;
AIDA::IHistogram1D* hEdepRecoil;
AIDA::IHistogram1D* hNumPhLow;
AIDA::IHistogram1D* hNumPhHigh;
AIDA::IHistogram1D* hAvPhArrival;
AIDA::IHistogram1D* hPhArrival;
AIDA::IHistogram2D* hPMTHits;
AIDA::IHistogram2D* h1stPMTHit;
AIDA::IHistogram1D* hGammaEdep;
AIDA::IHistogram1D* hNeutronEdep;
AIDA::IHistogram1D* hElectronEdep;
AIDA::IHistogram1D* hPositronEdep;
AIDA::IHistogram1D* hOtherEdep;
//AIDA::IFunctionFactory *funFact;
//AIDA::IFitFactory *fitFact;
//AIDA::IFunction *exponFun;
//AIDA::IFunction *gaussFun;
//AIDA::IFitter *e_fitter;
///AIDA::IFitResult *fitResult;
};
#endif
#endif
@@ -93,11 +93,7 @@ private:
#include "DMXDetectorMaterial.ihh" // materials used
G4double worldRadius; // sizes
G4double worldHeight;
G4double sourceZ;
G4double sourceZ2;
G4LogicalVolume* world_log; // pointers
G4VPhysicalVolume* world_phys;
@@ -151,9 +147,7 @@ private:
G4LogicalVolume* liqLag_log;
G4VPhysicalVolume* liqLag_phys;
G4LogicalVolume* alpha_log;
G4VPhysicalVolume* alpha_phys;
G4LogicalVolume* recess_log;
G4VPhysicalVolume* recess_phys;
G4VPhysicalVolume* alpha_phys;
G4LogicalVolume* americium_log;
G4VPhysicalVolume* americium_phys;
G4LogicalVolume* ring_log;
@@ -60,5 +60,4 @@
G4Material* mirror_mat;
G4Material* grid_mat;
G4Material* pmt_mat;
G4Material* window_mat;
G4Material* phcath_mat;
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: DMXMinEkineCuts.hh 66357 2012-12-18 09:06:10Z gcosmo $
//
//
// ------------------------------------------------------------
@@ -106,7 +106,7 @@ class DMXParticleSource : public G4VPrimaryGenerator {
G4String VolName;
G4String AngDistType;
G4double MinTheta, MaxTheta, MinPhi, MaxPhi;
G4double Theta, Phi;
G4double Phi;
G4String EnergyDisType;
G4double MonoEnergy;
@@ -96,9 +96,6 @@ private:
G4double cutForGamma;
G4double cutForElectron;
G4double cutForPositron;
G4double cutForProton;
G4double cutForAlpha;
G4double cutForGenericIon;
// these methods Construct particles
void ConstructMyBosons();
@@ -49,7 +49,6 @@
#include "DMXPmtHit.hh"
class DMXDetectorConstruction;
class G4Step;
class G4HCofThisEvent;
@@ -57,7 +56,7 @@ class DMXPmtSD : public G4VSensitiveDetector {
public:
DMXPmtSD(G4String, DMXDetectorConstruction*);
DMXPmtSD(G4String);
~DMXPmtSD();
void Initialize(G4HCofThisEvent*);
@@ -70,7 +69,6 @@ class DMXPmtSD : public G4VSensitiveDetector {
private:
DMXPmtHitsCollection* pmtCollection;
DMXDetectorConstruction* DMXDetector;
G4int HitID;
};
@@ -65,21 +65,18 @@ class DMXRunAction : public G4UserRunAction
void SetsavehitsFile (G4String val) { savehitsFile = val;};
void SetsavepmtFile (G4String val) { savepmtFile = val;};
void SetsavehistFile (G4String val) { savehistFile = val;};
void Setplotevent (G4bool valb) { plotevent = valb;};
void Setinteractplot (G4bool valb) { interactplot = valb;};
void Finish();
G4String GetsavehitsFile() {return savehitsFile;};
G4String GetsavepmtFile() {return savepmtFile;};
G4bool Getplotevent() {return plotevent;};
private:
void Book();
//messenger
G4String savehitsFile;
G4String savepmtFile;
G4String savehistFile;
G4bool plotevent;
G4bool interactplot;
DMXRunActionMessenger* runMessenger;
@@ -65,8 +65,6 @@ class DMXRunActionMessenger: public G4UImessenger
G4UIcmdWithAString* SaveHitsCmd;
G4UIcmdWithAString* SavePmtCmd;
G4UIcmdWithAString* SaveHistFileCmd;
G4UIcmdWithABool* PlotEventCmd;
G4UIcmdWithABool* InteractPlotCmd;
};
#endif
@@ -46,7 +46,6 @@
#include "globals.hh"
#include "DMXScintHit.hh"
class DMXDetectorConstruction;
class G4Step;
class G4HCofThisEvent;
@@ -56,7 +55,7 @@ class DMXScintSD : public G4VSensitiveDetector
{
public:
DMXScintSD(G4String, DMXDetectorConstruction*);
DMXScintSD(G4String);
~DMXScintSD();
void Initialize(G4HCofThisEvent*);
@@ -69,7 +68,6 @@ class DMXScintSD : public G4VSensitiveDetector
private:
DMXScintHitsCollection* scintillatorCollection;
DMXDetectorConstruction* DMXDetector;
G4int HitID;
};