37#ifndef G4VAnalysisManager_h
38#define G4VAnalysisManager_h 1
97 const G4String& binSchemeName =
"linear");
100 const std::vector<G4double>& edges,
111 const G4String& xbinSchemeName =
"linear",
112 const G4String& ybinSchemeName =
"linear");
115 const std::vector<G4double>& xedges,
116 const std::vector<G4double>& yedges,
132 const G4String& xbinSchemeName =
"linear",
133 const G4String& ybinSchemeName =
"linear",
134 const G4String& zbinSchemeName =
"linear");
137 const std::vector<G4double>& xedges,
138 const std::vector<G4double>& yedges,
139 const std::vector<G4double>& zedges,
151 const G4String& binSchemeName =
"linear");
154 const std::vector<G4double>& edges,
165 const G4String& xbinSchemeName =
"linear",
166 const G4String& ybinSchemeName =
"linear");
169 const std::vector<G4double>& xedges,
170 const std::vector<G4double>& yedges,
186 const G4String& xbinSchemeName =
"linear",
187 const G4String& ybinSchemeName =
"linear",
188 const G4String& zbinSchemeName =
"linear");
191 const std::vector<G4double>& xedges,
192 const std::vector<G4double>& yedges,
193 const std::vector<G4double>& zedges,
214 const G4String& xbinSchemeName =
"linear");
216 const std::vector<G4double>& edges,
233 const G4String& xbinSchemeName =
"linear",
234 const G4String& ybinSchemeName =
"linear");
236 const std::vector<G4double>& xedges,
237 const std::vector<G4double>& yedges,
253 const G4String& xbinSchemeName =
"linear");
255 const std::vector<G4double>& edges,
272 const G4String& xbinSchemeName =
"linear",
273 const G4String& ybinSchemeName =
"linear");
275 const std::vector<G4double>& xedges,
276 const std::vector<G4double>& yedges,
300 const G4String& name, std::vector<int>& vector);
302 const G4String& name, std::vector<float>& vector);
304 const G4String& name, std::vector<double>& vector);
315 const G4String& name, std::vector<int>& vector);
317 const G4String& name, std::vector<float>& vector);
319 const G4String& name, std::vector<double>& vector);
325 G4int nofReducedNtupleFiles = 0);
665 std::unique_ptr<G4AnalysisMessenger> fMessenger;
666 std::shared_ptr<G4HnManager> fH1HnManager;
667 std::shared_ptr<G4HnManager> fH2HnManager;
668 std::shared_ptr<G4HnManager> fH3HnManager;
669 std::shared_ptr<G4HnManager> fP1HnManager;
670 std::shared_ptr<G4HnManager> fP2HnManager;
671 std::unique_ptr<G4VH1Manager> fVH1Manager;
672 std::unique_ptr<G4VH2Manager> fVH2Manager;
673 std::unique_ptr<G4VH3Manager> fVH3Manager;
674 std::unique_ptr<G4VP1Manager> fVP1Manager;
675 std::unique_ptr<G4VP2Manager> fVP2Manager;
680#include "G4VAnalysisManager.icc"
G4bool SetP2YAxisTitle(G4int id, const G4String &title)
G4double GetH3Xmin(G4int id) const
G4bool GetP2ZAxisIsLog(G4int id) const
G4int CreateP1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear")
G4bool SetH2XAxisIsLog(G4int id, G4bool isLog)
G4int GetP1Nbins(G4int id) const
G4int GetVerboseLevel() const
virtual G4bool MergeImpl(tools::histo::hmpi *hmpi)=0
G4int GetFirstP2Id() const
std::shared_ptr< G4PlotManager > fPlotManager
G4bool FillNtupleIColumn(G4int ntupleId, G4int columnId, G4int value)
G4double GetP1Xmax(G4int id) const
G4int GetH3Nxbins(G4int id) const
static constexpr unsigned int fgkDefaultBasketSize
void SetH1Ascii(G4int id, G4bool ascii)
G4int GetFirstNtupleId() const
G4bool GetP1XAxisIsLog(G4int id) const
G4double GetP1Ymax(G4int id) const
G4bool GetActivation() const
G4String GetH3YAxisTitle(G4int id) const
virtual G4bool IsOpenFileImpl() const =0
G4int CreateP2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
G4String GetP1XAxisTitle(G4int id) const
G4bool SetH2Title(G4int id, const G4String &title)
G4int GetFirstH2Id() const
void SetH2FileName(G4int id, const G4String &fileName)
void SetH1Activation(G4bool activation)
G4bool FillNtupleSColumn(G4int id, const G4String &value)
G4bool GetH1YAxisIsLog(G4int id) const
G4bool GetP2Plotting(G4int id) const
virtual ~G4VAnalysisManager()
G4double GetH3YWidth(G4int id) const
G4double GetP1XWidth(G4int id) const
void SetH1Plotting(G4int id, G4bool plotting)
G4String GetP2ZAxisTitle(G4int id) const
void SetH3Ascii(G4int id, G4bool ascii)
void SetH1Manager(G4VH1Manager *h1Manager)
G4bool GetNtupleActivation(G4int id) const
G4String GetH1YAxisTitle(G4int id) const
G4int GetNofNtuples() const
G4String GetH1Name(G4int id) const
G4int GetP2Id(const G4String &name, G4bool warn=true) const
void SetH3Activation(G4bool activation)
G4int GetFirstP1Id() const
G4int GetH2Id(const G4String &name, G4bool warn=true) const
G4String GetH1FileName(G4int id) const
G4bool GetH2ZAxisIsLog(G4int id) const
G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
void SetH2Manager(G4VH2Manager *h2Manager)
G4int GetH2Nybins(G4int id) const
G4double GetP1XUnit(G4int id) const
G4double GetH2XUnit(G4int id) const
G4double GetP1Xmin(G4int id) const
G4double GetP2Ymax(G4int id) const
G4bool SetP1XAxisTitle(G4int id, const G4String &title)
G4bool FillP1(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
G4String GetH2Name(G4int id) const
G4int CreateNtupleIColumn(const G4String &name)
virtual G4bool WriteImpl()=0
G4String GetHistoDirectoryName() const
G4bool GetH2YAxisIsLog(G4int id) const
G4int CreateNtupleDColumn(const G4String &name)
G4bool GetH3ZAxisIsLog(G4int id) const
void SetH3Plotting(G4int id, G4bool plotting)
G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
void SetP2FileName(G4int id, const G4String &fileName)
G4bool SetH1YAxisIsLog(G4int id, G4bool isLog)
void SetNtupleFileName(const G4String &fileName)
G4String GetP2Name(G4int id) const
G4int CreateNtupleFColumn(const G4String &name)
G4bool FillH3(G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
G4double GetH2Xmin(G4int id) const
G4bool SetH3Title(G4int id, const G4String &title)
G4bool SetH3(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nzbins, G4double zmin, G4double zmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear", const G4String &zbinSchemeName="linear")
G4int GetFirstH1Id() const
void SetP2Plotting(G4int id, G4bool plotting)
G4int GetP1Id(const G4String &name, G4bool warn=true) const
G4double GetH3Zmin(G4int id) const
G4String GetH2XAxisTitle(G4int id) const
G4bool GetH1Plotting(G4int id) const
G4bool GetP1Ascii(G4int id) const
G4bool GetP1Activation(G4int id) const
G4int GetH3Nzbins(G4int id) const
G4bool FillNtupleDColumn(G4int id, G4double value)
G4double GetP2XWidth(G4int id) const
G4String GetNtupleFileName(G4int id) const
G4bool GetP1YAxisIsLog(G4int id) const
G4bool SetH2YAxisIsLog(G4int id, G4bool isLog)
G4double GetP2YUnit(G4int id) const
G4bool SetP1(G4int id, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear")
G4bool SetP2ZAxisIsLog(G4int id, G4bool isLog)
G4double GetP2Xmin(G4int id) const
G4bool SetFirstP1Id(G4int firstId)
G4double GetH2YWidth(G4int id) const
G4int GetH1Id(const G4String &name, G4bool warn=true) const
G4double GetH2YUnit(G4int id) const
G4bool SetP2(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
G4bool FillNtupleSColumn(G4int ntupleId, G4int id, const G4String &value)
G4bool SetH3YAxisTitle(G4int id, const G4String &title)
G4bool FillNtupleIColumn(G4int id, G4int value)
virtual G4bool OpenFileImpl(const G4String &fileName)=0
G4double GetP2Zmin(G4int id) const
void SetActivation(G4bool activation)
G4bool SetFirstNtupleColumnId(G4int firstId)
G4String GetFileName() const
G4double GetP2YWidth(G4int id) const
G4bool GetH2Plotting(G4int id) const
G4bool GetH3YAxisIsLog(G4int id) const
G4bool CloseFile(G4bool reset=true)
G4bool OpenFile(const G4String &fileName="")
void SetH3FileName(G4int id, const G4String &fileName)
G4String GetH1Title(G4int id) const
G4bool GetH1Activation(G4int id) const
G4bool FillNtupleDColumn(G4int ntupleId, G4int columnId, G4double value)
G4double GetP1Ymin(G4int id) const
G4bool GetH3XAxisIsLog(G4int id) const
G4int GetH1Nbins(G4int id) const
G4bool GetH2Activation(G4int id) const
G4bool SetP1YAxisIsLog(G4int id, G4bool isLog)
std::shared_ptr< G4NtupleBookingManager > fNtupleBookingManager
G4bool ScaleP1(G4int id, G4double factor)
G4String GetP1YAxisTitle(G4int id) const
void SetPlotManager(std::shared_ptr< G4PlotManager > plotManager)
G4bool GetH3Ascii(G4int id) const
G4bool SetP2Title(G4int id, const G4String &title)
G4bool GetP1Plotting(G4int id) const
G4bool ScaleH3(G4int id, G4double factor)
void SetH2Ascii(G4int id, G4bool ascii)
G4int CreateNtupleSColumn(const G4String &name)
virtual G4bool PlotImpl()=0
G4bool IsPlotting() const
G4double GetP2ZUnit(G4int id) const
void SetP1Ascii(G4int id, G4bool ascii)
G4bool GetH1XAxisIsLog(G4int id) const
G4double GetH3Zmax(G4int id) const
G4double GetH3ZUnit(G4int id) const
G4int CreateH3(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4int nzbins, G4double zmin, G4double zmax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear", const G4String &zbinSchemeName="linear")
G4bool FillNtupleFColumn(G4int id, G4float value)
G4bool SetFirstH3Id(G4int firstId)
G4bool SetHistoDirectoryName(const G4String &dirName)
G4double GetH1Width(G4int id) const
G4bool GetP2YAxisIsLog(G4int id) const
G4String GetP2YAxisTitle(G4int id) const
G4bool SetH3XAxisIsLog(G4int id, G4bool isLog)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
G4bool GetH2Ascii(G4int id) const
G4AnalysisManagerState fState
void SetP2Activation(G4bool activation)
void SetH1FileName(G4int id, const G4String &fileName)
G4bool GetH2XAxisIsLog(G4int id) const
G4bool SetP1YAxisTitle(G4int id, const G4String &title)
G4String GetP1Name(G4int id) const
G4bool SetH2XAxisTitle(G4int id, const G4String &title)
G4String GetH3ZAxisTitle(G4int id) const
G4bool SetH1Title(G4int id, const G4String &title)
virtual void SetNtupleRowWise(G4bool rowWise, G4bool rowMode=true)
G4bool SetP1XAxisIsLog(G4int id, G4bool isLog)
void SetP1Plotting(G4int id, G4bool plotting)
G4double GetH3Xmax(G4int id) const
G4bool SetP2ZAxisTitle(G4int id, const G4String &title)
G4String GetH3Title(G4int id) const
G4String GetH3Name(G4int id) const
virtual void SetBasketSize(unsigned int basketSize)
G4bool GetP2XAxisIsLog(G4int id) const
G4bool SetH1XAxisTitle(G4int id, const G4String &title)
G4double GetP2Zmax(G4int id) const
G4bool FillP2(G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
G4double GetH3YUnit(G4int id) const
void SetFileManager(std::shared_ptr< G4VFileManager > fileManager)
G4bool SetH1XAxisIsLog(G4int id, G4bool isLog)
void SetP1FileName(G4int id, const G4String &fileName)
G4double GetH1Unit(G4int id) const
G4double GetP2Ymin(G4int id) const
G4bool GetP2Ascii(G4int id) const
G4double GetH2Ymin(G4int id) const
G4double GetH3Ymin(G4int id) const
G4bool WriteAscii(const G4String &fileName)
virtual void SetNtupleMerging(G4bool mergeNtuples, G4int nofReducedNtupleFiles=0)
G4bool SetP2YAxisIsLog(G4int id, G4bool isLog)
G4int GetH3Id(const G4String &name, G4bool warn=true) const
void SetP2Manager(G4VP2Manager *p2Manager)
void SetP1Activation(G4bool activation)
G4bool SetP1Title(G4int id, const G4String &title)
virtual void SetBasketEntries(unsigned int basketEntries)
G4int GetFirstNtupleColumnId() const
G4double GetP2XUnit(G4int id) const
G4bool SetH3XAxisTitle(G4int id, const G4String &title)
G4String GetH2YAxisTitle(G4int id) const
G4double GetH1Xmin(G4int id) const
void SetVerboseLevel(G4int verboseLevel)
G4bool AddNtupleRow(G4int ntupleId)
G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool SetH3YAxisIsLog(G4int id, G4bool isLog)
G4String GetH3XAxisTitle(G4int id) const
G4double GetH3XUnit(G4int id) const
void SetH2Activation(G4bool activation)
G4int CreateNtuple(const G4String &name, const G4String &title)
G4bool GetH3Activation(G4int id) const
G4bool SetH2YAxisTitle(G4int id, const G4String &title)
G4String GetP1Title(G4int id) const
std::shared_ptr< G4VNtupleManager > fVNtupleManager
G4String GetP2XAxisTitle(G4int id) const
void SetNtupleManager(std::shared_ptr< G4VNtupleManager > ntupleManager)
G4bool SetFirstH2Id(G4int firstId)
G4bool SetH3ZAxisIsLog(G4int id, G4bool isLog)
void SetP1Manager(G4VP1Manager *p1Manager)
G4double GetH3Ymax(G4int id) const
void SetH3Manager(G4VH3Manager *h3Manager)
G4double GetH2Xmax(G4int id) const
G4bool SetFirstP2Id(G4int firstId)
G4int GetP2Nxbins(G4int id) const
G4String GetH1XAxisTitle(G4int id) const
G4String GetH2Title(G4int id) const
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", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
G4bool GetP2Activation(G4int id) const
G4bool SetH3ZAxisTitle(G4int id, const G4String &title)
G4String GetH2ZAxisTitle(G4int id) const
G4String GetFileType() const
std::shared_ptr< G4VFileManager > fVFileManager
static constexpr unsigned int fgkDefaultBasketEntries
G4bool SetH2ZAxisIsLog(G4int id, G4bool isLog)
G4int GetP2Nybins(G4int id) const
G4bool SetFileName(const G4String &fileName)
void SetCompressionLevel(G4int level)
G4double GetH3XWidth(G4int id) const
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", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
void SetNtupleActivation(G4bool activation)
G4int GetCompressionLevel() const
G4bool SetFirstH1Id(G4int firstId)
G4bool ScaleH1(G4int id, G4double factor)
G4String GetP2Title(G4int id) const
G4String GetNtupleDirectoryName() const
G4bool SetH2ZAxisTitle(G4int id, const G4String &title)
G4bool SetFirstNtupleId(G4int firstId)
G4bool IsOpenFile() const
G4bool GetH3Plotting(G4int id) const
G4bool SetFirstHistoId(G4int firstId)
G4double GetH1Xmax(G4int id) const
G4bool SetFirstProfileId(G4int firstId)
G4bool SetNtupleDirectoryName(const G4String &dirName)
G4double GetH2Ymax(G4int id) const
G4int GetFirstH3Id() const
G4bool ScaleP2(G4int id, G4double factor)
G4double GetP2Xmax(G4int id) const
virtual G4bool CloseFileImpl(G4bool reset)=0
G4bool ScaleH2(G4int id, G4double factor)
G4double GetH3ZWidth(G4int id) const
G4double GetH2XWidth(G4int id) const
G4int GetH2Nxbins(G4int id) const
G4bool Merge(tools::histo::hmpi *hmpi)
G4bool FillNtupleFColumn(G4int ntupleId, G4int columnId, G4float value)
void SetP2Ascii(G4int id, G4bool ascii)
G4bool SetH1YAxisTitle(G4int id, const G4String &title)
G4double GetP1YUnit(G4int id) const
void SetH2Plotting(G4int id, G4bool plotting)
G4bool SetP2XAxisIsLog(G4int id, G4bool isLog)
G4bool SetP2XAxisTitle(G4int id, const G4String &title)
G4int GetH3Nybins(G4int id) const
G4bool GetH1Ascii(G4int id) const