Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MJOutputRoot Class Reference

#include <MJOutputRoot.hh>

Inheritance diagram for MJOutputRoot:

MJVOutputManager MaGeOutputGermaniumArray MJOutputLANLClover MJOutputLANLCloverInNaIBarrel MJOutputNaIBarrel MJOutputSolidBlock List of all members.

Public Member Functions

 MJOutputRoot (G4bool isMother)
 MJOutputRoot (const MJOutputRoot &)
virtual ~MJOutputRoot ()
void OpenFile (const char *RootFileName)
void CloseFile ()
void OpenRootFile (const char *RootFileName)
void CloseRootFile ()
void FillTree ()
virtual void DefineSchema ()=0
virtual void BeginOfEventAction (const G4Event *event)
virtual void BeginOfRunAction ()
virtual void EndOfEventAction (const G4Event *event)
virtual void EndOfRunAction ()
void SteppingAction (const G4Step *step)
virtual void RootSteppingAction (const G4Step *step)=0
G4double RootToG4 (Double_t XX)
G4float RootToG4 (Float_t XX)
G4int RootToG4 (Int_t XX)
G4long RootToG4 (Long_t XX)
Double_t G4ToRoot (G4double XX)
Float_t G4ToRoot (G4float XX)
Int_t G4ToRoot (G4int XX)
Long_t G4ToRoot (G4long XX)
Double_t CLHEPtoROOT (HepDouble XX)
Float_t CLHEPtoROOT (HepFloat XX)
Int_t CLHEPtoROOT (HepInt XX)
HepDouble ROOTtoCLHEP (Double_t XX)
HepFloat ROOTtoCLHEP (Float_t XX)
HepInt ROOTtoCLHEP (Int_t XX)
TFile * GetRootFile ()
TTree * GetTree ()
G4bool IsMother ()
void SetRootFileName (G4String name)
void SetRootFile (TFile *rfile)
void SetTree (TTree *XtalTree)

Static Protected Attributes

TTree * fTree = 0

Private Attributes

G4String * fDetectorName
G4String * fDetectorVersion
G4bool fIsMother

Static Private Attributes

TFile * fRootFile = 0

Constructor & Destructor Documentation

MJOutputRoot::MJOutputRoot G4bool  isMother  ) 
 

Definition at line 67 of file MJOutputRoot.cc.

MJOutputRoot::MJOutputRoot const MJOutputRoot  ) 
 

Definition at line 73 of file MJOutputRoot.cc.

MJOutputRoot::~MJOutputRoot  )  [virtual]
 

Definition at line 78 of file MJOutputRoot.cc.


Member Function Documentation

virtual void MJOutputRoot::BeginOfEventAction const G4Event *  event  )  [inline, virtual]
 

Action to perform at beginning and end of events and runs Detector specific. Only include actions that directly affect the Root tree. Other actions should go into the MJManagementEventAction class.

Implements MJVOutputManager.

Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock.

Definition at line 131 of file MJOutputRoot.hh.

virtual void MJOutputRoot::BeginOfRunAction  )  [inline, virtual]
 

Implements MJVOutputManager.

Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock.

Definition at line 132 of file MJOutputRoot.hh.

Int_t MJOutputRoot::CLHEPtoROOT HepInt  XX  )  [inline]
 

Definition at line 159 of file MJOutputRoot.hh.

Float_t MJOutputRoot::CLHEPtoROOT HepFloat  XX  )  [inline]
 

Definition at line 158 of file MJOutputRoot.hh.

Double_t MJOutputRoot::CLHEPtoROOT HepDouble  XX  )  [inline]
 

Definition at line 157 of file MJOutputRoot.hh.

void MJOutputRoot::CloseFile  )  [virtual]
 

Implements MJVOutputManager.

Definition at line 89 of file MJOutputRoot.cc.

References CloseRootFile().

void MJOutputRoot::CloseRootFile  ) 
 

Close Root file. Writes data to tree, saves tree, closes file and deletes file object.

Definition at line 104 of file MJOutputRoot.cc.

References fRootFile, fTree, MJVOutputManager::GetFileName(), MJLogger::GetSeverity(), and MJLog.

Referenced by CloseFile(), MJOutputSolidBlock::EndOfRunAction(), MJOutputNaIBarrel::EndOfRunAction(), MJOutputLANLCloverInNaIBarrel::EndOfRunAction(), MJOutputLANLClover::EndOfRunAction(), and MaGeOutputGermaniumArray::EndOfRunAction().

virtual void MJOutputRoot::DefineSchema  )  [pure virtual]
 

Define Tree Schema (usually at beginning of run). Detector Specific. Pure virtual method. MUST be defined in derived class.

Implements MJVOutputManager.

Implemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock.

virtual void MJOutputRoot::EndOfEventAction const G4Event *  event  )  [inline, virtual]
 

Implements MJVOutputManager.

Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock.

Definition at line 133 of file MJOutputRoot.hh.

virtual void MJOutputRoot::EndOfRunAction  )  [inline, virtual]
 

Implements MJVOutputManager.

Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock.

Definition at line 134 of file MJOutputRoot.hh.

void MJOutputRoot::FillTree  )  [inline]
 

Fill Tree (usually at end of event).

Definition at line 118 of file MJOutputRoot.hh.

References fTree.

Referenced by MJOutputSolidBlock::EndOfEventAction(), MJOutputNaIBarrel::EndOfEventAction(), MJOutputLANLCloverInNaIBarrel::EndOfEventAction(), MJOutputLANLClover::EndOfEventAction(), and MaGeOutputGermaniumArray::EndOfEventAction().

Long_t MJOutputRoot::G4ToRoot G4long  XX  )  [inline]
 

Definition at line 154 of file MJOutputRoot.hh.

Int_t MJOutputRoot::G4ToRoot G4int  XX  )  [inline]
 

Definition at line 153 of file MJOutputRoot.hh.

Float_t MJOutputRoot::G4ToRoot G4float  XX  )  [inline]
 

Definition at line 152 of file MJOutputRoot.hh.

Double_t MJOutputRoot::G4ToRoot G4double  XX  )  [inline]
 

Definition at line 151 of file MJOutputRoot.hh.

Referenced by MJOutputSolidBlock::BeginOfEventAction(), MJOutputLANLClover::BeginOfEventAction(), MaGeOutputGermaniumArray::BeginOfEventAction(), MJOutputSolidBlock::EndOfEventAction(), MJOutputNaIBarrel::EndOfEventAction(), MJOutputLANLClover::EndOfEventAction(), and MJOutputSolidBlock::RootSteppingAction().

TFile* MJOutputRoot::GetRootFile  )  [inline]
 

Definition at line 168 of file MJOutputRoot.hh.

TTree* MJOutputRoot::GetTree  )  [inline]
 

Definition at line 169 of file MJOutputRoot.hh.

G4bool MJOutputRoot::IsMother  )  [inline]
 

Definition at line 170 of file MJOutputRoot.hh.

Referenced by MJOutputSolidBlock::BeginOfRunAction(), MJOutputLANLCloverInNaIBarrel::BeginOfRunAction(), MJOutputLANLClover::BeginOfRunAction(), MaGeOutputGermaniumArray::BeginOfRunAction(), MJOutputSolidBlock::DefineSchema(), MJOutputNaIBarrel::DefineSchema(), MJOutputLANLClover::DefineSchema(), MaGeOutputGermaniumArray::DefineSchema(), MJOutputSolidBlock::EndOfEventAction(), MJOutputNaIBarrel::EndOfEventAction(), MJOutputLANLCloverInNaIBarrel::EndOfEventAction(), MJOutputLANLClover::EndOfEventAction(), MaGeOutputGermaniumArray::EndOfEventAction(), MJOutputSolidBlock::EndOfRunAction(), MJOutputNaIBarrel::EndOfRunAction(), MJOutputLANLCloverInNaIBarrel::EndOfRunAction(), MJOutputLANLClover::EndOfRunAction(), and MaGeOutputGermaniumArray::EndOfRunAction().

void MJOutputRoot::OpenFile const char *  RootFileName  )  [virtual]
 

Implements MJVOutputManager.

Definition at line 84 of file MJOutputRoot.cc.

References OpenRootFile().

void MJOutputRoot::OpenRootFile const char *  RootFileName  ) 
 

Open Root File. Opens Rootfile to save event tree and possibly other Root objects.

Parameters:
RootFileName Name and path of file to open.

Definition at line 96 of file MJOutputRoot.cc.

References fRootFile, and MJLog.

Referenced by MJOutputSolidBlock::BeginOfRunAction(), MJOutputLANLCloverInNaIBarrel::BeginOfRunAction(), MJOutputLANLClover::BeginOfRunAction(), MaGeOutputGermaniumArray::BeginOfRunAction(), and OpenFile().

virtual void MJOutputRoot::RootSteppingAction const G4Step *  step  )  [pure virtual]
 

Modify event tree variables during Geant 4 SteppingAction, ie. accumulate energy deposits, charge distributions, etc. Detector specific. Pure virtual method. MUST be defined in derived class.

Implemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock.

Referenced by SteppingAction().

HepInt MJOutputRoot::ROOTtoCLHEP Int_t  XX  )  [inline]
 

Definition at line 164 of file MJOutputRoot.hh.

HepFloat MJOutputRoot::ROOTtoCLHEP Float_t  XX  )  [inline]
 

Definition at line 163 of file MJOutputRoot.hh.

HepDouble MJOutputRoot::ROOTtoCLHEP Double_t  XX  )  [inline]
 

Definition at line 162 of file MJOutputRoot.hh.

G4long MJOutputRoot::RootToG4 Long_t  XX  )  [inline]
 

Definition at line 148 of file MJOutputRoot.hh.

G4int MJOutputRoot::RootToG4 Int_t  XX  )  [inline]
 

Definition at line 147 of file MJOutputRoot.hh.

G4float MJOutputRoot::RootToG4 Float_t  XX  )  [inline]
 

Definition at line 146 of file MJOutputRoot.hh.

G4double MJOutputRoot::RootToG4 Double_t  XX  )  [inline]
 

Definition at line 145 of file MJOutputRoot.hh.

void MJOutputRoot::SetRootFile TFile *  rfile  )  [inline]
 

Definition at line 172 of file MJOutputRoot.hh.

References fRootFile.

void MJOutputRoot::SetRootFileName G4String  name  )  [inline]
 

Definition at line 171 of file MJOutputRoot.hh.

References MJVOutputManager::SetFileName().

void MJOutputRoot::SetTree TTree *  XtalTree  )  [inline]
 

Definition at line 173 of file MJOutputRoot.hh.

References fTree.

void MJOutputRoot::SteppingAction const G4Step *  step  )  [inline, virtual]
 

Implements MJVOutputManager.

Definition at line 135 of file MJOutputRoot.hh.

References RootSteppingAction().


Member Data Documentation

G4String* MJOutputRoot::fDetectorName [private]
 

Name of Detector being simulated.

Definition at line 193 of file MJOutputRoot.hh.

G4String* MJOutputRoot::fDetectorVersion [private]
 

Version of Detector being simulated.

Definition at line 197 of file MJOutputRoot.hh.

G4bool MJOutputRoot::fIsMother [private]
 

Definition at line 199 of file MJOutputRoot.hh.

TFile * MJOutputRoot::fRootFile = 0 [static, private]
 

File that tree and other information that may be defined in the inherited class is written to.

Definition at line 63 of file MJOutputRoot.cc.

Referenced by CloseRootFile(), OpenRootFile(), and SetRootFile().

TTree * MJOutputRoot::fTree = 0 [static, protected]
 

Tree that is written to file that contains event information.

Definition at line 62 of file MJOutputRoot.cc.

Referenced by CloseRootFile(), FillTree(), and SetTree().


The documentation for this class was generated from the following files:
Generated on Mon Nov 29 16:58:57 2004 for Majorana Simulation by  doxygen 1.3.9.1