35 #ifndef ExG4HbookH2Manager_h 36 #define ExG4HbookH2Manager_h 1 44 #include <tools/hbook/h2> 49 class ExG4HbookFileManager;
85 friend class ExG4HbookAnalysisManager;
89 virtual ~ExG4HbookH2Manager();
98 G4int GetH2HbookIdOffset()
const;
101 void SetFileManager(ExG4HbookFileManager* fileManager);
105 G4bool onlyIfActive =
true)
const;
108 std::vector<tools::hbook::h2*>::iterator BeginH2();
109 std::vector<tools::hbook::h2*>::iterator EndH2();
110 std::vector<tools::hbook::h2*>::const_iterator BeginConstH2()
const;
111 std::vector<tools::hbook::h2*>::const_iterator EndConstH2()
const;
125 const G4String& xbinScheme =
"linear",
126 const G4String& ybinScheme =
"linear");
129 const std::vector<G4double>& xedges,
130 const std::vector<G4double>& yedges,
143 const G4String& xbinScheme =
"linear",
144 const G4String& ybinScheme =
"linear");
147 const std::vector<G4double>& xedges,
148 const std::vector<G4double>& yedges,
186 virtual G4bool WriteOnAscii(std::ofstream& output);
189 virtual std::shared_ptr<G4HnManager> GetHnManager();
194 static const G4int fgkDefaultH2HbookIdOffset;
198 void SetH2HbookIdOffset();
199 void CreateH2sFromBooking();
202 virtual h2_booking* GetH2Booking(
G4int id,
G4bool warn =
true)
const;
206 G4bool onlyIfActive =
true)
const;
211 ExG4HbookFileManager* fFileManager;
212 G4int fH2HbookIdOffset;
213 std::vector<tools::hbook::h2*> fH2Vector;
214 std::vector<h2_booking*> fH2BookingVector;
215 std::map<G4String, G4int> fH2NameIdMap;
220 inline void ExG4HbookH2Manager::SetFileManager(ExG4HbookFileManager* fileManager)
221 { fFileManager = fileManager; }
223 inline G4int ExG4HbookH2Manager::GetH2HbookIdOffset()
const {
224 return fH2HbookIdOffset;
227 inline std::vector<tools::hbook::h2*>::iterator ExG4HbookH2Manager::BeginH2()
230 inline std::vector<tools::hbook::h2*>::iterator ExG4HbookH2Manager::EndH2()
233 inline std::vector<tools::hbook::h2*>::const_iterator
234 ExG4HbookH2Manager::BeginConstH2()
const 235 {
return BeginConstT(); }
237 inline std::vector<tools::hbook::h2*>::const_iterator
238 ExG4HbookH2Manager::EndConstH2()
const 239 {
return EndConstT(); }
241 inline std::shared_ptr<G4HnManager> ExG4HbookH2Manager::GetHnManager()
242 {
return std::shared_ptr<G4HnManager>(fHnManager); }
Definition of the ExG4HbookBaseHnManager class.
ntupleExperimental Reset()
static const G4double factor