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,
108 template <
typename T>
110 const std::vector<G4HnInformation*>& hnVector,
111 tools::wroot::directory* directory,
130 #include "G4RootAnalysisManager.icc"
G4RootPNtupleManager * fSlaveNtupleManager
virtual ~G4RootAnalysisManager()
std::vector< tools::wroot::ntuple * >::const_iterator EndConstNtuple() const
std::vector< tools::wroot::ntuple * >::iterator BeginNtuple()
static constexpr unsigned int fgkDefaultBasketSize
virtual G4bool IsOpenFileImpl() const final
std::shared_ptr< G4RootFileManager > fFileManager
virtual G4bool OpenFileImpl(const G4String &fileName) final
G4bool WriteT(const std::vector< T * > &htVector, const std::vector< G4HnInformation * > &hnVector, tools::wroot::directory *directory, const G4String &hnType)
tools::wroot::ntuple * GetNtuple() const
void ClearNtupleManagers()
virtual G4bool WriteImpl() final
void SetNtupleMergingMode(G4bool mergeNtuples, G4int nofNtupleFiles)
G4int GetNtupleFileNumber()
virtual G4bool CloseFileImpl() final
G4NtupleMergeMode fNtupleMergeMode
static G4bool IsInstance()
std::vector< tools::wroot::ntuple * >::iterator EndNtuple()
G4RootAnalysisManager(G4bool isMaster=true)
static G4RootAnalysisManager * Instance()
G4RootNtupleManager * fNtupleManager
void CreateNtupleManagers()
std::vector< tools::wroot::ntuple * >::const_iterator BeginConstNtuple() const
static G4ThreadLocal G4RootAnalysisManager * fgInstance
void SetNtupleMerging(G4bool mergeNtuples, G4int nofReducedNtupleFiles=0, G4bool rowWise=0, unsigned int basketSize=fgkDefaultBasketSize)
static G4RootAnalysisManager * fgMasterInstance