Geant4 11.2.2
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, G4String fileType)
 
 G4VNtupleFileManager ()=delete
 
virtual ~G4VNtupleFileManager ()=default
 
 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 ()=0
 
virtual G4bool Reset ()=0
 
virtual G4bool IsNtupleMergingSupported () const
 
virtual G4NtupleMergeMode GetMergeMode () const
 
G4String GetFileType () const
 

Protected Member Functions

void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 

Protected Attributes

const G4AnalysisManagerStatefState
 
G4String fFileType
 
std::shared_ptr< G4NtupleBookingManagerfBookingManager { nullptr }
 

Friends

class G4VAnalysisManager
 

Detailed Description

Definition at line 50 of file G4VNtupleFileManager.hh.

Constructor & Destructor Documentation

◆ G4VNtupleFileManager() [1/3]

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

Definition at line 52 of file G4VNtupleFileManager.cc.

53 : fState(state),
54 fFileType(std::move(fileType))
55{}
const G4AnalysisManagerState & fState

◆ G4VNtupleFileManager() [2/3]

G4VNtupleFileManager::G4VNtupleFileManager ( )
delete

◆ ~G4VNtupleFileManager()

virtual G4VNtupleFileManager::~G4VNtupleFileManager ( )
virtualdefault

◆ G4VNtupleFileManager() [3/3]

G4VNtupleFileManager::G4VNtupleFileManager ( const G4VNtupleFileManager & rhs)
delete

Member Function Documentation

◆ ActionAtCloseFile()

virtual G4bool G4VNtupleFileManager::ActionAtCloseFile ( )
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 116 of file G4VNtupleFileManager.hh.

116 {
117 return fFileType;
118}

◆ GetMergeMode()

G4NtupleMergeMode G4VNtupleFileManager::GetMergeMode ( ) const
inlinevirtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 127 of file G4VNtupleFileManager.hh.

127 {
129}

◆ IsNtupleMergingSupported()

G4bool G4VNtupleFileManager::IsNtupleMergingSupported ( ) const
inlinevirtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 112 of file G4VNtupleFileManager.hh.

112 {
113 return false;
114}

◆ Message()

void G4VNtupleFileManager::Message ( G4int level,
const G4String & action,
const G4String & objectType,
const G4String & objectName = "",
G4bool success = true ) const
inlineprotected

Definition at line 120 of file G4VNtupleFileManager.hh.

123{
124 fState.Message(level, action, objectType, objectName, success);
125}
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const

Referenced by G4RootNtupleFileManager::ActionAtOpenFile(), G4RootNtupleFileManager::ActionAtWrite(), G4RootNtupleFileManager::CreateNtupleManager(), and G4RootNtupleFileManager::SetNtupleRowWise().

◆ 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 87 of file G4VNtupleFileManager.cc.

88{
89// The function is overridden in the managers which supports ntuple merging
90// Here we give just a warning that the feature is not available.
91
92 NtupleMergingWarning(fkClass, "SetBasketEntries", fFileType);
93}

◆ SetBasketSize()

void G4VNtupleFileManager::SetBasketSize ( unsigned int basketSize)
virtual

Reimplemented in G4RootNtupleFileManager.

Definition at line 78 of file G4VNtupleFileManager.cc.

79{
80// The function is overridden in the managers which supports ntuple merging
81// Here we give just a warning that the feature is not available.
82
83 NtupleMergingWarning(fkClass, "SetBasketSize", fFileType);
84}

◆ SetBookingManager()

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

Definition at line 106 of file G4VNtupleFileManager.hh.

108{
109 fBookingManager = std::move(bookingManager);
110}
std::shared_ptr< G4NtupleBookingManager > fBookingManager

◆ SetNtupleMerging()

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

Reimplemented in G4RootNtupleFileManager.

Definition at line 58 of file G4VNtupleFileManager.cc.

60{
61// The function is overridden in the managers which supports ntuple merging
62// Here we give just a warning that the feature is not available.
63
64 NtupleMergingWarning(fkClass, "SetNtupleMerging", fFileType);
65}

◆ SetNtupleRowWise()

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

Reimplemented in G4RootNtupleFileManager.

Definition at line 68 of file G4VNtupleFileManager.cc.

70{
71// The function is overridden in the managers which supports ntuple merging
72// Here we give just a warning that the feature is not available.
73
74 NtupleMergingWarning(fkClass, "SetNtupleRowWise", fFileType);
75}

Friends And Related Symbol Documentation

◆ G4VAnalysisManager

friend class G4VAnalysisManager
friend

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