Geant4  10.00.p02
G4XmlAnalysisManager Class Reference

#include <G4XmlAnalysisManager.hh>

+ Inheritance diagram for G4XmlAnalysisManager:
+ Collaboration diagram for G4XmlAnalysisManager:

Public Member Functions

 G4XmlAnalysisManager (G4bool isMaster=true)
 
 ~G4XmlAnalysisManager ()
 
tools::histo::h1d * GetH1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::h2d * GetH2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::waxml::ntuple * GetNtuple () const
 
tools::waxml::ntuple * GetNtuple (G4int ntupleId) const
 
- Public Member Functions inherited from G4VAnalysisManager
 G4VAnalysisManager (const G4String &type, G4bool isMaster)
 
virtual ~G4VAnalysisManager ()
 
G4bool OpenFile ()
 
G4bool OpenFile (const G4String &fileName)
 
G4bool Write ()
 
G4bool CloseFile ()
 
G4bool SetFileName (const G4String &fileName)
 
G4bool SetHistoDirectoryName (const G4String &dirName)
 
G4bool SetNtupleDirectoryName (const G4String &dirName)
 
G4String GetFileName () const
 
G4String GetHistoDirectoryName () const
 
G4String GetNtupleDirectoryName () const
 
G4int CreateH1 (const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
 
G4int CreateH1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none")
 
G4int CreateH2 (const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear")
 
G4int CreateH2 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
G4bool SetH1 (G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
 
G4bool SetH1 (G4int id, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none")
 
G4bool SetH2 (G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
 
G4bool SetH2 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
G4bool ScaleH1 (G4int id, G4double factor)
 
G4bool ScaleH2 (G4int id, G4double factor)
 
G4int CreateNtuple (const G4String &name, const G4String &title)
 
G4int CreateNtupleIColumn (const G4String &name)
 
G4int CreateNtupleFColumn (const G4String &name)
 
G4int CreateNtupleDColumn (const G4String &name)
 
void FinishNtuple ()
 
G4int CreateNtupleIColumn (G4int ntupleId, const G4String &name)
 
G4int CreateNtupleFColumn (G4int ntupleId, const G4String &name)
 
G4int CreateNtupleDColumn (G4int ntupleId, const G4String &name)
 
void FinishNtuple (G4int ntupleId)
 
G4bool SetFirstHistoId (G4int firstId)
 
G4bool SetFirstH1Id (G4int firstId)
 
G4bool SetFirstH2Id (G4int firstId)
 
G4bool SetFirstNtupleId (G4int firstId)
 
G4bool SetFirstNtupleColumnId (G4int firstId)
 
G4bool FillH1 (G4int id, G4double value, G4double weight=1.0)
 
G4bool FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
 
G4bool FillNtupleIColumn (G4int id, G4int value)
 
G4bool FillNtupleFColumn (G4int id, G4float value)
 
G4bool FillNtupleDColumn (G4int id, G4double value)
 
G4bool AddNtupleRow ()
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)
 
G4bool AddNtupleRow (G4int ntupleId)
 
void SetActivation (G4bool activation)
 
G4bool GetActivation () const
 
G4bool IsActive () const
 
G4bool IsAscii () const
 
G4int GetNofH1s () const
 
G4int GetNofH2s () const
 
G4int GetNofNtuples () const
 
G4int GetH1Id (const G4String &name, G4bool warn=true) const
 
G4int GetH2Id (const G4String &name, G4bool warn=true) const
 
void SetH1Activation (G4bool activation)
 
void SetH1Activation (G4int id, G4bool activation)
 
void SetH1Ascii (G4int id, G4bool ascii)
 
void SetH2Activation (G4bool activation)
 
void SetH2Activation (G4int id, G4bool activation)
 
void SetH2Ascii (G4int id, G4bool ascii)
 
G4int GetH1Nbins (G4int id) const
 
G4double GetH1Xmin (G4int id) const
 
G4double GetH1Xmax (G4int id) const
 
G4double GetH1Width (G4int id) const
 
G4int GetH2Nxbins (G4int id) const
 
G4double GetH2Xmin (G4int id) const
 
G4double GetH2Xmax (G4int id) const
 
G4double GetH2XWidth (G4int id) const
 
G4int GetH2Nybins (G4int id) const
 
G4double GetH2Ymin (G4int id) const
 
G4double GetH2Ymax (G4int id) const
 
G4double GetH2YWidth (G4int id) const
 
G4String GetH1Name (G4int id) const
 
G4double GetH1Unit (G4int id) const
 
G4bool GetH1Activation (G4int id) const
 
G4bool GetH1Ascii (G4int id) const
 
G4String GetH2Name (G4int id) const
 
G4double GetH2XUnit (G4int id) const
 
G4double GetH2YUnit (G4int id) const
 
G4bool GetH2Activation (G4int id) const
 
G4bool GetH2Ascii (G4int id) const
 
G4bool SetH1Title (G4int id, const G4String &title)
 
G4bool SetH1XAxisTitle (G4int id, const G4String &title)
 
G4bool SetH1YAxisTitle (G4int id, const G4String &title)
 
G4bool SetH2Title (G4int id, const G4String &title)
 
G4bool SetH2XAxisTitle (G4int id, const G4String &title)
 
G4bool SetH2YAxisTitle (G4int id, const G4String &title)
 
G4bool SetH2ZAxisTitle (G4int id, const G4String &title)
 
G4String GetH1Title (G4int id) const
 
G4String GetH1XAxisTitle (G4int id) const
 
G4String GetH1YAxisTitle (G4int id) const
 
G4String GetH2Title (G4int id) const
 
G4String GetH2XAxisTitle (G4int id) const
 
G4String GetH2YAxisTitle (G4int id) const
 
G4String GetH2ZAxisTitle (G4int id) const
 
void SetVerboseLevel (G4int verboseLevel)
 
G4int GetVerboseLevel () const
 
G4String GetType () const
 
G4String GetFileType () const
 

Static Public Member Functions

static G4XmlAnalysisManagerInstance ()
 

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 WriteNtuple ()
 
G4bool CloseNtupleFiles ()
 
G4bool Reset ()
 

Private Attributes

G4H1ToolsManagerfH1Manager
 
G4H2ToolsManagerfH2Manager
 
G4XmlNtupleManagerfNtupleManager
 
G4XmlFileManagerfFileManager
 

Static Private Attributes

static G4XmlAnalysisManagerfgMasterInstance = 0
 
static G4ThreadLocal
G4XmlAnalysisManager
fgInstance = 0
 

Additional Inherited Members

- Protected Attributes inherited from G4VAnalysisManager
G4AnalysisManagerState fState
 

Detailed Description

Definition at line 49 of file G4XmlAnalysisManager.hh.

Constructor & Destructor Documentation

G4XmlAnalysisManager::G4XmlAnalysisManager ( G4bool  isMaster = true)

Definition at line 64 of file G4XmlAnalysisManager.cc.

References FatalException, fFileManager, fgInstance, fgMasterInstance, fH1Manager, fH2Manager, fNtupleManager, G4VAnalysisManager::fState, G4Exception(), G4XmlNtupleManager::SetFileManager(), G4VAnalysisManager::SetFileManager(), G4VAnalysisManager::SetH1Manager(), G4VAnalysisManager::SetH2Manager(), and G4VAnalysisManager::SetNtupleManager().

Referenced by Instance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4XmlAnalysisManager::~G4XmlAnalysisManager ( )

Definition at line 99 of file G4XmlAnalysisManager.cc.

References fgInstance, fgMasterInstance, G4VAnalysisManager::fState, and G4AnalysisManagerState::GetIsMaster().

+ Here is the call graph for this function:

Member Function Documentation

G4bool G4XmlAnalysisManager::CloseNtupleFiles ( )
private

Definition at line 222 of file G4XmlAnalysisManager.cc.

References G4XmlFileManager::CloseNtupleFile(), fFileManager, fNtupleManager, and G4XmlNtupleManager::GetNtupleVector().

Referenced by CloseFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::histo::h1d* G4XmlAnalysisManager::GetH1 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
tools::histo::h2d* G4XmlAnalysisManager::GetH2 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
tools::waxml::ntuple* G4XmlAnalysisManager::GetNtuple ( ) const
tools::waxml::ntuple* G4XmlAnalysisManager::GetNtuple ( G4int  ntupleId) const
G4XmlAnalysisManager * G4XmlAnalysisManager::Instance ( void  )
static

Definition at line 53 of file G4XmlAnalysisManager.cc.

References fgInstance, G4XmlAnalysisManager(), and G4Threading::IsWorkerThread().

+ Here is the call graph for this function:

G4bool G4XmlAnalysisManager::OpenFileImpl ( const G4String fileName)
protectedvirtual
G4bool G4XmlAnalysisManager::Reset ( )
private

Definition at line 238 of file G4XmlAnalysisManager.cc.

References fH1Manager, fH2Manager, fNtupleManager, G4H2ToolsManager::Reset(), G4XmlNtupleManager::Reset(), and G4H1ToolsManager::Reset().

Referenced by CloseFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlAnalysisManager::WriteH1 ( )
private

Definition at line 110 of file G4XmlAnalysisManager.cc.

References G4H1ToolsManager::AddH1Vector(), G4String::append(), G4HnInformation::fActivation, fFileManager, fgMasterInstance, fH1Manager, G4HnInformation::fName, G4VAnalysisManager::fState, G4Exception(), G4H1ToolsManager::GetH1Vector(), G4VFileManager::GetHistoDirectoryName(), G4XmlFileManager::GetHnFile(), G4H1ToolsManager::GetHnVector(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL3(), G4Threading::IsWorkerThread(), JustWarning, G4XmlFileManager::LockHistoDirectoryName(), G4AnalysisVerbose::Message(), name, and G4TemplateAutoLock< M, L, U >::unlock().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlAnalysisManager::WriteH2 ( )
private

Definition at line 159 of file G4XmlAnalysisManager.cc.

References G4H2ToolsManager::AddH2Vector(), G4String::append(), G4HnInformation::fActivation, fFileManager, fgMasterInstance, fH2Manager, G4HnInformation::fName, G4VAnalysisManager::fState, G4Exception(), G4H2ToolsManager::GetH2Vector(), G4VFileManager::GetHistoDirectoryName(), G4XmlFileManager::GetHnFile(), G4H2ToolsManager::GetHnVector(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL3(), G4Threading::IsWorkerThread(), JustWarning, G4XmlFileManager::LockHistoDirectoryName(), G4AnalysisVerbose::Message(), name, and G4TemplateAutoLock< M, L, U >::unlock().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlAnalysisManager::WriteNtuple ( )
private

Definition at line 209 of file G4XmlAnalysisManager.cc.

References fNtupleManager, and G4XmlNtupleManager::GetNtupleVector().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4XmlFileManager* G4XmlAnalysisManager::fFileManager
private
G4ThreadLocal G4XmlAnalysisManager * G4XmlAnalysisManager::fgInstance = 0
staticprivate

Definition at line 75 of file G4XmlAnalysisManager.hh.

Referenced by G4XmlAnalysisManager(), Instance(), and ~G4XmlAnalysisManager().

G4XmlAnalysisManager * G4XmlAnalysisManager::fgMasterInstance = 0
staticprivate
G4H1ToolsManager* G4XmlAnalysisManager::fH1Manager
private
G4H2ToolsManager* G4XmlAnalysisManager::fH2Manager
private
G4XmlNtupleManager* G4XmlAnalysisManager::fNtupleManager
private

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