Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -24,13 +24,14 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: XrayTelAnalysis.hh 68710 2013-04-05 09:04:21Z gcosmo $
|
||||
//
|
||||
// Author: A. Pfeiffer (Andreas.Pfeiffer@cern.ch)
|
||||
// (copy of his UserAnalyser class)
|
||||
//
|
||||
//
|
||||
// History:
|
||||
// -----------
|
||||
// 19 Mar 2013 LP Migrated to G4AnalysisManager
|
||||
// 7 Nov 2001 MGP Implemented according to A. Pfeiffer's instructions
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
@@ -38,22 +39,7 @@
|
||||
// Example of analysis in a simulation application (histograms, ntuples etc.)
|
||||
// This class follows the singleton design pattern;
|
||||
// it is responsible for the analysis management and algorithms
|
||||
// Histograms are compliant with AIDA 1.0 (the header files are
|
||||
// copies from the Anaphe Interfaces directory), except for the usage of
|
||||
// IHistoManager which is Anaphe/Lizard-specific
|
||||
// For ntuples, for which the AIDA interfaces and compliant implementations
|
||||
// are still in progress at the time of the current Geant4 release,
|
||||
// an implementation with Anaphe/Lizard is shown
|
||||
// Other implementations specific to an analysis system are possible too
|
||||
// (see, for instance, JAS and OpenScientist documentation from the links
|
||||
// in http://aida.freehep.org/)
|
||||
// The implementation of the usage of ntuples shown in this example
|
||||
// is expected to change in future Geant4 releases, when AIDA interfaces
|
||||
// and related implementations would be available
|
||||
// Further documentation is available from: http://www.ge.infn.it/geant4/lowE/
|
||||
// http://aida.freehep.org/
|
||||
// http://cern.ch/anaphe/
|
||||
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#ifndef G4PROCESSTESTANALYSIS_HH
|
||||
@@ -62,33 +48,10 @@
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
#include "AIDA/IAnalysisFactory.h"
|
||||
// uncomment g4root.hh and comment g4xml.hh for a ROOT-based output file
|
||||
|
||||
#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"
|
||||
|
||||
// Histogramming from AIDA
|
||||
class IAnalysisFactory;
|
||||
class ITree;
|
||||
class IHistogramFactory;
|
||||
class ITupleFactory;
|
||||
class ITuple;
|
||||
#endif
|
||||
//#include "g4root.hh"
|
||||
#include "g4xml.hh"
|
||||
|
||||
class G4Track;
|
||||
|
||||
@@ -110,21 +73,8 @@ private:
|
||||
|
||||
XrayTelAnalysis();
|
||||
|
||||
// #ifdef G4ANALYSIS_USE_PLOTTER
|
||||
// void plotAll();
|
||||
// #endif
|
||||
static XrayTelAnalysis* instance;
|
||||
|
||||
#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
|
||||
G4double eKin;
|
||||
G4double x;
|
||||
@@ -136,16 +86,8 @@ private:
|
||||
|
||||
G4String asciiFileName;
|
||||
G4String histFileName;
|
||||
G4String histFileType;
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
AIDA::IHistogram1D *h1;
|
||||
AIDA::IHistogram2D *h2;
|
||||
AIDA::IHistogram1D *h3;
|
||||
AIDA::IHistogram2D *h4;
|
||||
AIDA::ITuple * ntuple;
|
||||
#endif
|
||||
// std::ofstream asciiFile;
|
||||
|
||||
std::ofstream *asciiFile;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user