Geant4-11
|
#include <G4RootNtupleManager.hh>
Public Member Functions | |
G4RootNtupleManager ()=delete | |
G4RootNtupleManager (const G4AnalysisManagerState &state, const std::shared_ptr< G4NtupleBookingManager > &bookingManger, G4int nofMainManagers, G4int nofReducedFiles, G4bool rowWise, G4bool rowMode) | |
G4int | GetFirstId () const |
G4bool | SetFirstId (G4int firstId) |
void | SetLockFirstId (G4bool lockFirstId) |
virtual | ~G4RootNtupleManager ()=default |
Protected Member Functions | |
virtual G4bool | AddNtupleRow () final |
virtual G4bool | AddNtupleRow (G4int ntupleId) override |
virtual G4bool | AddNtupleRow (G4int ntupleId)=0 |
std::vector< tools::wroot::ntuple * >::const_iterator | BeginConstNtuple () const |
std::vector< tools::wroot::ntuple * >::iterator | BeginNtuple () |
virtual G4int | CreateNtuple (G4NtupleBooking *ntupleBooking) override |
virtual void | CreateNtuplesFromBooking (const std::vector< G4NtupleBooking * > &ntupleBookings) |
std::vector< tools::wroot::ntuple * >::const_iterator | EndConstNtuple () const |
std::vector< tools::wroot::ntuple * >::iterator | EndNtuple () |
virtual G4bool | FillNtupleDColumn (G4int id, G4double value) final |
virtual G4bool | FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) final |
virtual G4bool | FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)=0 |
virtual G4bool | FillNtupleFColumn (G4int id, G4float value) final |
virtual G4bool | FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) final |
virtual G4bool | FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)=0 |
virtual G4bool | FillNtupleIColumn (G4int id, G4int value) final |
virtual G4bool | FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) final |
virtual G4bool | FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)=0 |
virtual G4bool | FillNtupleSColumn (G4int id, const G4String &value) final |
virtual G4bool | FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) final |
virtual G4bool | FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value)=0 |
virtual G4bool | GetActivation (G4int ntupleId) const final |
virtual G4int | GetNofNtuples () const final |
tools::wroot::ntuple * | GetNtuple () const |
tools::wroot::ntuple * | GetNtuple (G4int ntupleId) const |
G4bool | IsVerbose (G4int verboseLevel) const |
void | Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const |
virtual void | SetActivation (G4bool activation) final |
virtual void | SetActivation (G4int ntupleId, G4bool activation) final |
virtual G4bool | SetFirstNtupleColumnId (G4int firstId) final |
Protected Attributes | |
G4int | fFirstId { 0 } |
G4int | fFirstNtupleColumnId { 0 } |
G4bool | fLockFirstId { false } |
std::vector< G4TNtupleDescription< tools::wroot::ntuple, G4RootFile > * > | fNtupleDescriptionVector |
std::vector< tools::wroot::ntuple * > | fNtupleVector |
const G4AnalysisManagerState & | fState |
Private Member Functions | |
virtual void | Clear () final |
virtual void | CreateTNtupleFromBooking (RootNtupleDescription *ntupleDescription) final |
G4bool | FillNtupleTColumn (G4int ntupleId, G4int columnId, const T &value) |
virtual void | FinishTNtuple (RootNtupleDescription *ntupleDescription, G4bool fromBooking) final |
unsigned int | GetBasketEntries () const |
unsigned int | GetBasketSize () const |
std::shared_ptr< G4RootMainNtupleManager > | GetMainNtupleManager (G4int index) const |
G4TNtupleDescription< tools::wroot::ntuple, G4RootFile > * | GetNtupleDescriptionInFunction (G4int id, std::string_view function, G4bool warn=true) const |
const std::vector< RootNtupleDescription * > & | GetNtupleDescriptionVector () const |
tools::wroot::ntuple * | GetNtupleInFunction (G4int id, std::string_view function, G4bool warn=true) const |
virtual G4bool | Merge () |
virtual G4bool | Reset () final |
void | SetFileManager (const std::shared_ptr< G4RootFileManager > &fileManager) |
void | SetNtupleFile (std::shared_ptr< G4RootFile > file) |
void | SetNtupleRowWise (G4bool rowWise, G4bool rowMode) |
Private Attributes | |
std::shared_ptr< G4RootFileManager > | fFileManager { nullptr } |
std::vector< std::shared_ptr< G4RootMainNtupleManager > > | fMainNtupleManagers |
std::shared_ptr< G4RootFile > | fNtupleFile { nullptr } |
G4bool | fRowMode |
G4bool | fRowWise |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4RootNtupleManager" } |
Friends | |
class | G4RootAnalysisManager |
class | G4RootMainNtupleManager |
class | G4RootMpiNtupleFileManager |
class | G4RootMpiNtupleManager |
class | G4RootNtupleFileManager |
Definition at line 58 of file G4RootNtupleManager.hh.
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.
References fMainNtupleManagers, and G4BaseAnalysisManager::fState.
|
delete |
|
virtualdefault |
|
finalprotectedvirtualinherited |
Reimplemented from G4BaseNtupleManager.
Definition at line 69 of file G4BaseNtupleManager.cc.
|
overrideprotectedvirtualinherited |
Implements G4BaseNtupleManager.
Implements G4BaseNtupleManager.
|
protectedinherited |
|
protectedinherited |
|
finalprivatevirtual |
Reimplemented from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >.
Definition at line 128 of file G4RootNtupleManager.cc.
References G4TNtupleManager< NT, FT >::Clear(), and fMainNtupleManagers.
|
overrideprotectedvirtualinherited |
Implements G4BaseNtupleManager.
|
protectedvirtualinherited |
|
finalprivatevirtual |
Definition at line 66 of file G4RootNtupleManager.cc.
References fFileManager, G4TNtupleDescription< NT, FT >::fIsNtupleOwner, fkClass, fMainNtupleManagers, G4TNtupleDescription< NT, FT >::fNtuple, G4TNtupleDescription< NT, FT >::fNtupleBooking, G4TNtupleManager< tools::wroot::ntuple, G4RootFile >::fNtupleVector, fRowWise, and G4Analysis::Warn().
|
protectedinherited |
|
protectedinherited |
|
finalprotectedvirtualinherited |
Reimplemented from G4BaseNtupleManager.
Definition at line 67 of file G4BaseNtupleManager.cc.
|
finalprotectedvirtualinherited |
Implements G4BaseNtupleManager.
|
protectedvirtualinherited |
Implements G4BaseNtupleManager.
|
finalprotectedvirtualinherited |
Reimplemented from G4BaseNtupleManager.
Definition at line 66 of file G4BaseNtupleManager.cc.
|
finalprotectedvirtualinherited |
Implements G4BaseNtupleManager.
|
protectedvirtualinherited |
Implements G4BaseNtupleManager.
|
finalprotectedvirtualinherited |
Reimplemented from G4BaseNtupleManager.
Definition at line 65 of file G4BaseNtupleManager.cc.
|
finalprotectedvirtualinherited |
Implements G4BaseNtupleManager.
|
protectedvirtualinherited |
Implements G4BaseNtupleManager.
|
finalprotectedvirtualinherited |
Reimplemented from G4BaseNtupleManager.
Definition at line 68 of file G4BaseNtupleManager.cc.
|
finalprotectedvirtualinherited |
Implements G4BaseNtupleManager.
|
protectedvirtualinherited |
Implements G4BaseNtupleManager.
|
privateinherited |
|
finalprivatevirtual |
Definition at line 106 of file G4RootNtupleManager.cc.
|
finalprotectedvirtualinherited |
Implements G4VNtupleManager.
|
private |
Definition at line 199 of file G4RootNtupleManager.cc.
References fFileManager, fkClass, and G4Analysis::Warn().
Referenced by G4RootMainNtupleManager::GetBasketEntries().
|
private |
Definition at line 188 of file G4RootNtupleManager.cc.
References fFileManager, fkClass, and G4Analysis::Warn().
Referenced by G4RootMainNtupleManager::CreateNtuple().
|
inlineinherited |
Definition at line 94 of file G4BaseAnalysisManager.hh.
References G4BaseAnalysisManager::fFirstId.
|
private |
Definition at line 176 of file G4RootNtupleManager.cc.
References fkClass, fMainNtupleManagers, and G4Analysis::Warn().
|
finalprotectedvirtualinherited |
Implements G4VNtupleManager.
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
private |
|
privateinherited |
Definition at line 80 of file G4BaseAnalysisManager.hh.
References G4BaseAnalysisManager::fState, and G4AnalysisManagerState::IsVerbose().
Referenced by G4RootPNtupleManager::AddNtupleRow(), and G4RootPNtupleManager::Merge().
|
privatevirtual |
Definition at line 139 of file G4RootNtupleManager.cc.
References fMainNtupleManagers.
|
inlineprotectedinherited |
Definition at line 83 of file G4BaseAnalysisManager.hh.
References geant4_check_module_cycles::action, G4BaseAnalysisManager::fState, and G4AnalysisManagerState::Message().
Referenced by G4RootPNtupleManager::AddNtupleRow(), G4RootPNtupleManager::Clear(), G4NtupleBookingManager::ClearData(), G4RootMainNtupleManager::ClearData(), G4NtupleBookingManager::CreateNtuple(), G4RootMainNtupleManager::CreateNtuple(), G4RootPNtupleManager::CreateNtupleFromMain(), G4RootPNtupleManager::Merge(), G4CsvRNtupleManager::ReadNtupleImpl(), G4Hdf5RNtupleManager::ReadNtupleImpl(), G4RootRNtupleManager::ReadNtupleImpl(), G4XmlRNtupleManager::ReadNtupleImpl(), G4XmlRNtupleManager::SetNtupleDColumn(), G4XmlRNtupleManager::SetNtupleFColumn(), G4XmlRNtupleManager::SetNtupleIColumn(), and G4XmlRNtupleManager::SetNtupleSColumn().
|
finalprivatevirtual |
Reimplemented from G4TNtupleManager< tools::wroot::ntuple, G4RootFile >.
Definition at line 113 of file G4RootNtupleManager.cc.
References fMainNtupleManagers, and G4TNtupleManager< NT, FT >::Reset().
|
finalprotectedvirtualinherited |
Implements G4VNtupleManager.
|
finalprotectedvirtualinherited |
Implements G4VNtupleManager.
|
private |
Definition at line 151 of file G4RootNtupleManager.cc.
References fFileManager, and fMainNtupleManagers.
Definition at line 46 of file G4BaseAnalysisManager.cc.
References G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fkClass, G4BaseAnalysisManager::fLockFirstId, and G4Analysis::Warn().
Implements G4VNtupleManager.
Definition at line 67 of file G4BaseNtupleManager.cc.
|
inlineinherited |
Definition at line 90 of file G4BaseAnalysisManager.hh.
References G4BaseAnalysisManager::fLockFirstId.
Referenced by G4HnManager::ClearData().
|
private |
Definition at line 162 of file G4RootNtupleManager.cc.
References fMainNtupleManagers, fRowMode, and fRowWise.
|
friend |
Definition at line 61 of file G4RootNtupleManager.hh.
|
friend |
Definition at line 62 of file G4RootNtupleManager.hh.
|
friend |
Definition at line 64 of file G4RootNtupleManager.hh.
|
friend |
Definition at line 65 of file G4RootNtupleManager.hh.
|
friend |
Definition at line 63 of file G4RootNtupleManager.hh.
|
private |
Definition at line 101 of file G4RootNtupleManager.hh.
Referenced by CreateTNtupleFromBooking(), GetBasketEntries(), GetBasketSize(), and SetFileManager().
|
protectedinherited |
Definition at line 70 of file G4BaseAnalysisManager.hh.
Referenced by G4BaseNtupleManager::AddNtupleRow(), G4NtupleBookingManager::CreateNtuple(), G4BaseNtupleManager::FillNtupleDColumn(), G4BaseNtupleManager::FillNtupleFColumn(), G4BaseNtupleManager::FillNtupleIColumn(), G4BaseRNtupleManager::GetCurrentNtupleId(), G4BaseAnalysisManager::GetFirstId(), G4HnManager::GetHnInformation(), G4RootPNtupleManager::GetMainNtupleInFunction(), G4NtupleBookingManager::GetNtupleBookingInFunction(), G4RootPNtupleManager::GetNtupleDescriptionInFunction(), G4BaseRNtupleManager::GetNtupleRow(), and G4BaseAnalysisManager::SetFirstId().
|
protectedinherited |
Definition at line 73 of file G4BaseNtupleManager.hh.
|
staticconstexprprivate |
Definition at line 98 of file G4RootNtupleManager.hh.
Referenced by CreateTNtupleFromBooking(), GetBasketEntries(), GetBasketSize(), and GetMainNtupleManager().
|
protectedinherited |
Definition at line 71 of file G4BaseAnalysisManager.hh.
Referenced by G4NtupleBookingManager::CreateNtuple(), G4BaseAnalysisManager::SetFirstId(), and G4BaseAnalysisManager::SetLockFirstId().
|
private |
Definition at line 102 of file G4RootNtupleManager.hh.
Referenced by Clear(), CreateTNtupleFromBooking(), G4RootNtupleManager(), GetMainNtupleManager(), Merge(), Reset(), SetFileManager(), and SetNtupleRowWise().
|
protectedinherited |
Definition at line 96 of file G4TNtupleManager.hh.
|
private |
Definition at line 103 of file G4RootNtupleManager.hh.
|
protectedinherited |
Definition at line 97 of file G4TNtupleManager.hh.
|
private |
Definition at line 105 of file G4RootNtupleManager.hh.
Referenced by SetNtupleRowWise().
|
private |
Definition at line 104 of file G4RootNtupleManager.hh.
Referenced by CreateTNtupleFromBooking(), and SetNtupleRowWise().
|
protectedinherited |
Definition at line 69 of file G4BaseAnalysisManager.hh.
Referenced by G4RootPNtupleManager::AddNtupleRow(), G4RootNtupleManager(), G4BaseAnalysisManager::IsVerbose(), and G4BaseAnalysisManager::Message().