Geant4 10.7.0
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, std::shared_ptr< G4NtupleBookingManager > bookingManger, G4int nofMainManagers, G4int nofReducedFiles, G4bool rowWise, G4bool rowMode)
 
virtual ~G4RootNtupleManager ()
 
- Public Member Functions inherited from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >
 G4TNtupleManager (const G4AnalysisManagerState &state)
 
 ~G4TNtupleManager ()
 
- Public Member Functions inherited from G4BaseNtupleManager
 G4BaseNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseNtupleManager ()
 
 G4BaseNtupleManager (const G4BaseNtupleManager &rhs)=delete
 
G4BaseNtupleManageroperator= (const G4BaseNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4VNtupleManager
 G4VNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4VNtupleManager ()
 
 G4VNtupleManager (const G4VNtupleManager &rhs)=delete
 
G4VNtupleManageroperator= (const G4VNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseAnalysisManager ()
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
G4int GetFirstId () 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 >
virtual G4int CreateNtuple (G4NtupleBooking *ntupleBooking) override
 
virtual void CreateNtuplesFromBooking (const std::vector< G4NtupleBooking * > &ntupleBookings)
 
virtual G4bool Reset (G4bool deleteNtuple)
 
virtual G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) final
 
virtual G4bool FillNtupleIColumn (G4int id, G4int value) final
 
virtual G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)=0
 
virtual G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) final
 
virtual G4bool FillNtupleFColumn (G4int id, G4float value) final
 
virtual G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)=0
 
virtual G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) final
 
virtual G4bool FillNtupleDColumn (G4int id, G4double value) final
 
virtual G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)=0
 
virtual G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) final
 
virtual G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
virtual G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value)=0
 
virtual G4bool AddNtupleRow (G4int ntupleId) override
 
virtual G4bool AddNtupleRow () final
 
virtual G4bool AddNtupleRow (G4int ntupleId)=0
 
virtual void SetActivation (G4bool activation) final
 
virtual void SetActivation (G4int ntupleId, G4bool activation) final
 
virtual G4bool GetActivation (G4int ntupleId) const final
 
tools::wroot::ntuple * GetNtuple () const
 
tools::wroot::ntuple * GetNtuple (G4int ntupleId) const
 
virtual G4int GetNofNtuples () const 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
virtual G4int CreateNtuple (G4NtupleBooking *booking)=0
 
virtual G4bool FillNtupleIColumn (G4int id, G4int value) final
 
virtual G4bool FillNtupleFColumn (G4int id, G4float value) final
 
virtual G4bool FillNtupleDColumn (G4int id, G4double value) final
 
virtual G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
virtual G4bool AddNtupleRow () final
 
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 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 G4int GetNofNtuples () const =0
 
virtual G4bool SetFirstNtupleColumnId (G4int firstId)=0
 
- Protected Attributes inherited from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >
std::vector< G4TNtupleDescription< tools::wroot::ntuple, G4RootFile > * > fNtupleDescriptionVector
 
std::vector< tools::wroot::ntuple * > fNtupleVector
 
- Protected Attributes inherited from G4BaseNtupleManager
G4int fFirstNtupleColumnId
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 56 of file G4RootNtupleManager.hh.

Constructor & Destructor Documentation

◆ G4RootNtupleManager()

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

Definition at line 40 of file G4RootNtupleManager.cc.

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

◆ ~G4RootNtupleManager()

G4RootNtupleManager::~G4RootNtupleManager ( )
virtual

Definition at line 64 of file G4RootNtupleManager.cc.

65{}

Friends And Related Function Documentation

◆ G4RootAnalysisManager

friend class G4RootAnalysisManager
friend

Definition at line 59 of file G4RootNtupleManager.hh.

◆ G4RootMainNtupleManager

friend class G4RootMainNtupleManager
friend

Definition at line 60 of file G4RootNtupleManager.hh.

◆ G4RootMpiNtupleFileManager

friend class G4RootMpiNtupleFileManager
friend

Definition at line 62 of file G4RootNtupleManager.hh.

◆ G4RootMpiNtupleManager

friend class G4RootMpiNtupleManager
friend

Definition at line 63 of file G4RootNtupleManager.hh.

◆ G4RootNtupleFileManager

friend class G4RootNtupleFileManager
friend

Definition at line 61 of file G4RootNtupleManager.hh.


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