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

#include <G4VAnalysisManager.hh>

+ Inheritance diagram for G4VAnalysisManager:

Public Member Functions

 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)
 
virtual void SetNtupleMerging (G4bool mergeNtuples, G4int nofReducedNtupleFiles=0)
 
virtual void SetNtupleRowWise (G4bool rowWise, G4bool rowMode=true)
 
virtual void SetBasketSize (unsigned int basketSize)
 
virtual void SetBasketEntries (unsigned int basketEntries)
 
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
 

Protected Member Functions

 G4VAnalysisManager (const G4String &type)
 
virtual ~G4VAnalysisManager ()
 
virtual G4bool OpenFileImpl (const G4String &fileName)=0
 
virtual G4bool WriteImpl ()=0
 
virtual G4bool CloseFileImpl (G4bool reset)=0
 
virtual G4bool ResetImpl ()=0
 
virtual void ClearImpl ()=0
 
virtual G4bool PlotImpl ()=0
 
virtual G4bool MergeImpl (tools::histo::hmpi *hmpi)=0
 
virtual G4bool IsOpenFileImpl () const =0
 
virtual void SetDefaultFileTypeImpl (const G4String &value)
 
virtual G4String GetDefaultFileTypeImpl () const
 
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)
 
virtual std::shared_ptr< G4VFileManagerGetFileManager (const G4String &fileName)
 

Protected Attributes

G4AnalysisManagerState fState
 
std::shared_ptr< G4VFileManagerfVFileManager { nullptr }
 
std::shared_ptr< G4NtupleBookingManagerfNtupleBookingManager { nullptr }
 
std::shared_ptr< G4VNtupleManagerfVNtupleManager { nullptr }
 
std::shared_ptr< G4VNtupleFileManagerfVNtupleFileManager { nullptr }
 

Friends

class G4AnalysisMessenger
 

Detailed Description

Definition at line 68 of file G4VAnalysisManager.hh.

Constructor & Destructor Documentation

◆ G4VAnalysisManager() [1/2]

G4VAnalysisManager::G4VAnalysisManager ( )
delete

◆ G4VAnalysisManager() [2/2]

G4VAnalysisManager::G4VAnalysisManager ( const G4String & type)
protected

Definition at line 65 of file G4VAnalysisManager.cc.

67{
68 fMessenger = std::make_unique<G4AnalysisMessenger>(this);
69 fNtupleBookingManager = std::make_shared<G4NtupleBookingManager>(fState);
70
71 // Set master/worker instances
72 // used only in "FromUI" functions
74 fgMasterInstance = this;
75 }
76 else {
77 if (fgMasterInstance != nullptr) {
78 G4AutoLock lock(&registerWorkerMutex);
79 fgMasterInstance->fWorkerManagers.push_back(this);
80 lock.unlock();
81 }
82 }
83}
std::shared_ptr< G4NtupleBookingManager > fNtupleBookingManager
G4AnalysisManagerState fState
G4bool IsWorkerThread()

◆ ~G4VAnalysisManager()

G4VAnalysisManager::~G4VAnalysisManager ( )
protectedvirtualdefault

Member Function Documentation

◆ AddNtupleRow() [1/2]

◆ AddNtupleRow() [2/2]

G4bool G4VAnalysisManager::AddNtupleRow ( G4int ntupleId)

◆ Clear()

void G4VAnalysisManager::Clear ( )

Definition at line 393 of file G4VAnalysisManager.cc.

394{
395 Message(kVL4, "clear", "all data");
396
397 // clear hntools objects
398 ClearImpl();
399
400 // clear remaining data
401 fNtupleBookingManager->ClearData();
402 if ( fVNtupleManager != nullptr ) fVNtupleManager->Clear();
403 if ( fVFileManager != nullptr ) fVFileManager->Clear();
404
405 Message(kVL1, "clear", "all data");
406}
virtual void ClearImpl()=0
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
std::shared_ptr< G4VNtupleManager > fVNtupleManager
std::shared_ptr< G4VFileManager > fVFileManager
constexpr G4int kVL1
constexpr G4int kVL4

◆ ClearImpl()

virtual void G4VAnalysisManager::ClearImpl ( )
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by Clear().

◆ CloseFile()

G4bool G4VAnalysisManager::CloseFile ( G4bool reset = true)

Definition at line 367 of file G4VAnalysisManager.cc.

368{
369 auto result = CloseFileImpl(reset);
370
371 // Notify about new cycle
373 if (fVNtupleManager != nullptr) {
374 fVNtupleManager->SetNewCycle(false);
375 }
376
377 return result;
378}
virtual G4bool CloseFileImpl(G4bool reset)=0

◆ CloseFileImpl()

virtual G4bool G4VAnalysisManager::CloseFileImpl ( G4bool reset)
protectedpure virtual

Implemented in G4Hdf5AnalysisManager, and G4ToolsAnalysisManager.

Referenced by CloseFile().

◆ CreateH1() [1/2]

G4int G4VAnalysisManager::CreateH1 ( const G4String & name,
const G4String & title,
const std::vector< G4double > & edges,
const G4String & unitName = "none",
const G4String & fcnName = "none" )

Definition at line 501 of file G4VAnalysisManager.cc.

504{
505 std::array<G4HnDimension, kDim1> bins = {
506 G4HnDimension(edges)};
507 std::array<G4HnDimensionInformation, kDim1> info = {
508 G4HnDimensionInformation(unitName, fcnName, "user")};
509
510 return fVH1Manager->Create(name, title, bins, info);
511}

◆ CreateH1() [2/2]

G4int G4VAnalysisManager::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" )

Definition at line 487 of file G4VAnalysisManager.cc.

491{
492 std::array<G4HnDimension, kDim1> bins = {
493 G4HnDimension(nbins, xmin, xmax)};
494 std::array<G4HnDimensionInformation, kDim1> info = {
495 G4HnDimensionInformation(unitName, fcnName, binSchemeName) };
496
497 return fVH1Manager->Create(name, title, bins, info);
498}

◆ CreateH2() [1/2]

G4int G4VAnalysisManager::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" )

Definition at line 534 of file G4VAnalysisManager.cc.

540{
541 std::array<G4HnDimension, kDim2> bins = {
542 G4HnDimension(xedges), G4HnDimension(yedges)};
543 std::array<G4HnDimensionInformation, kDim2> info = {
544 G4HnDimensionInformation(xunitName, xfcnName, "user"),
545 G4HnDimensionInformation(yunitName, yfcnName, "user")};
546
547 return fVH2Manager->Create(name, title, bins, info);
548}

◆ CreateH2() [2/2]

G4int G4VAnalysisManager::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" )

Definition at line 514 of file G4VAnalysisManager.cc.

522{
523 std::array<G4HnDimension, kDim2> bins = {
524 G4HnDimension(nxbins, xmin, xmax),
525 G4HnDimension(nybins, ymin, ymax) };
526 std::array<G4HnDimensionInformation, kDim2> info = {
527 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
528 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName)};
529
530 return fVH2Manager->Create(name, title, bins, info);
531}

◆ CreateH3() [1/2]

G4int G4VAnalysisManager::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" )

Definition at line 577 of file G4VAnalysisManager.cc.

586{
587 std::array<G4HnDimension, kDim3> bins = {
588 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(zedges) };
589 std::array<G4HnDimensionInformation, kDim3> info = {
590 G4HnDimensionInformation(xunitName, xfcnName, "user"),
591 G4HnDimensionInformation(yunitName, yfcnName, "user"),
592 G4HnDimensionInformation(zunitName, zfcnName, "user")};
593
594 return fVH3Manager->Create(name, title, bins, info);
595}

◆ CreateH3() [2/2]

G4int G4VAnalysisManager::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" )

Definition at line 551 of file G4VAnalysisManager.cc.

563{
564 std::array<G4HnDimension, kDim3> bins = {
565 G4HnDimension(nxbins, xmin, xmax),
566 G4HnDimension(nybins, ymin, ymax),
567 G4HnDimension(nzbins, zmin, zmax)};
568 std::array<G4HnDimensionInformation, kDim3> info = {
569 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
570 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
571 G4HnDimensionInformation(zunitName, zfcnName, zbinSchemeName)};
572
573 return fVH3Manager->Create(name, title, bins, info);
574}

◆ CreateNtuple()

G4int G4VAnalysisManager::CreateNtuple ( const G4String & name,
const G4String & title )

Definition at line 893 of file G4VAnalysisManager.cc.

895{
896 return fNtupleBookingManager->CreateNtuple(name, title);
897}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile(), and G4NtupleMessenger::SetNewValue().

◆ CreateNtupleDColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleDColumn ( const G4String & name)

Definition at line 912 of file G4VAnalysisManager.cc.

913{
914 return fNtupleBookingManager->CreateNtupleDColumn(name, nullptr);
915}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile(), and G4NtupleMessenger::SetNewValue().

◆ CreateNtupleDColumn() [2/4]

G4int G4VAnalysisManager::CreateNtupleDColumn ( const G4String & name,
std::vector< double > & vector )

Definition at line 938 of file G4VAnalysisManager.cc.

940{
941 return fNtupleBookingManager->CreateNtupleDColumn(name, &vector);
942}

◆ CreateNtupleDColumn() [3/4]

G4int G4VAnalysisManager::CreateNtupleDColumn ( G4int ntupleId,
const G4String & name )

Definition at line 1015 of file G4VAnalysisManager.cc.

1017{
1018 return fNtupleBookingManager->CreateNtupleDColumn(ntupleId, name, nullptr);
1019}

◆ CreateNtupleDColumn() [4/4]

G4int G4VAnalysisManager::CreateNtupleDColumn ( G4int ntupleId,
const G4String & name,
std::vector< double > & vector )

Definition at line 1045 of file G4VAnalysisManager.cc.

1048{
1049 return fNtupleBookingManager->CreateNtupleDColumn(ntupleId, name, &vector);
1050}

◆ CreateNtupleFColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleFColumn ( const G4String & name)

Definition at line 906 of file G4VAnalysisManager.cc.

907{
908 return fNtupleBookingManager->CreateNtupleFColumn(name, nullptr);
909}

Referenced by G4NtupleMessenger::SetNewValue().

◆ CreateNtupleFColumn() [2/4]

G4int G4VAnalysisManager::CreateNtupleFColumn ( const G4String & name,
std::vector< float > & vector )

Definition at line 931 of file G4VAnalysisManager.cc.

933{
934 return fNtupleBookingManager->CreateNtupleFColumn(name, &vector);
935}

◆ CreateNtupleFColumn() [3/4]

G4int G4VAnalysisManager::CreateNtupleFColumn ( G4int ntupleId,
const G4String & name )

Definition at line 1007 of file G4VAnalysisManager.cc.

1009{
1010 return fNtupleBookingManager->CreateNtupleFColumn(ntupleId, name, nullptr);
1011}

◆ CreateNtupleFColumn() [4/4]

G4int G4VAnalysisManager::CreateNtupleFColumn ( G4int ntupleId,
const G4String & name,
std::vector< float > & vector )

Definition at line 1037 of file G4VAnalysisManager.cc.

1040{
1041 return fNtupleBookingManager->CreateNtupleFColumn(ntupleId, name, &vector);
1042}

◆ CreateNtupleIColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleIColumn ( const G4String & name)

Definition at line 900 of file G4VAnalysisManager.cc.

901{
902 return fNtupleBookingManager->CreateNtupleIColumn(name, nullptr);
903}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile(), and G4NtupleMessenger::SetNewValue().

◆ CreateNtupleIColumn() [2/4]

G4int G4VAnalysisManager::CreateNtupleIColumn ( const G4String & name,
std::vector< int > & vector )

Definition at line 924 of file G4VAnalysisManager.cc.

926{
927 return fNtupleBookingManager->CreateNtupleIColumn(name, &vector);
928}

◆ CreateNtupleIColumn() [3/4]

G4int G4VAnalysisManager::CreateNtupleIColumn ( G4int ntupleId,
const G4String & name )

Definition at line 1000 of file G4VAnalysisManager.cc.

1002{
1003 return fNtupleBookingManager->CreateNtupleIColumn(ntupleId, name, nullptr);
1004}

◆ CreateNtupleIColumn() [4/4]

G4int G4VAnalysisManager::CreateNtupleIColumn ( G4int ntupleId,
const G4String & name,
std::vector< int > & vector )

Definition at line 1029 of file G4VAnalysisManager.cc.

1032{
1033 return fNtupleBookingManager->CreateNtupleIColumn(ntupleId, name, &vector);
1034}

◆ CreateNtupleSColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleSColumn ( const G4String & name)

Definition at line 918 of file G4VAnalysisManager.cc.

919{
920 return fNtupleBookingManager->CreateNtupleSColumn(name, nullptr);
921}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile(), and G4NtupleMessenger::SetNewValue().

◆ CreateNtupleSColumn() [2/4]

G4int G4VAnalysisManager::CreateNtupleSColumn ( const G4String & name,
std::vector< std::string > & vector )

Definition at line 945 of file G4VAnalysisManager.cc.

947{
948 return fNtupleBookingManager->CreateNtupleSColumn(name, &vector);
949}

◆ CreateNtupleSColumn() [3/4]

G4int G4VAnalysisManager::CreateNtupleSColumn ( G4int ntupleId,
const G4String & name )

Definition at line 1022 of file G4VAnalysisManager.cc.

1024{
1025 return fNtupleBookingManager->CreateNtupleSColumn(ntupleId, name, nullptr);
1026}

◆ CreateNtupleSColumn() [4/4]

G4int G4VAnalysisManager::CreateNtupleSColumn ( G4int ntupleId,
const G4String & name,
std::vector< std::string > & vector )

Definition at line 1053 of file G4VAnalysisManager.cc.

1056{
1057 return fNtupleBookingManager->CreateNtupleSColumn(ntupleId, name, &vector);
1058}

◆ CreateP1() [1/2]

G4int G4VAnalysisManager::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" )

Definition at line 741 of file G4VAnalysisManager.cc.

746{
747 std::array<G4HnDimension, kDim2> bins = {
748 G4HnDimension(edges), G4HnDimension(0, ymin, ymax)};
749 std::array<G4HnDimensionInformation, kDim2> info = {
750 G4HnDimensionInformation(xunitName, xfcnName),
751 G4HnDimensionInformation(yunitName, yfcnName)};
752
753 return fVP1Manager->Create(name, title, bins, info);
754}

◆ CreateP1() [2/2]

G4int G4VAnalysisManager::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" )

Definition at line 723 of file G4VAnalysisManager.cc.

729{
730 std::array<G4HnDimension, kDim2> bins = {
731 G4HnDimension(nbins, xmin, xmax),
732 G4HnDimension(0, ymin, ymax) };
733 std::array<G4HnDimensionInformation, kDim2> info = {
734 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
735 G4HnDimensionInformation(yunitName, yfcnName)};
736
737 return fVP1Manager->Create(name, title, bins, info);
738}

◆ CreateP2() [1/2]

G4int G4VAnalysisManager::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" )

Definition at line 781 of file G4VAnalysisManager.cc.

789{
790 std::array<G4HnDimension, kDim3> bins = {
791 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(0, zmin, zmax)};
792 std::array<G4HnDimensionInformation, kDim3> info = {
793 G4HnDimensionInformation(xunitName, xfcnName),
794 G4HnDimensionInformation(yunitName, yfcnName),
795 G4HnDimensionInformation(zunitName, zfcnName)};
796
797 return fVP2Manager->Create(name, title, bins, info);
798}

◆ CreateP2() [2/2]

G4int G4VAnalysisManager::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" )

Definition at line 757 of file G4VAnalysisManager.cc.

767{
768 std::array<G4HnDimension, kDim3> bins = {
769 G4HnDimension(nxbins, xmin, xmax),
770 G4HnDimension(nybins, ymin, ymax),
771 G4HnDimension(0, zmin, zmax)};
772 std::array<G4HnDimensionInformation, kDim3> info = {
773 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
774 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
775 G4HnDimensionInformation(zunitName, zfcnName)};
776
777 return fVP2Manager->Create(name, title, bins, info);
778}

◆ DeleteH1()

G4bool G4VAnalysisManager::DeleteH1 ( G4int id,
G4bool keepSetting = false )

Definition at line 1550 of file G4VAnalysisManager.cc.

1551{
1552 return fVH1Manager->Delete(id, keepSetting);
1553}

◆ DeleteH2()

G4bool G4VAnalysisManager::DeleteH2 ( G4int id,
G4bool keepSetting = false )

Definition at line 1556 of file G4VAnalysisManager.cc.

1557{
1558 return fVH2Manager->Delete(id, keepSetting);
1559}

◆ DeleteH3()

G4bool G4VAnalysisManager::DeleteH3 ( G4int id,
G4bool keepSetting = false )

Definition at line 1562 of file G4VAnalysisManager.cc.

1563{
1564 return fVH3Manager->Delete(id, keepSetting);
1565}

◆ DeleteNtuple()

G4bool G4VAnalysisManager::DeleteNtuple ( G4int id,
G4bool clear = false )

Definition at line 1580 of file G4VAnalysisManager.cc.

1581{
1582 auto result = fNtupleBookingManager->Delete(id, keepSetting);
1583
1584 if (fVNtupleManager != nullptr) {
1585 result &= fVNtupleManager->Delete(id);
1586 }
1587
1588 return result;
1589}

Referenced by G4NtupleMessenger::SetNewValue().

◆ DeleteP1()

G4bool G4VAnalysisManager::DeleteP1 ( G4int id,
G4bool keepSetting = false )

Definition at line 1568 of file G4VAnalysisManager.cc.

1569{
1570 return fVP1Manager->Delete(id, keepSetting);
1571}

◆ DeleteP2()

G4bool G4VAnalysisManager::DeleteP2 ( G4int id,
G4bool keepSetting = false )

Definition at line 1574 of file G4VAnalysisManager.cc.

1575{
1576 return fVP2Manager->Delete(id, keepSetting);
1577}

◆ FillH1()

G4bool G4VAnalysisManager::FillH1 ( G4int id,
G4double value,
G4double weight = 1.0 )

◆ FillH2()

G4bool G4VAnalysisManager::FillH2 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double weight = 1.0 )

◆ FillH3()

G4bool G4VAnalysisManager::FillH3 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double zvalue,
G4double weight = 1.0 )

◆ FillNtupleDColumn() [1/2]

G4bool G4VAnalysisManager::FillNtupleDColumn ( G4int id,
G4double value )

◆ FillNtupleDColumn() [2/2]

G4bool G4VAnalysisManager::FillNtupleDColumn ( G4int ntupleId,
G4int columnId,
G4double value )

◆ FillNtupleFColumn() [1/2]

G4bool G4VAnalysisManager::FillNtupleFColumn ( G4int id,
G4float value )

◆ FillNtupleFColumn() [2/2]

G4bool G4VAnalysisManager::FillNtupleFColumn ( G4int ntupleId,
G4int columnId,
G4float value )

◆ FillNtupleIColumn() [1/2]

G4bool G4VAnalysisManager::FillNtupleIColumn ( G4int id,
G4int value )

◆ FillNtupleIColumn() [2/2]

G4bool G4VAnalysisManager::FillNtupleIColumn ( G4int ntupleId,
G4int columnId,
G4int value )

◆ FillNtupleSColumn() [1/2]

G4bool G4VAnalysisManager::FillNtupleSColumn ( G4int id,
const G4String & value )

◆ FillNtupleSColumn() [2/2]

G4bool G4VAnalysisManager::FillNtupleSColumn ( G4int ntupleId,
G4int id,
const G4String & value )

◆ FillP1()

G4bool G4VAnalysisManager::FillP1 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double weight = 1.0 )

◆ FillP2()

G4bool G4VAnalysisManager::FillP2 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double zvalue,
G4double weight = 1.0 )

◆ FinishNtuple() [1/2]

void G4VAnalysisManager::FinishNtuple ( )

Definition at line 952 of file G4VAnalysisManager.cc.

953{
954 auto ntupleBooking = fNtupleBookingManager->FinishNtuple();
955
956 if ( fVNtupleManager ) {
957 fVNtupleManager->CreateNtuple(ntupleBooking);
958 }
959}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile(), and G4NtupleMessenger::SetNewValue().

◆ FinishNtuple() [2/2]

void G4VAnalysisManager::FinishNtuple ( G4int ntupleId)

Definition at line 1061 of file G4VAnalysisManager.cc.

1062{
1063 auto ntupleBooking = fNtupleBookingManager->FinishNtuple(ntupleId);
1064
1065 if ( fVNtupleManager ) {
1066 fVNtupleManager->CreateNtuple(ntupleBooking);
1067 }
1068}

◆ GetActivation()

G4bool G4VAnalysisManager::GetActivation ( ) const

◆ GetCompressionLevel()

G4int G4VAnalysisManager::GetCompressionLevel ( ) const

Definition at line 481 of file G4VAnalysisManager.cc.

482{
483 return fVFileManager->GetCompressionLevel();
484}

◆ GetDefaultFileType()

G4String G4VAnalysisManager::GetDefaultFileType ( ) const

Definition at line 433 of file G4VAnalysisManager.cc.

434{
435 return GetDefaultFileTypeImpl();
436}
virtual G4String GetDefaultFileTypeImpl() const

◆ GetDefaultFileTypeImpl()

G4String G4VAnalysisManager::GetDefaultFileTypeImpl ( ) const
protectedvirtual

Reimplemented in G4GenericAnalysisManager.

Definition at line 197 of file G4VAnalysisManager.cc.

198{
199 return GetFileType();
200}
G4String GetFileType() const

Referenced by GetDefaultFileType().

◆ GetFileManager()

std::shared_ptr< G4VFileManager > G4VAnalysisManager::GetFileManager ( const G4String & fileName)
protectedvirtual

Reimplemented in G4GenericAnalysisManager.

Definition at line 312 of file G4VAnalysisManager.cc.

313{
314 // Check if file type corresponds the manager output type
315 G4String extension = GetExtension(fileName);
316 if ((extension.size() != 0u) && extension != GetFileType()) {
317 Warn(
318 "The file extension differs from " + GetFileType() + " output type.\n" +
319 GetFileType() + " output type will be used.",
320 fkClass, "GetFileManager");
321 }
322
323 return fVFileManager;
324}
G4String GetExtension(const G4String &fileName, const G4String &defaultExtension="")
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)

◆ GetFileName()

G4String G4VAnalysisManager::GetFileName ( ) const

Definition at line 463 of file G4VAnalysisManager.cc.

464{
465 return fVFileManager->GetFileName();
466}

◆ GetFileType()

◆ GetFirstH1Id()

G4int G4VAnalysisManager::GetFirstH1Id ( ) const

Definition at line 1198 of file G4VAnalysisManager.cc.

1199{
1200// Return first H1 id
1201
1202 return fH1HnManager->GetFirstId();
1203}

◆ GetFirstH2Id()

G4int G4VAnalysisManager::GetFirstH2Id ( ) const

Definition at line 1206 of file G4VAnalysisManager.cc.

1207{
1208// Return first H2 id
1209
1210 return fH2HnManager->GetFirstId();
1211}

◆ GetFirstH3Id()

G4int G4VAnalysisManager::GetFirstH3Id ( ) const

Definition at line 1214 of file G4VAnalysisManager.cc.

1215{
1216// Return first H3 id
1217
1218 return fH3HnManager->GetFirstId();
1219}

◆ GetFirstNtupleColumnId()

G4int G4VAnalysisManager::GetFirstNtupleColumnId ( ) const

Definition at line 1246 of file G4VAnalysisManager.cc.

1247{
1248// Return first Ntuple column id
1249
1250 return fNtupleBookingManager->GetFirstNtupleColumnId();
1251}

◆ GetFirstNtupleId()

G4int G4VAnalysisManager::GetFirstNtupleId ( ) const

Definition at line 1238 of file G4VAnalysisManager.cc.

1239{
1240// Return first Ntuple id
1241
1242 return fNtupleBookingManager->GetFirstId();
1243}

◆ GetFirstP1Id()

G4int G4VAnalysisManager::GetFirstP1Id ( ) const

Definition at line 1222 of file G4VAnalysisManager.cc.

1223{
1224// Return first P1 id
1225
1226 return fP1HnManager->GetFirstId();
1227}

◆ GetFirstP2Id()

G4int G4VAnalysisManager::GetFirstP2Id ( ) const

Definition at line 1230 of file G4VAnalysisManager.cc.

1231{
1232// Return first P2 id
1233
1234 return fP2HnManager->GetFirstId();
1235}

◆ GetH1Activation()

G4bool G4VAnalysisManager::GetH1Activation ( G4int id) const

◆ GetH1Ascii()

G4bool G4VAnalysisManager::GetH1Ascii ( G4int id) const

◆ GetH1FileName()

G4String G4VAnalysisManager::GetH1FileName ( G4int id) const

◆ GetH1Id()

G4int G4VAnalysisManager::GetH1Id ( const G4String & name,
G4bool warn = true ) const

◆ GetH1Name()

G4String G4VAnalysisManager::GetH1Name ( G4int id) const

◆ GetH1Nbins()

G4int G4VAnalysisManager::GetH1Nbins ( G4int id) const

◆ GetH1Plotting()

G4bool G4VAnalysisManager::GetH1Plotting ( G4int id) const

◆ GetH1Title()

G4String G4VAnalysisManager::GetH1Title ( G4int id) const

◆ GetH1Unit()

G4double G4VAnalysisManager::GetH1Unit ( G4int id) const

◆ GetH1Width()

G4double G4VAnalysisManager::GetH1Width ( G4int id) const

◆ GetH1XAxisIsLog()

G4bool G4VAnalysisManager::GetH1XAxisIsLog ( G4int id) const

◆ GetH1XAxisTitle()

G4String G4VAnalysisManager::GetH1XAxisTitle ( G4int id) const

◆ GetH1Xmax()

G4double G4VAnalysisManager::GetH1Xmax ( G4int id) const

◆ GetH1Xmin()

G4double G4VAnalysisManager::GetH1Xmin ( G4int id) const

◆ GetH1YAxisIsLog()

G4bool G4VAnalysisManager::GetH1YAxisIsLog ( G4int id) const

◆ GetH1YAxisTitle()

G4String G4VAnalysisManager::GetH1YAxisTitle ( G4int id) const

◆ GetH2Activation()

G4bool G4VAnalysisManager::GetH2Activation ( G4int id) const

◆ GetH2Ascii()

G4bool G4VAnalysisManager::GetH2Ascii ( G4int id) const

◆ GetH2Id()

G4int G4VAnalysisManager::GetH2Id ( const G4String & name,
G4bool warn = true ) const

◆ GetH2Name()

G4String G4VAnalysisManager::GetH2Name ( G4int id) const

◆ GetH2Nxbins()

G4int G4VAnalysisManager::GetH2Nxbins ( G4int id) const

◆ GetH2Nybins()

G4int G4VAnalysisManager::GetH2Nybins ( G4int id) const

◆ GetH2Plotting()

G4bool G4VAnalysisManager::GetH2Plotting ( G4int id) const

◆ GetH2Title()

G4String G4VAnalysisManager::GetH2Title ( G4int id) const

◆ GetH2XAxisIsLog()

G4bool G4VAnalysisManager::GetH2XAxisIsLog ( G4int id) const

◆ GetH2XAxisTitle()

G4String G4VAnalysisManager::GetH2XAxisTitle ( G4int id) const

◆ GetH2Xmax()

G4double G4VAnalysisManager::GetH2Xmax ( G4int id) const

◆ GetH2Xmin()

G4double G4VAnalysisManager::GetH2Xmin ( G4int id) const

◆ GetH2XUnit()

G4double G4VAnalysisManager::GetH2XUnit ( G4int id) const

◆ GetH2XWidth()

G4double G4VAnalysisManager::GetH2XWidth ( G4int id) const

◆ GetH2YAxisIsLog()

G4bool G4VAnalysisManager::GetH2YAxisIsLog ( G4int id) const

◆ GetH2YAxisTitle()

G4String G4VAnalysisManager::GetH2YAxisTitle ( G4int id) const

◆ GetH2Ymax()

G4double G4VAnalysisManager::GetH2Ymax ( G4int id) const

◆ GetH2Ymin()

G4double G4VAnalysisManager::GetH2Ymin ( G4int id) const

◆ GetH2YUnit()

G4double G4VAnalysisManager::GetH2YUnit ( G4int id) const

◆ GetH2YWidth()

G4double G4VAnalysisManager::GetH2YWidth ( G4int id) const

◆ GetH2ZAxisIsLog()

G4bool G4VAnalysisManager::GetH2ZAxisIsLog ( G4int id) const

◆ GetH2ZAxisTitle()

G4String G4VAnalysisManager::GetH2ZAxisTitle ( G4int id) const

◆ GetH3Activation()

G4bool G4VAnalysisManager::GetH3Activation ( G4int id) const

◆ GetH3Ascii()

G4bool G4VAnalysisManager::GetH3Ascii ( G4int id) const

◆ GetH3Id()

G4int G4VAnalysisManager::GetH3Id ( const G4String & name,
G4bool warn = true ) const

◆ GetH3Name()

G4String G4VAnalysisManager::GetH3Name ( G4int id) const

◆ GetH3Nxbins()

G4int G4VAnalysisManager::GetH3Nxbins ( G4int id) const

◆ GetH3Nybins()

G4int G4VAnalysisManager::GetH3Nybins ( G4int id) const

◆ GetH3Nzbins()

G4int G4VAnalysisManager::GetH3Nzbins ( G4int id) const

◆ GetH3Plotting()

G4bool G4VAnalysisManager::GetH3Plotting ( G4int id) const

◆ GetH3Title()

G4String G4VAnalysisManager::GetH3Title ( G4int id) const

◆ GetH3XAxisIsLog()

G4bool G4VAnalysisManager::GetH3XAxisIsLog ( G4int id) const

◆ GetH3XAxisTitle()

G4String G4VAnalysisManager::GetH3XAxisTitle ( G4int id) const

◆ GetH3Xmax()

G4double G4VAnalysisManager::GetH3Xmax ( G4int id) const

◆ GetH3Xmin()

G4double G4VAnalysisManager::GetH3Xmin ( G4int id) const

◆ GetH3XUnit()

G4double G4VAnalysisManager::GetH3XUnit ( G4int id) const

◆ GetH3XWidth()

G4double G4VAnalysisManager::GetH3XWidth ( G4int id) const

◆ GetH3YAxisIsLog()

G4bool G4VAnalysisManager::GetH3YAxisIsLog ( G4int id) const

◆ GetH3YAxisTitle()

G4String G4VAnalysisManager::GetH3YAxisTitle ( G4int id) const

◆ GetH3Ymax()

G4double G4VAnalysisManager::GetH3Ymax ( G4int id) const

◆ GetH3Ymin()

G4double G4VAnalysisManager::GetH3Ymin ( G4int id) const

◆ GetH3YUnit()

G4double G4VAnalysisManager::GetH3YUnit ( G4int id) const

◆ GetH3YWidth()

G4double G4VAnalysisManager::GetH3YWidth ( G4int id) const

◆ GetH3ZAxisIsLog()

G4bool G4VAnalysisManager::GetH3ZAxisIsLog ( G4int id) const

◆ GetH3ZAxisTitle()

G4String G4VAnalysisManager::GetH3ZAxisTitle ( G4int id) const

◆ GetH3Zmax()

G4double G4VAnalysisManager::GetH3Zmax ( G4int id) const

◆ GetH3Zmin()

G4double G4VAnalysisManager::GetH3Zmin ( G4int id) const

◆ GetH3ZUnit()

G4double G4VAnalysisManager::GetH3ZUnit ( G4int id) const

◆ GetH3ZWidth()

G4double G4VAnalysisManager::GetH3ZWidth ( G4int id) const

◆ GetHistoDirectoryName()

G4String G4VAnalysisManager::GetHistoDirectoryName ( ) const

Definition at line 469 of file G4VAnalysisManager.cc.

470{
471 return fVFileManager->GetHistoDirectoryName();
472}

◆ GetNofH1s()

G4int G4VAnalysisManager::GetNofH1s ( G4bool onlyIfExist = false) const

Definition at line 1254 of file G4VAnalysisManager.cc.

1255{
1256 return fVH1Manager->GetNofHns(onlyIfExist);
1257}

◆ GetNofH2s()

G4int G4VAnalysisManager::GetNofH2s ( G4bool onlyIfExist = false) const

Definition at line 1260 of file G4VAnalysisManager.cc.

1261{
1262 return fVH2Manager->GetNofHns(onlyIfExist);
1263}

◆ GetNofH3s()

G4int G4VAnalysisManager::GetNofH3s ( G4bool onlyIfExist = false) const

Definition at line 1266 of file G4VAnalysisManager.cc.

1267{
1268 return fVH3Manager->GetNofHns(onlyIfExist);
1269}

◆ GetNofNtuples()

G4int G4VAnalysisManager::GetNofNtuples ( G4bool onlyIfExist = false) const

Definition at line 1284 of file G4VAnalysisManager.cc.

1285{
1286 return fNtupleBookingManager->GetNofNtuples(onlyIfExist);
1287}

◆ GetNofP1s()

G4int G4VAnalysisManager::GetNofP1s ( G4bool onlyIfExist = false) const

Definition at line 1272 of file G4VAnalysisManager.cc.

1273{
1274 return fVP1Manager->GetNofHns(onlyIfExist);
1275}

◆ GetNofP2s()

G4int G4VAnalysisManager::GetNofP2s ( G4bool onlyIfExist = false) const

Definition at line 1278 of file G4VAnalysisManager.cc.

1279{
1280 return fVP2Manager->GetNofHns(onlyIfExist);
1281}

◆ GetNtupleActivation()

G4bool G4VAnalysisManager::GetNtupleActivation ( G4int id) const

◆ GetNtupleDirectoryName()

G4String G4VAnalysisManager::GetNtupleDirectoryName ( ) const

Definition at line 475 of file G4VAnalysisManager.cc.

476{
477 return fVFileManager->GetNtupleDirectoryName();
478}

◆ GetNtupleFileName()

G4String G4VAnalysisManager::GetNtupleFileName ( G4int id) const

◆ GetP1Activation()

G4bool G4VAnalysisManager::GetP1Activation ( G4int id) const

◆ GetP1Ascii()

G4bool G4VAnalysisManager::GetP1Ascii ( G4int id) const

◆ GetP1Id()

G4int G4VAnalysisManager::GetP1Id ( const G4String & name,
G4bool warn = true ) const

◆ GetP1Name()

G4String G4VAnalysisManager::GetP1Name ( G4int id) const

◆ GetP1Nbins()

G4int G4VAnalysisManager::GetP1Nbins ( G4int id) const

◆ GetP1Plotting()

G4bool G4VAnalysisManager::GetP1Plotting ( G4int id) const

◆ GetP1Title()

G4String G4VAnalysisManager::GetP1Title ( G4int id) const

◆ GetP1XAxisIsLog()

G4bool G4VAnalysisManager::GetP1XAxisIsLog ( G4int id) const

◆ GetP1XAxisTitle()

G4String G4VAnalysisManager::GetP1XAxisTitle ( G4int id) const

◆ GetP1Xmax()

G4double G4VAnalysisManager::GetP1Xmax ( G4int id) const

◆ GetP1Xmin()

G4double G4VAnalysisManager::GetP1Xmin ( G4int id) const

◆ GetP1XUnit()

G4double G4VAnalysisManager::GetP1XUnit ( G4int id) const

◆ GetP1XWidth()

G4double G4VAnalysisManager::GetP1XWidth ( G4int id) const

◆ GetP1YAxisIsLog()

G4bool G4VAnalysisManager::GetP1YAxisIsLog ( G4int id) const

◆ GetP1YAxisTitle()

G4String G4VAnalysisManager::GetP1YAxisTitle ( G4int id) const

◆ GetP1Ymax()

G4double G4VAnalysisManager::GetP1Ymax ( G4int id) const

◆ GetP1Ymin()

G4double G4VAnalysisManager::GetP1Ymin ( G4int id) const

◆ GetP1YUnit()

G4double G4VAnalysisManager::GetP1YUnit ( G4int id) const

◆ GetP2Activation()

G4bool G4VAnalysisManager::GetP2Activation ( G4int id) const

◆ GetP2Ascii()

G4bool G4VAnalysisManager::GetP2Ascii ( G4int id) const

◆ GetP2Id()

G4int G4VAnalysisManager::GetP2Id ( const G4String & name,
G4bool warn = true ) const

◆ GetP2Name()

G4String G4VAnalysisManager::GetP2Name ( G4int id) const

◆ GetP2Nxbins()

G4int G4VAnalysisManager::GetP2Nxbins ( G4int id) const

◆ GetP2Nybins()

G4int G4VAnalysisManager::GetP2Nybins ( G4int id) const

◆ GetP2Plotting()

G4bool G4VAnalysisManager::GetP2Plotting ( G4int id) const

◆ GetP2Title()

G4String G4VAnalysisManager::GetP2Title ( G4int id) const

◆ GetP2XAxisIsLog()

G4bool G4VAnalysisManager::GetP2XAxisIsLog ( G4int id) const

◆ GetP2XAxisTitle()

G4String G4VAnalysisManager::GetP2XAxisTitle ( G4int id) const

◆ GetP2Xmax()

G4double G4VAnalysisManager::GetP2Xmax ( G4int id) const

◆ GetP2Xmin()

G4double G4VAnalysisManager::GetP2Xmin ( G4int id) const

◆ GetP2XUnit()

G4double G4VAnalysisManager::GetP2XUnit ( G4int id) const

◆ GetP2XWidth()

G4double G4VAnalysisManager::GetP2XWidth ( G4int id) const

◆ GetP2YAxisIsLog()

G4bool G4VAnalysisManager::GetP2YAxisIsLog ( G4int id) const

◆ GetP2YAxisTitle()

G4String G4VAnalysisManager::GetP2YAxisTitle ( G4int id) const

◆ GetP2Ymax()

G4double G4VAnalysisManager::GetP2Ymax ( G4int id) const

◆ GetP2Ymin()

G4double G4VAnalysisManager::GetP2Ymin ( G4int id) const

◆ GetP2YUnit()

G4double G4VAnalysisManager::GetP2YUnit ( G4int id) const

◆ GetP2YWidth()

G4double G4VAnalysisManager::GetP2YWidth ( G4int id) const

◆ GetP2ZAxisIsLog()

G4bool G4VAnalysisManager::GetP2ZAxisIsLog ( G4int id) const

◆ GetP2ZAxisTitle()

G4String G4VAnalysisManager::GetP2ZAxisTitle ( G4int id) const

◆ GetP2Zmax()

G4double G4VAnalysisManager::GetP2Zmax ( G4int id) const

◆ GetP2Zmin()

G4double G4VAnalysisManager::GetP2Zmin ( G4int id) const

◆ GetP2ZUnit()

G4double G4VAnalysisManager::GetP2ZUnit ( G4int id) const

◆ GetType()

G4String G4VAnalysisManager::GetType ( ) const

◆ GetVerboseLevel()

G4int G4VAnalysisManager::GetVerboseLevel ( ) const

◆ IsActive()

G4bool G4VAnalysisManager::IsActive ( ) const

Definition at line 1160 of file G4VAnalysisManager.cc.

1161{
1162// Return true if activation option is selected and any of managers has
1163// an activated object.
1164
1165 return fState.GetIsActivation() &&
1166 ( fH1HnManager->IsActive() ||
1167 fH2HnManager->IsActive() ||
1168 fH3HnManager->IsActive() ||
1169 fP1HnManager->IsActive() ||
1170 fP2HnManager->IsActive() );
1171}

◆ IsAscii()

G4bool G4VAnalysisManager::IsAscii ( ) const

Definition at line 1174 of file G4VAnalysisManager.cc.

1175{
1176// Return true any of managers has an object with activated ASCII option.
1177
1178 return ( fH1HnManager->IsAscii() ||
1179 fH2HnManager->IsAscii() ||
1180 fH3HnManager->IsAscii() ||
1181 fP1HnManager->IsAscii() ||
1182 fP2HnManager->IsAscii() );
1183}

Referenced by G4ToolsAnalysisManager::WriteImpl().

◆ IsOpenFile()

G4bool G4VAnalysisManager::IsOpenFile ( ) const

Definition at line 421 of file G4VAnalysisManager.cc.

422{
423 return IsOpenFileImpl();
424}
virtual G4bool IsOpenFileImpl() const =0

Referenced by OpenFile().

◆ IsOpenFileImpl()

virtual G4bool G4VAnalysisManager::IsOpenFileImpl ( ) const
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by IsOpenFile().

◆ IsPlotting()

G4bool G4VAnalysisManager::IsPlotting ( ) const

Definition at line 1186 of file G4VAnalysisManager.cc.

1187{
1188// Return true any of managers has an object with activated plotting option.
1189
1190 return ( fH1HnManager->IsPlotting() ||
1191 fH2HnManager->IsPlotting() ||
1192 fH3HnManager->IsPlotting() ||
1193 fP1HnManager->IsPlotting() ||
1194 fP2HnManager->IsPlotting() );
1195}

Referenced by Write().

◆ List()

G4bool G4VAnalysisManager::List ( G4bool onlyIfActive = true) const

Definition at line 1328 of file G4VAnalysisManager.cc.

1329{
1330 auto result = true;
1331 result &= ListH1(onlyIfActive);
1332 result &= ListH2(onlyIfActive);
1333 result &= ListH3(onlyIfActive);
1334 result &= ListP1(onlyIfActive);
1335 result &= ListP2(onlyIfActive);
1336 result &= ListNtuple(onlyIfActive);
1337
1338 return result;
1339}
G4bool ListNtuple(G4bool onlyIfActive=true) const
G4bool ListH1(G4bool onlyIfActive=true) const
G4bool ListH2(G4bool onlyIfActive=true) const
G4bool ListP2(G4bool onlyIfActive=true) const
G4bool ListP1(G4bool onlyIfActive=true) const
G4bool ListH3(G4bool onlyIfActive=true) const

Referenced by G4AnalysisMessenger::SetNewValue().

◆ ListH1()

G4bool G4VAnalysisManager::ListH1 ( G4bool onlyIfActive = true) const

Definition at line 1292 of file G4VAnalysisManager.cc.

1293{
1294 return fVH1Manager->List(G4cout, onlyIfActive);
1295}
G4GLOB_DLL std::ostream G4cout

Referenced by List().

◆ ListH2()

G4bool G4VAnalysisManager::ListH2 ( G4bool onlyIfActive = true) const

Definition at line 1298 of file G4VAnalysisManager.cc.

1299{
1300 return fVH2Manager->List(G4cout, onlyIfActive);
1301}

Referenced by List().

◆ ListH3()

G4bool G4VAnalysisManager::ListH3 ( G4bool onlyIfActive = true) const

Definition at line 1304 of file G4VAnalysisManager.cc.

1305{
1306 return fVH3Manager->List(G4cout, onlyIfActive);
1307}

Referenced by List().

◆ ListNtuple()

G4bool G4VAnalysisManager::ListNtuple ( G4bool onlyIfActive = true) const

Definition at line 1322 of file G4VAnalysisManager.cc.

1323{
1324 return fNtupleBookingManager->List(G4cout, onlyIfActive);
1325}

Referenced by List(), and G4NtupleMessenger::SetNewValue().

◆ ListP1()

G4bool G4VAnalysisManager::ListP1 ( G4bool onlyIfActive = true) const

Definition at line 1310 of file G4VAnalysisManager.cc.

1311{
1312 return fVP1Manager->List(G4cout, onlyIfActive);
1313}

Referenced by List().

◆ ListP2()

G4bool G4VAnalysisManager::ListP2 ( G4bool onlyIfActive = true) const

Definition at line 1316 of file G4VAnalysisManager.cc.

1317{
1318 return fVP2Manager->List(G4cout, onlyIfActive);
1319}

Referenced by List().

◆ Merge()

G4bool G4VAnalysisManager::Merge ( tools::histo::hmpi * hmpi)

Definition at line 409 of file G4VAnalysisManager.cc.

410{
411 return MergeImpl(hmpi);
412}
virtual G4bool MergeImpl(tools::histo::hmpi *hmpi)=0

◆ MergeImpl()

virtual G4bool G4VAnalysisManager::MergeImpl ( tools::histo::hmpi * hmpi)
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by Merge().

◆ Message()

void G4VAnalysisManager::Message ( G4int level,
const G4String & action,
const G4String & objectType,
const G4String & objectName = "",
G4bool success = true ) const
protected

◆ OpenFile()

G4bool G4VAnalysisManager::OpenFile ( const G4String & fileName = "")

Definition at line 331 of file G4VAnalysisManager.cc.

332{
333 // Protection against opening file twice
334 // (Seems to happen when opening file via UI command after the first run)
335 if (IsOpenFile()) {
336 // G4cout << "Skipping OpenFile. File is already open" << G4endl;
337 return true;
338 }
339
340 if ( fileName != "" ) {
341 return OpenFileImpl(fileName);
342 }
343 if (fVFileManager->GetFileName() == "") {
344 Warn("Cannot open file. File name is not defined.", fkClass, "OpenFile");
345 return false;
346 }
347 return OpenFileImpl(fVFileManager->GetFileName());
348}
virtual G4bool OpenFileImpl(const G4String &fileName)=0

Referenced by G4AnalysisMessenger::SetNewValue(), and G4PhysChemIO::G4Analysis::WriteInto().

◆ OpenFileImpl()

virtual G4bool G4VAnalysisManager::OpenFileImpl ( const G4String & fileName)
protectedpure virtual

◆ Plot()

G4bool G4VAnalysisManager::Plot ( )

Definition at line 415 of file G4VAnalysisManager.cc.

416{
417 return PlotImpl();
418}
virtual G4bool PlotImpl()=0

◆ PlotImpl()

virtual G4bool G4VAnalysisManager::PlotImpl ( )
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by Plot(), and Write().

◆ Reset()

G4bool G4VAnalysisManager::Reset ( )

Definition at line 381 of file G4VAnalysisManager.cc.

382{
383 // Notify about new cycle
384 // (as reset causes deleting ntuples)
385 if (fVNtupleManager != nullptr) {
386 fVNtupleManager->SetNewCycle(true);
387 }
388
389 return ResetImpl();
390}
virtual G4bool ResetImpl()=0

Referenced by G4ToolsAnalysisManager::CloseFileImpl().

◆ ResetImpl()

virtual G4bool G4VAnalysisManager::ResetImpl ( )
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by Reset().

◆ ScaleH1()

G4bool G4VAnalysisManager::ScaleH1 ( G4int id,
G4double factor )

Definition at line 705 of file G4VAnalysisManager.cc.

706{
707 return fVH1Manager->Scale(id, factor);
708}

◆ ScaleH2()

G4bool G4VAnalysisManager::ScaleH2 ( G4int id,
G4double factor )

Definition at line 711 of file G4VAnalysisManager.cc.

712{
713 return fVH2Manager->Scale(id, factor);
714}

◆ ScaleH3()

G4bool G4VAnalysisManager::ScaleH3 ( G4int id,
G4double factor )

Definition at line 717 of file G4VAnalysisManager.cc.

718{
719 return fVH3Manager->Scale(id, factor);
720}

◆ ScaleP1()

G4bool G4VAnalysisManager::ScaleP1 ( G4int id,
G4double factor )

Definition at line 881 of file G4VAnalysisManager.cc.

882{
883 return fVP1Manager->Scale(id, factor);
884}

◆ ScaleP2()

G4bool G4VAnalysisManager::ScaleP2 ( G4int id,
G4double factor )

Definition at line 887 of file G4VAnalysisManager.cc.

888{
889 return fVP2Manager->Scale(id, factor);
890}

◆ SetActivation()

void G4VAnalysisManager::SetActivation ( G4bool activation)

Definition at line 1152 of file G4VAnalysisManager.cc.

1153{
1154 fState.SetIsActivation(activation);
1155}

Referenced by G4AnalysisMessenger::SetNewValue(), and G4NtupleMessenger::SetNewValue().

◆ SetBasketEntries()

void G4VAnalysisManager::SetBasketEntries ( unsigned int basketEntries)
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 991 of file G4VAnalysisManager.cc.

992{
993// The function is overridden in the managers which supports ntuple merging
994// Here we give just a warning that the feature is not available.
995
996 NtupleMergingWarning(fkClass, "SetBasketEntries", GetType());
997}
G4String GetType() const

◆ SetBasketSize()

void G4VAnalysisManager::SetBasketSize ( unsigned int basketSize)
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 982 of file G4VAnalysisManager.cc.

983{
984// The function is overridden in the managers which supports ntuple merging
985// Here we give just a warning that the feature is not available.
986
987 NtupleMergingWarning(fkClass, "SetBasketSize", GetType());
988}

◆ SetCompressionLevel()

void G4VAnalysisManager::SetCompressionLevel ( G4int level)

Definition at line 457 of file G4VAnalysisManager.cc.

458{
459 fVFileManager->SetCompressionLevel(level);
460}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetDefaultFileType()

void G4VAnalysisManager::SetDefaultFileType ( const G4String & value)

Definition at line 427 of file G4VAnalysisManager.cc.

428{
430}
virtual void SetDefaultFileTypeImpl(const G4String &value)

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetDefaultFileTypeImpl()

void G4VAnalysisManager::SetDefaultFileTypeImpl ( const G4String & value)
protectedvirtual

Reimplemented in G4GenericAnalysisManager.

Definition at line 178 of file G4VAnalysisManager.cc.

179{
180 if ( (! GetType().empty()) && (GetFileType() != value) ) {
181 // If not generic analysis manager (which does not define FileType)
182 // the file type cannot be different from the analysis manager type
183 Warn("Cannot set default file type " + value +
184 " different than the analysis manager type " + GetType(),
185 fkClass, "SetDefault");
186 return;
187 }
188
189 fH1HnManager->SetDefaultFileType(value);
190 fH2HnManager->SetDefaultFileType(value);
191 fH3HnManager->SetDefaultFileType(value);
192 fP1HnManager->SetDefaultFileType(value);
193 fP2HnManager->SetDefaultFileType(value);
194}

Referenced by SetDefaultFileType(), and G4GenericAnalysisManager::SetDefaultFileTypeImpl().

◆ SetFileManager()

void G4VAnalysisManager::SetFileManager ( std::shared_ptr< G4VFileManager > fileManager)
protected

Definition at line 263 of file G4VAnalysisManager.cc.

264{
265 fVFileManager = fileManager;
266
267 if ( fH1HnManager != nullptr ) fH1HnManager->SetFileManager(fileManager);
268 if ( fH2HnManager != nullptr ) fH2HnManager->SetFileManager(fileManager);
269 if ( fH3HnManager != nullptr ) fH3HnManager->SetFileManager(fileManager);
270 if ( fP1HnManager != nullptr ) fP1HnManager->SetFileManager(fileManager);
271 if ( fP2HnManager != nullptr ) fP2HnManager->SetFileManager(std::move(fileManager));
272}

◆ SetFileName()

G4bool G4VAnalysisManager::SetFileName ( const G4String & fileName)

Definition at line 439 of file G4VAnalysisManager.cc.

440{
441 return fVFileManager->SetFileName(fileName);
442}

Referenced by G4AnalysisMessenger::SetNewValue(), and G4NtupleMessenger::SetNewValue().

◆ SetFirstH1Id()

G4bool G4VAnalysisManager::SetFirstH1Id ( G4int firstId)

Definition at line 1083 of file G4VAnalysisManager.cc.

1084{
1085 return fH1HnManager->SetFirstId(firstId);
1086}

Referenced by SetFirstHistoId().

◆ SetFirstH2Id()

G4bool G4VAnalysisManager::SetFirstH2Id ( G4int firstId)

Definition at line 1089 of file G4VAnalysisManager.cc.

1090{
1091 return fH2HnManager->SetFirstId(firstId);
1092}

Referenced by SetFirstHistoId().

◆ SetFirstH3Id()

G4bool G4VAnalysisManager::SetFirstH3Id ( G4int firstId)

Definition at line 1095 of file G4VAnalysisManager.cc.

1096{
1097 return fH3HnManager->SetFirstId(firstId);
1098}

Referenced by SetFirstHistoId().

◆ SetFirstHistoId()

G4bool G4VAnalysisManager::SetFirstHistoId ( G4int firstId)

Definition at line 1071 of file G4VAnalysisManager.cc.

1072{
1073 auto result = true;
1074
1075 result &= SetFirstH1Id(firstId);
1076 result &= SetFirstH2Id(firstId);
1077 result &= SetFirstH3Id(firstId);
1078
1079 return result;
1080}
G4bool SetFirstH3Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)
G4bool SetFirstH1Id(G4int firstId)

◆ SetFirstNtupleColumnId()

G4bool G4VAnalysisManager::SetFirstNtupleColumnId ( G4int firstId)

Definition at line 1137 of file G4VAnalysisManager.cc.

1138{
1139 auto result = true;
1140
1141 result &= fNtupleBookingManager->SetFirstNtupleColumnId(firstId);
1142 if ( fVNtupleManager ) {
1143 result &= fVNtupleManager->SetFirstNtupleColumnId(firstId);
1144 }
1145
1146 return result;
1147}

◆ SetFirstNtupleId()

G4bool G4VAnalysisManager::SetFirstNtupleId ( G4int firstId)

Definition at line 1124 of file G4VAnalysisManager.cc.

1125{
1126 auto result = true;
1127
1128 result &= fNtupleBookingManager->SetFirstId(firstId);
1129 if ( fVNtupleManager ) {
1130 result &= fVNtupleManager->SetFirstId(firstId);
1131 }
1132
1133 return result;
1134}

◆ SetFirstP1Id()

G4bool G4VAnalysisManager::SetFirstP1Id ( G4int firstId)

Definition at line 1112 of file G4VAnalysisManager.cc.

1113{
1114 return fP1HnManager->SetFirstId(firstId);
1115}

Referenced by SetFirstProfileId().

◆ SetFirstP2Id()

G4bool G4VAnalysisManager::SetFirstP2Id ( G4int firstId)

Definition at line 1118 of file G4VAnalysisManager.cc.

1119{
1120 return fP2HnManager->SetFirstId(firstId);
1121}

Referenced by SetFirstProfileId().

◆ SetFirstProfileId()

G4bool G4VAnalysisManager::SetFirstProfileId ( G4int firstId)

Definition at line 1101 of file G4VAnalysisManager.cc.

1102{
1103 auto result = true;
1104
1105 result &= SetFirstP1Id(firstId);
1106 result &= SetFirstP2Id(firstId);
1107
1108 return result;
1109}
G4bool SetFirstP1Id(G4int firstId)
G4bool SetFirstP2Id(G4int firstId)

◆ SetH1() [1/2]

G4bool G4VAnalysisManager::SetH1 ( G4int id,
const std::vector< G4double > & edges,
const G4String & unitName = "none",
const G4String & fcnName = "none" )

Definition at line 612 of file G4VAnalysisManager.cc.

615{
616 std::array<G4HnDimension, kDim1> bins = {
617 G4HnDimension(edges)};
618 std::array<G4HnDimensionInformation, kDim1> info = {
619 G4HnDimensionInformation(unitName, fcnName, "user")};
620
621 return fVH1Manager->Set(id, bins, info);
622}

◆ SetH1() [2/2]

G4bool G4VAnalysisManager::SetH1 ( G4int id,
G4int nbins,
G4double xmin,
G4double xmax,
const G4String & unitName = "none",
const G4String & fcnName = "none",
const G4String & binSchemeName = "linear" )

Definition at line 598 of file G4VAnalysisManager.cc.

602{
603 std::array<G4HnDimension, kDim1> bins = {
604 G4HnDimension(nbins, xmin, xmax)};
605 std::array<G4HnDimensionInformation, kDim1> info = {
606 G4HnDimensionInformation(unitName, fcnName, binSchemeName) };
607
608 return fVH1Manager->Set(id, bins, info);
609}

◆ SetH1Activation() [1/2]

void G4VAnalysisManager::SetH1Activation ( G4bool activation)

Definition at line 1350 of file G4VAnalysisManager.cc.

1351{
1352// Set activation to all H1 objects
1353
1354 fH1HnManager->SetActivation(activation);
1355}

◆ SetH1Activation() [2/2]

void G4VAnalysisManager::SetH1Activation ( G4int id,
G4bool activation )

Definition at line 1342 of file G4VAnalysisManager.cc.

1343{
1344// Set activation to a given H1 object
1345
1346 fH1HnManager->SetActivation(id, activation);
1347}

◆ SetH1Ascii()

void G4VAnalysisManager::SetH1Ascii ( G4int id,
G4bool ascii )

Definition at line 1358 of file G4VAnalysisManager.cc.

1359{
1360 fH1HnManager->SetAscii(id, ascii);
1361}

◆ SetH1FileName()

void G4VAnalysisManager::SetH1FileName ( G4int id,
const G4String & fileName )

Definition at line 1370 of file G4VAnalysisManager.cc.

1371{
1372 fH1HnManager->SetFileName(id, fileName);
1373}

◆ SetH1Manager()

void G4VAnalysisManager::SetH1Manager ( G4VTBaseHnManager< kDim1 > * h1Manager)
protected

Definition at line 203 of file G4VAnalysisManager.cc.

204{
205 fVH1Manager.reset(h1Manager);
206 fH1HnManager = h1Manager->GetHnManager();
207 if (fVFileManager != nullptr ) fH1HnManager->SetFileManager(fVFileManager);
208 if (! GetFileType().empty() ) fH1HnManager->SetDefaultFileType(GetFileType());
209}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH1Plotting()

void G4VAnalysisManager::SetH1Plotting ( G4int id,
G4bool plotting )

Definition at line 1364 of file G4VAnalysisManager.cc.

1365{
1366 fH1HnManager->SetPlotting(id, plotting);
1367}

◆ SetH1Title()

G4bool G4VAnalysisManager::SetH1Title ( G4int id,
const G4String & title )

◆ SetH1XAxisIsLog()

G4bool G4VAnalysisManager::SetH1XAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH1XAxisTitle()

G4bool G4VAnalysisManager::SetH1XAxisTitle ( G4int id,
const G4String & title )

◆ SetH1YAxisIsLog()

G4bool G4VAnalysisManager::SetH1YAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH1YAxisTitle()

G4bool G4VAnalysisManager::SetH1YAxisTitle ( G4int id,
const G4String & title )

◆ SetH2() [1/2]

G4bool G4VAnalysisManager::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" )

Definition at line 644 of file G4VAnalysisManager.cc.

649{
650 std::array<G4HnDimension, kDim2> bins = {
651 G4HnDimension(xedges), G4HnDimension(yedges)};
652 std::array<G4HnDimensionInformation, kDim2> info = {
653 G4HnDimensionInformation(xunitName, xfcnName, "user"),
654 G4HnDimensionInformation(yunitName, yfcnName, "user")};
655
656 return fVH2Manager->Set(id, bins, info);
657}

◆ SetH2() [2/2]

G4bool G4VAnalysisManager::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" )

Definition at line 625 of file G4VAnalysisManager.cc.

632{
633 std::array<G4HnDimension, kDim2> bins = {
634 G4HnDimension(nxbins, xmin, xmax),
635 G4HnDimension(nybins, ymin, ymax) };
636 std::array<G4HnDimensionInformation, kDim2> info = {
637 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
638 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName)};
639
640 return fVH2Manager->Set(id, bins, info);
641}

◆ SetH2Activation() [1/2]

void G4VAnalysisManager::SetH2Activation ( G4bool activation)

Definition at line 1384 of file G4VAnalysisManager.cc.

1385{
1386// Set activation to all H2 objects
1387
1388 fH2HnManager->SetActivation(activation);
1389}

◆ SetH2Activation() [2/2]

void G4VAnalysisManager::SetH2Activation ( G4int id,
G4bool activation )

Definition at line 1376 of file G4VAnalysisManager.cc.

1377{
1378// Set activation to a given H2 object
1379
1380 fH2HnManager->SetActivation(id, activation);
1381}

◆ SetH2Ascii()

void G4VAnalysisManager::SetH2Ascii ( G4int id,
G4bool ascii )

Definition at line 1392 of file G4VAnalysisManager.cc.

1393{
1394 fH2HnManager->SetAscii(id, ascii);
1395}

◆ SetH2FileName()

void G4VAnalysisManager::SetH2FileName ( G4int id,
const G4String & fileName )

Definition at line 1404 of file G4VAnalysisManager.cc.

1405{
1406 fH2HnManager->SetFileName(id, fileName);
1407}

◆ SetH2Manager()

void G4VAnalysisManager::SetH2Manager ( G4VTBaseHnManager< kDim2 > * h2Manager)
protected

Definition at line 212 of file G4VAnalysisManager.cc.

213{
214 fVH2Manager.reset(h2Manager);
215 fH2HnManager = h2Manager->GetHnManager();
216 if (fVFileManager != nullptr ) fH2HnManager->SetFileManager(fVFileManager);
217 if (! GetFileType().empty() ) fH2HnManager->SetDefaultFileType(GetFileType());
218}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH2Plotting()

void G4VAnalysisManager::SetH2Plotting ( G4int id,
G4bool plotting )

Definition at line 1398 of file G4VAnalysisManager.cc.

1399{
1400 fH2HnManager->SetPlotting(id, plotting);
1401}

◆ SetH2Title()

G4bool G4VAnalysisManager::SetH2Title ( G4int id,
const G4String & title )

◆ SetH2XAxisIsLog()

G4bool G4VAnalysisManager::SetH2XAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH2XAxisTitle()

G4bool G4VAnalysisManager::SetH2XAxisTitle ( G4int id,
const G4String & title )

◆ SetH2YAxisIsLog()

G4bool G4VAnalysisManager::SetH2YAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH2YAxisTitle()

G4bool G4VAnalysisManager::SetH2YAxisTitle ( G4int id,
const G4String & title )

◆ SetH2ZAxisIsLog()

G4bool G4VAnalysisManager::SetH2ZAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH2ZAxisTitle()

G4bool G4VAnalysisManager::SetH2ZAxisTitle ( G4int id,
const G4String & title )

◆ SetH3() [1/2]

G4bool G4VAnalysisManager::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" )

Definition at line 685 of file G4VAnalysisManager.cc.

693{
694 std::array<G4HnDimension, kDim3> bins = {
695 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(zedges) };
696 std::array<G4HnDimensionInformation, kDim3> info = {
697 G4HnDimensionInformation(xunitName, xfcnName, "user"),
698 G4HnDimensionInformation(yunitName, yfcnName, "user"),
699 G4HnDimensionInformation(zunitName, zfcnName, "user")};
700
701 return fVH3Manager->Set(id, bins, info);
702}

◆ SetH3() [2/2]

G4bool G4VAnalysisManager::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" )

Definition at line 660 of file G4VAnalysisManager.cc.

671{
672 std::array<G4HnDimension, kDim3> bins = {
673 G4HnDimension(nxbins, xmin, xmax),
674 G4HnDimension(nybins, ymin, ymax),
675 G4HnDimension(nzbins, zmin, zmax)};
676 std::array<G4HnDimensionInformation, kDim3> info = {
677 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
678 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
679 G4HnDimensionInformation(zunitName, zfcnName, zbinSchemeName)};
680
681 return fVH3Manager->Set(id, bins, info);
682}

◆ SetH3Activation() [1/2]

void G4VAnalysisManager::SetH3Activation ( G4bool activation)

Definition at line 1418 of file G4VAnalysisManager.cc.

1419{
1420// Set activation to all H3 objects
1421
1422 fH3HnManager->SetActivation(activation);
1423}

◆ SetH3Activation() [2/2]

void G4VAnalysisManager::SetH3Activation ( G4int id,
G4bool activation )

Definition at line 1410 of file G4VAnalysisManager.cc.

1411{
1412// Set activation to a given H3 object
1413
1414 fH3HnManager->SetActivation(id, activation);
1415}

◆ SetH3Ascii()

void G4VAnalysisManager::SetH3Ascii ( G4int id,
G4bool ascii )

Definition at line 1426 of file G4VAnalysisManager.cc.

1427{
1428 fH3HnManager->SetAscii(id, ascii);
1429}

◆ SetH3FileName()

void G4VAnalysisManager::SetH3FileName ( G4int id,
const G4String & fileName )

Definition at line 1438 of file G4VAnalysisManager.cc.

1439{
1440 fH3HnManager->SetFileName(id, fileName);
1441}

◆ SetH3Manager()

void G4VAnalysisManager::SetH3Manager ( G4VTBaseHnManager< kDim3 > * h3Manager)
protected

Definition at line 221 of file G4VAnalysisManager.cc.

222{
223 fVH3Manager.reset(h3Manager);
224 fH3HnManager = h3Manager->GetHnManager();
225 if (fVFileManager != nullptr ) fH3HnManager->SetFileManager(fVFileManager);
226 if (! GetFileType().empty() ) fH3HnManager->SetDefaultFileType(GetFileType());
227}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH3Plotting()

void G4VAnalysisManager::SetH3Plotting ( G4int id,
G4bool plotting )

Definition at line 1432 of file G4VAnalysisManager.cc.

1433{
1434 fH3HnManager->SetPlotting(id, plotting);
1435}

◆ SetH3Title()

G4bool G4VAnalysisManager::SetH3Title ( G4int id,
const G4String & title )

◆ SetH3XAxisIsLog()

G4bool G4VAnalysisManager::SetH3XAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH3XAxisTitle()

G4bool G4VAnalysisManager::SetH3XAxisTitle ( G4int id,
const G4String & title )

◆ SetH3YAxisIsLog()

G4bool G4VAnalysisManager::SetH3YAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH3YAxisTitle()

G4bool G4VAnalysisManager::SetH3YAxisTitle ( G4int id,
const G4String & title )

◆ SetH3ZAxisIsLog()

G4bool G4VAnalysisManager::SetH3ZAxisIsLog ( G4int id,
G4bool isLog )

◆ SetH3ZAxisTitle()

G4bool G4VAnalysisManager::SetH3ZAxisTitle ( G4int id,
const G4String & title )

◆ SetHistoDirectoryName()

G4bool G4VAnalysisManager::SetHistoDirectoryName ( const G4String & dirName)

Definition at line 445 of file G4VAnalysisManager.cc.

446{
447 return fVFileManager->SetHistoDirectoryName(dirName);
448}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetNtupleActivation() [1/2]

void G4VAnalysisManager::SetNtupleActivation ( G4bool activation)

Definition at line 1523 of file G4VAnalysisManager.cc.

1524{
1525// Set activation to all ntuple objects
1526
1527 fNtupleBookingManager->SetActivation(activation);
1528 if ( fVNtupleManager ) {
1529 fVNtupleManager->SetActivation(activation);
1530 }
1531}

Referenced by G4NtupleMessenger::SetNewValue().

◆ SetNtupleActivation() [2/2]

void G4VAnalysisManager::SetNtupleActivation ( G4int id,
G4bool activation )

Definition at line 1512 of file G4VAnalysisManager.cc.

1513{
1514// Set activation to a given ntuple object
1515
1516 fNtupleBookingManager->SetActivation(id, activation);
1517 if ( fVNtupleManager ) {
1518 fVNtupleManager->SetActivation(id, activation);
1519 }
1520}

◆ SetNtupleDirectoryName()

G4bool G4VAnalysisManager::SetNtupleDirectoryName ( const G4String & dirName)

Definition at line 451 of file G4VAnalysisManager.cc.

452{
453 return fVFileManager->SetNtupleDirectoryName(dirName);
454}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetNtupleFileManager()

void G4VAnalysisManager::SetNtupleFileManager ( std::shared_ptr< G4VNtupleFileManager > ntupleFileManager)
protected

Definition at line 256 of file G4VAnalysisManager.cc.

258{
259 fVNtupleFileManager = std::move(ntupleFileManager);
260}
std::shared_ptr< G4VNtupleFileManager > fVNtupleFileManager

◆ SetNtupleFileName() [1/2]

void G4VAnalysisManager::SetNtupleFileName ( const G4String & fileName)

Definition at line 1542 of file G4VAnalysisManager.cc.

1543{
1544// Set activation to all P2 objects
1545
1546 fNtupleBookingManager->SetFileName(fileName);
1547}

Referenced by G4NtupleMessenger::SetNewValue().

◆ SetNtupleFileName() [2/2]

void G4VAnalysisManager::SetNtupleFileName ( G4int id,
const G4String & fileName )

Definition at line 1534 of file G4VAnalysisManager.cc.

1535{
1536// Set activation to a given P2 object
1537
1538 fNtupleBookingManager->SetFileName(id, fileName);
1539}

◆ SetNtupleManager()

void G4VAnalysisManager::SetNtupleManager ( std::shared_ptr< G4VNtupleManager > ntupleManager)
protected

Definition at line 248 of file G4VAnalysisManager.cc.

249{
250 fVNtupleManager = std::move(ntupleManager);
251 fVNtupleManager->SetFirstId(fNtupleBookingManager->GetFirstId());
252 fVNtupleManager->SetFirstNtupleColumnId(fNtupleBookingManager->GetFirstNtupleColumnId());
253}

Referenced by G4ToolsAnalysisManager::OpenFileImpl().

◆ SetNtupleMerging()

void G4VAnalysisManager::SetNtupleMerging ( G4bool mergeNtuples,
G4int nofReducedNtupleFiles = 0 )
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 962 of file G4VAnalysisManager.cc.

964{
965// The function is overridden in the managers which supports ntuple merging
966// Here we give just a warning that the feature is not available.
967
968 NtupleMergingWarning(fkClass, "SetNtupleMerging", GetType());
969}

◆ SetNtupleRowWise()

void G4VAnalysisManager::SetNtupleRowWise ( G4bool rowWise,
G4bool rowMode = true )
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 972 of file G4VAnalysisManager.cc.

974{
975// The function is overridden in the managers which supports ntuple merging
976// Here we give just a warning that the feature is not available.
977
978 NtupleMergingWarning(fkClass, "SetNtupleRowWise", GetType());
979}

◆ SetP1() [1/2]

G4bool G4VAnalysisManager::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" )

Definition at line 819 of file G4VAnalysisManager.cc.

824{
825 std::array<G4HnDimension, kDim2> bins = {
826 G4HnDimension(edges), G4HnDimension(0, ymin, ymax)};
827 std::array<G4HnDimensionInformation, kDim2> info = {
828 G4HnDimensionInformation(xunitName, xfcnName),
829 G4HnDimensionInformation(yunitName, yfcnName)};
830
831 return fVP1Manager->Set(id, bins, info);
832}

◆ SetP1() [2/2]

G4bool G4VAnalysisManager::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" )

Definition at line 801 of file G4VAnalysisManager.cc.

807{
808 std::array<G4HnDimension, kDim2> bins = {
809 G4HnDimension(nbins, xmin, xmax),
810 G4HnDimension(0, ymin, ymax) };
811 std::array<G4HnDimensionInformation, kDim2> info = {
812 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
813 G4HnDimensionInformation(yunitName, yfcnName)};
814
815 return fVP1Manager->Set(id, bins, info);
816}

◆ SetP1Activation() [1/2]

void G4VAnalysisManager::SetP1Activation ( G4bool activation)

Definition at line 1452 of file G4VAnalysisManager.cc.

1453{
1454// Set activation to all P1 objects
1455
1456 fP1HnManager->SetActivation(activation);
1457}

◆ SetP1Activation() [2/2]

void G4VAnalysisManager::SetP1Activation ( G4int id,
G4bool activation )

Definition at line 1444 of file G4VAnalysisManager.cc.

1445{
1446// Set activation to a given P1 object
1447
1448 fP1HnManager->SetActivation(id, activation);
1449}

◆ SetP1Ascii()

void G4VAnalysisManager::SetP1Ascii ( G4int id,
G4bool ascii )

Definition at line 1460 of file G4VAnalysisManager.cc.

1461{
1462 fP1HnManager->SetAscii(id, ascii);
1463}

◆ SetP1FileName()

void G4VAnalysisManager::SetP1FileName ( G4int id,
const G4String & fileName )

Definition at line 1472 of file G4VAnalysisManager.cc.

1473{
1474 fP1HnManager->SetFileName(id, fileName);
1475}

◆ SetP1Manager()

void G4VAnalysisManager::SetP1Manager ( G4VTBaseHnManager< kDim2 > * p1Manager)
protected

Definition at line 230 of file G4VAnalysisManager.cc.

231{
232 fVP1Manager.reset(p1Manager);
233 fP1HnManager = p1Manager->GetHnManager();
234 if (fVFileManager != nullptr ) fP1HnManager->SetFileManager(fVFileManager);
235 if (! GetFileType().empty() ) fP1HnManager->SetDefaultFileType(GetFileType());
236}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetP1Plotting()

void G4VAnalysisManager::SetP1Plotting ( G4int id,
G4bool plotting )

Definition at line 1466 of file G4VAnalysisManager.cc.

1467{
1468 fP1HnManager->SetPlotting(id, plotting);
1469}

◆ SetP1Title()

G4bool G4VAnalysisManager::SetP1Title ( G4int id,
const G4String & title )

◆ SetP1XAxisIsLog()

G4bool G4VAnalysisManager::SetP1XAxisIsLog ( G4int id,
G4bool isLog )

◆ SetP1XAxisTitle()

G4bool G4VAnalysisManager::SetP1XAxisTitle ( G4int id,
const G4String & title )

◆ SetP1YAxisIsLog()

G4bool G4VAnalysisManager::SetP1YAxisIsLog ( G4int id,
G4bool isLog )

◆ SetP1YAxisTitle()

G4bool G4VAnalysisManager::SetP1YAxisTitle ( G4int id,
const G4String & title )

◆ SetP2() [1/2]

G4bool G4VAnalysisManager::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" )

Definition at line 859 of file G4VAnalysisManager.cc.

869{
870 std::array<G4HnDimension, kDim3> bins = {
871 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(0, zmin, zmax)};
872 std::array<G4HnDimensionInformation, kDim3> info = {
873 G4HnDimensionInformation(xunitName, xfcnName),
874 G4HnDimensionInformation(yunitName, yfcnName),
875 G4HnDimensionInformation(zunitName, zfcnName)};
876
877 return fVP2Manager->Set(id, bins, info);
878}

◆ SetP2() [2/2]

G4bool G4VAnalysisManager::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" )

Definition at line 835 of file G4VAnalysisManager.cc.

845{
846 std::array<G4HnDimension, kDim3> bins = {
847 G4HnDimension(nxbins, xmin, xmax),
848 G4HnDimension(nybins, ymin, ymax),
849 G4HnDimension(0, zmin, zmax)};
850 std::array<G4HnDimensionInformation, kDim3> info = {
851 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
852 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
853 G4HnDimensionInformation(zunitName, zfcnName)};
854
855 return fVP2Manager->Set(id, bins, info);
856}

◆ SetP2Activation() [1/2]

void G4VAnalysisManager::SetP2Activation ( G4bool activation)

Definition at line 1486 of file G4VAnalysisManager.cc.

1487{
1488// Set activation to all P2 objects
1489
1490 fP2HnManager->SetActivation(activation);
1491}

◆ SetP2Activation() [2/2]

void G4VAnalysisManager::SetP2Activation ( G4int id,
G4bool activation )

Definition at line 1478 of file G4VAnalysisManager.cc.

1479{
1480// Set activation to a given P2 object
1481
1482 fP2HnManager->SetActivation(id, activation);
1483}

◆ SetP2Ascii()

void G4VAnalysisManager::SetP2Ascii ( G4int id,
G4bool ascii )

Definition at line 1494 of file G4VAnalysisManager.cc.

1495{
1496 fP2HnManager->SetAscii(id, ascii);
1497}

◆ SetP2FileName()

void G4VAnalysisManager::SetP2FileName ( G4int id,
const G4String & fileName )

Definition at line 1506 of file G4VAnalysisManager.cc.

1507{
1508 fP2HnManager->SetFileName(id, fileName);
1509}

◆ SetP2Manager()

void G4VAnalysisManager::SetP2Manager ( G4VTBaseHnManager< kDim3 > * p2Manager)
protected

Definition at line 239 of file G4VAnalysisManager.cc.

240{
241 fVP2Manager.reset(p2Manager);
242 fP2HnManager = p2Manager->GetHnManager();
243 if (fVFileManager != nullptr ) fP2HnManager->SetFileManager(fVFileManager);
244 if (! GetFileType().empty() ) fP2HnManager->SetDefaultFileType(GetFileType());
245}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetP2Plotting()

void G4VAnalysisManager::SetP2Plotting ( G4int id,
G4bool plotting )

Definition at line 1500 of file G4VAnalysisManager.cc.

1501{
1502 fP2HnManager->SetPlotting(id, plotting);
1503}

◆ SetP2Title()

G4bool G4VAnalysisManager::SetP2Title ( G4int id,
const G4String & title )

◆ SetP2XAxisIsLog()

G4bool G4VAnalysisManager::SetP2XAxisIsLog ( G4int id,
G4bool isLog )

◆ SetP2XAxisTitle()

G4bool G4VAnalysisManager::SetP2XAxisTitle ( G4int id,
const G4String & title )

◆ SetP2YAxisIsLog()

G4bool G4VAnalysisManager::SetP2YAxisIsLog ( G4int id,
G4bool isLog )

◆ SetP2YAxisTitle()

G4bool G4VAnalysisManager::SetP2YAxisTitle ( G4int id,
const G4String & title )

◆ SetP2ZAxisIsLog()

G4bool G4VAnalysisManager::SetP2ZAxisIsLog ( G4int id,
G4bool isLog )

◆ SetP2ZAxisTitle()

G4bool G4VAnalysisManager::SetP2ZAxisTitle ( G4int id,
const G4String & title )

◆ SetVerboseLevel()

void G4VAnalysisManager::SetVerboseLevel ( G4int verboseLevel)

Definition at line 1594 of file G4VAnalysisManager.cc.

1595{
1596 fState.SetVerboseLevel(verboseLevel);
1597}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ Write()

G4bool G4VAnalysisManager::Write ( )

Definition at line 351 of file G4VAnalysisManager.cc.

352{
353 auto result = true;
354
355 result &= WriteImpl();
356 if ( IsPlotting() ) {
357 result &= PlotImpl();
358 }
359
360 // Increment cycle number
362
363 return result;
364}
virtual G4bool WriteImpl()=0

◆ WriteAscii()

G4bool G4VAnalysisManager::WriteAscii ( const G4String & fileName)
protected

Definition at line 275 of file G4VAnalysisManager.cc.

276{
277 // Do not write on workers
278 if ( ! fState.GetIsMaster() ) return true;
279
280 auto result = true;
281
282 // Replace or add file extension .ascii
283 G4String name(fileName);
284 if (name.find('.') != std::string::npos) {
285 name.erase(name.find('.'), name.length());
286 }
287 name.append(".ascii");
288
289 Message(kVL3, "write ASCII", "file", name);
290
291 std::ofstream output(name, std::ios::out);
292 if ( ! output ) {
293 Warn("Cannot open file. File name is not defined.",
294 fkClass, "WriteAscii");
295 return false;
296 }
297 output.setf( std::ios::scientific, std::ios::floatfield );
298
299 result &= fVH1Manager->WriteOnAscii(output);
300 result &= fVH2Manager->WriteOnAscii(output);
301 result &= fVH3Manager->WriteOnAscii(output);
302 result &= fVP1Manager->WriteOnAscii(output);
303 result &= fVP2Manager->WriteOnAscii(output);
304
305 Message(kVL1, "write ASCII", "file", name, result);
306
307 return result;
308}
constexpr G4int kVL3
const char * name(G4int ptype)

Referenced by G4ToolsAnalysisManager::WriteImpl().

◆ WriteImpl()

virtual G4bool G4VAnalysisManager::WriteImpl ( )
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by Write().

Friends And Related Symbol Documentation

◆ G4AnalysisMessenger

friend class G4AnalysisMessenger
friend

Definition at line 70 of file G4VAnalysisManager.hh.

Member Data Documentation

◆ fNtupleBookingManager

◆ fState

◆ fVFileManager

◆ fVNtupleFileManager

std::shared_ptr<G4VNtupleFileManager> G4VAnalysisManager::fVNtupleFileManager { nullptr }
protected

◆ fVNtupleManager

std::shared_ptr<G4VNtupleManager> G4VAnalysisManager::fVNtupleManager { nullptr }
protected

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