source: trunk/examples/advanced/brachytherapy/include/BrachyAnalysisManager.hh @ 810

Last change on this file since 810 was 807, checked in by garnier, 16 years ago

update

File size: 3.1 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// $Id: BrachyAnalysisManager.hh,v 1.13 2007/06/21 14:58:39 gunter Exp $
27// GEANT4 tag $Name:  $
28
29// Code review: MG Pia, 14/05/2207
30// Contact: Geant4-INFN Genova group, MariaGrazia.Pia@ge.infn.it
31
32// The class BrachyAnalysisManager creates and manages histograms and ntuples
33//
34
35#ifndef G4BRACHYANALYSISMANAGER_HH
36#define G4BRACHYANALYSISMANAGER_HH
37
38#include "globals.hh"
39#include <vector>
40#include "G4ThreeVector.hh"
41
42#ifdef G4ANALYSIS_USE
43#include "AIDA/IHistogram1D.h"
44#include "AIDA/IHistogram2D.h"
45#include "AIDA/IAnalysisFactory.h"
46
47namespace AIDA{
48  class ITree;
49  class IHistogramFactory;
50  class IAnalysisFactory;
51  class ITupleFactory;
52  class ITuple;
53  class ITreeFactory;
54}
55#endif
56
57class BrachyAnalysisManager
58{
59
60public:
61  ~BrachyAnalysisManager();
62  static BrachyAnalysisManager* getInstance();
63
64  void book();
65  void FillNtupleWithEnergy(G4double,G4double,G4double,G4float);
66  void FillHistogramWithEnergy(G4double,G4double,G4double);
67  void PrimaryParticleEnergySpectrum(G4double);
68  void DoseDistribution(G4double,G4double);
69  void finish();
70
71private:
72  BrachyAnalysisManager();
73  static BrachyAnalysisManager* instance;
74
75#ifdef G4ANALYSIS_USE
76  AIDA::IAnalysisFactory*  aFact;
77  AIDA::ITree*             theTree;
78  AIDA::IHistogramFactory *histFact;
79  AIDA::ITupleFactory     *tupFact;
80  AIDA::ITreeFactory      *treeFact;
81  AIDA::IHistogram2D *h1;
82  AIDA::IHistogram1D *h2;
83  AIDA::IHistogram1D *h3;
84  AIDA::ITuple *ntuple;
85#endif
86
87};
88
89#endif
90
91
92
Note: See TracBrowser for help on using the repository browser.