source: trunk/source/processes/electromagnetic/lowenergy/test/fluoTest/include/XrayFluoAnalysisManager.hh@ 1201

Last change on this file since 1201 was 1199, checked in by garnier, 16 years ago

nvx fichiers dans CVS

File size: 3.4 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id: XrayFluoAnalysisManager.hh
28// GEANT4 tag $Name: xray_fluo-V03-02-00
29//
30// Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
31//
32// History:
33// -----------
34// 28 Nov 2001 Elena Guardincerri Created
35//
36// -------------------------------------------------------------------
37
38
39
40#ifdef G4ANALYSIS_USE
41#ifndef XrayFluoAnalysisManager_h
42#define XrayFluoAnalysisManager_h 1
43
44#include "globals.hh"
45
46// Histogramming from AIDA
47#include "Interfaces/IHistogram1D.h"
48#include "Interfaces/IHistogram2D.h"
49
50// Histogramming from Anaphe
51#include "Interfaces/IHistoManager.h"
52
53// Ntuples from Anaphe
54#include "NtupleTag/LizardNTupleFactory.h"
55#include "NtupleTag/LizardQuantity.h"
56
57
58class G4Step;
59class XrayFluoAnalysisMessenger;
60class NTuple;
61
62//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
63
64class XrayFluoAnalysisManager
65{
66public:
67
68 virtual ~XrayFluoAnalysisManager();
69
70 void book();
71
72 void finish();
73
74 //fill histograms with data from XrayFluoSteppingAction
75 void analyseStepping(const G4Step* aStep);
76
77 //fill histograms with data from XrayFluoEventAction
78 void analyseEnergyDep(G4double eDep);
79
80 //fill histograms with data from XrayFluoPrimarygeneratoraction
81 void analysePrimaryGenerator(G4double energy);
82
83 //method to call to create an instance of this class
84 static XrayFluoAnalysisManager* getInstance();
85
86
87private:
88
89 //private constructor in order to create a singleton
90 XrayFluoAnalysisManager();
91
92 static XrayFluoAnalysisManager* instance;
93
94 IHistoManager* histoManager;
95
96 //nTuple factory
97 Lizard::NTupleFactory* factory;
98 Lizard::NTuple* ntuple;
99
100 //pointer to the analysis messenger
101 XrayFluoAnalysisMessenger* analysisMessenger;
102
103 // Quantities for the ntuple
104 Lizard::Quantity<float> eDep;
105 Lizard::Quantity<float> counts;
106};
107#endif
108#endif
109
110
111
Note: See TracBrowser for help on using the repository browser.