Geant4-11
|
#include <G4RootPNtupleManager.hh>
Public Member Functions | |
G4RootPNtupleManager ()=delete | |
G4RootPNtupleManager (const G4AnalysisManagerState &state, std::shared_ptr< G4NtupleBookingManager > bookingManger, std::shared_ptr< G4RootMainNtupleManager > main, G4bool rowWise, G4bool rowMode) | |
G4int | GetFirstId () const |
G4bool | SetFirstId (G4int firstId) |
void | SetLockFirstId (G4bool lockFirstId) |
virtual | ~G4RootPNtupleManager () |
Protected Member Functions | |
G4bool | IsVerbose (G4int verboseLevel) const |
void | Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const |
virtual G4bool | SetFirstNtupleColumnId (G4int firstId) final |
Protected Attributes | |
G4int | fFirstId { 0 } |
G4int | fFirstNtupleColumnId { 0 } |
G4bool | fLockFirstId { false } |
const G4AnalysisManagerState & | fState |
Private Member Functions | |
virtual G4bool | AddNtupleRow () final |
virtual G4bool | AddNtupleRow (G4int ntupleId) final |
virtual G4bool | AddNtupleRow (G4int ntupleId)=0 |
virtual void | Clear () final |
virtual G4int | CreateNtuple (G4NtupleBooking *booking) final |
void | CreateNtupleFromMain (G4RootPNtupleDescription *ntupleDescription, tools::wroot::ntuple *mainNtuple) |
void | CreateNtuplesFromMain () |
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 |
template<typename T > | |
G4bool | FillNtupleTColumn (G4int columnId, const T &value) |
template<typename T > | |
G4bool | FillNtupleTColumn (G4int ntupleId, G4int columnId, const T &value) |
virtual G4bool | GetActivation (G4int ntupleId) const final |
tools::wroot::ntuple * | GetMainNtupleInFunction (G4int id, std::string_view function, G4bool warn=true) const |
virtual G4int | GetNofNtuples () const final |
G4RootPNtupleDescription * | GetNtupleDescriptionInFunction (G4int id, std::string_view function, G4bool warn=true) const |
tools::wroot::base_pntuple * | GetNtupleInFunction (G4int id, std::string_view function, G4bool warn=true) const |
virtual G4bool | Merge () final |
virtual void | SetActivation (G4bool activation) final |
virtual void | SetActivation (G4int ntupleId, G4bool activation) final |
void | SetNtupleRowWise (G4bool rowWise, G4bool rowMode) |
Private Attributes | |
std::shared_ptr< G4NtupleBookingManager > | fBookingManager |
G4bool | fCreateNtuples { true } |
std::shared_ptr< G4RootMainNtupleManager > | fMainNtupleManager |
std::vector< G4RootPNtupleDescription * > | fNtupleDescriptionVector |
std::vector< tools::wroot::imt_ntuple * > | fNtupleVector |
G4bool | fRowMode |
G4bool | fRowWise |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4RootPNtupleManager" } |
Friends | |
class | G4RootAnalysisManager |
class | G4RootNtupleFileManager |
Definition at line 79 of file G4RootPNtupleManager.hh.
G4RootPNtupleManager::G4RootPNtupleManager | ( | const G4AnalysisManagerState & | state, |
std::shared_ptr< G4NtupleBookingManager > | bookingManger, | ||
std::shared_ptr< G4RootMainNtupleManager > | main, | ||
G4bool | rowWise, | ||
G4bool | rowMode | ||
) |
Definition at line 59 of file G4RootPNtupleManager.cc.
|
delete |
|
virtual |
Definition at line 71 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector.
|
finalprivatevirtual |
Reimplemented from G4BaseNtupleManager.
Definition at line 59 of file G4BaseNtupleManager.cc.
Implements G4BaseNtupleManager.
Definition at line 263 of file G4RootPNtupleManager.cc.
References CreateNtuplesFromMain(), fCreateNtuples, fkClass, G4BaseAnalysisManager::fState, GetActivation(), G4AnalysisManagerState::GetIsActivation(), GetNtupleDescriptionInFunction(), G4BaseAnalysisManager::IsVerbose(), G4Analysis::kVL3, G4Analysis::kVL4, G4BaseAnalysisManager::Message(), anonymous_namespace{G4RootPNtupleManager.cc}::pntupleMutex, G4TemplateAutoLock< _Mutex_t >::unlock(), and G4Analysis::Warn().
Implements G4BaseNtupleManager.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 345 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector, fNtupleVector, G4Analysis::kVL2, and G4BaseAnalysisManager::Message().
|
finalprivatevirtual |
Implements G4BaseNtupleManager.
Definition at line 226 of file G4RootPNtupleManager.cc.
References G4Analysis::kInvalidId.
|
private |
Definition at line 138 of file G4RootPNtupleManager.cc.
References G4RootPNtupleDescription::fBasePNtuple, G4RootPNtupleDescription::fDescription, G4TNtupleDescription< NT, FT >::fFile, geant4_check_module_cycles::file, G4TNtupleDescription< NT, FT >::fIsNtupleOwner, fkClass, G4RootPNtupleDescription::fMainBranches, fMainNtupleManager, G4RootPNtupleDescription::fNtuple, G4TNtupleDescription< NT, FT >::fNtupleBooking, fNtupleVector, fRowMode, fRowWise, G4cout, G4Analysis::kVL3, G4Analysis::kVL4, G4BaseAnalysisManager::Message(), and G4Analysis::Warn().
Referenced by CreateNtuplesFromMain().
|
private |
Definition at line 201 of file G4RootPNtupleManager.cc.
References CreateNtupleFromMain(), fBookingManager, fCreateNtuples, fMainNtupleManager, and fNtupleDescriptionVector.
Referenced by AddNtupleRow().
Reimplemented from G4BaseNtupleManager.
Definition at line 57 of file G4BaseNtupleManager.cc.
|
finalprivatevirtual |
Implements G4BaseNtupleManager.
Definition at line 249 of file G4RootPNtupleManager.cc.
|
privatevirtual |
Implements G4BaseNtupleManager.
Reimplemented from G4BaseNtupleManager.
Definition at line 56 of file G4BaseNtupleManager.cc.
|
finalprivatevirtual |
Implements G4BaseNtupleManager.
Definition at line 242 of file G4RootPNtupleManager.cc.
|
privatevirtual |
Implements G4BaseNtupleManager.
Reimplemented from G4BaseNtupleManager.
Definition at line 55 of file G4BaseNtupleManager.cc.
|
finalprivatevirtual |
Implements G4BaseNtupleManager.
Definition at line 235 of file G4RootPNtupleManager.cc.
|
privatevirtual |
Implements G4BaseNtupleManager.
|
finalprivatevirtual |
Reimplemented from G4BaseNtupleManager.
Definition at line 58 of file G4BaseNtupleManager.cc.
|
finalprivatevirtual |
Implements G4BaseNtupleManager.
Definition at line 256 of file G4RootPNtupleManager.cc.
|
privatevirtual |
Implements G4BaseNtupleManager.
|
private |
|
private |
Implements G4VNtupleManager.
Definition at line 379 of file G4RootPNtupleManager.cc.
References GetNtupleDescriptionInFunction().
Referenced by AddNtupleRow().
|
inlineinherited |
Definition at line 94 of file G4BaseAnalysisManager.hh.
References G4BaseAnalysisManager::fFirstId.
|
private |
Definition at line 117 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fFirstId, fkClass, fMainNtupleManager, and anonymous_namespace{G4RootPNtupleManager.cc}::NotExistWarning().
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 389 of file G4RootPNtupleManager.cc.
References fNtupleVector.
|
private |
Definition at line 84 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fFirstId, fkClass, fNtupleDescriptionVector, and anonymous_namespace{G4RootPNtupleManager.cc}::NotExistWarning().
Referenced by AddNtupleRow(), GetActivation(), GetNtupleInFunction(), and SetActivation().
|
private |
Definition at line 100 of file G4RootPNtupleManager.cc.
References fkClass, GetNtupleDescriptionInFunction(), and anonymous_namespace{G4RootPNtupleManager.cc}::NotExistWarning().
Definition at line 80 of file G4BaseAnalysisManager.hh.
References G4BaseAnalysisManager::fState, and G4AnalysisManagerState::IsVerbose().
Referenced by AddNtupleRow(), and Merge().
|
finalprivatevirtual |
Definition at line 305 of file G4RootPNtupleManager.cc.
References fkClass, fNtupleDescriptionVector, G4BaseAnalysisManager::IsVerbose(), G4Analysis::kVL3, G4Analysis::kVL4, G4BaseAnalysisManager::Message(), anonymous_namespace{G4RootPNtupleManager.cc}::pntupleMutex, G4TemplateAutoLock< _Mutex_t >::unlock(), and G4Analysis::Warn().
|
inlineprotectedinherited |
Definition at line 83 of file G4BaseAnalysisManager.hh.
References geant4_check_module_cycles::action, G4BaseAnalysisManager::fState, and G4AnalysisManagerState::Message().
Referenced by AddNtupleRow(), Clear(), G4NtupleBookingManager::ClearData(), G4RootMainNtupleManager::ClearData(), G4NtupleBookingManager::CreateNtuple(), G4RootMainNtupleManager::CreateNtuple(), CreateNtupleFromMain(), Merge(), G4CsvRNtupleManager::ReadNtupleImpl(), G4Hdf5RNtupleManager::ReadNtupleImpl(), G4RootRNtupleManager::ReadNtupleImpl(), G4XmlRNtupleManager::ReadNtupleImpl(), G4XmlRNtupleManager::SetNtupleDColumn(), G4XmlRNtupleManager::SetNtupleFColumn(), G4XmlRNtupleManager::SetNtupleIColumn(), and G4XmlRNtupleManager::SetNtupleSColumn().
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 359 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector.
Implements G4VNtupleManager.
Definition at line 369 of file G4RootPNtupleManager.cc.
References GetNtupleDescriptionInFunction().
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().
|
friend |
Definition at line 81 of file G4RootPNtupleManager.hh.
|
friend |
Definition at line 82 of file G4RootPNtupleManager.hh.
|
private |
Definition at line 153 of file G4RootPNtupleManager.hh.
Referenced by CreateNtuplesFromMain().
|
private |
Definition at line 159 of file G4RootPNtupleManager.hh.
Referenced by AddNtupleRow(), and CreateNtuplesFromMain().
|
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(), GetMainNtupleInFunction(), G4NtupleBookingManager::GetNtupleBookingInFunction(), GetNtupleDescriptionInFunction(), G4BaseRNtupleManager::GetNtupleRow(), and G4BaseAnalysisManager::SetFirstId().
|
protectedinherited |
Definition at line 73 of file G4BaseNtupleManager.hh.
|
staticconstexprprivate |
Definition at line 150 of file G4RootPNtupleManager.hh.
Referenced by AddNtupleRow(), CreateNtupleFromMain(), GetMainNtupleInFunction(), GetNtupleDescriptionInFunction(), GetNtupleInFunction(), and Merge().
|
protectedinherited |
Definition at line 71 of file G4BaseAnalysisManager.hh.
Referenced by G4NtupleBookingManager::CreateNtuple(), G4BaseAnalysisManager::SetFirstId(), and G4BaseAnalysisManager::SetLockFirstId().
|
private |
Definition at line 154 of file G4RootPNtupleManager.hh.
Referenced by CreateNtupleFromMain(), CreateNtuplesFromMain(), and GetMainNtupleInFunction().
|
private |
Definition at line 155 of file G4RootPNtupleManager.hh.
Referenced by Clear(), CreateNtuplesFromMain(), GetNtupleDescriptionInFunction(), Merge(), SetActivation(), and ~G4RootPNtupleManager().
|
private |
Definition at line 156 of file G4RootPNtupleManager.hh.
Referenced by Clear(), CreateNtupleFromMain(), and GetNofNtuples().
|
private |
Definition at line 158 of file G4RootPNtupleManager.hh.
Referenced by CreateNtupleFromMain(), and SetNtupleRowWise().
|
private |
Definition at line 157 of file G4RootPNtupleManager.hh.
Referenced by CreateNtupleFromMain(), and SetNtupleRowWise().
|
protectedinherited |
Definition at line 69 of file G4BaseAnalysisManager.hh.
Referenced by AddNtupleRow(), G4RootNtupleManager::G4RootNtupleManager(), G4BaseAnalysisManager::IsVerbose(), and G4BaseAnalysisManager::Message().