Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RootNtupleManager Class Reference

#include <G4RootNtupleManager.hh>

+ Inheritance diagram for G4RootNtupleManager:

Public Member Functions

 G4RootNtupleManager (const G4AnalysisManagerState &state, const std::shared_ptr< G4NtupleBookingManager > &bookingManger, G4int nofMainManagers, G4int nofReducedFiles, G4bool rowWise, G4bool rowMode)
 
 G4RootNtupleManager ()=delete
 
 ~G4RootNtupleManager () override=default
 
- Public Member Functions inherited from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >
 G4TNtupleManager (const G4AnalysisManagerState &state)
 
 G4TNtupleManager ()=delete
 
 ~G4TNtupleManager () override
 
- Public Member Functions inherited from G4BaseNtupleManager
 G4BaseNtupleManager (const G4AnalysisManagerState &state)
 
 G4BaseNtupleManager ()=delete
 
 ~G4BaseNtupleManager () override=default
 
 G4BaseNtupleManager (const G4BaseNtupleManager &rhs)=delete
 
G4BaseNtupleManageroperator= (const G4BaseNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4VNtupleManager
 G4VNtupleManager (const G4AnalysisManagerState &state)
 
 G4VNtupleManager ()=delete
 
 ~G4VNtupleManager () override=default
 
 G4VNtupleManager (const G4VNtupleManager &rhs)=delete
 
G4VNtupleManageroperator= (const G4VNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
 G4BaseAnalysisManager ()=delete
 
virtual ~G4BaseAnalysisManager ()=default
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
G4int GetFirstId () const
 
G4int GetCycle () const
 

Friends

class G4RootAnalysisManager
 
class G4RootMainNtupleManager
 
class G4RootNtupleFileManager
 
class G4RootMpiNtupleFileManager
 
class G4RootMpiNtupleManager
 

Additional Inherited Members

- Protected Member Functions inherited from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >
G4int CreateNtuple (G4NtupleBooking *ntupleBooking) override
 
virtual void CreateNtuplesFromBooking (const std::vector< G4NtupleBooking * > &ntupleBookings)
 
virtual G4bool Reset ()
 
void Clear () override
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) final
 
G4bool FillNtupleIColumn (G4int id, G4int value) final
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) override=0
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) final
 
G4bool FillNtupleFColumn (G4int id, G4float value) final
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) override=0
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) final
 
G4bool FillNtupleDColumn (G4int id, G4double value) final
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) override=0
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) final
 
G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) override=0
 
G4bool AddNtupleRow (G4int ntupleId) override
 
G4bool AddNtupleRow () final
 
G4bool AddNtupleRow (G4int ntupleId) override=0
 
void SetActivation (G4bool activation) final
 
void SetActivation (G4int ntupleId, G4bool activation) final
 
G4bool GetActivation (G4int ntupleId) const final
 
void SetNewCycle (G4bool value) override
 
G4bool GetNewCycle () const override
 
tools::wroot::ntuple * GetNtuple () const
 
tools::wroot::ntuple * GetNtuple (G4int ntupleId) const
 
G4int GetNofNtuples () const final
 
G4bool List (std::ostream &output, G4bool onlyIfActive=true) final
 
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
 
- Protected Member Functions inherited from G4BaseNtupleManager
G4int CreateNtuple (G4NtupleBooking *booking) override=0
 
G4bool FillNtupleIColumn (G4int id, G4int value) final
 
G4bool FillNtupleFColumn (G4int id, G4float value) final
 
G4bool FillNtupleDColumn (G4int id, G4double value) final
 
G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
G4bool AddNtupleRow () final
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) override=0
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) override=0
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) override=0
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) override=0
 
G4bool AddNtupleRow (G4int ntupleId) override=0
 
G4bool SetFirstNtupleColumnId (G4int firstId) final
 
virtual G4int CreateNtuple (G4NtupleBooking *booking)=0
 
virtual G4bool FillNtupleIColumn (G4int id, G4int value)=0
 
virtual G4bool FillNtupleFColumn (G4int id, G4float value)=0
 
virtual G4bool FillNtupleDColumn (G4int id, G4double value)=0
 
virtual G4bool FillNtupleSColumn (G4int id, const G4String &value)=0
 
virtual G4bool AddNtupleRow ()=0
 
virtual G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)=0
 
virtual G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)=0
 
virtual G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)=0
 
virtual G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value)=0
 
virtual G4bool AddNtupleRow (G4int ntupleId)=0
 
virtual void SetActivation (G4bool activation)=0
 
virtual void SetActivation (G4int id, G4bool activation)=0
 
virtual G4bool GetActivation (G4int id) const =0
 
virtual void SetNewCycle (G4bool value)=0
 
virtual G4bool GetNewCycle () const =0
 
virtual G4int GetNofNtuples () const =0
 
virtual G4bool SetFirstNtupleColumnId (G4int firstId)=0
 
virtual void Clear ()=0
 
virtual G4bool List (std::ostream &output, G4bool onlyIfActive=true)=0
 
- Protected Member Functions inherited from G4BaseAnalysisManager
G4bool IsVerbose (G4int verboseLevel) const
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 
- Protected Attributes inherited from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >
std::vector< G4TNtupleDescription< tools::wroot::ntuple, G4RootFile > * > fNtupleDescriptionVector
 
std::vector< tools::wroot::ntuple * > fNtupleVector
 
const std::vector< G4NtupleBooking * > * fNtupleBookingVector
 
G4bool fNewCycle
 
- Protected Attributes inherited from G4BaseNtupleManager
G4int fFirstNtupleColumnId { 0 }
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId { 0 }
 
G4bool fLockFirstId { false }
 

Detailed Description

Definition at line 58 of file G4RootNtupleManager.hh.

Constructor & Destructor Documentation

◆ G4RootNtupleManager() [1/2]

G4RootNtupleManager::G4RootNtupleManager ( const G4AnalysisManagerState state,
const std::shared_ptr< G4NtupleBookingManager > &  bookingManger,
G4int  nofMainManagers,
G4int  nofReducedFiles,
G4bool  rowWise,
G4bool  rowMode 
)

Definition at line 41 of file G4RootNtupleManager.cc.

46 fRowWise(rowWise),
47 fRowMode(rowMode)
48{
49 for ( G4int i=0; i<nofMainManagers; ++i) {
50 auto fileNumber = i;
51 if ( (i == 0) && (nofFiles == 0) ) {
52 // the main ntuple file will be merged in the default file
53 fileNumber = -1;
54 }
55 fMainNtupleManagers.push_back(
56 std::make_shared<G4RootMainNtupleManager>(
57 this, bookingManger, rowWise, fileNumber, fState));
58 }
59}
int G4int
Definition: G4Types.hh:85
const G4AnalysisManagerState & fState

◆ G4RootNtupleManager() [2/2]

G4RootNtupleManager::G4RootNtupleManager ( )
delete

◆ ~G4RootNtupleManager()

G4RootNtupleManager::~G4RootNtupleManager ( )
overridedefault

Friends And Related Function Documentation

◆ G4RootAnalysisManager

friend class G4RootAnalysisManager
friend

Definition at line 61 of file G4RootNtupleManager.hh.

◆ G4RootMainNtupleManager

friend class G4RootMainNtupleManager
friend

Definition at line 62 of file G4RootNtupleManager.hh.

◆ G4RootMpiNtupleFileManager

friend class G4RootMpiNtupleFileManager
friend

Definition at line 64 of file G4RootNtupleManager.hh.

◆ G4RootMpiNtupleManager

friend class G4RootMpiNtupleManager
friend

Definition at line 65 of file G4RootNtupleManager.hh.

◆ G4RootNtupleFileManager

friend class G4RootNtupleFileManager
friend

Definition at line 63 of file G4RootNtupleManager.hh.


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