Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GenericAnalysisManager Class Reference

#include <G4GenericAnalysisManager.hh>

+ Inheritance diagram for G4GenericAnalysisManager:

Public Member Functions

 ~G4GenericAnalysisManager () override
 
void SetNtupleMerging (G4bool mergeNtuples, G4int nofReducedNtupleFiles=0) override
 
void SetNtupleRowWise (G4bool rowWise, G4bool rowMode=true) override
 
void SetBasketSize (unsigned int basketSize) override
 
void SetBasketEntries (unsigned int basketEntries) override
 
G4bool WriteH1 (G4int id, const G4String &fileName)
 
G4bool WriteH2 (G4int id, const G4String &fileName)
 
G4bool WriteH3 (G4int id, const G4String &fileName)
 
G4bool WriteP1 (G4int id, const G4String &fileName)
 
G4bool WriteP2 (G4int id, const G4String &fileName)
 
tools::ntuple_booking * GetNtuple (G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::ntuple_booking * GetNtuple (G4int ntupleId, G4bool warn=true, G4bool onlyIfActive=true) const
 
- Public Member Functions inherited from G4ToolsAnalysisManager
 ~G4ToolsAnalysisManager () override
 
tools::histo::h1d * GetH1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::h2d * GetH2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::h3d * GetH3 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::p1d * GetP1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::p2d * GetP2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
std::vector< tools::histo::h1d * >::iterator BeginH1 ()
 
std::vector< tools::histo::h1d * >::iterator EndH1 ()
 
std::vector< tools::histo::h1d * >::const_iterator BeginConstH1 () const
 
std::vector< tools::histo::h1d * >::const_iterator EndConstH1 () const
 
std::vector< tools::histo::h2d * >::iterator BeginH2 ()
 
std::vector< tools::histo::h2d * >::iterator EndH2 ()
 
std::vector< tools::histo::h2d * >::const_iterator BeginConstH2 () const
 
std::vector< tools::histo::h2d * >::const_iterator EndConstH2 () const
 
std::vector< tools::histo::h3d * >::iterator BeginH3 ()
 
std::vector< tools::histo::h3d * >::iterator EndH3 ()
 
std::vector< tools::histo::h3d * >::const_iterator BeginConstH3 () const
 
std::vector< tools::histo::h3d * >::const_iterator EndConstH3 () const
 
std::vector< tools::histo::p1d * >::iterator BeginP1 ()
 
std::vector< tools::histo::p1d * >::iterator EndP1 ()
 
std::vector< tools::histo::p1d * >::const_iterator BeginConstP1 () const
 
std::vector< tools::histo::p1d * >::const_iterator EndConstP1 () const
 
std::vector< tools::histo::p2d * >::iterator BeginP2 ()
 
std::vector< tools::histo::p2d * >::iterator EndP2 ()
 
std::vector< tools::histo::p2d * >::const_iterator BeginConstP2 () const
 
std::vector< tools::histo::p2d * >::const_iterator EndConstP2 () const
 
- Public Member Functions inherited from G4VAnalysisManager
 G4VAnalysisManager ()=delete
 
G4bool OpenFile (const G4String &fileName="")
 
G4bool Write ()
 
G4bool CloseFile (G4bool reset=true)
 
G4bool Reset ()
 
void Clear ()
 
G4bool Merge (tools::histo::hmpi *hmpi)
 
G4bool Plot ()
 
G4bool IsOpenFile () const
 
void SetDefaultFileType (const G4String &value)
 
G4String GetDefaultFileType () const
 
G4bool SetFileName (const G4String &fileName)
 
G4bool SetHistoDirectoryName (const G4String &dirName)
 
G4bool SetNtupleDirectoryName (const G4String &dirName)
 
void SetCompressionLevel (G4int level)
 
G4String GetFileName () const
 
G4String GetHistoDirectoryName () const
 
G4String GetNtupleDirectoryName () const
 
G4int GetCompressionLevel () 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")
 
G4int CreateH1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none")
 
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")
 
G4int CreateH2 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
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")
 
G4int CreateH3 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const std::vector< G4double > &zedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none")
 
G4bool SetH1 (G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
 
G4bool SetH1 (G4int id, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none")
 
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 SetH2 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
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")
 
G4bool SetH3 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const std::vector< G4double > &zedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none")
 
G4bool ScaleH1 (G4int id, G4double factor)
 
G4bool ScaleH2 (G4int id, G4double factor)
 
G4bool ScaleH3 (G4int id, G4double factor)
 
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")
 
G4int CreateP1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
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")
 
G4int CreateP2 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, 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")
 
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 SetP1 (G4int id, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
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 SetP2 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, 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")
 
G4bool ScaleP1 (G4int id, G4double factor)
 
G4bool ScaleP2 (G4int id, G4double factor)
 
G4int CreateNtuple (const G4String &name, const G4String &title)
 
G4int CreateNtupleIColumn (const G4String &name)
 
G4int CreateNtupleFColumn (const G4String &name)
 
G4int CreateNtupleDColumn (const G4String &name)
 
G4int CreateNtupleSColumn (const G4String &name)
 
G4int CreateNtupleIColumn (const G4String &name, std::vector< int > &vector)
 
G4int CreateNtupleFColumn (const G4String &name, std::vector< float > &vector)
 
G4int CreateNtupleDColumn (const G4String &name, std::vector< double > &vector)
 
G4int CreateNtupleSColumn (const G4String &name, std::vector< std::string > &vector)
 
void FinishNtuple ()
 
G4int CreateNtupleIColumn (G4int ntupleId, const G4String &name)
 
G4int CreateNtupleFColumn (G4int ntupleId, const G4String &name)
 
G4int CreateNtupleDColumn (G4int ntupleId, const G4String &name)
 
G4int CreateNtupleSColumn (G4int ntupleId, const G4String &name)
 
G4int CreateNtupleIColumn (G4int ntupleId, const G4String &name, std::vector< int > &vector)
 
G4int CreateNtupleFColumn (G4int ntupleId, const G4String &name, std::vector< float > &vector)
 
G4int CreateNtupleDColumn (G4int ntupleId, const G4String &name, std::vector< double > &vector)
 
G4int CreateNtupleSColumn (G4int ntupleId, const G4String &name, std::vector< std::string > &vector)
 
void FinishNtuple (G4int ntupleId)
 
G4bool SetFirstHistoId (G4int firstId)
 
G4bool SetFirstH1Id (G4int firstId)
 
G4bool SetFirstH2Id (G4int firstId)
 
G4bool SetFirstH3Id (G4int firstId)
 
G4bool SetFirstProfileId (G4int firstId)
 
G4bool SetFirstP1Id (G4int firstId)
 
G4bool SetFirstP2Id (G4int firstId)
 
G4bool SetFirstNtupleId (G4int firstId)
 
G4bool SetFirstNtupleColumnId (G4int firstId)
 
G4bool FillH1 (G4int id, G4double value, G4double weight=1.0)
 
G4bool FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
 
G4bool FillH3 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
 
G4bool FillP1 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
 
G4bool FillP2 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
 
G4bool FillNtupleIColumn (G4int id, G4int value)
 
G4bool FillNtupleFColumn (G4int id, G4float value)
 
G4bool FillNtupleDColumn (G4int id, G4double value)
 
G4bool FillNtupleSColumn (G4int id, const G4String &value)
 
G4bool AddNtupleRow ()
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int id, const G4String &value)
 
G4bool AddNtupleRow (G4int ntupleId)
 
void SetActivation (G4bool activation)
 
G4bool GetActivation () const
 
G4bool IsActive () const
 
G4bool IsAscii () const
 
G4bool IsPlotting () const
 
G4int GetFirstH1Id () const
 
G4int GetFirstH2Id () const
 
G4int GetFirstH3Id () const
 
G4int GetFirstP1Id () const
 
G4int GetFirstP2Id () const
 
G4int GetFirstNtupleId () const
 
G4int GetFirstNtupleColumnId () const
 
G4int GetNofH1s (G4bool onlyIfExist=false) const
 
G4int GetNofH2s (G4bool onlyIfExist=false) const
 
G4int GetNofH3s (G4bool onlyIfExist=false) const
 
G4int GetNofP1s (G4bool onlyIfExist=false) const
 
G4int GetNofP2s (G4bool onlyIfExist=false) const
 
G4int GetNofNtuples (G4bool onlyIfExist=false) const
 
G4int GetH1Id (const G4String &name, G4bool warn=true) const
 
G4int GetH2Id (const G4String &name, G4bool warn=true) const
 
G4int GetH3Id (const G4String &name, G4bool warn=true) const
 
G4int GetP1Id (const G4String &name, G4bool warn=true) const
 
G4int GetP2Id (const G4String &name, G4bool warn=true) const
 
G4bool ListH1 (G4bool onlyIfActive=true) const
 
G4bool ListH2 (G4bool onlyIfActive=true) const
 
G4bool ListH3 (G4bool onlyIfActive=true) const
 
G4bool ListP1 (G4bool onlyIfActive=true) const
 
G4bool ListP2 (G4bool onlyIfActive=true) const
 
G4bool ListNtuple (G4bool onlyIfActive=true) const
 
G4bool List (G4bool onlyIfActive=true) const
 
void SetH1Activation (G4bool activation)
 
void SetH1Activation (G4int id, G4bool activation)
 
void SetH1Ascii (G4int id, G4bool ascii)
 
void SetH1Plotting (G4int id, G4bool plotting)
 
void SetH1FileName (G4int id, const G4String &fileName)
 
void SetH2Activation (G4bool activation)
 
void SetH2Activation (G4int id, G4bool activation)
 
void SetH2Ascii (G4int id, G4bool ascii)
 
void SetH2Plotting (G4int id, G4bool plotting)
 
void SetH2FileName (G4int id, const G4String &fileName)
 
void SetH3Activation (G4bool activation)
 
void SetH3Activation (G4int id, G4bool activation)
 
void SetH3Ascii (G4int id, G4bool ascii)
 
void SetH3Plotting (G4int id, G4bool plotting)
 
void SetH3FileName (G4int id, const G4String &fileName)
 
void SetP1Activation (G4bool activation)
 
void SetP1Activation (G4int id, G4bool activation)
 
void SetP1Ascii (G4int id, G4bool ascii)
 
void SetP1Plotting (G4int id, G4bool plotting)
 
void SetP1FileName (G4int id, const G4String &fileName)
 
void SetP2Activation (G4bool activation)
 
void SetP2Activation (G4int id, G4bool activation)
 
void SetP2Ascii (G4int id, G4bool ascii)
 
void SetP2Plotting (G4int id, G4bool plotting)
 
void SetP2FileName (G4int id, const G4String &fileName)
 
void SetNtupleActivation (G4bool activation)
 
void SetNtupleActivation (G4int id, G4bool activation)
 
void SetNtupleFileName (const G4String &fileName)
 
void SetNtupleFileName (G4int id, const G4String &fileName)
 
G4int GetH1Nbins (G4int id) const
 
G4double GetH1Xmin (G4int id) const
 
G4double GetH1Xmax (G4int id) const
 
G4double GetH1Width (G4int id) const
 
G4int GetH2Nxbins (G4int id) const
 
G4double GetH2Xmin (G4int id) const
 
G4double GetH2Xmax (G4int id) const
 
G4double GetH2XWidth (G4int id) const
 
G4int GetH2Nybins (G4int id) const
 
G4double GetH2Ymin (G4int id) const
 
G4double GetH2Ymax (G4int id) const
 
G4double GetH2YWidth (G4int id) const
 
G4int GetH3Nxbins (G4int id) const
 
G4double GetH3Xmin (G4int id) const
 
G4double GetH3Xmax (G4int id) const
 
G4double GetH3XWidth (G4int id) const
 
G4int GetH3Nybins (G4int id) const
 
G4double GetH3Ymin (G4int id) const
 
G4double GetH3Ymax (G4int id) const
 
G4double GetH3YWidth (G4int id) const
 
G4int GetH3Nzbins (G4int id) const
 
G4double GetH3Zmin (G4int id) const
 
G4double GetH3Zmax (G4int id) const
 
G4double GetH3ZWidth (G4int id) const
 
G4int GetP1Nbins (G4int id) const
 
G4double GetP1Xmin (G4int id) const
 
G4double GetP1Xmax (G4int id) const
 
G4double GetP1XWidth (G4int id) const
 
G4double GetP1Ymin (G4int id) const
 
G4double GetP1Ymax (G4int id) const
 
G4int GetP2Nxbins (G4int id) const
 
G4double GetP2Xmin (G4int id) const
 
G4double GetP2Xmax (G4int id) const
 
G4double GetP2XWidth (G4int id) const
 
G4int GetP2Nybins (G4int id) const
 
G4double GetP2Ymin (G4int id) const
 
G4double GetP2Ymax (G4int id) const
 
G4double GetP2YWidth (G4int id) const
 
G4double GetP2Zmin (G4int id) const
 
G4double GetP2Zmax (G4int id) const
 
G4String GetH1Name (G4int id) const
 
G4double GetH1Unit (G4int id) const
 
G4bool GetH1Activation (G4int id) const
 
G4bool GetH1Ascii (G4int id) const
 
G4bool GetH1Plotting (G4int id) const
 
G4String GetH1FileName (G4int id) const
 
G4String GetH2Name (G4int id) const
 
G4double GetH2XUnit (G4int id) const
 
G4double GetH2YUnit (G4int id) const
 
G4bool GetH2Activation (G4int id) const
 
G4bool GetH2Ascii (G4int id) const
 
G4bool GetH2Plotting (G4int id) const
 
G4String GetH3Name (G4int id) const
 
G4double GetH3XUnit (G4int id) const
 
G4double GetH3YUnit (G4int id) const
 
G4double GetH3ZUnit (G4int id) const
 
G4bool GetH3Activation (G4int id) const
 
G4bool GetH3Ascii (G4int id) const
 
G4bool GetH3Plotting (G4int id) const
 
G4String GetP1Name (G4int id) const
 
G4double GetP1XUnit (G4int id) const
 
G4double GetP1YUnit (G4int id) const
 
G4bool GetP1Activation (G4int id) const
 
G4bool GetP1Ascii (G4int id) const
 
G4bool GetP1Plotting (G4int id) const
 
G4String GetP2Name (G4int id) const
 
G4double GetP2XUnit (G4int id) const
 
G4double GetP2YUnit (G4int id) const
 
G4double GetP2ZUnit (G4int id) const
 
G4bool GetP2Activation (G4int id) const
 
G4bool GetP2Ascii (G4int id) const
 
G4bool GetP2Plotting (G4int id) const
 
G4bool GetNtupleActivation (G4int id) const
 
G4String GetNtupleFileName (G4int id) const
 
G4bool SetH1Title (G4int id, const G4String &title)
 
G4bool SetH1XAxisTitle (G4int id, const G4String &title)
 
G4bool SetH1YAxisTitle (G4int id, const G4String &title)
 
G4bool SetH1XAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH1YAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH2Title (G4int id, const G4String &title)
 
G4bool SetH2XAxisTitle (G4int id, const G4String &title)
 
G4bool SetH2YAxisTitle (G4int id, const G4String &title)
 
G4bool SetH2ZAxisTitle (G4int id, const G4String &title)
 
G4bool SetH2XAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH2YAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH2ZAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH3Title (G4int id, const G4String &title)
 
G4bool SetH3XAxisTitle (G4int id, const G4String &title)
 
G4bool SetH3YAxisTitle (G4int id, const G4String &title)
 
G4bool SetH3ZAxisTitle (G4int id, const G4String &title)
 
G4bool SetH3XAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH3YAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetH3ZAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetP1Title (G4int id, const G4String &title)
 
G4bool SetP1XAxisTitle (G4int id, const G4String &title)
 
G4bool SetP1YAxisTitle (G4int id, const G4String &title)
 
G4bool SetP1XAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetP1YAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetP2Title (G4int id, const G4String &title)
 
G4bool SetP2XAxisTitle (G4int id, const G4String &title)
 
G4bool SetP2YAxisTitle (G4int id, const G4String &title)
 
G4bool SetP2ZAxisTitle (G4int id, const G4String &title)
 
G4bool SetP2XAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetP2YAxisIsLog (G4int id, G4bool isLog)
 
G4bool SetP2ZAxisIsLog (G4int id, G4bool isLog)
 
G4String GetH1Title (G4int id) const
 
G4String GetH1XAxisTitle (G4int id) const
 
G4String GetH1YAxisTitle (G4int id) const
 
G4bool GetH1XAxisIsLog (G4int id) const
 
G4bool GetH1YAxisIsLog (G4int id) const
 
G4String GetH2Title (G4int id) const
 
G4String GetH2XAxisTitle (G4int id) const
 
G4String GetH2YAxisTitle (G4int id) const
 
G4String GetH2ZAxisTitle (G4int id) const
 
G4bool GetH2XAxisIsLog (G4int id) const
 
G4bool GetH2YAxisIsLog (G4int id) const
 
G4bool GetH2ZAxisIsLog (G4int id) const
 
G4String GetH3Title (G4int id) const
 
G4String GetH3XAxisTitle (G4int id) const
 
G4String GetH3YAxisTitle (G4int id) const
 
G4String GetH3ZAxisTitle (G4int id) const
 
G4bool GetH3XAxisIsLog (G4int id) const
 
G4bool GetH3YAxisIsLog (G4int id) const
 
G4bool GetH3ZAxisIsLog (G4int id) const
 
G4String GetP1Title (G4int id) const
 
G4String GetP1XAxisTitle (G4int id) const
 
G4String GetP1YAxisTitle (G4int id) const
 
G4bool GetP1XAxisIsLog (G4int id) const
 
G4bool GetP1YAxisIsLog (G4int id) const
 
G4String GetP2Title (G4int id) const
 
G4String GetP2XAxisTitle (G4int id) const
 
G4String GetP2YAxisTitle (G4int id) const
 
G4String GetP2ZAxisTitle (G4int id) const
 
G4bool GetP2XAxisIsLog (G4int id) const
 
G4bool GetP2YAxisIsLog (G4int id) const
 
G4bool GetP2ZAxisIsLog (G4int id) const
 
G4bool DeleteH1 (G4int id, G4bool keepSetting=false)
 
G4bool DeleteH2 (G4int id, G4bool keepSetting=false)
 
G4bool DeleteH3 (G4int id, G4bool keepSetting=false)
 
G4bool DeleteP1 (G4int id, G4bool keepSetting=false)
 
G4bool DeleteP2 (G4int id, G4bool keepSetting=false)
 
G4bool DeleteNtuple (G4int id, G4bool clear=false)
 
void SetVerboseLevel (G4int verboseLevel)
 
G4int GetVerboseLevel () const
 
G4String GetType () const
 
G4String GetFileType () const
 

Static Public Member Functions

static G4GenericAnalysisManagerInstance ()
 
static G4bool IsInstance ()
 
- Static Public Member Functions inherited from G4ToolsAnalysisManager
static G4ToolsAnalysisManagerInstance ()
 
static G4bool IsInstance ()
 

Protected Member Functions

G4bool OpenFileImpl (const G4String &fileName) override
 
void SetDefaultFileTypeImpl (const G4String &value) override
 
G4String GetDefaultFileTypeImpl () const override
 
std::shared_ptr< G4VFileManagerGetFileManager (const G4String &fileName) final
 
- Protected Member Functions inherited from G4ToolsAnalysisManager
 G4ToolsAnalysisManager (const G4String &type)
 
G4bool OpenFileImpl (const G4String &fileName) override
 
G4bool WriteImpl () override
 
G4bool CloseFileImpl (G4bool reset) override
 
G4bool ResetImpl () override
 
void ClearImpl () override
 
G4bool PlotImpl () final
 
G4bool MergeImpl (tools::histo::hmpi *hmpi) final
 
G4bool IsOpenFileImpl () const final
 
G4bool IsEmpty ()
 
- Protected Member Functions inherited from G4VAnalysisManager
 G4VAnalysisManager (const G4String &type)
 
virtual ~G4VAnalysisManager ()
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 
void SetH1Manager (G4VTBaseHnManager< kDim1 > *h1Manager)
 
void SetH2Manager (G4VTBaseHnManager< kDim2 > *h2Manager)
 
void SetH3Manager (G4VTBaseHnManager< kDim3 > *h3Manager)
 
void SetP1Manager (G4VTBaseHnManager< kDim2 > *p1Manager)
 
void SetP2Manager (G4VTBaseHnManager< kDim3 > *p2Manager)
 
void SetNtupleManager (std::shared_ptr< G4VNtupleManager > ntupleManager)
 
void SetNtupleFileManager (std::shared_ptr< G4VNtupleFileManager > ntupleFileManager)
 
void SetFileManager (std::shared_ptr< G4VFileManager > fileManager)
 
G4bool WriteAscii (const G4String &fileName)
 

Friends

class G4RootMpiAnalysisManager
 
class G4ThreadLocalSingleton< G4GenericAnalysisManager >
 

Additional Inherited Members

- Protected Attributes inherited from G4ToolsAnalysisManager
G4THnToolsManager< kDim1, tools::histo::h1d > * fH1Manager { nullptr }
 
G4THnToolsManager< kDim2, tools::histo::h2d > * fH2Manager { nullptr }
 
G4THnToolsManager< kDim3, tools::histo::h3d > * fH3Manager { nullptr }
 
G4THnToolsManager< kDim2, tools::histo::p1d > * fP1Manager { nullptr }
 
G4THnToolsManager< kDim3, tools::histo::p2d > * fP2Manager { nullptr }
 
- Protected Attributes inherited from G4VAnalysisManager
G4AnalysisManagerState fState
 
std::shared_ptr< G4VFileManagerfVFileManager { nullptr }
 
std::shared_ptr< G4NtupleBookingManagerfNtupleBookingManager { nullptr }
 
std::shared_ptr< G4VNtupleManagerfVNtupleManager { nullptr }
 
std::shared_ptr< G4VNtupleFileManagerfVNtupleFileManager { nullptr }
 
- Static Protected Attributes inherited from G4ToolsAnalysisManager
static G4ToolsAnalysisManagerfgMasterToolsInstance { nullptr }
 
static G4ThreadLocal G4ToolsAnalysisManagerfgToolsInstance { nullptr }
 
static constexpr std::string_view fkClass { "G4ToolsAnalysisManager" }
 

Detailed Description

Definition at line 55 of file G4GenericAnalysisManager.hh.

Constructor & Destructor Documentation

◆ ~G4GenericAnalysisManager()

G4GenericAnalysisManager::~G4GenericAnalysisManager ( )
override

Definition at line 81 of file G4GenericAnalysisManager.cc.

82{
83 if ( fState.GetIsMaster() ) fgMasterInstance = nullptr;
84 fgIsInstance = false;
85}
G4AnalysisManagerState fState

Member Function Documentation

◆ GetDefaultFileTypeImpl()

G4String G4GenericAnalysisManager::GetDefaultFileTypeImpl ( ) const
overrideprotectedvirtual

Reimplemented from G4VAnalysisManager.

◆ GetFileManager()

std::shared_ptr< G4VFileManager > G4GenericAnalysisManager::GetFileManager ( const G4String & fileName)
finalprotectedvirtual

Reimplemented from G4VAnalysisManager.

◆ GetNtuple() [1/2]

tools::ntuple_booking * G4GenericAnalysisManager::GetNtuple ( G4bool warn = true,
G4bool onlyIfActive = true ) const

Definition at line 282 of file G4GenericAnalysisManager.cc.

284{
285 return fNtupleBookingManager->GetNtuple(warn, onlyIfActive);
286}
std::shared_ptr< G4NtupleBookingManager > fNtupleBookingManager

◆ GetNtuple() [2/2]

tools::ntuple_booking * G4GenericAnalysisManager::GetNtuple ( G4int ntupleId,
G4bool warn = true,
G4bool onlyIfActive = true ) const

Definition at line 289 of file G4GenericAnalysisManager.cc.

291{
292 return fNtupleBookingManager->GetNtuple(ntupleId, warn, onlyIfActive);
293}

◆ Instance()

G4GenericAnalysisManager * G4GenericAnalysisManager::Instance ( )
static

Definition at line 56 of file G4GenericAnalysisManager.cc.

57{
59 fgIsInstance = true;
60 return instance.Instance();
61}

◆ IsInstance()

G4bool G4GenericAnalysisManager::IsInstance ( )
static

Definition at line 64 of file G4GenericAnalysisManager.cc.

65{
66 return fgIsInstance;
67}

◆ OpenFileImpl()

G4bool G4GenericAnalysisManager::OpenFileImpl ( const G4String & fileName)
overrideprotectedvirtual

Implements G4VAnalysisManager.

Definition at line 140 of file G4GenericAnalysisManager.cc.

141{
142 Message(kVL4, "open", "file", fileName);
143
144 // Add file name extension, if missing
145 auto fullFileName = fileName;
146 if (GetExtension(fileName).size() == 0u) {
147 auto defaultFileType = fFileManager->GetDefaultFileType();
148 // G4cout << "File type is not defined, using default: " << defaultFileType << G4endl;
149 if (defaultFileType.size() == 0u) {
150 G4Exception("G4GenericAnalysisManager::OpenFileImpl", "Analysis_F001",
152 G4String("Cannot open file \"" + fileName + "\".\n"
153 "Please, use a file name with an extension or define the default file type\n"
154 "via G4AnalysisManager::SetDefaultFileType()"));
155 }
156
157 fullFileName = fileName + "." + fFileManager->GetDefaultFileType();
158 }
159
160 // Create ntuple file manager if there are booked ntuples
161 if (! fNtupleFileManager) {
162 CreateNtupleFileManager(fullFileName);
163 }
164
165 auto result = true;
166 if (fNtupleFileManager) {
167 result &= G4ToolsAnalysisManager::OpenFileImpl(fullFileName);
168 }
169 else {
170 // no ntuples (check if this mode is supported)
171 result &= fFileManager->OpenFile(fullFileName);
172 }
173
174 Message(kVL3, "open", "file", fileName, result);
175
176 return result;
177}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4bool OpenFileImpl(const G4String &fileName) override
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
G4String GetExtension(const G4String &fileName, const G4String &defaultExtension="")
constexpr G4int kVL3
constexpr G4int kVL4

◆ SetBasketEntries()

void G4GenericAnalysisManager::SetBasketEntries ( unsigned int basketEntries)
overridevirtual

Reimplemented from G4VAnalysisManager.

◆ SetBasketSize()

void G4GenericAnalysisManager::SetBasketSize ( unsigned int basketSize)
overridevirtual

Reimplemented from G4VAnalysisManager.

◆ SetDefaultFileTypeImpl()

void G4GenericAnalysisManager::SetDefaultFileTypeImpl ( const G4String & value)
overrideprotectedvirtual

Reimplemented from G4VAnalysisManager.

Definition at line 180 of file G4GenericAnalysisManager.cc.

181{
183
184 fFileManager->SetDefaultFileType(value);
185}
virtual void SetDefaultFileTypeImpl(const G4String &value)

◆ SetNtupleMerging()

void G4GenericAnalysisManager::SetNtupleMerging ( G4bool mergeNtuples,
G4int nofReducedNtupleFiles = 0 )
overridevirtual

Reimplemented from G4VAnalysisManager.

◆ SetNtupleRowWise()

void G4GenericAnalysisManager::SetNtupleRowWise ( G4bool rowWise,
G4bool rowMode = true )
overridevirtual

Reimplemented from G4VAnalysisManager.

◆ WriteH1()

G4bool G4GenericAnalysisManager::WriteH1 ( G4int id,
const G4String & fileName )

Definition at line 188 of file G4GenericAnalysisManager.cc.

189{
190 // Experimental extra write
191
192 // Do not write histo on worker (redundant and fails in hdf5 )
193 // If default file is not used, users have to call Merge from their code
194 if ( G4Threading::IsWorkerThread() ) return false;
195
196 auto h1d = GetH1(id, false);
197 if (h1d == nullptr) {
198 WriteHnWarning("H1", id, fkClass, "WriteH1");
199 return false;
200 }
201
202 auto h1Name = GetH1Name(id);
203 return fFileManager->WriteTExtra<tools::histo::h1d>(fileName, h1d, h1Name);
204}
tools::histo::h1d * GetH1(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
G4String GetH1Name(G4int id) const
G4bool IsWorkerThread()

◆ WriteH2()

G4bool G4GenericAnalysisManager::WriteH2 ( G4int id,
const G4String & fileName )

Definition at line 207 of file G4GenericAnalysisManager.cc.

208{
209 // Experimental extra write
210
211 // Do not write histo on worker (redundant and fails in hdf5 )
212 // If default file is not used, users have to call Merge from their code
213 if ( G4Threading::IsWorkerThread() ) return false;
214
215 auto h2d = GetH2(id, false);
216 if (h2d == nullptr) {
217 WriteHnWarning("H2", id, fkClass, "WriteH2");
218 return false;
219 }
220
221 auto h2Name = GetH2Name(id);
222 return fFileManager->WriteTExtra<tools::histo::h2d>(fileName, h2d, h2Name);
223}
tools::histo::h2d * GetH2(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
G4String GetH2Name(G4int id) const

◆ WriteH3()

G4bool G4GenericAnalysisManager::WriteH3 ( G4int id,
const G4String & fileName )

Definition at line 225 of file G4GenericAnalysisManager.cc.

226{
227 // Experimental extra write
228
229 // Do not write histo on worker (redundant and fails in hdf5 )
230 // If default file is not used, users have to call Merge from their code
231 if ( G4Threading::IsWorkerThread() ) return false;
232
233 auto h3d = GetH3(id, false);
234 if (h3d == nullptr) {
235 WriteHnWarning("H3", id, fkClass, "WriteH3");
236 return false;
237 }
238
239 auto h3Name = GetH3Name(id);
240 return fFileManager->WriteTExtra<tools::histo::h3d>(fileName, h3d, h3Name);
241}
tools::histo::h3d * GetH3(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
G4String GetH3Name(G4int id) const

◆ WriteP1()

G4bool G4GenericAnalysisManager::WriteP1 ( G4int id,
const G4String & fileName )

Definition at line 244 of file G4GenericAnalysisManager.cc.

245{
246 // Experimental extra write
247
248 // Do not write histo on worker (redundant and fails in hdf5 )
249 // If default file is not used, users have to call Merge from their code
250 if ( G4Threading::IsWorkerThread() ) return false;
251
252 auto p1d = GetP1(id, false);
253 if (p1d == nullptr) {
254 WriteHnWarning("P1", id, fkClass, "WriteP1");
255 return false;
256 }
257
258 auto p1Name = GetP1Name(id);
259 return fFileManager->WriteTExtra<tools::histo::p1d>(fileName, p1d, p1Name);
260}
tools::histo::p1d * GetP1(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
G4String GetP1Name(G4int id) const

◆ WriteP2()

G4bool G4GenericAnalysisManager::WriteP2 ( G4int id,
const G4String & fileName )

Definition at line 263 of file G4GenericAnalysisManager.cc.

264{
265 // Experimental extra write
266
267 // Do not write histo on worker (redundant and fails in hdf5 )
268 // If default file is not used, users have to call Merge from their code
269 if ( G4Threading::IsWorkerThread() ) return false;
270
271 auto p2d = GetP2(id, false);
272 if (p2d == nullptr) {
273 WriteHnWarning("P2", id, fkClass, "WriteP2");
274 return false;
275 }
276
277 auto p2Name = GetP2Name(id);
278 return fFileManager->WriteTExtra<tools::histo::p2d>(fileName, p2d, p2Name);
279}
tools::histo::p2d * GetP2(G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
G4String GetP2Name(G4int id) const

Friends And Related Symbol Documentation

◆ G4RootMpiAnalysisManager

friend class G4RootMpiAnalysisManager
friend

Definition at line 57 of file G4GenericAnalysisManager.hh.

◆ G4ThreadLocalSingleton< G4GenericAnalysisManager >

Definition at line 57 of file G4GenericAnalysisManager.hh.


The documentation for this class was generated from the following files: