Geant4  10.02.p03
BrachyAnalysisManager Class Reference

#include <BrachyAnalysisManager.hh>

Collaboration diagram for BrachyAnalysisManager:

Public Member Functions

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

Static Public Member Functions

static BrachyAnalysisManagerGetInstance ()
 

Private Member Functions

 BrachyAnalysisManager ()
 

Static Private Attributes

static BrachyAnalysisManagerinstance = 0
 

Detailed Description

Definition at line 45 of file BrachyAnalysisManager.hh.

Constructor & Destructor Documentation

◆ BrachyAnalysisManager()

BrachyAnalysisManager::BrachyAnalysisManager ( )
private

Definition at line 40 of file BrachyAnalysisManager.cc.

41 {
42 #ifdef ANALYSIS_USE
43  theTFile = 0;
44  histo = 0;
45  ntuple = 0;
46 #endif
47 }
TTree * ntuple
Here is the caller graph for this function:

◆ ~BrachyAnalysisManager()

BrachyAnalysisManager::~BrachyAnalysisManager ( )

Definition at line 49 of file BrachyAnalysisManager.cc.

50 {
51 #ifdef G4ANALYSIS_USE
52  delete theTFile; theTFile = 0;
53  delete histo; histo = 0;
54  delete ntuple; ntuple = 0;
55 #endif
56 
57 }
TTree * ntuple

Member Function Documentation

◆ book()

void BrachyAnalysisManager::book ( )

Definition at line 65 of file BrachyAnalysisManager.cc.

66 {
67 #ifdef ANALYSIS_USE
68  delete theTFile;
69  theTFile = new TFile("brachytherapy.root", "RECREATE");
70 
71  histo = new TH1F("h10","energy spectrum", 800, 0., 800);
72  ntuple = new TNtuple("ntuple","edep3D","xx:yy:zz:edep");
73 #endif
74  }
TTree * ntuple
Here is the call graph for this function:

◆ GetInstance()

BrachyAnalysisManager * BrachyAnalysisManager::GetInstance ( )
static

Definition at line 59 of file BrachyAnalysisManager.cc.

60 {
61  if (instance == 0) instance = new BrachyAnalysisManager;
62  return instance;
63 }
static BrachyAnalysisManager * instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ save()

void BrachyAnalysisManager::save ( )

Definition at line 92 of file BrachyAnalysisManager.cc.

93 {
94 #ifdef ANALYSIS_USE
95  if (theTFile)
96  {
97  theTFile -> Write();
98  theTFile -> Close();
99  }
100 #endif
101 }
c1 Close()
Here is the call graph for this function:

Member Data Documentation

◆ instance

BrachyAnalysisManager * BrachyAnalysisManager::instance = 0
staticprivate

Definition at line 72 of file BrachyAnalysisManager.hh.


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