Geant4  10.00.p03
G4XmlNtupleManager Class Reference

#include <G4XmlNtupleManager.hh>

+ Inheritance diagram for G4XmlNtupleManager:
+ Collaboration diagram for G4XmlNtupleManager:

Protected Member Functions

 G4XmlNtupleManager (const G4AnalysisManagerState &state)
 
 ~G4XmlNtupleManager ()
 
void CreateNtuplesFromBooking ()
 
G4bool IsEmpty () const
 
G4bool Reset ()
 
void SetFileManager (G4XmlFileManager *fileManager)
 
tools::waxml::ntuple * GetNtuple () const
 
tools::waxml::ntuple * GetNtuple (G4int ntupleId) const
 
const std::vector
< G4XmlNtupleDescription * > & 
GetNtupleVector () const
 
virtual G4int CreateNtuple (const G4String &name, const G4String &title)
 
virtual G4int CreateNtupleIColumn (const G4String &name)
 
virtual G4int CreateNtupleFColumn (const G4String &name)
 
virtual G4int CreateNtupleDColumn (const G4String &name)
 
virtual void FinishNtuple ()
 
virtual G4int CreateNtupleIColumn (G4int ntupleId, const G4String &name)
 
virtual G4int CreateNtupleFColumn (G4int ntupleId, const G4String &name)
 
virtual G4int CreateNtupleDColumn (G4int ntupleId, const G4String &name)
 
virtual void FinishNtuple (G4int ntupleId)
 
virtual G4bool FillNtupleIColumn (G4int columnId, G4int value)
 
virtual G4bool FillNtupleFColumn (G4int columnId, G4float value)
 
virtual G4bool FillNtupleDColumn (G4int columnId, G4double value)
 
virtual G4bool AddNtupleRow ()
 
virtual G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)
 
virtual G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)
 
virtual G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)
 
virtual G4bool AddNtupleRow (G4int ntupleId)
 
virtual G4int GetNofNtuples () const
 
- Protected Member Functions inherited from G4VNtupleManager
 G4VNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4VNtupleManager ()
 
G4bool SetFirstNtupleColumnId (G4int firstId)
 
- Protected Member Functions inherited from G4BaseAnalysisManager
void ExceptionForHistograms (const G4String &functionName) const
 

Private Member Functions

tools::waxml::ntuple::column
< int > * 
GetNtupleIColumn (G4int ntupleId, G4int columnId) const
 
tools::waxml::ntuple::column
< float > * 
GetNtupleFColumn (G4int ntupleId, G4int columnId) const
 
tools::waxml::ntuple::column
< double > * 
GetNtupleDColumn (G4int ntupleId, G4int columnId) const
 
virtual G4XmlNtupleDescriptionGetNtupleInFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 

Private Attributes

G4XmlFileManagerfFileManager
 
std::vector
< G4XmlNtupleDescription * > 
fNtupleVector
 

Friends

class G4XmlAnalysisManager
 

Additional Inherited Members

- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseAnalysisManager ()
 
G4bool SetFirstId (G4int firstId)
 
- Protected Attributes inherited from G4VNtupleManager
G4int fFirstNtupleColumnId
 
G4bool fLockFirstNtupleColumnId
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 45 of file G4XmlNtupleManager.hh.

Constructor & Destructor Documentation

G4XmlNtupleManager::G4XmlNtupleManager ( const G4AnalysisManagerState state)
protected

Definition at line 42 of file G4XmlNtupleManager.cc.

G4XmlNtupleManager::~G4XmlNtupleManager ( )
protected

Definition at line 50 of file G4XmlNtupleManager.cc.

References fNtupleVector.

Member Function Documentation

G4bool G4XmlNtupleManager::AddNtupleRow ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 622 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4XmlNtupleManager::AddNtupleRow ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 628 of file G4XmlNtupleManager.cc.

References G4XmlNtupleDescription::fNtuple, G4BaseAnalysisManager::fState, G4Exception(), GetNtupleInFunction(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

G4int G4XmlNtupleManager::CreateNtuple ( const G4String name,
const G4String title 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleDColumn ( const G4String name)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 316 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

G4int G4XmlNtupleManager::CreateNtupleDColumn ( G4int  ntupleId,
const G4String name 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleFColumn ( const G4String name)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 309 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

G4int G4XmlNtupleManager::CreateNtupleFColumn ( G4int  ntupleId,
const G4String name 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleIColumn ( const G4String name)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 302 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

G4int G4XmlNtupleManager::CreateNtupleIColumn ( G4int  ntupleId,
const G4String name 
)
protectedvirtual
void G4XmlNtupleManager::CreateNtuplesFromBooking ( )
protected

Definition at line 159 of file G4XmlNtupleManager.cc.

References G4XmlFileManager::CreateNtupleFile(), fFileManager, FinishNtuple(), fNtupleVector, G4BaseAnalysisManager::fState, G4cerr, G4Exception(), G4AnalysisManagerState::GetIsMaster(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisManagerState::IsMT(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4XmlAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlNtupleManager::FillNtupleDColumn ( G4int  columnId,
G4double  value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 539 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4XmlNtupleManager::FillNtupleDColumn ( G4int  ntupleId,
G4int  columnId,
G4double  value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 596 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fState, G4Exception(), GetNtupleDColumn(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

G4bool G4XmlNtupleManager::FillNtupleFColumn ( G4int  columnId,
G4float  value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 533 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4XmlNtupleManager::FillNtupleFColumn ( G4int  ntupleId,
G4int  columnId,
G4float  value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 570 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fState, G4Exception(), GetNtupleFColumn(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

G4bool G4XmlNtupleManager::FillNtupleIColumn ( G4int  columnId,
G4int  value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 527 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4XmlNtupleManager::FillNtupleIColumn ( G4int  ntupleId,
G4int  columnId,
G4int  value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 545 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fState, G4Exception(), GetNtupleIColumn(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

void G4XmlNtupleManager::FinishNtuple ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 323 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

Referenced by CreateNtuplesFromBooking().

+ Here is the caller graph for this function:

void G4XmlNtupleManager::FinishNtuple ( G4int  ntupleId)
protectedvirtual
G4int G4XmlNtupleManager::GetNofNtuples ( ) const
inlineprotectedvirtual

Implements G4VNtupleManager.

Definition at line 128 of file G4XmlNtupleManager.hh.

References fNtupleVector.

tools::waxml::ntuple * G4XmlNtupleManager::GetNtuple ( ) const
protected

Definition at line 244 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

tools::waxml::ntuple * G4XmlNtupleManager::GetNtuple ( G4int  ntupleId) const
protected

Definition at line 250 of file G4XmlNtupleManager.cc.

References G4XmlNtupleDescription::fNtuple, and GetNtupleInFunction().

+ Here is the call graph for this function:

tools::waxml::ntuple::column< double > * G4XmlNtupleManager::GetNtupleDColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 112 of file G4XmlNtupleManager.cc.

References G4XmlNtupleDescription::fNtupleDColumnMap, G4Exception(), GetNtupleInFunction(), and JustWarning.

Referenced by FillNtupleDColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::waxml::ntuple::column< float > * G4XmlNtupleManager::GetNtupleFColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 88 of file G4XmlNtupleManager.cc.

References G4XmlNtupleDescription::fNtupleFColumnMap, G4Exception(), GetNtupleInFunction(), and JustWarning.

Referenced by FillNtupleFColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::waxml::ntuple::column< int > * G4XmlNtupleManager::GetNtupleIColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 64 of file G4XmlNtupleManager.cc.

References G4XmlNtupleDescription::fNtupleIColumnMap, G4Exception(), GetNtupleInFunction(), and JustWarning.

Referenced by FillNtupleIColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4XmlNtupleDescription * G4XmlNtupleManager::GetNtupleInFunction ( G4int  id,
G4String  function,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
privatevirtual

Definition at line 135 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, fNtupleVector, G4Exception(), and JustWarning.

Referenced by AddNtupleRow(), CreateNtupleDColumn(), CreateNtupleFColumn(), CreateNtupleIColumn(), FinishNtuple(), GetNtuple(), GetNtupleDColumn(), GetNtupleFColumn(), and GetNtupleIColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::vector< G4XmlNtupleDescription * > & G4XmlNtupleManager::GetNtupleVector ( ) const
inlineprotected

Definition at line 131 of file G4XmlNtupleManager.hh.

References fNtupleVector.

Referenced by G4XmlAnalysisManager::CloseNtupleFiles(), and G4XmlAnalysisManager::WriteNtuple().

+ Here is the caller graph for this function:

G4bool G4XmlNtupleManager::IsEmpty ( ) const
protected

Definition at line 224 of file G4XmlNtupleManager.cc.

References fNtupleVector.

G4bool G4XmlNtupleManager::Reset ( )
protected

Definition at line 230 of file G4XmlNtupleManager.cc.

References fNtupleVector.

Referenced by G4XmlAnalysisManager::Reset().

+ Here is the caller graph for this function:

void G4XmlNtupleManager::SetFileManager ( G4XmlFileManager fileManager)
inlineprotected

Definition at line 125 of file G4XmlNtupleManager.hh.

References fFileManager.

Referenced by G4XmlAnalysisManager::G4XmlAnalysisManager().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4XmlAnalysisManager
friend

Definition at line 47 of file G4XmlNtupleManager.hh.

Member Data Documentation

G4XmlFileManager* G4XmlNtupleManager::fFileManager
private

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