30#ifndef G4RootAnalysisManager_h
31#define G4RootAnalysisManager_h 1
36#include "tools/wroot/file"
37#include "tools/wroot/to"
38#include "tools/ntuple_booking"
39#include "tools/wroot/ntuple"
40#include "tools/histo/h1d"
41#include "tools/histo/h2d"
106 G4bool onlyIfActive =
true)
const;
108 G4bool onlyIfActive =
true)
const;
110 virtual tools::wroot::ntuple*
GetNtuple()
const;
160 G4bool CreateHistoDirectory();
161 G4bool CreateNtupleDirectory();
162 void CreateNtupleFromBooking();
163 tools::wroot::ntuple::column<int>* GetNtupleIColumn(
G4int id)
const;
164 tools::wroot::ntuple::column<float>* GetNtupleFColumn(
G4int id)
const;
165 tools::wroot::ntuple::column<double>* GetNtupleDColumn(
G4int id)
const;
169 G4bool onlyIfActive =
true)
const;
172 G4bool onlyIfActive =
true)
const;
178 tools::wroot::file* fFile;
179 tools::wroot::directory* fHistoDirectory;
180 tools::wroot::directory* fNtupleDirectory;
182 std::vector<tools::histo::h1d*> fH1Vector;
183 std::vector<tools::histo::h2d*> fH2Vector;
184 std::map<G4String, G4int> fH1NameIdMap;
185 std::map<G4String, G4int> fH2NameIdMap;
187 tools::wroot::ntuple* fNtuple;
188 tools::ntuple_booking* fNtupleBooking;
189 std::map<G4int, tools::wroot::ntuple::column<int>* > fNtupleIColumnMap;
190 std::map<G4int, tools::wroot::ntuple::column<float>* > fNtupleFColumnMap;
191 std::map<G4int, tools::wroot::ntuple::column<double>* > fNtupleDColumnMap;
G4double(* function)(G4double)
virtual G4bool SetH2(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
virtual G4String GetH1XAxisTitle(G4int id) const
virtual tools::histo::h1d * GetH1(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
virtual G4int CreateNtupleIColumn(const G4String &name)
virtual G4int CreateNtupleDColumn(const G4String &name)
virtual G4int GetH2Nxbins(G4int id) const
virtual G4String GetH2ZAxisTitle(G4int id) const
virtual G4int CreateH2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
virtual G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none")
virtual G4String GetH2YAxisTitle(G4int id) const
virtual G4bool SetH1XAxisTitle(G4int id, const G4String &title)
virtual G4bool SetH1Title(G4int id, const G4String &title)
virtual G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
virtual G4double GetH2Ymax(G4int id) const
virtual G4bool FillNtupleFColumn(G4int id, G4float value)
virtual G4bool SetH2YAxisTitle(G4int id, const G4String &title)
virtual void CreateNtuple(const G4String &name, const G4String &title)
virtual tools::wroot::ntuple * GetNtuple() const
static G4RootAnalysisManager * Instance()
virtual G4bool CloseFile()
virtual G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none")
virtual G4String GetH1Title(G4int id) const
virtual G4bool SetH2Title(G4int id, const G4String &title)
virtual void FinishNtuple()
virtual ~G4RootAnalysisManager()
virtual G4String GetH2XAxisTitle(G4int id) const
virtual G4double GetH2Ymin(G4int id) const
virtual G4String GetH1YAxisTitle(G4int id) const
virtual G4int GetH1Nbins(G4int id) const
virtual G4int CreateNtupleFColumn(const G4String &name)
virtual G4double GetH2XWidth(G4int id) const
virtual G4bool ScaleH1(G4int id, G4double factor)
virtual tools::histo::h2d * GetH2(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
virtual G4bool SetH2ZAxisTitle(G4int id, const G4String &title)
virtual G4bool AddNtupleRow()
virtual G4String GetH2Title(G4int id) const
virtual G4double GetH2Xmax(G4int id) const
virtual G4double GetH2Xmin(G4int id) const
virtual G4double GetH1Xmax(G4int id) const
virtual G4double GetH1Xmin(G4int id) const
virtual G4bool ScaleH2(G4int id, G4double factor)
virtual G4bool OpenFile()
virtual G4int GetH2Id(const G4String &name, G4bool warn=true) const
virtual G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
virtual G4bool WriteOnAscii(std::ofstream &output)
virtual G4double GetH1Width(G4int id) const
virtual G4int GetH2Nybins(G4int id) const
virtual G4bool SetH2XAxisTitle(G4int id, const G4String &title)
virtual G4bool FillNtupleDColumn(G4int id, G4double value)
virtual G4bool SetH1YAxisTitle(G4int id, const G4String &title)
virtual G4bool FillNtupleIColumn(G4int id, G4int value)
virtual G4double GetH2YWidth(G4int id) const
virtual G4int GetH1Id(const G4String &name, G4bool warn=true) const
virtual G4bool OpenFile()