Geant4
10.03
|
#include <G4RootPNtupleManager.hh>
Public Member Functions | |
G4RootPNtupleManager (G4RootMainNtupleManager *main, const G4AnalysisManagerState &state) | |
~G4RootPNtupleManager () | |
template<> | |
G4bool | FillNtupleTColumn (G4int ntupleId, G4int columnId, const std::string &value) |
Public Member Functions inherited from G4VNtupleManager | |
G4VNtupleManager (const G4AnalysisManagerState &state) | |
virtual | ~G4VNtupleManager () |
G4VNtupleManager (const G4VNtupleManager &rhs)=delete | |
G4VNtupleManager & | operator= (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 |
Private Types | |
enum | G4PNtupleCreateMode { G4PNtupleCreateMode::kSlaveBeforeOpen, G4PNtupleCreateMode::kSlaveAfterOpen, G4PNtupleCreateMode::kUndefined } |
Private Member Functions | |
void | CreateNtuple (G4RootPNtupleDescription *ntupleDescription, tools::wroot::ntuple *mainNtuple) |
void | CreateNtuplesFromMain () |
virtual G4int | CreateNtuple (const G4String &name, const G4String &title) final |
virtual G4int | CreateNtupleIColumn (const G4String &name, std::vector< int > *vector) override |
virtual G4int | CreateNtupleFColumn (const G4String &name, std::vector< float > *vector) override |
virtual G4int | CreateNtupleDColumn (const G4String &name, std::vector< double > *vector) override |
virtual G4int | CreateNtupleSColumn (const G4String &name) override |
virtual void | FinishNtuple () override |
virtual G4int | CreateNtupleIColumn (G4int ntupleId, const G4String &name, std::vector< int > *vector) override |
virtual G4int | CreateNtupleFColumn (G4int ntupleId, const G4String &name, std::vector< float > *vector) override |
virtual G4int | CreateNtupleDColumn (G4int ntupleId, const G4String &name, std::vector< double > *vector) override |
virtual G4int | CreateNtupleSColumn (G4int ntupleId, const G4String &name) override |
virtual void | FinishNtuple (G4int ntupleId) override |
virtual G4bool | FillNtupleIColumn (G4int columnId, G4int value) final |
virtual G4bool | FillNtupleFColumn (G4int columnId, G4float value) final |
virtual G4bool | FillNtupleDColumn (G4int columnId, G4double value) final |
virtual G4bool | FillNtupleSColumn (G4int columnId, const G4String &value) final |
virtual G4bool | AddNtupleRow () final |
virtual G4bool | FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) final |
virtual G4bool | FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) final |
virtual G4bool | FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) final |
virtual G4bool | FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) final |
virtual G4bool | AddNtupleRow (G4int ntupleId) final |
virtual G4bool | Merge () final |
virtual G4bool | Reset (G4bool deleteNtuple) final |
virtual void | SetActivation (G4bool activation) final |
virtual void | SetActivation (G4int ntupleId, G4bool activation) final |
virtual G4bool | GetActivation (G4int ntupleId) const final |
virtual G4bool | IsEmpty () const final |
virtual G4int | GetNofNtuples () const final |
G4RootPNtupleDescription * | GetNtupleDescriptionInFunction (G4int id, G4String function, G4bool warn=true) const |
tools::wroot::pntuple * | GetNtupleInFunction (G4int id, G4String function, G4bool warn=true) const |
tools::wroot::ntuple * | GetMainNtupleInFunction (G4int id, G4String function, G4bool warn=true) const |
template<typename T > | |
G4int | CreateNtupleTColumn (G4int ntupleId, const G4String &name, std::vector< T > *vector) |
template<typename T > | |
G4int | CreateNtupleTColumn (const G4String &name, std::vector< T > *vector) |
template<typename T > | |
G4bool | FillNtupleTColumn (G4int ntupleId, G4int columnId, const T &value) |
template<typename T > | |
G4bool | FillNtupleTColumn (G4int columnId, const T &value) |
Private Attributes | |
G4PNtupleCreateMode | fCreateMode |
G4RootMainNtupleManager * | fMainNtupleManager |
std::vector < G4RootPNtupleDescription * > | fNtupleDescriptionVector |
std::vector < tools::wroot::pntuple * > | fNtupleVector |
Friends | |
class | G4RootAnalysisManager |
Additional Inherited Members | |
Protected Member Functions inherited from G4VNtupleManager | |
G4bool | SetFirstNtupleColumnId (G4int firstId) |
G4int | GetFirstNtupleColumnId () const |
Protected Attributes inherited from G4VNtupleManager | |
G4int | fFirstNtupleColumnId |
G4bool | fLockFirstNtupleColumnId |
Protected Attributes inherited from G4BaseAnalysisManager | |
const G4AnalysisManagerState & | fState |
G4int | fFirstId |
G4bool | fLockFirstId |
Definition at line 79 of file G4RootPNtupleManager.hh.
|
strongprivate |
Enumerator | |
---|---|
kSlaveBeforeOpen | |
kSlaveAfterOpen | |
kUndefined |
Definition at line 89 of file G4RootPNtupleManager.hh.
|
explicit |
Definition at line 45 of file G4RootPNtupleManager.cc.
G4RootPNtupleManager::~G4RootPNtupleManager | ( | ) |
Definition at line 54 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 358 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fFirstId.
Implements G4VNtupleManager.
Definition at line 392 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fState, G4Exception(), GetActivation(), G4AnalysisManagerState::GetIsActivation(), GetNtupleDescriptionInFunction(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().
|
private |
Definition at line 134 of file G4RootPNtupleManager.cc.
References G4RootPNtupleDescription::fFile, G4RootPNtupleDescription::fIsNtupleOwner, G4RootPNtupleDescription::fMainBranches, fMainNtupleManager, G4RootPNtupleDescription::fNtuple, G4RootPNtupleDescription::fNtupleBooking, fNtupleVector, G4BaseAnalysisManager::fState, G4cout, G4RootMainNtupleManager::GetNtupleDirectory(), G4RootMainNtupleManager::GetNtupleFile(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by CreateNtuplesFromMain(), and FinishNtuple().
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 206 of file G4RootPNtupleManager.cc.
References fCreateMode, G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fLockFirstId, fMainNtupleManager, fNtupleDescriptionVector, G4BaseAnalysisManager::fState, G4RootMainNtupleManager::GetNtupleFile(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kSlaveAfterOpen, kSlaveBeforeOpen, kUndefined, and G4AnalysisVerbose::Message().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 262 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 298 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 255 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 290 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 248 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 283 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
Implements G4VNtupleManager.
Definition at line 269 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 305 of file G4RootPNtupleManager.cc.
References G4InuclParticleNames::name().
|
private |
Definition at line 175 of file G4RootPNtupleManager.cc.
References CreateNtuple(), fCreateMode, fMainNtupleManager, fNtupleDescriptionVector, G4RootMainNtupleManager::GetNtupleVector(), kSlaveAfterOpen, kSlaveBeforeOpen, and kUndefined.
Referenced by G4RootAnalysisManager::OpenFileImpl().
|
private |
Definition at line 184 of file G4RootPNtupleManager.hh.
References G4VNtupleManager::fFirstNtupleColumnId, G4VNtupleManager::fLockFirstNtupleColumnId, G4BaseAnalysisManager::fState, GetNtupleDescriptionInFunction(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4Analysis::kInvalidId, G4AnalysisVerbose::Message(), and G4InuclParticleNames::name().
|
private |
Definition at line 222 of file G4RootPNtupleManager.hh.
References G4BaseAnalysisManager::fFirstId, fNtupleDescriptionVector, and G4InuclParticleNames::name().
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 344 of file G4RootPNtupleManager.cc.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 378 of file G4RootPNtupleManager.cc.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 337 of file G4RootPNtupleManager.cc.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 371 of file G4RootPNtupleManager.cc.
Implements G4VNtupleManager.
Definition at line 330 of file G4RootPNtupleManager.cc.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 364 of file G4RootPNtupleManager.cc.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 351 of file G4RootPNtupleManager.cc.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 385 of file G4RootPNtupleManager.cc.
|
private |
Definition at line 288 of file G4RootPNtupleManager.hh.
References G4VNtupleManager::fFirstNtupleColumnId, G4BaseAnalysisManager::fState, G4cout, G4endl, G4Exception(), GetActivation(), G4AnalysisManagerState::GetIsActivation(), GetNtupleInFunction(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().
Referenced by FillNtupleTColumn().
|
private |
Definition at line 348 of file G4RootPNtupleManager.hh.
References FillNtupleTColumn().
|
inline |
Definition at line 231 of file G4RootPNtupleManager.hh.
References G4VNtupleManager::fFirstNtupleColumnId, G4BaseAnalysisManager::fState, G4cout, G4endl, G4Exception(), GetActivation(), G4AnalysisManagerState::GetIsActivation(), GetNtupleInFunction(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 276 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fFirstId, and fNtupleDescriptionVector.
|
overrideprivatevirtual |
Implements G4VNtupleManager.
Definition at line 312 of file G4RootPNtupleManager.cc.
References CreateNtuple(), fCreateMode, GetMainNtupleInFunction(), GetNtupleDescriptionInFunction(), and kSlaveAfterOpen.
Implements G4VNtupleManager.
Definition at line 515 of file G4RootPNtupleManager.cc.
References GetNtupleDescriptionInFunction().
Referenced by AddNtupleRow(), and FillNtupleTColumn().
|
private |
Definition at line 107 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fFirstId, fMainNtupleManager, G4Exception(), G4RootMainNtupleManager::GetNtupleVector(), and JustWarning.
Referenced by FinishNtuple().
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 525 of file G4RootPNtupleManager.cc.
References fNtupleVector.
|
private |
Definition at line 67 of file G4RootPNtupleManager.cc.
References G4BaseAnalysisManager::fFirstId, fNtupleDescriptionVector, G4Exception(), and JustWarning.
Referenced by AddNtupleRow(), CreateNtupleTColumn(), FinishNtuple(), GetActivation(), GetNtupleInFunction(), and SetActivation().
|
private |
Definition at line 86 of file G4RootPNtupleManager.cc.
References G4Exception(), GetNtupleDescriptionInFunction(), and JustWarning.
Referenced by FillNtupleTColumn().
|
finalprivatevirtual |
Definition at line 531 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector.
|
finalprivatevirtual |
Definition at line 436 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector, G4BaseAnalysisManager::fState, G4Exception(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().
Referenced by G4RootAnalysisManager::WriteNtuple().
Definition at line 479 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector, and fNtupleVector.
|
finalprivatevirtual |
Implements G4VNtupleManager.
Definition at line 495 of file G4RootPNtupleManager.cc.
References fNtupleDescriptionVector.
Implements G4VNtupleManager.
Definition at line 505 of file G4RootPNtupleManager.cc.
References GetNtupleDescriptionInFunction().
|
friend |
Definition at line 81 of file G4RootPNtupleManager.hh.
|
private |
Definition at line 174 of file G4RootPNtupleManager.hh.
Referenced by CreateNtuple(), CreateNtuplesFromMain(), and FinishNtuple().
|
private |
Definition at line 175 of file G4RootPNtupleManager.hh.
Referenced by CreateNtuple(), CreateNtuplesFromMain(), and GetMainNtupleInFunction().
|
private |
Definition at line 176 of file G4RootPNtupleManager.hh.
Referenced by CreateNtuple(), CreateNtuplesFromMain(), CreateNtupleTColumn(), FinishNtuple(), GetNtupleDescriptionInFunction(), IsEmpty(), Merge(), Reset(), SetActivation(), and ~G4RootPNtupleManager().
|
private |
Definition at line 177 of file G4RootPNtupleManager.hh.
Referenced by CreateNtuple(), GetNofNtuples(), and Reset().