Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,23 +21,29 @@
// ********************************************************************
//
//
// $Id: GammaRayTelAnalysisManager.hh,v 1.2.2.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelAnalysis.hh-AIDA,v 1.3 2001/12/07 13:20:20 pfeiffer Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
//
//
// ------------ GammaRayTelAnalysisManager ------
// ------------ GammaRayTelAnalysis ------
// by R.Giannitrapani, F. Longo & G.Santin (30 nov 2000)
//
// 07.12.2001 A.Pfeiffer
// - integrated Guy's addition of the ntuple
//
// 06.12.2001 A.Pfeiffer
// - updating to new design (singleton)
//
// 22.11.2001 G.Barrand
// - Adaptation to AIDA
//
// ************************************************************
#ifdef G4ANALYSIS_USE
#ifndef GammaRayTelAnalysisManager_h
#define GammaRayTelAnalysisManager_h 1
#include "G4VAnalysisManager.hh"
#ifndef GammaRayTelAnalysis_h
#define GammaRayTelAnalysis_h 1
#include "globals.hh"
#include "g4std/vector"
@@ -45,33 +51,29 @@
class GammaRayTelAnalysisMessenger;
class GammaRayTelDetectorConstruction;
class IAnalysisFactory;
class IHistogramFactory;
class ITree;
class IHistogram1D;
class IHistogram2D;
class ITuple;
class IPlotter;
class IVectorFactory;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class GammaRayTelAnalysisManager: public G4VAnalysisManager
{
class GammaRayTelAnalysis {
public:
GammaRayTelAnalysisManager(GammaRayTelDetectorConstruction*);
virtual ~GammaRayTelAnalysisManager();
virtual ~GammaRayTelAnalysis();
public:
G4bool RegisterAnalysisSystem(G4VAnalysisSystem*);
IHistogramFactory* GetHistogramFactory(const G4String&);
void Store(IHistogram* = 0, const G4String& = "");
void Plot(IHistogram* = 0);
void InsertPositionXZ(double x, double z);
void InsertPositionYZ(double y, double z);
void InsertEnergy(double en);
void InsertHits(int nplane);
void BeginOfRun();
void BeginOfRun(G4int n);
void EndOfRun(G4int n);
void EndOfEvent(G4int flag);
void Init();
void Finish();
void SetHisto1DDraw(G4String str) {histo1DDraw = str;};
void SetHisto1DSave(G4String str) {histo1DSave = str;};
void SetHisto2DDraw(G4String str) {histo2DDraw = str;};
@@ -80,19 +82,35 @@ public:
G4String GetHisto2DMode() {return histo2DMode;};
void InsertPositionXZ(double x, double z);
void InsertPositionYZ(double y, double z);
void InsertEnergy(double en);
void InsertHits(int nplane);
void setNtuple(float E, float p, float x, float y, float z);
static GammaRayTelAnalysis* getInstance(int = 0, char** = 0);
private:
G4VAnalysisSystem* analysisSystem;
IPlotter* pl;
IVectorFactory* fVectorFactory;
IHistogramFactory* histoFactory;
GammaRayTelAnalysis(int = 0, char** = 0);
void plot1D(IHistogram1D* histo);
void plot2D(IHistogram2D* histo);
void Plot();
private:
static GammaRayTelAnalysis* instance;
GammaRayTelDetectorConstruction* GammaRayTelDetector;
IAnalysisFactory* analysisFactory;
ITree* tree;
IPlotter* plotter;
ITuple* tuple;
IHistogram1D* energy;
IHistogram1D* hits;
IHistogram2D* posXZ;
IHistogram2D* posYZ;
GammaRayTelDetectorConstruction* GammaRayTelDetector;
G4String histo1DDraw;
G4String histo1DSave;
G4String histo2DDraw;
@@ -104,13 +122,4 @@ private:
#endif
#endif
@@ -0,0 +1,175 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// Author: A. Pfeiffer (Andreas.Pfeiffer@cern.ch)
// (copy of his UserAnalyser class)
//
// History:
// -----------
// 7 Nov 2001 MGP Implemented according to A. Pfeiffer's instructions
// 18 Nov 2001 G.Santin GammaRayTel analysis management modified
// according to the new design
//
// -------------------------------------------------------------------
// Class description:
// 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, 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/
// -------------------------------------------------------------------
#ifdef G4ANALYSIS_USE
#ifndef GammaRayTelAnalysis_h
#define GammaRayTelAnalysis_h
#include "globals.hh"
// Histogramming from AIDA
#include "Interfaces/IHistogram1D.h"
#include "Interfaces/IHistogram2D.h"
// Histogramming from Anaphe
#include "Interfaces/IHistoManager.h"
// Vectors from ?
#include "Interfaces/IVector.h"
#include "Interfaces/IVectorFactory.h"
// Plotting from Anaphe?
#include "Interfaces/IPlotter.h"
//#include "AIDA_Plotter/AIDAPlotter.h"
// Ntuples from Anaphe
#ifdef G4ANALYSIS_USE_NTUPLE
#include "NtupleTag/LizardNTupleFactory.h"
#include "NtupleTag/LizardQuantity.h"
#include "NtupleTag/LizardNTuple.h"
//using namespace Lizard;
#endif
class G4Track;
class GammaRayTelAnalysisMessenger;
class GammaRayTelDetectorConstruction;
class GammaRayTelAnalysis
{
public:
~GammaRayTelAnalysis();
void BeginOfRun(G4int n);
void EndOfRun(G4int n);
void EndOfEvent(G4int flag);
void Init();
void Finish();
void SetHisto1DDraw(G4String str) {histo1DDraw = str;};
void SetHisto1DSave(G4String str) {histo1DSave = str;};
void SetHisto2DDraw(G4String str) {histo2DDraw = str;};
void SetHisto2DSave(G4String str) {histo2DSave = str;};
void SetHisto2DMode(G4String str) {histo2DMode = str;};
G4String GetHisto2DMode() {return histo2DMode;};
void InsertPositionXZ(double x, double z);
void InsertPositionYZ(double y, double z);
void InsertEnergy(double en);
void InsertHits(int nplane);
#ifdef G4ANALYSIS_USE_NTUPLE
void setNtuple(float E, float p, float x, float y, float z);
#endif
static GammaRayTelAnalysis* getInstance();
private:
GammaRayTelAnalysis();
void plot1D(IHistogram1D* histo);
void plot2D(IHistogram2D* histo);
void Plot();
static GammaRayTelAnalysis* instance;
IHistoManager* histoManager;
IVectorFactory* vectorFactory;
IPlotter* plotter;
#ifdef G4ANALYSIS_USE_NTUPLE
// ---- NOTE ----
// Histograms are compliant to AIDA interfaces, ntuples are Lizard specific
Lizard::NTuple* ntuple;
Lizard::NTupleFactory* ntFactory;
// Quantities for the ntuple
Lizard::Quantity<float> ntEnergy;
Lizard::Quantity<float> ntPlane;
Lizard::Quantity<float> ntX;
Lizard::Quantity<float> ntY;
Lizard::Quantity<float> ntZ;
#endif
GammaRayTelDetectorConstruction* GammaRayTelDetector;
G4String histo1DDraw;
G4String histo1DSave;
G4String histo2DDraw;
G4String histo2DSave;
G4String histo2DMode;
GammaRayTelAnalysisMessenger* analysisMessenger;
};
#endif
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelAnalysisMessenger.hh,v 1.1.4.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelAnalysisMessenger.hh,v 1.3 2001/11/23 17:44:54 santin Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -31,6 +31,7 @@
//
// ------------ GammaRayTelAnalysysMessenger ------
// by R.Giannitrapani, F.Longo & G.Santin (03 dec 2000)
// 20.11.01 G.Santin: new analysis management, modified according to GammaRayTelAnalysis
//
// ************************************************************
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -42,7 +43,7 @@
#include "globals.hh"
#include "G4UImessenger.hh"
class GammaRayTelAnalysisManager;
class GammaRayTelAnalysis;
class G4UIdirectory;
class G4UIcmdWithAString;
@@ -51,14 +52,14 @@ class G4UIcmdWithAString;
class GammaRayTelAnalysisMessenger: public G4UImessenger
{
public:
GammaRayTelAnalysisMessenger(GammaRayTelAnalysisManager* );
GammaRayTelAnalysisMessenger(GammaRayTelAnalysis* );
~GammaRayTelAnalysisMessenger();
void SetNewValue(G4UIcommand*, G4String);
private:
GammaRayTelAnalysisManager* GammaRayTelAnalysis;
G4UIdirectory* GammaRayTelAnalysisDir;
GammaRayTelAnalysis* gammaRayTelAnalysis;
G4UIdirectory* gammaRayTelAnalysisDir;
G4UIcmdWithAString* Histo1DDrawCmd;
G4UIcmdWithAString* Histo2DDrawCmd;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelAnticoincidenceHit.hh,v 1.1.2.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelAnticoincidenceHit.hh,v 1.2 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelAnticoincidenceSD.hh,v 1.1.2.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelAnticoincidenceSD.hh,v 1.3 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -50,7 +50,7 @@ class GammaRayTelAnticoincidenceSD : public G4VSensitiveDetector
{
public:
GammaRayTelAnticoincidenceSD(G4String, GammaRayTelDetectorConstruction* );
GammaRayTelAnticoincidenceSD(G4String);
~GammaRayTelAnticoincidenceSD();
void Initialize(G4HCofThisEvent*);
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelCalorimeterHit.hh,v 1.1.2.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelCalorimeterHit.hh,v 1.2 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelCalorimeterSD.hh,v 1.1.2.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelCalorimeterSD.hh,v 1.4 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -50,7 +50,7 @@ class GammaRayTelCalorimeterSD : public G4VSensitiveDetector
{
public:
GammaRayTelCalorimeterSD(G4String, GammaRayTelDetectorConstruction* );
GammaRayTelCalorimeterSD(G4String);
~GammaRayTelCalorimeterSD();
void Initialize(G4HCofThisEvent*);
@@ -64,10 +64,14 @@ private:
GammaRayTelCalorimeterHitsCollection* CalorimeterCollection;
GammaRayTelDetectorConstruction* Detector;
G4int (*ChitXID)[12];
G4int (*ChitYID)[12];
G4int (*ChitXID);
G4int (*ChitYID);
G4int NbOfCALLayers;
G4int NbOfCALBars;
G4int NbOfCALChannels;
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelDetectorConstruction.hh,v 1.5.2.2 2001/06/28 20:18:37 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelDetectorConstruction.hh,v 1.6 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelDetectorMessenger.hh,v 1.2.4.2 2001/06/28 20:18:38 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelDetectorMessenger.hh,v 1.3 2001/07/11 09:56:56 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -0,0 +1,114 @@
//
// ********************************************************************
// * 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: GammaRayTelDigi.hh,v 1.1 2001/10/24 13:11:54 flongo Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
//
//
// ------------ GammaRayTelDigi ------
// by F.Longo, R.Giannitrapani & G.Santin (24 oct 2001)
//
// ************************************************************
// This Class describe the digits
#ifndef GammaRayTelDigi_h
#define GammaRayTelDigi_h 1
#include "G4VDigi.hh"
#include "G4TDigiCollection.hh"
#include "G4Allocator.hh"
#include "G4ThreeVector.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class GammaRayTelDigi : public G4VDigi
{
public:
GammaRayTelDigi();
~GammaRayTelDigi();
GammaRayTelDigi(const GammaRayTelDigi&);
const GammaRayTelDigi& operator=(const GammaRayTelDigi&);
int operator==(const GammaRayTelDigi&) const;
inline void* operator new(size_t);
inline void operator delete(void*);
void Draw();
void Print();
private:
G4int PlaneNumber; // (active detector)
G4int PlaneType; // (0 or 1 for X or Y plane)
G4int StripNumber; // strip number
public:
inline void SetPlaneNumber(G4int PlaneNum) {PlaneNumber = PlaneNum;};
inline void SetPlaneType(G4int PlaneTyp) {PlaneType = PlaneTyp;};
inline void SetStripNumber(G4int StripNum) {StripNumber = StripNum;};
inline G4int GetPlaneNumber() {return PlaneNumber;};
inline G4int GetPlaneType() {return PlaneType;};
inline G4int GetStripNumber() {return StripNumber;};
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
typedef G4TDigiCollection<GammaRayTelDigi> GammaRayTelDigitsCollection;
extern G4Allocator<GammaRayTelDigi> GammaRayTelDigiAllocator;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void* GammaRayTelDigi::operator new(size_t)
{
void* aDigi;
aDigi = (void*) GammaRayTelDigiAllocator.MallocSingle();
return aDigi;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void GammaRayTelDigi::operator delete(void* aDigi)
{
GammaRayTelDigiAllocator.FreeSingle((GammaRayTelDigi*) aDigi);
}
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: GammaRayTelDigitizer.hh,v 1.2 2001/11/29 09:34:17 flongo Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
//
//
// ------------ GammaRayTelDigitizer ------
//
// by F.Longo, R.Giannitrapani & G.Santin (24 oct 2001)
//
// ************************************************************
#ifndef GammaRayTelDigitizer_h
#define GammaRayTelDigitizer_h 1
#include "G4VDigitizerModule.hh"
#include "GammaRayTelDigi.hh"
#include "globals.hh"
//#include "g4std/vector"
class GammaRayTelDigitizerMessenger;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class GammaRayTelDigitizer : public G4VDigitizerModule
{
public:
GammaRayTelDigitizer(G4String name);
~GammaRayTelDigitizer();
void Digitize();
void SetThreshold(G4double val) { Energy_Threshold = val;}
private:
GammaRayTelDigitsCollection* DigitsCollection;
G4double Energy_Threshold;
GammaRayTelDigitizerMessenger* digiMessenger;
};
#endif
@@ -0,0 +1,68 @@
//
// ********************************************************************
// * 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: GammaRayTelDigitizerMessenger.hh,v 1.1 2001/11/29 09:34:17 flongo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
//
//
// ------------ GammaRayTelDigitizerMessenger ------
// by F.Longo, G.Santin & R.Giannitrapani (29 nov 2001)
//
// ************************************************************
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifndef GammaRayTelDigitizerMessenger_h
#define GammaRayTelDigitizerMessenger_h 1
#include "G4UImessenger.hh"
#include "globals.hh"
class GammaRayTelDigitizer;
class G4UIcmdWithADoubleAndUnit;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class GammaRayTelDigitizerMessenger: public G4UImessenger
{
public:
GammaRayTelDigitizerMessenger(GammaRayTelDigitizer*);
~GammaRayTelDigitizerMessenger();
void SetNewValue(G4UIcommand*, G4String);
private:
GammaRayTelDigitizer* GammaRayTelAction;
G4UIcmdWithADoubleAndUnit* ThresholdCmd;
};
#endif
@@ -22,8 +22,8 @@
//
//
// $Id: GammaRayTelDummySD.hh,v 1.1.4.2 2001/06/28 20:18:38 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelDummySD.hh,v 1.4 2001/11/28 10:07:01 griccard Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -42,12 +42,14 @@
#define GammaRayTelDummySD_h 1
#include "G4VSensitiveDetector.hh"
#include "globals.hh"
class G4Step;
class GammaRayTelDummySD : public G4VSensitiveDetector
{
public:
GammaRayTelDummySD();
GammaRayTelDummySD(G4String name):G4VSensitiveDetector(name){};
~GammaRayTelDummySD() {};
void Initialize(G4HCofThisEvent*HCE) {};
@@ -57,7 +59,5 @@ public:
void DrawAll() {};
void PrintAll() {};
};
GammaRayTelDummySD::GammaRayTelDummySD()
: G4VSensitiveDetector("dummySD")
{}
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelEventAction.hh,v 1.4.2.2 2001/06/28 20:18:38 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelEventAction.hh,v 1.9 2001/12/04 11:40:28 flongo Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -31,6 +31,8 @@
// ------------ GammaRayTelEventAction ------
// by R.Giannitrapani, F. Longo & G.Santin (13 nov 2000)
//
//- inclusion of Digits by F.Longo & R.Giannitrapani (24 oct 2001)
// 20.11.01 G.Santin: new analysis management, modified according to GammaRayTelAnalysis
// ************************************************************
@@ -43,21 +45,13 @@
#include "G4UserEventAction.hh"
#include "globals.hh"
#ifdef G4ANALYSIS_USE
#include "GammaRayTelAnalysisManager.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class GammaRayTelEventAction : public G4UserEventAction
{
public:
#ifdef G4ANALYSIS_USE
GammaRayTelEventAction(GammaRayTelAnalysisManager* analysisMgr);
#else
GammaRayTelEventAction();
#endif
virtual ~GammaRayTelEventAction();
public:
@@ -67,13 +61,11 @@ public:
void SetDrawFlag (G4String val) {drawFlag = val;};
private:
G4int trackerCollID;
G4int calorimeterCollID;
G4int anticoincidenceCollID;
G4String drawFlag;
#ifdef G4ANALYSIS_USE
GammaRayTelAnalysisManager* analysisManager;
#endif
};
#endif
@@ -83,3 +75,4 @@ private:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelPhysicsList.hh,v 1.2.4.2 2001/06/28 20:18:39 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelPhysicsList.hh,v 1.3 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelPrimaryGeneratorAction.hh,v 1.3.4.2 2001/06/28 20:18:39 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelPrimaryGeneratorAction.hh,v 1.6 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -55,7 +55,8 @@ class GammaRayTelPrimaryGeneratorMessenger;
class GammaRayTelPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
GammaRayTelPrimaryGeneratorAction(GammaRayTelDetectorConstruction*);
GammaRayTelPrimaryGeneratorAction();
~GammaRayTelPrimaryGeneratorAction();
public:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelPrimaryGeneratorMessenger.hh,v 1.2.4.2 2001/06/28 20:18:39 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelPrimaryGeneratorMessenger.hh,v 1.3 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelRunAction.hh,v 1.3.4.2 2001/06/28 20:18:39 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelRunAction.hh,v 1.5 2001/11/23 17:44:54 santin Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -30,6 +30,7 @@
//
// ------------ GammaRayTelRunAction ------
// by R.Giannitrapani, F.Longo & G.Santin (13 nov 2000)
// 18.11.2001 G.Santin - Modified the analysis management according to the new design
//
// ************************************************************
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -41,10 +42,6 @@
#include "G4UserRunAction.hh"
#include "globals.hh"
#ifdef G4ANALYSIS_USE
#include "GammaRayTelAnalysisManager.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class G4Run;
@@ -52,11 +49,7 @@ class G4Run;
class GammaRayTelRunAction : public G4UserRunAction
{
public:
#ifdef G4ANALYSIS_USE
GammaRayTelRunAction(GammaRayTelAnalysisManager* analysisMgr);
#else
GammaRayTelRunAction();
#endif
~GammaRayTelRunAction();
public:
@@ -64,9 +57,6 @@ public:
void EndOfRunAction(const G4Run*);
private:
#ifdef G4ANALYSIS_USE
GammaRayTelAnalysisManager* analysisManager;
#endif
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelTrackerHit.hh,v 1.1.2.2 2001/06/28 20:18:40 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelTrackerHit.hh,v 1.2 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelTrackerROGeometry.hh,v 1.1.2.2 2001/06/28 20:18:40 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelTrackerROGeometry.hh,v 1.3 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -45,7 +45,6 @@ class GammaRayTelTrackerROGeometry : public G4VReadOutGeometry
public:
GammaRayTelTrackerROGeometry();
GammaRayTelTrackerROGeometry(G4String);
GammaRayTelTrackerROGeometry(G4String, GammaRayTelDetectorConstruction*);
~GammaRayTelTrackerROGeometry();
private:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelTrackerSD.hh,v 1.1.2.2 2001/06/28 20:18:40 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelTrackerSD.hh,v 1.4 2001/11/29 11:19:17 griccard Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
@@ -50,7 +50,7 @@ class GammaRayTelTrackerSD : public G4VSensitiveDetector
{
public:
GammaRayTelTrackerSD(G4String, GammaRayTelDetectorConstruction* );
GammaRayTelTrackerSD(G4String);
~GammaRayTelTrackerSD();
void Initialize(G4HCofThisEvent*);
@@ -64,10 +64,14 @@ private:
GammaRayTelTrackerHitsCollection* TrackerCollection;
GammaRayTelDetectorConstruction* Detector;
G4int (*ThitXID)[30];
G4int (*ThitYID)[30];
G4int (*ThitXID);
G4int (*ThitYID);
G4int NbOfTKRLayers;
G4int NbOfTKRStrips;
G4int NbOfTKRChannels;
};
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: GammaRayTelVisManager.hh,v 1.2.4.2 2001/06/28 20:18:40 gunter Exp $
// GEANT4 tag $Name: $
// $Id: GammaRayTelVisManager.hh,v 1.3 2001/07/11 09:56:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland