#include <MJOutputRoot.hh>
Inheritance diagram for MJOutputRoot:
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 |
|
Definition at line 67 of file MJOutputRoot.cc. |
|
Definition at line 73 of file MJOutputRoot.cc. |
|
Definition at line 78 of file MJOutputRoot.cc. |
|
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. |
|
Implements MJVOutputManager. Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock. Definition at line 132 of file MJOutputRoot.hh. |
|
Definition at line 159 of file MJOutputRoot.hh. |
|
Definition at line 158 of file MJOutputRoot.hh. |
|
Definition at line 157 of file MJOutputRoot.hh. |
|
Implements MJVOutputManager. Definition at line 89 of file MJOutputRoot.cc. References 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(). |
|
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. |
|
Implements MJVOutputManager. Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock. Definition at line 133 of file MJOutputRoot.hh. |
|
Implements MJVOutputManager. Reimplemented in MaGeOutputGermaniumArray, MJOutputLANLClover, MJOutputLANLCloverInNaIBarrel, MJOutputNaIBarrel, and MJOutputSolidBlock. Definition at line 134 of file MJOutputRoot.hh. |
|
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(). |
|
Definition at line 154 of file MJOutputRoot.hh. |
|
Definition at line 153 of file MJOutputRoot.hh. |
|
Definition at line 152 of file MJOutputRoot.hh. |
|
|
Definition at line 168 of file MJOutputRoot.hh. |
|
Definition at line 169 of file MJOutputRoot.hh. |
|
|
Implements MJVOutputManager. Definition at line 84 of file MJOutputRoot.cc. References OpenRootFile(). |
|
Open Root File. Opens Rootfile to save event tree and possibly other Root objects.
Definition at line 96 of file MJOutputRoot.cc. References fRootFile, and MJLog. Referenced by MJOutputSolidBlock::BeginOfRunAction(), MJOutputLANLCloverInNaIBarrel::BeginOfRunAction(), MJOutputLANLClover::BeginOfRunAction(), MaGeOutputGermaniumArray::BeginOfRunAction(), and OpenFile(). |
|
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(). |
|
Definition at line 164 of file MJOutputRoot.hh. |
|
Definition at line 163 of file MJOutputRoot.hh. |
|
Definition at line 162 of file MJOutputRoot.hh. |
|
Definition at line 148 of file MJOutputRoot.hh. |
|
Definition at line 147 of file MJOutputRoot.hh. |
|
Definition at line 146 of file MJOutputRoot.hh. |
|
Definition at line 145 of file MJOutputRoot.hh. |
|
Definition at line 172 of file MJOutputRoot.hh. References fRootFile. |
|
Definition at line 171 of file MJOutputRoot.hh. References MJVOutputManager::SetFileName(). |
|
Definition at line 173 of file MJOutputRoot.hh. References fTree. |
|
Implements MJVOutputManager. Definition at line 135 of file MJOutputRoot.hh. References RootSteppingAction(). |
|
Name of Detector being simulated. Definition at line 193 of file MJOutputRoot.hh. |
|
Version of Detector being simulated. Definition at line 197 of file MJOutputRoot.hh. |
|
Definition at line 199 of file MJOutputRoot.hh. |
|
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(). |
|
Tree that is written to file that contains event information. Definition at line 62 of file MJOutputRoot.cc. Referenced by CloseRootFile(), FillTree(), and SetTree(). |