Geant4  10.00.p01
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
 
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::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
 
virtual G4RootNtupleDescriptionGetNtupleInFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 

Private Attributes

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

Friends

class G4RootAnalysisManager
 

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

Constructor & Destructor Documentation

G4RootNtupleManager::G4RootNtupleManager ( const G4AnalysisManagerState state)
protected

Definition at line 37 of file G4RootNtupleManager.cc.

G4RootNtupleManager::~G4RootNtupleManager ( )
protectedvirtual

Definition at line 45 of file G4RootNtupleManager.cc.

References fNtupleVector.

Member Function Documentation

G4bool G4RootNtupleManager::AddNtupleRow ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 493 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

G4bool G4RootNtupleManager::AddNtupleRow ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

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

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

Implements G4VNtupleManager.

Definition at line 307 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 300 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

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

Implements G4VNtupleManager.

Definition at line 293 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId, and fNtupleVector.

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

Definition at line 158 of file G4RootNtupleManager.cc.

References 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:

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

Implements G4VNtupleManager.

Definition at line 487 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 551 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 481 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 525 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 475 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Implements G4VNtupleManager.

Definition at line 499 of file G4RootNtupleManager.cc.

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

+ Here is the call graph for this function:

void G4RootNtupleManager::FinishNtuple ( )
protectedvirtual

Implements G4VNtupleManager.

Definition at line 314 of file G4RootNtupleManager.cc.

void G4RootNtupleManager::FinishNtuple ( G4int  ntupleId)
protectedvirtual

Implements G4VNtupleManager.

Definition at line 469 of file G4RootNtupleManager.cc.

G4int G4RootNtupleManager::GetNofNtuples ( ) const
inlineprotectedvirtual

Implements G4VNtupleManager.

Definition at line 133 of file G4RootNtupleManager.hh.

References fNtupleVector.

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

Definition at line 237 of file G4RootNtupleManager.cc.

References G4BaseAnalysisManager::fFirstId.

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

Definition at line 243 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 110 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 84 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 59 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 134 of file G4RootNtupleManager.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:

G4bool G4RootNtupleManager::IsEmpty ( ) const
protected

Definition at line 216 of file G4RootNtupleManager.cc.

References fNtupleVector.

Referenced by G4RootAnalysisManager::CloseFileImpl().

+ Here is the caller graph for this function:

G4bool G4RootNtupleManager::Reset ( )
protected

Definition at line 222 of file G4RootNtupleManager.cc.

References fNtupleVector.

Referenced by G4RootAnalysisManager::Reset().

+ Here is the caller graph for this function:

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

Definition at line 128 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

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