Geant4  10.01.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
 
std::vector
< tools::waxml::ntuple * >
::iterator 
BeginNtuple ()
 
std::vector
< tools::waxml::ntuple * >
::iterator 
EndNtuple ()
 
std::vector
< tools::waxml::ntuple * >
::const_iterator 
BeginConstNtuple () const
 
std::vector
< tools::waxml::ntuple * >
::const_iterator 
EndConstNtuple () const
 
const std::vector
< G4XmlNtupleDescription * > & 
GetNtupleDescriptionVector () const
 
virtual G4int CreateNtuple (const G4String &name, const G4String &title)
 
virtual G4int CreateNtupleIColumn (const G4String &name, std::vector< int > *vector)
 
virtual G4int CreateNtupleFColumn (const G4String &name, std::vector< float > *vector)
 
virtual G4int CreateNtupleDColumn (const G4String &name, std::vector< double > *vector)
 
virtual G4int CreateNtupleSColumn (const G4String &name)
 
virtual void FinishNtuple ()
 
virtual G4int CreateNtupleIColumn (G4int ntupleId, const G4String &name, std::vector< int > *vector)
 
virtual G4int CreateNtupleFColumn (G4int ntupleId, const G4String &name, std::vector< float > *vector)
 
virtual G4int CreateNtupleDColumn (G4int ntupleId, const G4String &name, std::vector< double > *vector)
 
virtual G4int CreateNtupleSColumn (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 FillNtupleSColumn (G4int columnId, const G4String &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 FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &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)
 
G4int GetFirstNtupleColumnId () 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
 
tools::waxml::ntuple::column
< std::string > * 
GetNtupleSColumn (G4int ntupleId, G4int columnId) const
 
virtual G4XmlNtupleDescriptionGetNtupleInFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 

Private Attributes

G4XmlFileManagerfFileManager
 
std::vector
< G4XmlNtupleDescription * > 
fNtupleDescriptionVector
 
std::vector
< tools::waxml::ntuple * > 
fNtupleVector
 

Friends

class G4XmlAnalysisManager
 

Additional Inherited Members

- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseAnalysisManager ()
 
G4bool SetFirstId (G4int firstId)
 
G4int GetFirstId () const
 
- 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 46 of file G4XmlNtupleManager.cc.

G4XmlNtupleManager::~G4XmlNtupleManager ( )
protected

Definition at line 55 of file G4XmlNtupleManager.cc.

References fNtupleDescriptionVector.

Member Function Documentation

G4bool G4XmlNtupleManager::AddNtupleRow ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 782 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4XmlNtupleManager::AddNtupleRow ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 788 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:

std::vector< tools::waxml::ntuple * >::const_iterator G4XmlNtupleManager::BeginConstNtuple ( ) const
inlineprotected

Definition at line 158 of file G4XmlNtupleManager.hh.

References fNtupleVector.

std::vector< tools::waxml::ntuple * >::iterator G4XmlNtupleManager::BeginNtuple ( )
inlineprotected

Definition at line 150 of file G4XmlNtupleManager.hh.

References fNtupleVector.

G4int G4XmlNtupleManager::CreateNtuple ( const G4String name,
const G4String title 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleDColumn ( const G4String name,
std::vector< double > *  vector 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleDColumn ( G4int  ntupleId,
const G4String name,
std::vector< double > *  vector 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleFColumn ( const G4String name,
std::vector< float > *  vector 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleFColumn ( G4int  ntupleId,
const G4String name,
std::vector< float > *  vector 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleIColumn ( const G4String name,
std::vector< int > *  vector 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleIColumn ( G4int  ntupleId,
const G4String name,
std::vector< int > *  vector 
)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleSColumn ( const G4String name)
protectedvirtual
G4int G4XmlNtupleManager::CreateNtupleSColumn ( G4int  ntupleId,
const G4String name 
)
protectedvirtual
void G4XmlNtupleManager::CreateNtuplesFromBooking ( )
protected

Definition at line 188 of file G4XmlNtupleManager.cc.

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

Referenced by G4XmlAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::waxml::ntuple * >::const_iterator G4XmlNtupleManager::EndConstNtuple ( ) const
inlineprotected

Definition at line 162 of file G4XmlNtupleManager.hh.

References fNtupleVector.

std::vector< tools::waxml::ntuple * >::iterator G4XmlNtupleManager::EndNtuple ( )
inlineprotected

Definition at line 154 of file G4XmlNtupleManager.hh.

References fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 667 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 730 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 661 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 704 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 655 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 679 of file G4XmlNtupleManager.cc.

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

+ Here is the call graph for this function:

G4bool G4XmlNtupleManager::FillNtupleSColumn ( G4int  columnId,
const G4String value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 673 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4XmlNtupleManager::FillNtupleSColumn ( G4int  ntupleId,
G4int  columnId,
const G4String value 
)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 756 of file G4XmlNtupleManager.cc.

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

+ Here is the call graph for this function:

void G4XmlNtupleManager::FinishNtuple ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 368 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleDescriptionVector.

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 165 of file G4XmlNtupleManager.hh.

References fNtupleVector.

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

Definition at line 277 of file G4XmlNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Definition at line 283 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 117 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:

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

Definition at line 169 of file G4XmlNtupleManager.hh.

References fNtupleDescriptionVector.

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

+ Here is the caller graph for this function:

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

Definition at line 93 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 69 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 164 of file G4XmlNtupleManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::waxml::ntuple::column< std::string > * G4XmlNtupleManager::GetNtupleSColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 141 of file G4XmlNtupleManager.cc.

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

Referenced by FillNtupleSColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlNtupleManager::IsEmpty ( ) const
protected

Definition at line 256 of file G4XmlNtupleManager.cc.

References fNtupleDescriptionVector.

G4bool G4XmlNtupleManager::Reset ( )
protected

Definition at line 262 of file G4XmlNtupleManager.cc.

References fNtupleDescriptionVector, and fNtupleVector.

Referenced by G4XmlAnalysisManager::Reset().

+ Here is the caller graph for this function:

void G4XmlNtupleManager::SetFileManager ( G4XmlFileManager fileManager)
inlineprotected

Definition at line 146 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
std::vector<tools::waxml::ntuple*> G4XmlNtupleManager::fNtupleVector
private

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