Geant4  10.03
G4RootMainNtupleManager Class Reference

#include <G4RootMainNtupleManager.hh>

+ Inheritance diagram for G4RootMainNtupleManager:
+ Collaboration diagram for G4RootMainNtupleManager:

Public Member Functions

 G4RootMainNtupleManager (G4RootNtupleManager *ntupleBuilder, const G4AnalysisManagerState &state)
 
 ~G4RootMainNtupleManager ()
 
- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseAnalysisManager ()
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
G4int GetFirstId () const
 

Protected Types

using NtupleType = tools::wroot::ntuple
 
using NtupleDescriptionType = G4TNtupleDescription< NtupleType >
 

Protected Member Functions

void CreateNtuple (const tools::ntuple_booking &ntupleBooking, G4bool warn=true)
 
void CreateNtuplesFromBooking ()
 
G4bool Merge ()
 
G4bool Reset (G4bool deleteNtuple)
 
void SetNtupleFile (std::shared_ptr< tools::wroot::file > rfile)
 
void SetNtupleDirectory (tools::wroot::directory *directory)
 
std::shared_ptr
< tools::wroot::file > 
GetNtupleFile () const
 
tools::wroot::directory * GetNtupleDirectory () const
 
const std::vector
< NtupleDescriptionType * > & 
GetNtupleDescriptionVector ()
 
const std::vector
< tools::wroot::ntuple * > & 
GetNtupleVector ()
 
unsigned int GetBasketSize () const
 

Private Attributes

G4RootNtupleManagerfNtupleBuilder
 
std::shared_ptr
< tools::wroot::file > 
fNtupleFile
 
tools::wroot::directory * fNtupleDirectory
 
std::vector
< tools::wroot::ntuple * > 
fNtupleVector
 

Friends

class G4RootPNtupleManager
 
class G4RootNtupleManager
 

Additional Inherited Members

- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 51 of file G4RootMainNtupleManager.hh.

Member Typedef Documentation

using G4RootMainNtupleManager::NtupleType = tools::wroot::ntuple
protected

Definition at line 63 of file G4RootMainNtupleManager.hh.

Constructor & Destructor Documentation

G4RootMainNtupleManager::G4RootMainNtupleManager ( G4RootNtupleManager ntupleBuilder,
const G4AnalysisManagerState state 
)
explicit

Definition at line 38 of file G4RootMainNtupleManager.cc.

G4RootMainNtupleManager::~G4RootMainNtupleManager ( )

Definition at line 47 of file G4RootMainNtupleManager.cc.

Member Function Documentation

void G4RootMainNtupleManager::CreateNtuple ( const tools::ntuple_booking &  ntupleBooking,
G4bool  warn = true 
)
protected

Definition at line 61 of file G4RootMainNtupleManager.cc.

References fNtupleBuilder, fNtupleDirectory, fNtupleVector, G4BaseAnalysisManager::fState, G4endl, G4Exception(), G4RootNtupleManager::GetBasketSize(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by CreateNtuplesFromBooking().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RootMainNtupleManager::CreateNtuplesFromBooking ( )
protected

Definition at line 102 of file G4RootMainNtupleManager.cc.

References CreateNtuple(), fNtupleBuilder, fNtupleDirectory, G4endl, G4Exception(), G4RootNtupleManager::GetNtupleDescriptionVector(), and JustWarning.

+ Here is the call graph for this function:

unsigned int G4RootMainNtupleManager::GetBasketSize ( ) const
protected
const std::vector<NtupleDescriptionType*>& G4RootMainNtupleManager::GetNtupleDescriptionVector ( )
inlineprotected

Definition at line 79 of file G4RootMainNtupleManager.hh.

References fNtupleBuilder, and G4RootNtupleManager::GetNtupleDescriptionVector().

+ Here is the call graph for this function:

tools::wroot::directory * G4RootMainNtupleManager::GetNtupleDirectory ( ) const
inlineprotected

Definition at line 102 of file G4RootMainNtupleManager.hh.

References fNtupleDirectory.

Referenced by G4RootPNtupleManager::CreateNtuple().

+ Here is the caller graph for this function:

std::shared_ptr< tools::wroot::file > G4RootMainNtupleManager::GetNtupleFile ( ) const
inlineprotected

Definition at line 99 of file G4RootMainNtupleManager.hh.

References fNtupleFile.

Referenced by G4RootPNtupleManager::CreateNtuple().

+ Here is the caller graph for this function:

const std::vector<tools::wroot::ntuple*>& G4RootMainNtupleManager::GetNtupleVector ( )
inlineprotected

Definition at line 81 of file G4RootMainNtupleManager.hh.

References fNtupleVector.

Referenced by G4RootPNtupleManager::CreateNtuplesFromMain(), and G4RootPNtupleManager::GetMainNtupleInFunction().

+ Here is the caller graph for this function:

G4bool G4RootMainNtupleManager::Merge ( )
protected

Definition at line 127 of file G4RootMainNtupleManager.cc.

References fNtupleVector.

G4bool G4RootMainNtupleManager::Reset ( G4bool  deleteNtuple)
protected

Definition at line 137 of file G4RootMainNtupleManager.cc.

References fNtupleVector.

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

Definition at line 96 of file G4RootMainNtupleManager.hh.

References fNtupleDirectory.

void G4RootMainNtupleManager::SetNtupleFile ( std::shared_ptr< tools::wroot::file >  rfile)
inlineprotected

Definition at line 93 of file G4RootMainNtupleManager.hh.

References fNtupleFile.

Friends And Related Function Documentation

friend class G4RootNtupleManager
friend

Definition at line 54 of file G4RootMainNtupleManager.hh.

friend class G4RootPNtupleManager
friend

Definition at line 53 of file G4RootMainNtupleManager.hh.

Member Data Documentation

G4RootNtupleManager* G4RootMainNtupleManager::fNtupleBuilder
private
tools::wroot::directory* G4RootMainNtupleManager::fNtupleDirectory
private
std::shared_ptr<tools::wroot::file> G4RootMainNtupleManager::fNtupleFile
private

Definition at line 88 of file G4RootMainNtupleManager.hh.

Referenced by GetNtupleFile(), and SetNtupleFile().

std::vector<tools::wroot::ntuple*> G4RootMainNtupleManager::fNtupleVector
private

Definition at line 90 of file G4RootMainNtupleManager.hh.

Referenced by CreateNtuple(), GetNtupleVector(), Merge(), and Reset().


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