Geant4  10.01.p02
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
 
std::vector
< tools::wcsv::ntuple * >
::iterator 
BeginNtuple ()
 
std::vector
< tools::wcsv::ntuple * >
::iterator 
EndNtuple ()
 
std::vector
< tools::wcsv::ntuple * >
::const_iterator 
BeginConstNtuple () const
 
std::vector
< tools::wcsv::ntuple * >
::const_iterator 
EndConstNtuple () const
 
const std::vector
< G4CsvNtupleDescription * > & 
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
 
void SetIsCommentedHeader (G4bool isCommentedHeader)
 
void SetIsHippoHeader (G4bool isHippoHeader)
 
- Protected Member Functions inherited from G4VNtupleManager
 G4VNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4VNtupleManager ()
 
G4bool SetFirstNtupleColumnId (G4int firstId)
 
G4int GetFirstNtupleColumnId () 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
 
tools::wcsv::ntuple::column
< std::string > * 
GetNtupleSColumn (G4int ntupleId, G4int columnId) const
 
virtual G4CsvNtupleDescriptionGetNtupleInFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 
G4bool WriteHeader (tools::wcsv::ntuple *ntuple) const
 

Private Attributes

G4CsvFileManagerfFileManager
 
std::vector
< G4CsvNtupleDescription * > 
fNtupleDescriptionVector
 
std::vector
< tools::wcsv::ntuple * > 
fNtupleVector
 
G4bool fIsCommentedHeader
 
G4bool fIsHippoHeader
 

Friends

class G4CsvAnalysisManager
 

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

Constructor & Destructor Documentation

G4CsvNtupleManager::G4CsvNtupleManager ( const G4AnalysisManagerState state)
protected

Definition at line 43 of file G4CsvNtupleManager.cc.

G4CsvNtupleManager::~G4CsvNtupleManager ( )
protected

Definition at line 54 of file G4CsvNtupleManager.cc.

References fNtupleDescriptionVector.

Member Function Documentation

G4bool G4CsvNtupleManager::AddNtupleRow ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 702 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4CsvNtupleManager::AddNtupleRow ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

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

std::vector< tools::wcsv::ntuple * >::const_iterator G4CsvNtupleManager::BeginConstNtuple ( ) const
inlineprotected

Definition at line 166 of file G4CsvNtupleManager.hh.

References fNtupleVector.

std::vector< tools::wcsv::ntuple * >::iterator G4CsvNtupleManager::BeginNtuple ( )
inlineprotected

Definition at line 158 of file G4CsvNtupleManager.hh.

References fNtupleVector.

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

Definition at line 209 of file G4CsvNtupleManager.cc.

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

Referenced by G4CsvAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::wcsv::ntuple * >::const_iterator G4CsvNtupleManager::EndConstNtuple ( ) const
inlineprotected

Definition at line 170 of file G4CsvNtupleManager.hh.

References fNtupleVector.

std::vector< tools::wcsv::ntuple * >::iterator G4CsvNtupleManager::EndNtuple ( )
inlineprotected

Definition at line 162 of file G4CsvNtupleManager.hh.

References fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 689 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 761 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 683 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 734 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 677 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 708 of file G4CsvNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 695 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 788 of file G4CsvNtupleManager.cc.

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

+ Here is the call graph for this function:

void G4CsvNtupleManager::FinishNtuple ( )
protectedvirtual
void G4CsvNtupleManager::FinishNtuple ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 657 of file G4CsvNtupleManager.cc.

References G4CsvNtupleDescription::fNtuple, G4Exception(), GetNtupleInFunction(), JustWarning, and WriteHeader().

+ Here is the call graph for this function:

G4int G4CsvNtupleManager::GetNofNtuples ( ) const
inlineprotectedvirtual

Implements G4VNtupleManager.

Definition at line 173 of file G4CsvNtupleManager.hh.

References fNtupleDescriptionVector.

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

Definition at line 309 of file G4CsvNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

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

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

Definition at line 177 of file G4CsvNtupleManager.hh.

References fNtupleDescriptionVector.

Referenced by G4CsvAnalysisManager::CloseNtupleFiles().

+ Here is the caller graph for this function:

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

Definition at line 92 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 68 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 164 of file G4CsvNtupleManager.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::wcsv::ntuple::column< std::string > * G4CsvNtupleManager::GetNtupleSColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 141 of file G4CsvNtupleManager.cc.

References G4CsvNtupleDescription::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 G4CsvNtupleManager::IsEmpty ( ) const
protected

Definition at line 290 of file G4CsvNtupleManager.cc.

References fNtupleDescriptionVector.

G4bool G4CsvNtupleManager::Reset ( )
protected

Definition at line 296 of file G4CsvNtupleManager.cc.

References fNtupleDescriptionVector, and fNtupleVector.

Referenced by G4CsvAnalysisManager::Reset().

+ Here is the caller graph for this function:

void G4CsvNtupleManager::SetFileManager ( G4CsvFileManager fileManager)
inlineprotected

Definition at line 154 of file G4CsvNtupleManager.hh.

References fFileManager.

Referenced by G4CsvAnalysisManager::G4CsvAnalysisManager().

+ Here is the caller graph for this function:

void G4CsvNtupleManager::SetIsCommentedHeader ( G4bool  isCommentedHeader)
inlineprotected

Definition at line 180 of file G4CsvNtupleManager.hh.

References fIsCommentedHeader.

void G4CsvNtupleManager::SetIsHippoHeader ( G4bool  isHippoHeader)
inlineprotected

Definition at line 183 of file G4CsvNtupleManager.hh.

References fIsHippoHeader.

G4bool G4CsvNtupleManager::WriteHeader ( tools::wcsv::ntuple *  ntuple) const
private

Definition at line 184 of file G4CsvNtupleManager.cc.

References fIsCommentedHeader, fIsHippoHeader, and G4cout.

Referenced by CreateNtuplesFromBooking(), and FinishNtuple().

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

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

G4bool G4CsvNtupleManager::fIsCommentedHeader
private

Definition at line 148 of file G4CsvNtupleManager.hh.

Referenced by SetIsCommentedHeader(), and WriteHeader().

G4bool G4CsvNtupleManager::fIsHippoHeader
private

Definition at line 149 of file G4CsvNtupleManager.hh.

Referenced by SetIsHippoHeader(), and WriteHeader().

std::vector<tools::wcsv::ntuple*> G4CsvNtupleManager::fNtupleVector
private

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