Geant4  10.01.p03
G4RootNtupleManager Class Reference

#include <G4RootNtupleManager.hh>

+ Inheritance diagram for G4RootNtupleManager:
+ Collaboration diagram for G4RootNtupleManager:

Protected Member Functions

 G4RootNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4RootNtupleManager ()
 
void CreateNtuplesFromBooking ()
 
G4bool IsEmpty () const
 
G4bool Reset ()
 
void SetNtupleDirectory (tools::wroot::directory *directory)
 
tools::wroot::ntuple * GetNtuple () const
 
tools::wroot::ntuple * GetNtuple (G4int ntupleId) const
 
std::vector
< tools::wroot::ntuple * >
::iterator 
BeginNtuple ()
 
std::vector
< tools::wroot::ntuple * >
::iterator 
EndNtuple ()
 
std::vector
< tools::wroot::ntuple * >
::const_iterator 
BeginConstNtuple () const
 
std::vector
< tools::wroot::ntuple * >
::const_iterator 
EndConstNtuple () 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::wroot::ntuple::column
< int > * 
GetNtupleIColumn (G4int ntupleId, G4int columnId) const
 
tools::wroot::ntuple::column
< float > * 
GetNtupleFColumn (G4int ntupleId, G4int columnId) const
 
tools::wroot::ntuple::column
< double > * 
GetNtupleDColumn (G4int ntupleId, G4int columnId) const
 
tools::wroot::ntuple::column_string * GetNtupleSColumn (G4int ntupleId, G4int columnId) const
 
virtual G4RootNtupleDescriptionGetNtupleInFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 

Private Attributes

tools::wroot::directory * fNtupleDirectory
 
std::vector
< G4RootNtupleDescription * > 
fNtupleDescriptionVector
 
std::vector
< tools::wroot::ntuple * > 
fNtupleVector
 

Friends

class G4RootAnalysisManager
 

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 51 of file G4RootNtupleManager.hh.

Constructor & Destructor Documentation

G4RootNtupleManager::G4RootNtupleManager ( const G4AnalysisManagerState state)
protected

Definition at line 40 of file G4RootNtupleManager.cc.

G4RootNtupleManager::~G4RootNtupleManager ( )
protectedvirtual

Definition at line 49 of file G4RootNtupleManager.cc.

References fNtupleDescriptionVector.

Member Function Documentation

G4bool G4RootNtupleManager::AddNtupleRow ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 636 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4RootNtupleManager::AddNtupleRow ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 748 of file G4RootNtupleManager.cc.

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

+ Here is the call graph for this function:

std::vector< tools::wroot::ntuple * >::const_iterator G4RootNtupleManager::BeginConstNtuple ( ) const
inlineprotected

Definition at line 161 of file G4RootNtupleManager.hh.

References fNtupleVector.

std::vector< tools::wroot::ntuple * >::iterator G4RootNtupleManager::BeginNtuple ( )
inlineprotected

Definition at line 153 of file G4RootNtupleManager.hh.

References fNtupleVector.

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

Definition at line 187 of file G4RootNtupleManager.cc.

References fNtupleDescriptionVector, fNtupleDirectory, fNtupleVector, G4BaseAnalysisManager::fState, G4Exception(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4RootAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::wroot::ntuple * >::const_iterator G4RootNtupleManager::EndConstNtuple ( ) const
inlineprotected

Definition at line 165 of file G4RootNtupleManager.hh.

References fNtupleVector.

std::vector< tools::wroot::ntuple * >::iterator G4RootNtupleManager::EndNtuple ( )
inlineprotected

Definition at line 157 of file G4RootNtupleManager.hh.

References fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 623 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 695 of file G4RootNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 617 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 668 of file G4RootNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 611 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 642 of file G4RootNtupleManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VNtupleManager.

Definition at line 629 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 722 of file G4RootNtupleManager.cc.

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

+ Here is the call graph for this function:

void G4RootNtupleManager::FinishNtuple ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 361 of file G4RootNtupleManager.cc.

void G4RootNtupleManager::FinishNtuple ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 605 of file G4RootNtupleManager.cc.

G4int G4RootNtupleManager::GetNofNtuples ( ) const
inlineprotectedvirtual

Implements G4VNtupleManager.

Definition at line 168 of file G4RootNtupleManager.hh.

References fNtupleVector.

tools::wroot::ntuple * G4RootNtupleManager::GetNtuple ( ) const
protected

Definition at line 272 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

tools::wroot::ntuple * G4RootNtupleManager::GetNtuple ( G4int  ntupleId) const
protected

Definition at line 278 of file G4RootNtupleManager.cc.

References G4RootNtupleDescription::fNtuple, and GetNtupleInFunction().

+ Here is the call graph for this function:

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

Definition at line 114 of file G4RootNtupleManager.cc.

References G4RootNtupleDescription::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::wroot::ntuple::column< float > * G4RootNtupleManager::GetNtupleFColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 88 of file G4RootNtupleManager.cc.

References G4RootNtupleDescription::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::wroot::ntuple::column< int > * G4RootNtupleManager::GetNtupleIColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 63 of file G4RootNtupleManager.cc.

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

Referenced by FillNtupleIColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 163 of file G4RootNtupleManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::wroot::ntuple::column_string * G4RootNtupleManager::GetNtupleSColumn ( G4int  ntupleId,
G4int  columnId 
) const
private

Definition at line 139 of file G4RootNtupleManager.cc.

References G4RootNtupleDescription::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 G4RootNtupleManager::IsEmpty ( ) const
protected

Definition at line 250 of file G4RootNtupleManager.cc.

References fNtupleDescriptionVector.

Referenced by G4RootAnalysisManager::CloseFileImpl().

+ Here is the caller graph for this function:

G4bool G4RootNtupleManager::Reset ( )
protected

Definition at line 256 of file G4RootNtupleManager.cc.

References fNtupleDescriptionVector, and fNtupleVector.

Referenced by G4RootAnalysisManager::Reset().

+ Here is the caller graph for this function:

void G4RootNtupleManager::SetNtupleDirectory ( tools::wroot::directory *  directory)
inlineprotected

Definition at line 148 of file G4RootNtupleManager.hh.

References fNtupleDirectory.

Referenced by G4RootAnalysisManager::OpenFileImpl().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4RootAnalysisManager
friend

Definition at line 53 of file G4RootNtupleManager.hh.

Member Data Documentation

tools::wroot::directory* G4RootNtupleManager::fNtupleDirectory
private
std::vector<tools::wroot::ntuple*> G4RootNtupleManager::fNtupleVector
private

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