33 #ifndef G4RootAnalysisManager_h
34 #define G4RootAnalysisManager_h 1
39 #include "tools/wroot/ntuple"
40 #include "tools/histo/hmpi"
76 std::vector<tools::wroot::ntuple*>::iterator
BeginNtuple();
77 std::vector<tools::wroot::ntuple*>::iterator
EndNtuple();
79 std::vector<tools::wroot::ntuple*>::const_iterator
EndConstNtuple()
const;
83 G4int nofReducedNtupleFiles = 0,
107 template <
typename T>
109 const std::vector<G4HnInformation*>& hnVector,
110 tools::wroot::directory* directory,
virtual G4bool OpenFileImpl(const G4String &fileName) final
static G4RootAnalysisManager * fgMasterInstance
G4bool WriteT(const std::vector< T * > &htVector, const std::vector< G4HnInformation * > &hnVector, tools::wroot::directory *directory, const G4String &hnType)
std::vector< tools::wroot::ntuple * >::const_iterator BeginConstNtuple() const
void ClearNtupleManagers()
virtual G4bool IsOpenFileImpl() const final
static G4ThreadLocal G4RootAnalysisManager * fgInstance
virtual G4bool CloseFileImpl() final
static G4bool IsInstance()
void CreateNtupleManagers()
G4RootNtupleManager * fNtupleManager
G4RootAnalysisManager(G4bool isMaster=true)
G4int GetNtupleFileNumber()
std::vector< tools::wroot::ntuple * >::const_iterator EndConstNtuple() const
virtual ~G4RootAnalysisManager()
void SetNtupleMergingMode(G4bool mergeNtuples, G4int nofNtupleFiles)
virtual G4bool WriteImpl() final
void SetNtupleMerging(G4bool mergeNtuples, G4int nofReducedNtupleFiles=0, unsigned int basketSize=fgkDefaultBasketSize)
static G4RootAnalysisManager * Instance()
static constexpr unsigned int fgkDefaultBasketSize
G4RootPNtupleManager * fSlaveNtupleManager
G4NtupleMergeMode fNtupleMergeMode
std::vector< tools::wroot::ntuple * >::iterator EndNtuple()
std::vector< tools::wroot::ntuple * >::iterator BeginNtuple()
std::shared_ptr< G4RootFileManager > fFileManager
tools::wroot::ntuple * GetNtuple() const