Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: XrayTelAnalysis.hh-Anaphe,v 1.1 2001/12/10 16:06:37 pfeiffer Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: XrayTelAnalysis.hh,v 1.6 2002/11/19 18:03:14 santin Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// Author: A. Pfeiffer (Andreas.Pfeiffer@cern.ch)
// (copy of his UserAnalyser class)
@@ -58,27 +58,37 @@
#define G4PROCESSTESTANALYSIS_HH
#include "globals.hh"
#include "G4ios.hh"
// Histogramming from AIDA (through their copy in Anaphe)
#include "Interfaces/IHistogram1D.h"
#include "Interfaces/IHistogram2D.h"
#ifdef G4ANALYSIS_USE
#include "AIDA/IAnalysisFactory.h"
// Histogramming from Anaphe
#include "Interfaces/IHistoManager.h"
#include "AIDA/ITreeFactory.h"
#include "AIDA/ITree.h"
// Ntuples from Anaphe
#include "NtupleTag/LizardNTupleFactory.h"
#include "NtupleTag/LizardQuantity.h"
#include "AIDA/IHistogramFactory.h"
#include "AIDA/IHistogram1D.h"
#include "AIDA/IHistogram2D.h"
#include "AIDA/IHistogram3D.h"
// Vectors from Anaphe
#include "Interfaces/IVector.h"
#include "Interfaces/IVectorFactory.h"
#include "AIDA/IPlotterFactory.h"
#include "AIDA/IPlotterRegion.h"
#include "AIDA/IPlotter.h"
// Plotting from Anaphe
#include "Interfaces/IPlotter.h"
#include "AIDA/ITupleFactory.h"
#include "AIDA/ITuple.h"
#include "AIDA/IManagedObject.h"
// Histogramming from AIDA
class IAnalysisFactory;
class ITree;
class IHistogramFactory;
class ITupleFactory;
class ITuple;
#endif
class G4Track;
class NTuple;
class XrayTelAnalysis
{
@@ -98,28 +108,35 @@ private:
XrayTelAnalysis();
void plot1D(IHistogram1D* histo);
void plot2D(IHistogram2D* histo);
#ifdef G4ANALYSIS_USE_PLOTTER
void plotAll();
#endif
static XrayTelAnalysis* instance;
IHistoManager* histoManager;
IVectorFactory* vectorFactory;
IPlotter* plotter;
// ---- NOTE ----
// Histograms are compliant to AIDA interfaces, ntuples are Lizard specific
Lizard::NTuple* ntuple;
Lizard::NTupleFactory* ntFactory;
#ifdef G4ANALYSIS_USE
AIDA::IAnalysisFactory *analysisFactory;
AIDA::ITree *tree;
AIDA::IHistogramFactory *histoFactory;
AIDA::ITupleFactory *tupleFactory;
#ifdef G4ANALYSIS_USE_PLOTTER
AIDA::IPlotterFactory *plotterFactory;
AIDA::IPlotter *plotter;
#endif
#endif
// Quantities for the ntuple
Lizard::Quantity<float> eKin;
Lizard::Quantity<float> y;
Lizard::Quantity<float> z;
Lizard::Quantity<float> dirX;
Lizard::Quantity<float> dirY;
Lizard::Quantity<float> dirZ;
G4double eKin;
G4double x;
G4double y;
G4double z;
G4double dirX;
G4double dirY;
G4double dirZ;
G4String asciiFileName;
G4String histFileName;
G4String histFileType;
// G4std::ofstream asciiFile;
};
@@ -1,95 +0,0 @@
//
// ********************************************************************
// * 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 xray_telescope advanced example *
// * *
// * MODULE: XrayTelAnalysisManager.cc *
// * ------- *
// * *
// * Version: 0.2 *
// * Date: 30/11/00 *
// * Author: A. Pfeiffer, G. Barrand, MG Pia, R Nartallo *
// * Organisation: ESA/ESTEC, Noordwijk, THe Netherlands *
// * *
// **********************************************************************
//
// CHANGE HISTORY
// --------------
//
// 07.12.2001 A.Pfeiffer
// - merged with Guy Barrand's AIDA 2.2 port
//
// 30.11.2000 M.G. Pia, R. Nartallo
// - Simplification of code
// - Inheritance directly from the base class G4VAnalysisManager instead
// of the derived class G4AnalysisManager
//
// 16.10.2000 G. Barrand
// - First implementation of XrayAnalysisManager class
// - Provision of code for various AIDA and non-AIDA systems
//
// **********************************************************************
#ifndef XrayTelAnalysis_h
#define XrayTelAnalysis_h 1
#include "globals.hh"
#include "g4std/vector"
#include "G4ThreeVector.hh"
class G4Track;
class IAnalysisFactory;
class ITree;
class IHistogram1D;
class IHistogram2D;
class IPlotter;
class XrayTelAnalysis {
public:
virtual ~XrayTelAnalysis();
void book();
void finish();
void analyseStepping(const G4Track& track, G4bool entering);
static XrayTelAnalysis* getInstance(int = 0, char** = 0);
private:
XrayTelAnalysis(int,char**);
static XrayTelAnalysis* instance;
IAnalysisFactory* analysisFactory;
ITree* tree;
IHistogram1D* enteringEnergyHistogram;
IHistogram2D* yzHistogram;
IPlotter* plotter;
};
#endif