Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
// Histogramming from AIDA
|
||||
|
||||
|
||||
#include "AIDA/IAnalysisFactory.h"
|
||||
|
||||
#include "AIDA/ITreeFactory.h"
|
||||
@@ -53,6 +54,7 @@
|
||||
#include "AIDA/IHistogram3D.h"
|
||||
|
||||
#include "AIDA/IPlotterFactory.h"
|
||||
#include "AIDA/IPlotterRegion.h"
|
||||
#include "AIDA/IPlotter.h"
|
||||
|
||||
#include "AIDA/ITupleFactory.h"
|
||||
@@ -60,12 +62,35 @@
|
||||
|
||||
#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 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;
|
||||
|
||||
}
|
||||
|
||||
class IAnalysisFactory;
|
||||
class ITree;
|
||||
class IHistogramFactory;
|
||||
class ITupleFactory;
|
||||
class ITuple;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -76,9 +101,10 @@ public:
|
||||
virtual ~DMXAnalysisManager();
|
||||
|
||||
// void book();
|
||||
void book(G4String);
|
||||
void book(G4String, G4bool);
|
||||
|
||||
void finish();
|
||||
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);
|
||||
@@ -93,15 +119,18 @@ public:
|
||||
void analysePrimaryGenerator(G4double);
|
||||
|
||||
//fill histograms with data from DMXPrimaryGenerator
|
||||
void HistFirstTime(G4double);
|
||||
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();
|
||||
void PlotHistosInter(G4int flag);
|
||||
|
||||
//method to call to create an instance of this class
|
||||
static DMXAnalysisManager* getInstance();
|
||||
@@ -128,12 +157,38 @@ private:
|
||||
|
||||
G4bool interactive;
|
||||
|
||||
IAnalysisFactory *af;
|
||||
ITree *tree;
|
||||
IHistogramFactory *hf;
|
||||
ITupleFactory *tpf;
|
||||
IPlotterFactory *pf;
|
||||
IPlotter *plotter;
|
||||
AIDA::IAnalysisFactory *af;
|
||||
AIDA::ITree *tree;
|
||||
AIDA::IHistogramFactory *hf;
|
||||
AIDA::ITupleFactory *tpf;
|
||||
AIDA::IPlotterFactory *pf;
|
||||
AIDA::IPlotter *plotter;
|
||||
AIDA::ITuple *ntuple1;
|
||||
AIDA::ITuple *ntuple2;
|
||||
AIDA::ITuple *ntuple3;
|
||||
AIDA::ITuple *ntuple4;
|
||||
|
||||
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
|
||||
|
||||
@@ -1,3 +1,41 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 - Underground Dark Matter Detector Advanced Example
|
||||
//
|
||||
// For information related to this code contact: Alex Howard
|
||||
// e-mail: a.s.howard@ic.ac.uk
|
||||
// --------------------------------------------------------------
|
||||
// Comments
|
||||
//
|
||||
// Underground Advanced
|
||||
// by A. Howard and H. Araujo
|
||||
// (29th August 2002)
|
||||
//
|
||||
// Materials include header
|
||||
// --------------------------------------------------------------
|
||||
|
||||
G4Material* world_mat; // materials used
|
||||
G4Material* lab_mat;
|
||||
G4Material* cupboard_mat;
|
||||
|
||||
@@ -1,3 +1,41 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 - Underground Dark Matter Detector Advanced Example
|
||||
//
|
||||
// For information related to this code contact: Alex Howard
|
||||
// e-mail: a.s.howard@ic.ac.uk
|
||||
// --------------------------------------------------------------
|
||||
// Comments
|
||||
//
|
||||
// Underground Advanced
|
||||
// by A. Howard and H. Araujo
|
||||
// (29th August 2002)
|
||||
//
|
||||
// Detector Room include header
|
||||
// --------------------------------------------------------------
|
||||
|
||||
G4LogicalVolume* glass_log;
|
||||
G4VPhysicalVolume* glass_phys;
|
||||
G4LogicalVolume* window_log;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: DMXMinEkineCuts.hh,v 1.2 2002/06/18 10:17:30 ahoward Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -48,7 +48,8 @@ class DMXPhysicsList: public G4VUserPhysicsList
|
||||
{
|
||||
public:
|
||||
DMXPhysicsList();
|
||||
virtual ~DMXPhysicsList();
|
||||
~DMXPhysicsList();
|
||||
// virtual ~DMXPhysicsList();
|
||||
|
||||
|
||||
public:
|
||||
@@ -89,7 +90,6 @@ private:
|
||||
G4double cutForProton;
|
||||
G4double cutForAlpha;
|
||||
G4double cutForGenericIon;
|
||||
G4double cutForOpticalPhoton;
|
||||
|
||||
// these methods Construct particles
|
||||
void ConstructMyBosons();
|
||||
|
||||
@@ -62,10 +62,12 @@ 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;};
|
||||
|
||||
G4String GetsavehitsFile() {return savehitsFile;};
|
||||
G4String GetsavepmtFile() {return savepmtFile;};
|
||||
G4bool Getplotevent() {return plotevent;};
|
||||
|
||||
private:
|
||||
|
||||
@@ -73,6 +75,7 @@ class DMXRunAction : public G4UserRunAction
|
||||
G4String savehitsFile;
|
||||
G4String savepmtFile;
|
||||
G4String savehistFile;
|
||||
G4bool plotevent;
|
||||
G4bool interactplot;
|
||||
|
||||
DMXRunActionMessenger* runMessenger;
|
||||
|
||||
@@ -62,6 +62,7 @@ class DMXRunActionMessenger: public G4UImessenger
|
||||
G4UIcmdWithAString* SaveHitsCmd;
|
||||
G4UIcmdWithAString* SavePmtCmd;
|
||||
G4UIcmdWithAString* SaveHistFileCmd;
|
||||
G4UIcmdWithABool* PlotEventCmd;
|
||||
G4UIcmdWithABool* InteractPlotCmd;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user