35 #ifndef ExG4HbookNtupleManager_h
36 #define ExG4HbookNtupleManager_h 1
42 #include <tools/hbook/wntuple>
47 class ExG4HbookFileManager;
57 friend class ExG4HbookAnalysisManager;
61 virtual ~ExG4HbookNtupleManager();
69 G4int GetNtupleHbookIdOffset()
const;
72 void SetFileManager(ExG4HbookFileManager* fileManager);
75 tools::hbook::wntuple* GetNtuple()
const;
76 tools::hbook::wntuple* GetNtuple(
G4int ntupleId)
const;
114 void SetNtupleHbookIdOffset();
115 void CreateNtuplesFromBooking();
117 tools::hbook::wntuple::column<int>*
118 GetNtupleIColumn(
G4int ntupleId,
G4int columnId)
const;
119 tools::hbook::wntuple::column<float>*
120 GetNtupleFColumn(
G4int ntupleId,
G4int columnId)
const;
121 tools::hbook::wntuple::column<double>*
122 GetNtupleDColumn(
G4int ntupleId,
G4int columnId)
const;
125 ExG4HbookNtupleDescription* GetNtupleInFunction(
G4int id,
128 G4bool onlyIfActive =
true)
const;
132 ExG4HbookFileManager* fFileManager;
133 G4int fNtupleHbookIdOffset;
134 std::vector<ExG4HbookNtupleDescription*> fNtupleVector;
139 inline void ExG4HbookNtupleManager::SetFileManager(ExG4HbookFileManager* fileManager)
140 { fFileManager = fileManager; }
142 inline G4int ExG4HbookNtupleManager::GetNtupleHbookIdOffset()
const {
143 return fNtupleHbookIdOffset;
146 inline G4int ExG4HbookNtupleManager::GetNofNtuples()
const
147 {
return fNtupleVector.size(); }
virtual G4int GetNofNtuples() const =0
virtual G4int CreateNtupleIColumn(const G4String &name)=0
virtual G4int CreateNtuple(const G4String &name, const G4String &title)=0
virtual void FinishNtuple()=0
virtual G4int CreateNtupleFColumn(const G4String &name)=0
virtual G4int CreateNtupleDColumn(const G4String &name)=0
virtual G4bool FillNtupleIColumn(G4int id, G4int value)=0
virtual G4bool AddNtupleRow()=0
virtual G4bool FillNtupleFColumn(G4int id, G4float value)=0
virtual G4bool FillNtupleDColumn(G4int id, G4double value)=0