Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VNtupleFileManager Class Referenceabstract

#include <G4VNtupleFileManager.hh>

+ Inheritance diagram for G4VNtupleFileManager:

Public Member Functions

 G4VNtupleFileManager (const G4AnalysisManagerState &state, const G4String &fileType)
 
virtual ~G4VNtupleFileManager ()
 
 G4VNtupleFileManager (const G4VNtupleFileManager &rhs)=delete
 
G4VNtupleFileManageroperator= (const G4VNtupleFileManager &rhs)=delete
 
virtual void SetNtupleMerging (G4bool mergeNtuples, G4int nofReducedNtupleFiles=0)
 
virtual void SetNtupleRowWise (G4bool rowWise, G4bool rowMode=true)
 
virtual void SetBasketSize (unsigned int basketSize)
 
virtual void SetBasketEntries (unsigned int basketEntries)
 
virtual std::shared_ptr< G4VNtupleManagerCreateNtupleManager ()=0
 
virtual void SetBookingManager (std::shared_ptr< G4NtupleBookingManager > bookingManager)
 
virtual G4bool ActionAtOpenFile (const G4String &)=0
 
virtual G4bool ActionAtWrite ()=0
 
virtual G4bool ActionAtCloseFile (G4bool)=0
 
virtual G4bool Reset ()=0
 
virtual G4bool IsNtupleMergingSupported () const
 
G4String GetFileType () const
 

Protected Attributes

const G4AnalysisManagerStatefState
 
G4String fFileType
 
std::shared_ptr< G4NtupleBookingManagerfBookingManager
 

Friends

class G4VAnalysisManager
 

Detailed Description

Definition at line 40 of file G4VNtupleFileManager.hh.

Constructor & Destructor Documentation

◆ G4VNtupleFileManager() [1/2]

G4VNtupleFileManager::G4VNtupleFileManager ( const G4AnalysisManagerState state,
const G4String fileType 
)
explicit

Definition at line 51 of file G4VNtupleFileManager.cc.

53 : fState(state),
54 fFileType(fileType),
55 fBookingManager(nullptr)
56{}
std::shared_ptr< G4NtupleBookingManager > fBookingManager
const G4AnalysisManagerState & fState

◆ ~G4VNtupleFileManager()

G4VNtupleFileManager::~G4VNtupleFileManager ( )
virtual

Definition at line 59 of file G4VNtupleFileManager.cc.

60{}

◆ G4VNtupleFileManager() [2/2]

G4VNtupleFileManager::G4VNtupleFileManager ( const G4VNtupleFileManager rhs)
delete

Member Function Documentation

◆ ActionAtCloseFile()

virtual G4bool G4VNtupleFileManager::ActionAtCloseFile ( G4bool  )
pure virtual

◆ ActionAtOpenFile()

virtual G4bool G4VNtupleFileManager::ActionAtOpenFile ( const G4String )
pure virtual

◆ ActionAtWrite()

virtual G4bool G4VNtupleFileManager::ActionAtWrite ( )
pure virtual

◆ CreateNtupleManager()

virtual std::shared_ptr< G4VNtupleManager > G4VNtupleFileManager::CreateNtupleManager ( )
pure virtual

◆ GetFileType()

G4String G4VNtupleFileManager::GetFileType ( ) const
inline

Definition at line 92 of file G4VNtupleFileManager.hh.

92 {
93 return fFileType;
94}

◆ IsNtupleMergingSupported()

G4bool G4VNtupleFileManager::IsNtupleMergingSupported ( ) const
inlinevirtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 88 of file G4VNtupleFileManager.hh.

88 {
89 return false;
90}

◆ operator=()

G4VNtupleFileManager & G4VNtupleFileManager::operator= ( const G4VNtupleFileManager rhs)
delete

◆ Reset()

virtual G4bool G4VNtupleFileManager::Reset ( )
pure virtual

◆ SetBasketEntries()

void G4VNtupleFileManager::SetBasketEntries ( unsigned int  basketEntries)
virtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 92 of file G4VNtupleFileManager.cc.

93{
94// The function is overridden in the managers which supports ntuple merging
95// Here we give just a warning that the feature is not available.
96
97 NtupleMergingWarning("G4VNtupleFileManager::SetBasketEntries", fFileType);
98}

◆ SetBasketSize()

void G4VNtupleFileManager::SetBasketSize ( unsigned int  basketSize)
virtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 83 of file G4VNtupleFileManager.cc.

84{
85// The function is overridden in the managers which supports ntuple merging
86// Here we give just a warning that the feature is not available.
87
88 NtupleMergingWarning("G4VNtupleFileManager::SetBasketSize", fFileType);
89}

◆ SetBookingManager()

void G4VNtupleFileManager::SetBookingManager ( std::shared_ptr< G4NtupleBookingManager bookingManager)
inlinevirtual

Definition at line 84 of file G4VNtupleFileManager.hh.

86{ fBookingManager = bookingManager; }

◆ SetNtupleMerging()

void G4VNtupleFileManager::SetNtupleMerging ( G4bool  mergeNtuples,
G4int  nofReducedNtupleFiles = 0 
)
virtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 63 of file G4VNtupleFileManager.cc.

65{
66// The function is overridden in the managers which supports ntuple merging
67// Here we give just a warning that the feature is not available.
68
69 NtupleMergingWarning("G4VNtupleFileManager::SetNtupleMerging", fFileType);
70}

◆ SetNtupleRowWise()

void G4VNtupleFileManager::SetNtupleRowWise ( G4bool  rowWise,
G4bool  rowMode = true 
)
virtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 73 of file G4VNtupleFileManager.cc.

75{
76// The function is overridden in the managers which supports ntuple merging
77// Here we give just a warning that the feature is not available.
78
79 NtupleMergingWarning("G4VNtupleFileManager::SetNtupleRowWise", fFileType);
80}

Friends And Related Function Documentation

◆ G4VAnalysisManager

friend class G4VAnalysisManager
friend

Definition at line 44 of file G4VNtupleFileManager.hh.

Member Data Documentation

◆ fBookingManager

◆ fFileType

G4String G4VNtupleFileManager::fFileType
protected

◆ fState


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