Geant4
10.00.p01
|
#include <G4RootAnalysisManager.hh>
Static Public Member Functions | |
static G4RootAnalysisManager * | Instance () |
Protected Member Functions | |
virtual G4bool | OpenFileImpl (const G4String &fileName) |
virtual G4bool | WriteImpl () |
virtual G4bool | CloseFileImpl () |
Protected Member Functions inherited from G4VAnalysisManager | |
void | SetH1Manager (G4VH1Manager *h1Manager) |
void | SetH2Manager (G4VH2Manager *h2Manager) |
void | SetNtupleManager (G4VNtupleManager *ntupleManager) |
void | SetFileManager (G4VFileManager *fileManager) |
G4bool | WriteAscii (const G4String &fileName) |
Private Member Functions | |
G4bool | WriteH1 () |
G4bool | WriteH2 () |
G4bool | Reset () |
Private Attributes | |
G4H1ToolsManager * | fH1Manager |
G4H2ToolsManager * | fH2Manager |
G4RootNtupleManager * | fNtupleManager |
G4RootFileManager * | fFileManager |
Static Private Attributes | |
static G4RootAnalysisManager * | fgMasterInstance = 0 |
static G4ThreadLocal G4RootAnalysisManager * | fgInstance = 0 |
Additional Inherited Members | |
Protected Attributes inherited from G4VAnalysisManager | |
G4AnalysisManagerState | fState |
Definition at line 49 of file G4RootAnalysisManager.hh.
G4RootAnalysisManager::G4RootAnalysisManager | ( | G4bool | isMaster = true | ) |
Definition at line 69 of file G4RootAnalysisManager.cc.
References FatalException, fFileManager, fgInstance, fgMasterInstance, fH1Manager, fH2Manager, fNtupleManager, G4VAnalysisManager::fState, G4Exception(), G4VAnalysisManager::SetFileManager(), G4VAnalysisManager::SetH1Manager(), G4VAnalysisManager::SetH2Manager(), and G4VAnalysisManager::SetNtupleManager().
Referenced by Instance().
|
virtual |
Definition at line 103 of file G4RootAnalysisManager.cc.
References fgInstance, fgMasterInstance, G4VAnalysisManager::fState, and G4AnalysisManagerState::GetIsMaster().
|
protectedvirtual |
Implements G4VAnalysisManager.
Definition at line 296 of file G4RootAnalysisManager.cc.
References G4RootFileManager::CloseFile(), fFileManager, fH1Manager, fH2Manager, fNtupleManager, G4VAnalysisManager::fState, G4Exception(), G4VFileManager::GetFullFileName(), G4AnalysisManagerState::GetIsMaster(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), G4H2ToolsManager::IsEmpty(), G4H1ToolsManager::IsEmpty(), G4RootNtupleManager::IsEmpty(), G4AnalysisManagerState::IsMT(), JustWarning, G4AnalysisVerbose::Message(), and Reset().
tools::histo::h1d* G4RootAnalysisManager::GetH1 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Referenced by exGPSHistoManager::book(), RMC01AnalysisManager::book(), Histo::EndOfHisto(), and Histo::ScaleH1().
tools::histo::h2d* G4RootAnalysisManager::GetH2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Referenced by exGPSHistoManager::book(), and RMC01AnalysisManager::book().
tools::wroot::ntuple* G4RootAnalysisManager::GetNtuple | ( | ) | const |
tools::wroot::ntuple* G4RootAnalysisManager::GetNtuple | ( | G4int | ntupleId | ) | const |
|
static |
Definition at line 58 of file G4RootAnalysisManager.cc.
References fgInstance, G4RootAnalysisManager(), and G4Threading::IsWorkerThread().
Referenced by Histo::BeginOfHisto(), Histo::Book(), and Histo::Save().
Implements G4VAnalysisManager.
Definition at line 231 of file G4RootAnalysisManager.cc.
References G4RootNtupleManager::CreateNtuplesFromBooking(), fFileManager, fNtupleManager, G4VAnalysisManager::fState, G4VFileManager::GetFullFileName(), G4RootFileManager::GetNtupleDirectory(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), name, G4RootFileManager::OpenFile(), G4VFileManager::SetFileName(), and G4RootNtupleManager::SetNtupleDirectory().
|
private |
Definition at line 208 of file G4RootAnalysisManager.cc.
References fH1Manager, fH2Manager, fNtupleManager, G4H2ToolsManager::Reset(), G4H1ToolsManager::Reset(), and G4RootNtupleManager::Reset().
Referenced by CloseFileImpl().
|
private |
Definition at line 114 of file G4RootAnalysisManager.cc.
References G4H1ToolsManager::AddH1Vector(), G4HnInformation::fActivation, fFileManager, fgMasterInstance, fH1Manager, G4HnInformation::fName, G4VAnalysisManager::fState, G4Exception(), G4H1ToolsManager::GetH1Vector(), G4RootFileManager::GetHistoDirectory(), G4H1ToolsManager::GetHnVector(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL3(), G4Threading::IsWorkerThread(), JustWarning, G4AnalysisVerbose::Message(), name, and G4TemplateAutoLock< M, L, U >::unlock().
Referenced by WriteImpl().
|
private |
Definition at line 161 of file G4RootAnalysisManager.cc.
References G4H2ToolsManager::AddH2Vector(), G4HnInformation::fActivation, fFileManager, fgMasterInstance, fH2Manager, G4HnInformation::fName, G4VAnalysisManager::fState, G4Exception(), G4H2ToolsManager::GetH2Vector(), G4RootFileManager::GetHistoDirectory(), G4H2ToolsManager::GetHnVector(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL3(), G4Threading::IsWorkerThread(), JustWarning, G4AnalysisVerbose::Message(), name, and G4TemplateAutoLock< M, L, U >::unlock().
Referenced by WriteImpl().
|
protectedvirtual |
Implements G4VAnalysisManager.
Definition at line 258 of file G4RootAnalysisManager.cc.
References fFileManager, fgMasterInstance, fH1Manager, fH2Manager, G4endl, G4Exception(), G4VFileManager::GetFileName(), G4VAnalysisManager::IsAscii(), G4H2ToolsManager::IsEmpty(), G4H1ToolsManager::IsEmpty(), JustWarning, G4VAnalysisManager::WriteAscii(), G4RootFileManager::WriteFile(), WriteH1(), and WriteH2().
|
private |
Definition at line 87 of file G4RootAnalysisManager.hh.
Referenced by CloseFileImpl(), G4RootAnalysisManager(), OpenFileImpl(), WriteH1(), WriteH2(), and WriteImpl().
|
staticprivate |
Definition at line 76 of file G4RootAnalysisManager.hh.
Referenced by G4RootAnalysisManager(), Instance(), and ~G4RootAnalysisManager().
|
staticprivate |
Definition at line 75 of file G4RootAnalysisManager.hh.
Referenced by G4RootAnalysisManager(), WriteH1(), WriteH2(), WriteImpl(), and ~G4RootAnalysisManager().
|
private |
Definition at line 84 of file G4RootAnalysisManager.hh.
Referenced by CloseFileImpl(), G4RootAnalysisManager(), Reset(), WriteH1(), and WriteImpl().
|
private |
Definition at line 85 of file G4RootAnalysisManager.hh.
Referenced by CloseFileImpl(), G4RootAnalysisManager(), Reset(), WriteH2(), and WriteImpl().
|
private |
Definition at line 86 of file G4RootAnalysisManager.hh.
Referenced by CloseFileImpl(), G4RootAnalysisManager(), OpenFileImpl(), and Reset().