Import Geant4 5.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:15:15 +02:00
parent 37fff30d2e
commit fbd4999cf7
4396 changed files with 56662 additions and 52446 deletions
@@ -1,72 +1,35 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// $Id: FCALAnalysisManager.hh
// GEANT4 tag $Name:
// GEANT4 tag $Name: xray_fluo-V04-01-03
//
// Author: Alex Howard (a.s.howard@ic.ac.uk)
// Author: Patricia Mendez (patricia.mendez@cern.ch)
//
// History:
// -----------
// 16 Jan 2002 Alex Howard Created
//
// 12 Feb 2003 Patricia Mendez created based on XrayFluoAnalysisManager.
// -------------------------------------------------------------------
#ifndef G4PROCESSTESTANALYSIS_HH
#define G4PROCESSTESTANALYSIS_HH
#ifdef G4ANALYSIS_USE
#ifndef FCALAnalysisManager_h
#define FCALAnalysisManager_h 1
#include "globals.hh"
#include "g4std/vector"
#include "G4ThreeVector.hh"
#ifdef G4ANALYSIS_USE
#include "AIDA/AIDA.h"
#endif
#include "FCALAnalysisMessenger.hh"
// 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/IPlotter.h"
#include "AIDA/ITupleFactory.h"
#include "AIDA/ITuple.h"
#include "AIDA/IManagedObject.h"
class G4Step;
#ifdef G4ANALYSIS_USE
namespace AIDA {
class IAnalysisFactory;
class ITree;
class IHistogramFactory;
class ITree;
class ITupleFactory;
class ITuple;
};
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class FCALAnalysisManager
@@ -75,48 +38,57 @@ public:
virtual ~FCALAnalysisManager();
// void book();
#ifdef G4ANALYSIS_USE
void book();
void finish();
//fill histograms with OutOfWorld
void NumOutOfWorld(G4double, G4int, G4int);
//fill histograms with Number of Secondaries
void Secondaries(G4double, G4int, G4int);
//fill histograms with Energy Deposit
void Edep(G4double, G4double);
//fill histograms with data from FCALTBEventAction
void analyseEnergyDep(G4double eDep);
//method to call to create an instance of this class
static FCALAnalysisManager* getInstance();
//method intended to chenge the name of the hbook output file
void SetOutputFileName(G4String);
#endif
private:
//private constructor in order to create a singleton
private:
//private constructor in order to create a singleton
FCALAnalysisManager();
G4String outputFileName;
G4double OutOfWorld, Secondary, EmEdep, HadEdep;
static FCALAnalysisManager* instance;
// Quantities for the ntuple
G4double OutOfWorld; G4int i; G4int j;
#ifdef G4ANALYSIS_USE
//pointer to the analysis messenger
FCALAnalysisMessenger* analisysMessenger;
G4double Secondary;
G4double EmEdep; G4double HadEdep;
AIDA::IAnalysisFactory* analysisFactory;
AIDA::ITree* tree;
AIDA::IAnalysisFactory *af;
AIDA::ITree *tree;
AIDA::IHistogramFactory *hf;
AIDA::ITupleFactory *tpf;
AIDA::IPlotterFactory *pf;
AIDA::IPlotter *plotter;
AIDA::IHistogramFactory *histogramFactory;
AIDA:: ITupleFactory* tupleFactory;
AIDA::ITuple* ntuple_1;
AIDA::ITuple* ntuple_2;
AIDA::ITuple* ntuple_3;
AIDA::IHistogram1D* histo_1;
AIDA::IHistogram1D* histo_2;
AIDA::IHistogram1D* histo_3;
AIDA::IHistogram1D* histo_4;
#endif
};
#endif
#endif
@@ -0,0 +1,50 @@
// Author: Patricia Mendez (patricia.mendez@cern.ch)
//
// History:
// -----------
// 14 Feb 2003 Patricia Mendez Created
//
// -------------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifdef G4ANALYSIS_USE
#ifndef FCALAnalysisMessenger_h
#define FCALAnalysisMessenger_h 1
#include "globals.hh"
#include "G4UImessenger.hh"
class FCALAnalysisManager;
class G4UIdirectory;
class G4UIcmdWithAString;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class G4UIcmdWithAString;
class FCALAnalysisMessenger: public G4UImessenger
{
public:
FCALAnalysisMessenger(FCALAnalysisManager* );
~FCALAnalysisMessenger();
void SetNewValue(G4UIcommand*, G4String);
private:
//pointer to FCALAnalysisManager
FCALAnalysisManager* xrayFluoAnalysis;
G4UIdirectory* FCALAnalysisDir;
G4UIcmdWithAString* ouputFileCommand;
};
#endif
#endif
@@ -24,7 +24,7 @@
// and all its terms.
//
// $Id: FCALCalorHit.hh,v 1.3 2002/12/12 19:16:31 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -51,12 +51,12 @@ public:
private:
G4double CryostatRMin, CryostatRMax, CryostatLength, StartingPhi, DPhi;
G4double CryostatRMin, CryostatRMax, CryostatLenght, StartingPhi, DPhi;
G4double InsulationRMin, InsulationRMax, InsulationLength;
G4double InsulationRMin, InsulationRMax, InsulationLenght;
G4double InsulationPosX, InsulationPosY, InsulationPosZ;
G4double LArgRMin, LArgRMax, LArgLength;
G4double LArgRMin, LArgRMax, LArgLenght;
G4double LArgPosX, LArgPosY, LArgPosZ;
G4double FrontExcluderSizeX, FrontExcluderSizeY, FrontExcluderSizeZ;
@@ -68,7 +68,7 @@ private:
G4double BackExcluderPosX, BackExcluderPosY, BackExcluderPosZ,
BackExcluderRotX;
G4double FCALEnvelopeRMin, FCALEnvelopeRMax, FCALEnvelopeLength,
G4double FCALEnvelopeRMin, FCALEnvelopeRMax, FCALEnvelopeLenght,
FCALEnvelopeStartPhi, FCALEnvelopeDPhi;
G4double FCALEnvelopePosX, FCALEnvelopePosY, FCALEnvelopePosZ,
FCALEnvelopeRotX, FCALEnvelopeRotY;
@@ -64,16 +64,16 @@ private:
private:
G4double EmModuleRMin, EmModuleRMax, EmModuleLength, CableTroffLength,
G4double EmModuleRMin, EmModuleRMax, EmModuleLenght, CableTroffLenght,
EmModuleStartPhi, EmModuleDPhi;
G4double FCALEmSmart;
G4int NCableTroff;
G4double F1CableTroffRMin, F1CableTroffRMax, F1CableTroffLength, F1CableTroffStartPhi,
G4double F1CableTroffRMin, F1CableTroffRMax, F1CableTroffLenght, F1CableTroffStartPhi,
F1CableTroffDPhi;
G4double F1CableTroffRotZ;
G4double F1LArGapRmin, F1LArGapRmax, F1LArGapLength, F1LArGapStartPhi, F1LArGapDPhi;
G4double F1LArGapRmin, F1LArGapRmax, F1LArGapLenght, F1LArGapStartPhi, F1LArGapDPhi;
FCALEMModuleSD* FcalEmModuleSD;
@@ -23,8 +23,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: FCALEMModuleSD.hh,v 1.4 2002/12/12 19:16:31 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: FCALEMModuleSD.hh,v 1.5 2002/12/17 15:53:21 pmendez Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -37,12 +37,13 @@
#include "G4VSensitiveDetector.hh"
#include "globals.hh"
#include "G4Event.hh"
#include "FCALCalorHit.hh"
class FCALTestbeamSetup;
class FCALEMModule;
class G4HCofThisEvent;
class G4Step;
#include "FCALCalorHit.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -63,23 +63,23 @@ private:
private:
G4double HadModuleRMin, HadModuleRMax, HadModuleLength;
G4double HadModuleRMin, HadModuleRMax, HadModuleLenght;
G4double HadModuleStartPhi, HadModuleDPhi;
G4double FCAL2HadSmart;
G4double WAbsorberRMin, WAbsorberRMax, WAbsorberLength;
G4double WAbsorberRMin, WAbsorberRMax, WAbsorberLenght;
G4double WAbsorberStartPhi, WAbsorberDPhi;
G4double CuPlateLength, CuPlateAPosZ, CuPlateBPosZ;
G4double CuPlateLenght, CuPlateAPosZ, CuPlateBPosZ;
G4int NCableTroff;
G4double F2TroffRmin, F2TroffRmax, F2TroffMainLength;
G4double F2TroffABLength, F2TroffStartPhi, F2TroffDphi;
G4double F2TroffRmin, F2TroffRmax, F2TroffMainLenght;
G4double F2TroffABLenght, F2TroffStartPhi, F2TroffDphi;
G4double F2TroffRotZ, F2TroffABPosZ;
G4double F2LArGapRmin, F2LArGapRmax, F2LArGapLength;
G4double F2LArGapRmin, F2LArGapRmax, F2LArGapLenght;
G4double F2LArGapStartPhi, F2LArGapDphi;
G4double F2RodRmin, F2RodRmax, F2RodLength, F2RodStartPhi, F2RodDphi;
G4double F2RodRmin, F2RodRmax, F2RodLenght, F2RodStartPhi, F2RodDphi;
FCALHadModuleSD* FcalHadModuleSD;
@@ -23,8 +23,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: FCALHadModuleSD.hh,v 1.4 2002/12/12 19:16:31 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: FCALHadModuleSD.hh,v 1.5 2002/12/17 15:53:21 pmendez Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -36,12 +36,12 @@
#include "G4VSensitiveDetector.hh"
#include "globals.hh"
#include "FCALCalorHit.hh"
class FCALTestbeamSetup;
class FCALHadModule;
class G4HCofThisEvent;
class G4Step;
#include "FCALCalorHit.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -24,11 +24,11 @@
// and all its terms.
//
// $Id: FCALPhysicsList.hh,v 1.5 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
// $Id: FCALPhysicsList.hh,v 1.5 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -24,7 +24,7 @@
// and all its terms.
//
// $Id: FCALPrimaryGeneratorAction.hh,v 1.3 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -23,8 +23,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: FCALRunAction.hh,v 1.3 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: FCALRunAction.hh,v 1.6 2003/02/17 18:02:07 pmendez Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -49,9 +49,9 @@ class FCALRunAction : public G4UserRunAction
public:
void BeginOfRunAction(const G4Run*);
void EndOfRunAction(const G4Run*);
};
#endif
#endif
@@ -23,8 +23,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: FCALSteppingAction.hh,v 1.3 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: FCALSteppingAction.hh,v 1.4 2002/12/17 15:53:22 pmendez Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -50,7 +50,7 @@ class FCALSteppingAction : public G4UserSteppingAction
private:
G4int EventNo;
G4int IDnow, IDout, IDold;
G4int IDnow, IDold, IDout;
G4int NTracks, NSecondaries;
G4double OutOfWorldTracksData[6000][11], Secondaries[6000][11];
G4double EdepFCALEm, EdepFCALHad;
@@ -24,7 +24,7 @@
// and all its terms.
//
// $Id: FCALSteppingVerbose.hh,v 1.3 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//---------------------------------------------------------------
@@ -23,14 +23,16 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: FCALTBEventAction.hh,v 1.5 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: FCALTBEventAction.hh,v 1.7 2003/02/14 15:54:43 pmendez Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifdef G4ANALYSIS_USE
#ifndef FCALTBEventAction_h
#define FCALTBEventAction_h 1
@@ -39,14 +41,15 @@
#include "globals.hh"
#include "G4ThreeVector.hh"
class FCALAnalysisManager;
class FCALRunAction;
class FCALTBEventActionMessenger;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class FCALTBEventAction : public G4UserEventAction
{
public:
FCALTBEventAction(FCALSteppingAction* );
FCALTBEventAction(FCALSteppingAction*);
virtual ~FCALTBEventAction();
public:
@@ -62,13 +65,13 @@ class FCALTBEventAction : public G4UserEventAction
G4int printModulo;
FCALSteppingAction* StepAction;
FCALTBEventActionMessenger* eventMessenger;
FCALRunAction* runManager;
private:
G4int NTracksOutOfWorld, NSecondaries, Init1, Init2, Init3;
// G4double OutOfWorldTracks[1000][11], Secondaries[1000][11];
};
G4double NTracksOutOfWorld, NSecondaries, Init1, Init2, Init3;
};
#endif
#endif
@@ -23,9 +23,14 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
// Author: Patricia Mendez (patricia.mendez@cern.ch)
#ifndef FCALTBEventActionMessenger_h
#define FCALTBEventActionMessenger_h 1
#include "globals.hh"
#include "G4UImessenger.hh"
@@ -33,6 +38,8 @@ class FCALTBEventAction;
class G4UIcmdWithAString;
class G4UIcmdWithAnInteger;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class FCALTBEventActionMessenger: public G4UImessenger
@@ -44,7 +51,7 @@ class FCALTBEventActionMessenger: public G4UImessenger
void SetNewValue(G4UIcommand*, G4String);
private:
FCALTBEventAction* fcaltbeventAction;
FCALTBEventAction* eventAction;
G4UIcmdWithAString* DrawCmd;
G4UIcmdWithAnInteger* PrintCmd;
};
@@ -72,8 +72,8 @@ private:
G4double HoleCntrScintPosX, HoleCntrScintPosY, HoleCntrScintPosZ;
G4double HoleCntrPbPosX, HoleCntrPbPosY, HoleCntrPbPosZ;
G4double HoleCntrAlPosX, HoleCntrAlPosY, HoleCntrAlPosZ;
G4double ScintHoleRmin, ScintHoleRmax, ScintHoleLength;
G4double AbsrbHoleRmin, AbsrbHoleRmax, AbsrbHoleLength;
G4double ScintHoleRmin, ScintHoleRmax, ScintHoleLenght;
G4double AbsrbHoleRmin, AbsrbHoleRmax, AbsrbHoleLenght;
G4double HoleStartPhi, HoleDPhi;
G4double HolePosX, HolePosY, HolePosZ;
@@ -23,8 +23,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: FCALTestbeamSetupSD.hh,v 1.3 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// $Id: FCALTestbeamSetupSD.hh,v 1.4 2002/12/17 15:53:22 pmendez Exp $
// GEANT4 tag $Name: geant4-05-01 $
//
//
@@ -36,11 +36,11 @@
#include "G4VSensitiveDetector.hh"
#include "globals.hh"
#include "FCALCalorHit.hh"
class FCALTestbeamSetup;
class G4HCofThisEvent;
class G4Step;
#include "FCALCalorHit.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -24,7 +24,7 @@
// and all its terms.
//
// $Id: FCALVisManager.hh,v 1.3 2002/12/12 19:16:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
// GEANT4 tag $Name: geant4-05-01 $
//
//
File diff suppressed because it is too large Load Diff