Geant4  10.00.p01
G4CsvNtupleManager Class Reference

#include <G4CsvNtupleManager.hh>

+ Inheritance diagram for G4CsvNtupleManager:
+ Collaboration diagram for G4CsvNtupleManager:

Protected Member Functions

 G4CsvNtupleManager (const G4AnalysisManagerState &state)
 
 ~G4CsvNtupleManager ()
 
void CreateNtuplesFromBooking ()
 
G4bool IsEmpty () const
 
G4bool Reset ()
 
void SetFileManager (G4CsvFileManager *fileManager)
 
tools::wcsv::ntuple * GetNtuple () const
 
tools::wcsv::ntuple * GetNtuple (G4int ntupleId) const
 
const std::vector
< G4CsvNtupleDescription * > & 
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::wcsv::ntuple::column
< int > * 
GetNtupleIColumn (G4int ntupleId, G4int columnId) const
 
tools::wcsv::ntuple::column
< float > * 
GetNtupleFColumn (G4int ntupleId, G4int columnId) const
 
tools::wcsv::ntuple::column
< double > * 
GetNtupleDColumn (G4int ntupleId, G4int columnId) const
 
virtual G4CsvNtupleDescriptionGetNtupleInFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 

Private Attributes

G4CsvFileManagerfFileManager
 
std::vector
< G4CsvNtupleDescription * > 
fNtupleVector
 

Friends

class G4CsvAnalysisManager
 

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 46 of file G4CsvNtupleManager.hh.

Constructor & Destructor Documentation

G4CsvNtupleManager::G4CsvNtupleManager ( const G4AnalysisManagerState state)
protected

Definition at line 38 of file G4CsvNtupleManager.cc.

G4CsvNtupleManager::~G4CsvNtupleManager ( )
protected

Definition at line 46 of file G4CsvNtupleManager.cc.

References fNtupleVector.

Member Function Documentation

G4bool G4CsvNtupleManager::AddNtupleRow ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 503 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4CsvNtupleManager::AddNtupleRow ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 589 of file G4CsvNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 319 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 312 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 305 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

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

Definition at line 165 of file G4CsvNtupleManager.cc.

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

Referenced by G4CsvAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Implements G4VNtupleManager.

Definition at line 497 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 562 of file G4CsvNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 491 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 535 of file G4CsvNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 485 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 509 of file G4CsvNtupleManager.cc.

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

+ Here is the call graph for this function:

void G4CsvNtupleManager::FinishNtuple ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 326 of file G4CsvNtupleManager.cc.

void G4CsvNtupleManager::FinishNtuple ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 479 of file G4CsvNtupleManager.cc.

G4int G4CsvNtupleManager::GetNofNtuples ( ) const
inlineprotectedvirtual

Implements G4VNtupleManager.

Definition at line 129 of file G4CsvNtupleManager.hh.

References fNtupleVector.

tools::wcsv::ntuple * G4CsvNtupleManager::GetNtuple ( ) const
protected

Definition at line 246 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

tools::wcsv::ntuple * G4CsvNtupleManager::GetNtuple ( G4int  ntupleId) const
protected

Definition at line 252 of file G4CsvNtupleManager.cc.

References G4CsvNtupleDescription::fNtuple, and GetNtupleInFunction().

+ Here is the call graph for this function:

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

Definition at line 115 of file G4CsvNtupleManager.cc.

References G4CsvNtupleDescription::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::wcsv::ntuple::column< float > * G4CsvNtupleManager::GetNtupleFColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 87 of file G4CsvNtupleManager.cc.

References G4CsvNtupleDescription::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::wcsv::ntuple::column< int > * G4CsvNtupleManager::GetNtupleIColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 60 of file G4CsvNtupleManager.cc.

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

Referenced by FillNtupleIColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 141 of file G4CsvNtupleManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::vector< G4CsvNtupleDescription * > & G4CsvNtupleManager::GetNtupleVector ( ) const
inlineprotected

Definition at line 132 of file G4CsvNtupleManager.hh.

References fNtupleVector.

Referenced by G4CsvAnalysisManager::CloseNtupleFiles().

+ Here is the caller graph for this function:

G4bool G4CsvNtupleManager::IsEmpty ( ) const
protected

Definition at line 228 of file G4CsvNtupleManager.cc.

References fNtupleVector.

G4bool G4CsvNtupleManager::Reset ( )
protected

Definition at line 234 of file G4CsvNtupleManager.cc.

References fNtupleVector.

Referenced by G4CsvAnalysisManager::CloseFileImpl().

+ Here is the caller graph for this function:

void G4CsvNtupleManager::SetFileManager ( G4CsvFileManager fileManager)
inlineprotected

Definition at line 126 of file G4CsvNtupleManager.hh.

References fFileManager.

Referenced by G4CsvAnalysisManager::G4CsvAnalysisManager().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4CsvAnalysisManager
friend

Definition at line 48 of file G4CsvNtupleManager.hh.

Member Data Documentation

G4CsvFileManager* G4CsvNtupleManager::fFileManager
private

Definition at line 120 of file G4CsvNtupleManager.hh.

Referenced by CreateNtuple(), CreateNtuplesFromBooking(), and SetFileManager().


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