Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BrachyAnalysisManager Class Reference

#include <BrachyAnalysisManager.hh>

Public Member Functions

 ~BrachyAnalysisManager ()
 
void book ()
 
void save ()
 

Static Public Member Functions

static BrachyAnalysisManagerGetInstance ()
 

Detailed Description

Definition at line 45 of file BrachyAnalysisManager.hh.

Constructor & Destructor Documentation

BrachyAnalysisManager::~BrachyAnalysisManager ( )

Definition at line 49 of file BrachyAnalysisManager.cc.

50 {
51 #ifdef G4ANALYSIS_USE
52  delete theTFile; theTFile = 0;
53  delete histo2; histo2 = 0;
54  delete histo; histo = 0;
55 #endif
56 }

Member Function Documentation

void BrachyAnalysisManager::book ( )

Definition at line 64 of file BrachyAnalysisManager.cc.

65 {
66 #ifdef ANALYSIS_USE
67  delete theTFile;
68  theTFile = new TFile("brachytherapy.root", "RECREATE");
69 
70  histo = new TH1F("h10","energy spectrum", 800, 0., 800);
71  histo2 = new TH2F("h20","edep2Dxy", 801, -100.125, 100.125, // binning, xmin, xmax, along x direction in mm
72  801, -100.125, 100.125);// binning, ymin, ymax, along y direction in mm
73 #endif
74  }
BrachyAnalysisManager * BrachyAnalysisManager::GetInstance ( )
static

Definition at line 58 of file BrachyAnalysisManager.cc.

59 {
60  if (instance == 0) instance = new BrachyAnalysisManager;
61  return instance;
62 }
static MCTruthManager * instance

Here is the caller graph for this function:

void BrachyAnalysisManager::save ( )

Definition at line 91 of file BrachyAnalysisManager.cc.

92 {
93 #ifdef ANALYSIS_USE
94  if (theTFile)
95  {
96  theTFile -> Write();
97  theTFile -> Close();
98  }
99 #endif
100 }

The documentation for this class was generated from the following files: