Geant4 11.1.1
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
 
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 () const
 
G4int GetNofH2s () const
 
G4int GetNofH3s () const
 
G4int GetNofP1s () const
 
G4int GetNofP2s () const
 
G4int GetNofNtuples () 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
 
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
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 
void SetH1Manager (G4VTBaseHnManager< 1 > *h1Manager)
 
void SetH2Manager (G4VTBaseHnManager< 2 > *h2Manager)
 
void SetH3Manager (G4VTBaseHnManager< 3 > *h3Manager)
 
void SetP1Manager (G4VTBaseHnManager< 2 > *p1Manager)
 
void SetP2Manager (G4VTBaseHnManager< 3 > *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 }
 

Static Protected Attributes

static constexpr unsigned int kDim1 { 1 }
 
static constexpr unsigned int kDim2 { 2 }
 
static constexpr unsigned int kDim3 { 3 }
 

Friends

class G4AnalysisMessenger
 

Detailed Description

Definition at line 63 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 66 of file G4VAnalysisManager.cc.

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

◆ ~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 364 of file G4VAnalysisManager.cc.

365{
366 Message(kVL4, "clear", "all data");
367
368 // clear hntools objects
369 ClearImpl();
370
371 // clear remaining data
372 fNtupleBookingManager->ClearData();
373 if ( fVNtupleManager != nullptr ) fVNtupleManager->Clear();
374 if ( fVFileManager != nullptr ) fVFileManager->Clear();
375
376 Message(kVL1, "clear", "all data");
377}
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 338 of file G4VAnalysisManager.cc.

339{
340 auto result = CloseFileImpl(reset);
341
342 // Notify about new cycle
344 if (fVNtupleManager != nullptr) {
345 fVNtupleManager->SetNewCycle(false);
346 }
347
348 return result;
349}
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 460 of file G4VAnalysisManager.cc.

463{
464 std::array<G4HnDimension, kDim1> bins = {
465 G4HnDimension(edges)};
466 std::array<G4HnDimensionInformation, kDim1> info = {
467 G4HnDimensionInformation(unitName, fcnName, "user")};
468
469 return fVH1Manager->Create(name, title, bins, info);
470}

◆ 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 446 of file G4VAnalysisManager.cc.

450{
451 std::array<G4HnDimension, kDim1> bins = {
452 G4HnDimension(nbins, xmin, xmax)};
453 std::array<G4HnDimensionInformation, kDim1> info = {
454 G4HnDimensionInformation(unitName, fcnName, binSchemeName) };
455
456 return fVH1Manager->Create(name, title, bins, info);
457}

◆ 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 493 of file G4VAnalysisManager.cc.

499{
500 std::array<G4HnDimension, kDim2> bins = {
501 G4HnDimension(xedges), G4HnDimension(yedges)};
502 std::array<G4HnDimensionInformation, kDim2> info = {
503 G4HnDimensionInformation(xunitName, xfcnName, "user"),
504 G4HnDimensionInformation(yunitName, yfcnName, "user")};
505
506 return fVH2Manager->Create(name, title, bins, info);
507}

◆ 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 473 of file G4VAnalysisManager.cc.

481{
482 std::array<G4HnDimension, kDim2> bins = {
483 G4HnDimension(nxbins, xmin, xmax),
484 G4HnDimension(nybins, ymin, ymax) };
485 std::array<G4HnDimensionInformation, kDim2> info = {
486 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
487 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName)};
488
489 return fVH2Manager->Create(name, title, bins, info);
490}

◆ 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 536 of file G4VAnalysisManager.cc.

545{
546 std::array<G4HnDimension, kDim3> bins = {
547 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(zedges) };
548 std::array<G4HnDimensionInformation, kDim3> info = {
549 G4HnDimensionInformation(xunitName, xfcnName, "user"),
550 G4HnDimensionInformation(yunitName, yfcnName, "user"),
551 G4HnDimensionInformation(zunitName, zfcnName, "user")};
552
553 return fVH3Manager->Create(name, title, bins, info);
554}

◆ 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 510 of file G4VAnalysisManager.cc.

522{
523 std::array<G4HnDimension, kDim3> bins = {
524 G4HnDimension(nxbins, xmin, xmax),
525 G4HnDimension(nybins, ymin, ymax),
526 G4HnDimension(nzbins, zmin, zmax)};
527 std::array<G4HnDimensionInformation, kDim3> info = {
528 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
529 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
530 G4HnDimensionInformation(zunitName, zfcnName, zbinSchemeName)};
531
532 return fVH3Manager->Create(name, title, bins, info);
533}

◆ CreateNtuple()

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

Definition at line 852 of file G4VAnalysisManager.cc.

854{
855 return fNtupleBookingManager->CreateNtuple(name, title);
856}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile().

◆ CreateNtupleDColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleDColumn ( const G4String name)

Definition at line 871 of file G4VAnalysisManager.cc.

872{
873 return fNtupleBookingManager->CreateNtupleDColumn(name, nullptr);
874}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile().

◆ CreateNtupleDColumn() [2/4]

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

Definition at line 897 of file G4VAnalysisManager.cc.

899{
900 return fNtupleBookingManager->CreateNtupleDColumn(name, &vector);
901}

◆ CreateNtupleDColumn() [3/4]

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

Definition at line 974 of file G4VAnalysisManager.cc.

976{
977 return fNtupleBookingManager->CreateNtupleDColumn(ntupleId, name, nullptr);
978}

◆ CreateNtupleDColumn() [4/4]

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

Definition at line 1004 of file G4VAnalysisManager.cc.

1007{
1008 return fNtupleBookingManager->CreateNtupleDColumn(ntupleId, name, &vector);
1009}

◆ CreateNtupleFColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleFColumn ( const G4String name)

Definition at line 865 of file G4VAnalysisManager.cc.

866{
867 return fNtupleBookingManager->CreateNtupleFColumn(name, nullptr);
868}

◆ CreateNtupleFColumn() [2/4]

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

Definition at line 890 of file G4VAnalysisManager.cc.

892{
893 return fNtupleBookingManager->CreateNtupleFColumn(name, &vector);
894}

◆ CreateNtupleFColumn() [3/4]

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

Definition at line 966 of file G4VAnalysisManager.cc.

968{
969 return fNtupleBookingManager->CreateNtupleFColumn(ntupleId, name, nullptr);
970}

◆ CreateNtupleFColumn() [4/4]

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

Definition at line 996 of file G4VAnalysisManager.cc.

999{
1000 return fNtupleBookingManager->CreateNtupleFColumn(ntupleId, name, &vector);
1001}

◆ CreateNtupleIColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleIColumn ( const G4String name)

Definition at line 859 of file G4VAnalysisManager.cc.

860{
861 return fNtupleBookingManager->CreateNtupleIColumn(name, nullptr);
862}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile().

◆ CreateNtupleIColumn() [2/4]

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

Definition at line 883 of file G4VAnalysisManager.cc.

885{
886 return fNtupleBookingManager->CreateNtupleIColumn(name, &vector);
887}

◆ CreateNtupleIColumn() [3/4]

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

Definition at line 959 of file G4VAnalysisManager.cc.

961{
962 return fNtupleBookingManager->CreateNtupleIColumn(ntupleId, name, nullptr);
963}

◆ CreateNtupleIColumn() [4/4]

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

Definition at line 988 of file G4VAnalysisManager.cc.

991{
992 return fNtupleBookingManager->CreateNtupleIColumn(ntupleId, name, &vector);
993}

◆ CreateNtupleSColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleSColumn ( const G4String name)

Definition at line 877 of file G4VAnalysisManager.cc.

878{
879 return fNtupleBookingManager->CreateNtupleSColumn(name, nullptr);
880}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile().

◆ CreateNtupleSColumn() [2/4]

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

Definition at line 904 of file G4VAnalysisManager.cc.

906{
907 return fNtupleBookingManager->CreateNtupleSColumn(name, &vector);
908}

◆ CreateNtupleSColumn() [3/4]

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

Definition at line 981 of file G4VAnalysisManager.cc.

983{
984 return fNtupleBookingManager->CreateNtupleSColumn(ntupleId, name, nullptr);
985}

◆ CreateNtupleSColumn() [4/4]

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

Definition at line 1012 of file G4VAnalysisManager.cc.

1015{
1016 return fNtupleBookingManager->CreateNtupleSColumn(ntupleId, name, &vector);
1017}

◆ 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 700 of file G4VAnalysisManager.cc.

705{
706 std::array<G4HnDimension, kDim2> bins = {
707 G4HnDimension(edges), G4HnDimension(0, ymin, ymax)};
708 std::array<G4HnDimensionInformation, kDim2> info = {
709 G4HnDimensionInformation(xunitName, xfcnName),
710 G4HnDimensionInformation(yunitName, yfcnName)};
711
712 return fVP1Manager->Create(name, title, bins, info);
713}

◆ 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 682 of file G4VAnalysisManager.cc.

688{
689 std::array<G4HnDimension, kDim2> bins = {
690 G4HnDimension(nbins, xmin, xmax),
691 G4HnDimension(0, ymin, ymax) };
692 std::array<G4HnDimensionInformation, kDim2> info = {
693 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
694 G4HnDimensionInformation(yunitName, yfcnName)};
695
696 return fVP1Manager->Create(name, title, bins, info);
697}

◆ 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 740 of file G4VAnalysisManager.cc.

748{
749 std::array<G4HnDimension, kDim3> bins = {
750 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(0, zmin, zmax)};
751 std::array<G4HnDimensionInformation, kDim3> info = {
752 G4HnDimensionInformation(xunitName, xfcnName),
753 G4HnDimensionInformation(yunitName, yfcnName),
754 G4HnDimensionInformation(zunitName, zfcnName)};
755
756 return fVP2Manager->Create(name, title, bins, info);
757}

◆ 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 716 of file G4VAnalysisManager.cc.

726{
727 std::array<G4HnDimension, kDim3> bins = {
728 G4HnDimension(nxbins, xmin, xmax),
729 G4HnDimension(nybins, ymin, ymax),
730 G4HnDimension(0, zmin, zmax)};
731 std::array<G4HnDimensionInformation, kDim3> info = {
732 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
733 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
734 G4HnDimensionInformation(zunitName, zfcnName)};
735
736 return fVP2Manager->Create(name, title, bins, info);
737}

◆ 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 911 of file G4VAnalysisManager.cc.

912{
913 auto ntupleBooking = fNtupleBookingManager->FinishNtuple();
914
915 if ( fVNtupleManager ) {
916 fVNtupleManager->CreateNtuple(ntupleBooking);
917 }
918}

Referenced by G4PhysChemIO::G4Analysis::InitializeFile().

◆ FinishNtuple() [2/2]

void G4VAnalysisManager::FinishNtuple ( G4int  ntupleId)

Definition at line 1020 of file G4VAnalysisManager.cc.

1021{
1022 auto ntupleBooking = fNtupleBookingManager->FinishNtuple(ntupleId);
1023
1024 if ( fVNtupleManager ) {
1025 fVNtupleManager->CreateNtuple(ntupleBooking);
1026 }
1027}

◆ GetActivation()

G4bool G4VAnalysisManager::GetActivation ( ) const

◆ GetCompressionLevel()

G4int G4VAnalysisManager::GetCompressionLevel ( ) const

Definition at line 440 of file G4VAnalysisManager.cc.

441{
443}

◆ GetFileManager()

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

Reimplemented in G4GenericAnalysisManager.

Definition at line 283 of file G4VAnalysisManager.cc.

284{
285 // Check if file type corresponds the manager output type
286 G4String extension = GetExtension(fileName);
287 if ((extension.size() != 0u) && extension != GetFileType()) {
288 Warn(
289 "The file extension differs from " + GetFileType() + " output type.\n" +
290 GetFileType() + " output type will be used.",
291 fkClass, "GetFileManager");
292 }
293
294 return fVFileManager;
295}
G4String GetFileType() const
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 422 of file G4VAnalysisManager.cc.

423{
424 return fVFileManager->GetFileName();
425}

◆ GetFileType()

G4String G4VAnalysisManager::GetFileType ( ) const

Referenced by GetFileManager().

◆ GetFirstH1Id()

G4int G4VAnalysisManager::GetFirstH1Id ( ) const

Definition at line 1157 of file G4VAnalysisManager.cc.

1158{
1159// Return first H1 id
1160
1161 return fH1HnManager->GetFirstId();
1162}

◆ GetFirstH2Id()

G4int G4VAnalysisManager::GetFirstH2Id ( ) const

Definition at line 1165 of file G4VAnalysisManager.cc.

1166{
1167// Return first H2 id
1168
1169 return fH2HnManager->GetFirstId();
1170}

◆ GetFirstH3Id()

G4int G4VAnalysisManager::GetFirstH3Id ( ) const

Definition at line 1173 of file G4VAnalysisManager.cc.

1174{
1175// Return first H3 id
1176
1177 return fH3HnManager->GetFirstId();
1178}

◆ GetFirstNtupleColumnId()

G4int G4VAnalysisManager::GetFirstNtupleColumnId ( ) const

Definition at line 1205 of file G4VAnalysisManager.cc.

1206{
1207// Return first Ntuple column id
1208
1209 return fNtupleBookingManager->GetFirstNtupleColumnId();
1210}

◆ GetFirstNtupleId()

G4int G4VAnalysisManager::GetFirstNtupleId ( ) const

Definition at line 1197 of file G4VAnalysisManager.cc.

1198{
1199// Return first Ntuple id
1200
1201 return fNtupleBookingManager->GetFirstId();
1202}

◆ GetFirstP1Id()

G4int G4VAnalysisManager::GetFirstP1Id ( ) const

Definition at line 1181 of file G4VAnalysisManager.cc.

1182{
1183// Return first P1 id
1184
1185 return fP1HnManager->GetFirstId();
1186}

◆ GetFirstP2Id()

G4int G4VAnalysisManager::GetFirstP2Id ( ) const

Definition at line 1189 of file G4VAnalysisManager.cc.

1190{
1191// Return first P2 id
1192
1193 return fP2HnManager->GetFirstId();
1194}

◆ 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 428 of file G4VAnalysisManager.cc.

429{
430 return fVFileManager->GetHistoDirectoryName();
431}

◆ GetNofH1s()

G4int G4VAnalysisManager::GetNofH1s ( ) const

Definition at line 1213 of file G4VAnalysisManager.cc.

1214{
1215 return fH1HnManager->GetNofHns();
1216}

◆ GetNofH2s()

G4int G4VAnalysisManager::GetNofH2s ( ) const

Definition at line 1219 of file G4VAnalysisManager.cc.

1220{
1221 return fH2HnManager->GetNofHns();
1222}

◆ GetNofH3s()

G4int G4VAnalysisManager::GetNofH3s ( ) const

Definition at line 1225 of file G4VAnalysisManager.cc.

1226{
1227 return fH3HnManager->GetNofHns();
1228}

◆ GetNofNtuples()

G4int G4VAnalysisManager::GetNofNtuples ( ) const

Definition at line 1243 of file G4VAnalysisManager.cc.

1244{
1245 if (fVNtupleManager != nullptr) {
1246 return fVNtupleManager->GetNofNtuples();
1247 }
1248
1249 return 0;
1250}

◆ GetNofP1s()

G4int G4VAnalysisManager::GetNofP1s ( ) const

Definition at line 1231 of file G4VAnalysisManager.cc.

1232{
1233 return fP1HnManager->GetNofHns();
1234}

◆ GetNofP2s()

G4int G4VAnalysisManager::GetNofP2s ( ) const

Definition at line 1237 of file G4VAnalysisManager.cc.

1238{
1239 return fP2HnManager->GetNofHns();
1240}

◆ GetNtupleActivation()

G4bool G4VAnalysisManager::GetNtupleActivation ( G4int  id) const

◆ GetNtupleDirectoryName()

G4String G4VAnalysisManager::GetNtupleDirectoryName ( ) const

Definition at line 434 of file G4VAnalysisManager.cc.

435{
436 return fVFileManager->GetNtupleDirectoryName();
437}

◆ 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 1119 of file G4VAnalysisManager.cc.

1120{
1121// Return true if activation option is selected and any of managers has
1122// an activated object.
1123
1124 return fState.GetIsActivation() &&
1125 ( fH1HnManager->IsActive() ||
1126 fH2HnManager->IsActive() ||
1127 fH3HnManager->IsActive() ||
1128 fP1HnManager->IsActive() ||
1129 fP2HnManager->IsActive() );
1130}

◆ IsAscii()

G4bool G4VAnalysisManager::IsAscii ( ) const

Definition at line 1133 of file G4VAnalysisManager.cc.

1134{
1135// Return true any of managers has an object with activated ASCII option.
1136
1137 return ( fH1HnManager->IsAscii() ||
1138 fH2HnManager->IsAscii() ||
1139 fH3HnManager->IsAscii() ||
1140 fP1HnManager->IsAscii() ||
1141 fP2HnManager->IsAscii() );
1142}

Referenced by G4ToolsAnalysisManager::WriteImpl().

◆ IsOpenFile()

G4bool G4VAnalysisManager::IsOpenFile ( ) const

Definition at line 392 of file G4VAnalysisManager.cc.

393{
394 return IsOpenFileImpl();
395}
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 1145 of file G4VAnalysisManager.cc.

1146{
1147// Return true any of managers has an object with activated plotting option.
1148
1149 return ( fH1HnManager->IsPlotting() ||
1150 fH2HnManager->IsPlotting() ||
1151 fH3HnManager->IsPlotting() ||
1152 fP1HnManager->IsPlotting() ||
1153 fP2HnManager->IsPlotting() );
1154}

Referenced by Write().

◆ List()

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

Definition at line 1294 of file G4VAnalysisManager.cc.

1295{
1296 auto result = true;
1297 result &= ListH1(onlyIfActive);
1298 result &= ListH2(onlyIfActive);
1299 result &= ListH3(onlyIfActive);
1300 result &= ListP1(onlyIfActive);
1301 result &= ListP2(onlyIfActive);
1302 result &= ListNtuple(onlyIfActive);
1303
1304 return result;
1305}
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 1255 of file G4VAnalysisManager.cc.

1256{
1257 return fVH1Manager->List(G4cout, onlyIfActive);
1258}
G4GLOB_DLL std::ostream G4cout

Referenced by List().

◆ ListH2()

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

Definition at line 1261 of file G4VAnalysisManager.cc.

1262{
1263 return fVH2Manager->List(G4cout, onlyIfActive);
1264}

Referenced by List().

◆ ListH3()

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

Definition at line 1267 of file G4VAnalysisManager.cc.

1268{
1269 return fVH3Manager->List(G4cout, onlyIfActive);
1270}

Referenced by List().

◆ ListNtuple()

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

Definition at line 1285 of file G4VAnalysisManager.cc.

1286{
1287 if (fVNtupleManager != nullptr) {
1288 return fVNtupleManager->List(G4cout, onlyIfActive);
1289 }
1290 return false;
1291}

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

◆ ListP1()

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

Definition at line 1273 of file G4VAnalysisManager.cc.

1274{
1275 return fVP1Manager->List(G4cout, onlyIfActive);
1276}

Referenced by List().

◆ ListP2()

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

Definition at line 1279 of file G4VAnalysisManager.cc.

1280{
1281 return fVP2Manager->List(G4cout, onlyIfActive);
1282}

Referenced by List().

◆ Merge()

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

Definition at line 380 of file G4VAnalysisManager.cc.

381{
382 return MergeImpl(hmpi);
383}
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 302 of file G4VAnalysisManager.cc.

303{
304 // Protection against opening file twice
305 // (Seems to happen when opening file via UI command after the first run)
306 if (IsOpenFile()) {
307 // G4cout << "Skipping OpenFile. File is already open" << G4endl;
308 return true;
309 }
310
311 if ( fileName != "" ) {
312 return OpenFileImpl(fileName);
313 }
314 if (fVFileManager->GetFileName() == "") {
315 Warn("Cannot open file. File name is not defined.", fkClass, "OpenFile");
316 return false;
317 }
318 return OpenFileImpl(fVFileManager->GetFileName());
319}
virtual G4bool OpenFileImpl(const G4String &fileName)=0
G4bool IsOpenFile() const

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 386 of file G4VAnalysisManager.cc.

387{
388 return PlotImpl();
389}
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 352 of file G4VAnalysisManager.cc.

353{
354 // Notify about new cycle
355 // (as reset causes deleting ntuples)
356 if (fVNtupleManager != nullptr) {
357 fVNtupleManager->SetNewCycle(true);
358 }
359
360 return ResetImpl();
361}
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 664 of file G4VAnalysisManager.cc.

665{
666 return fVH1Manager->Scale(id, factor);
667}

◆ ScaleH2()

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

Definition at line 670 of file G4VAnalysisManager.cc.

671{
672 return fVH2Manager->Scale(id, factor);
673}

◆ ScaleH3()

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

Definition at line 676 of file G4VAnalysisManager.cc.

677{
678 return fVH3Manager->Scale(id, factor);
679}

◆ ScaleP1()

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

Definition at line 840 of file G4VAnalysisManager.cc.

841{
842 return fVP1Manager->Scale(id, factor);
843}

◆ ScaleP2()

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

Definition at line 846 of file G4VAnalysisManager.cc.

847{
848 return fVP2Manager->Scale(id, factor);
849}

◆ SetActivation()

void G4VAnalysisManager::SetActivation ( G4bool  activation)

Definition at line 1111 of file G4VAnalysisManager.cc.

1112{
1113 fState.SetIsActivation(activation);
1114}

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

◆ SetBasketEntries()

void G4VAnalysisManager::SetBasketEntries ( unsigned int  basketEntries)
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 950 of file G4VAnalysisManager.cc.

951{
952// The function is overridden in the managers which supports ntuple merging
953// Here we give just a warning that the feature is not available.
954
955 NtupleMergingWarning(fkClass, "SetBasketEntries", GetType());
956}
G4String GetType() const

◆ SetBasketSize()

void G4VAnalysisManager::SetBasketSize ( unsigned int  basketSize)
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 941 of file G4VAnalysisManager.cc.

942{
943// The function is overridden in the managers which supports ntuple merging
944// Here we give just a warning that the feature is not available.
945
946 NtupleMergingWarning(fkClass, "SetBasketSize", GetType());
947}

◆ SetCompressionLevel()

void G4VAnalysisManager::SetCompressionLevel ( G4int  level)

Definition at line 416 of file G4VAnalysisManager.cc.

417{
418 fState.SetCompressionLevel(level);
419}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetFileManager()

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

Definition at line 234 of file G4VAnalysisManager.cc.

235{
236 fVFileManager = fileManager;
237
238 if ( fH1HnManager != nullptr ) fH1HnManager->SetFileManager(fileManager);
239 if ( fH2HnManager != nullptr ) fH2HnManager->SetFileManager(fileManager);
240 if ( fH3HnManager != nullptr ) fH3HnManager->SetFileManager(fileManager);
241 if ( fP1HnManager != nullptr ) fP1HnManager->SetFileManager(fileManager);
242 if ( fP2HnManager != nullptr ) fP2HnManager->SetFileManager(std::move(fileManager));
243}

◆ SetFileName()

G4bool G4VAnalysisManager::SetFileName ( const G4String fileName)

Definition at line 398 of file G4VAnalysisManager.cc.

399{
400 return fVFileManager->SetFileName(fileName);
401}

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

◆ SetFirstH1Id()

G4bool G4VAnalysisManager::SetFirstH1Id ( G4int  firstId)

Definition at line 1042 of file G4VAnalysisManager.cc.

1043{
1044 return fH1HnManager->SetFirstId(firstId);
1045}

Referenced by SetFirstHistoId().

◆ SetFirstH2Id()

G4bool G4VAnalysisManager::SetFirstH2Id ( G4int  firstId)

Definition at line 1048 of file G4VAnalysisManager.cc.

1049{
1050 return fH2HnManager->SetFirstId(firstId);
1051}

Referenced by SetFirstHistoId().

◆ SetFirstH3Id()

G4bool G4VAnalysisManager::SetFirstH3Id ( G4int  firstId)

Definition at line 1054 of file G4VAnalysisManager.cc.

1055{
1056 return fH3HnManager->SetFirstId(firstId);
1057}

Referenced by SetFirstHistoId().

◆ SetFirstHistoId()

G4bool G4VAnalysisManager::SetFirstHistoId ( G4int  firstId)

Definition at line 1030 of file G4VAnalysisManager.cc.

1031{
1032 auto result = true;
1033
1034 result &= SetFirstH1Id(firstId);
1035 result &= SetFirstH2Id(firstId);
1036 result &= SetFirstH3Id(firstId);
1037
1038 return result;
1039}
G4bool SetFirstH3Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)
G4bool SetFirstH1Id(G4int firstId)

◆ SetFirstNtupleColumnId()

G4bool G4VAnalysisManager::SetFirstNtupleColumnId ( G4int  firstId)

Definition at line 1096 of file G4VAnalysisManager.cc.

1097{
1098 auto result = true;
1099
1100 result &= fNtupleBookingManager->SetFirstNtupleColumnId(firstId);
1101 if ( fVNtupleManager ) {
1102 result &= fVNtupleManager->SetFirstNtupleColumnId(firstId);
1103 }
1104
1105 return result;
1106}

◆ SetFirstNtupleId()

G4bool G4VAnalysisManager::SetFirstNtupleId ( G4int  firstId)

Definition at line 1083 of file G4VAnalysisManager.cc.

1084{
1085 auto result = true;
1086
1087 result &= fNtupleBookingManager->SetFirstId(firstId);
1088 if ( fVNtupleManager ) {
1089 result &= fVNtupleManager->SetFirstId(firstId);
1090 }
1091
1092 return result;
1093}

◆ SetFirstP1Id()

G4bool G4VAnalysisManager::SetFirstP1Id ( G4int  firstId)

Definition at line 1071 of file G4VAnalysisManager.cc.

1072{
1073 return fP1HnManager->SetFirstId(firstId);
1074}

Referenced by SetFirstProfileId().

◆ SetFirstP2Id()

G4bool G4VAnalysisManager::SetFirstP2Id ( G4int  firstId)

Definition at line 1077 of file G4VAnalysisManager.cc.

1078{
1079 return fP2HnManager->SetFirstId(firstId);
1080}

Referenced by SetFirstProfileId().

◆ SetFirstProfileId()

G4bool G4VAnalysisManager::SetFirstProfileId ( G4int  firstId)

Definition at line 1060 of file G4VAnalysisManager.cc.

1061{
1062 auto result = true;
1063
1064 result &= SetFirstP1Id(firstId);
1065 result &= SetFirstP2Id(firstId);
1066
1067 return result;
1068}
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 571 of file G4VAnalysisManager.cc.

574{
575 std::array<G4HnDimension, kDim1> bins = {
576 G4HnDimension(edges)};
577 std::array<G4HnDimensionInformation, kDim1> info = {
578 G4HnDimensionInformation(unitName, fcnName, "user")};
579
580 return fVH1Manager->Set(id, bins, info);
581}

◆ 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 557 of file G4VAnalysisManager.cc.

561{
562 std::array<G4HnDimension, kDim1> bins = {
563 G4HnDimension(nbins, xmin, xmax)};
564 std::array<G4HnDimensionInformation, kDim1> info = {
565 G4HnDimensionInformation(unitName, fcnName, binSchemeName) };
566
567 return fVH1Manager->Set(id, bins, info);
568}

◆ SetH1Activation() [1/2]

void G4VAnalysisManager::SetH1Activation ( G4bool  activation)

Definition at line 1316 of file G4VAnalysisManager.cc.

1317{
1318// Set activation to all H1 objects
1319
1320 fH1HnManager->SetActivation(activation);
1321}

◆ SetH1Activation() [2/2]

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

Definition at line 1308 of file G4VAnalysisManager.cc.

1309{
1310// Set activation to a given H1 object
1311
1312 fH1HnManager->SetActivation(id, activation);
1313}

◆ SetH1Ascii()

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

Definition at line 1324 of file G4VAnalysisManager.cc.

1325{
1326 fH1HnManager->SetAscii(id, ascii);
1327}

◆ SetH1FileName()

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

Definition at line 1336 of file G4VAnalysisManager.cc.

1337{
1338 fH1HnManager->SetFileName(id, fileName);
1339}

◆ SetH1Manager()

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

Definition at line 179 of file G4VAnalysisManager.cc.

180{
181 fVH1Manager.reset(h1Manager);
182 fH1HnManager = h1Manager->GetHnManager();
183 if (fVFileManager != nullptr ) fH1HnManager->SetFileManager(fVFileManager);
184}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH1Plotting()

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

Definition at line 1330 of file G4VAnalysisManager.cc.

1331{
1332 fH1HnManager->SetPlotting(id, plotting);
1333}

◆ 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 603 of file G4VAnalysisManager.cc.

608{
609 std::array<G4HnDimension, kDim2> bins = {
610 G4HnDimension(xedges), G4HnDimension(yedges)};
611 std::array<G4HnDimensionInformation, kDim2> info = {
612 G4HnDimensionInformation(xunitName, xfcnName, "user"),
613 G4HnDimensionInformation(yunitName, yfcnName, "user")};
614
615 return fVH2Manager->Set(id, bins, info);
616}

◆ 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 584 of file G4VAnalysisManager.cc.

591{
592 std::array<G4HnDimension, kDim2> bins = {
593 G4HnDimension(nxbins, xmin, xmax),
594 G4HnDimension(nybins, ymin, ymax) };
595 std::array<G4HnDimensionInformation, kDim2> info = {
596 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
597 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName)};
598
599 return fVH2Manager->Set(id, bins, info);
600}

◆ SetH2Activation() [1/2]

void G4VAnalysisManager::SetH2Activation ( G4bool  activation)

Definition at line 1350 of file G4VAnalysisManager.cc.

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

◆ SetH2Activation() [2/2]

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

Definition at line 1342 of file G4VAnalysisManager.cc.

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

◆ SetH2Ascii()

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

Definition at line 1358 of file G4VAnalysisManager.cc.

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

◆ SetH2FileName()

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

Definition at line 1370 of file G4VAnalysisManager.cc.

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

◆ SetH2Manager()

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

Definition at line 187 of file G4VAnalysisManager.cc.

188{
189 fVH2Manager.reset(h2Manager);
190 fH2HnManager = h2Manager->GetHnManager();
191 if (fVFileManager != nullptr ) fH2HnManager->SetFileManager(fVFileManager);
192}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH2Plotting()

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

Definition at line 1364 of file G4VAnalysisManager.cc.

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

◆ 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 644 of file G4VAnalysisManager.cc.

652{
653 std::array<G4HnDimension, kDim3> bins = {
654 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(zedges) };
655 std::array<G4HnDimensionInformation, kDim3> info = {
656 G4HnDimensionInformation(xunitName, xfcnName, "user"),
657 G4HnDimensionInformation(yunitName, yfcnName, "user"),
658 G4HnDimensionInformation(zunitName, zfcnName, "user")};
659
660 return fVH3Manager->Set(id, bins, info);
661}

◆ 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 619 of file G4VAnalysisManager.cc.

630{
631 std::array<G4HnDimension, kDim3> bins = {
632 G4HnDimension(nxbins, xmin, xmax),
633 G4HnDimension(nybins, ymin, ymax),
634 G4HnDimension(nzbins, zmin, zmax)};
635 std::array<G4HnDimensionInformation, kDim3> info = {
636 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
637 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
638 G4HnDimensionInformation(zunitName, zfcnName, zbinSchemeName)};
639
640 return fVH3Manager->Set(id, bins, info);
641}

◆ SetH3Activation() [1/2]

void G4VAnalysisManager::SetH3Activation ( G4bool  activation)

Definition at line 1384 of file G4VAnalysisManager.cc.

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

◆ SetH3Activation() [2/2]

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

Definition at line 1376 of file G4VAnalysisManager.cc.

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

◆ SetH3Ascii()

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

Definition at line 1392 of file G4VAnalysisManager.cc.

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

◆ SetH3FileName()

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

Definition at line 1404 of file G4VAnalysisManager.cc.

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

◆ SetH3Manager()

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

Definition at line 195 of file G4VAnalysisManager.cc.

196{
197 fVH3Manager.reset(h3Manager);
198 fH3HnManager = h3Manager->GetHnManager();
199 if (fVFileManager != nullptr ) fH3HnManager->SetFileManager(fVFileManager);
200}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH3Plotting()

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

Definition at line 1398 of file G4VAnalysisManager.cc.

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

◆ 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 404 of file G4VAnalysisManager.cc.

405{
406 return fVFileManager->SetHistoDirectoryName(dirName);
407}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetNtupleActivation() [1/2]

void G4VAnalysisManager::SetNtupleActivation ( G4bool  activation)

Definition at line 1489 of file G4VAnalysisManager.cc.

1490{
1491// Set activation to all ntuple objects
1492
1493 fNtupleBookingManager->SetActivation(activation);
1494 if ( fVNtupleManager ) {
1495 fVNtupleManager->SetActivation(activation);
1496 }
1497}

Referenced by G4NtupleMessenger::SetNewValue().

◆ SetNtupleActivation() [2/2]

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

Definition at line 1478 of file G4VAnalysisManager.cc.

1479{
1480// Set activation to a given ntuple object
1481
1482 fNtupleBookingManager->SetActivation(id, activation);
1483 if ( fVNtupleManager ) {
1484 fVNtupleManager->SetActivation(id, activation);
1485 }
1486}

◆ SetNtupleDirectoryName()

G4bool G4VAnalysisManager::SetNtupleDirectoryName ( const G4String dirName)

Definition at line 410 of file G4VAnalysisManager.cc.

411{
412 return fVFileManager->SetNtupleDirectoryName(dirName);
413}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetNtupleFileManager()

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

Definition at line 227 of file G4VAnalysisManager.cc.

229{
230 fVNtupleFileManager = std::move(ntupleFileManager);
231}
std::shared_ptr< G4VNtupleFileManager > fVNtupleFileManager

◆ SetNtupleFileName() [1/2]

void G4VAnalysisManager::SetNtupleFileName ( const G4String fileName)

Definition at line 1508 of file G4VAnalysisManager.cc.

1509{
1510// Set activation to all P2 objects
1511
1512 fNtupleBookingManager->SetFileName(fileName);
1513}

Referenced by G4NtupleMessenger::SetNewValue().

◆ SetNtupleFileName() [2/2]

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

Definition at line 1500 of file G4VAnalysisManager.cc.

1501{
1502// Set activation to a given P2 object
1503
1504 fNtupleBookingManager->SetFileName(id, fileName);
1505}

◆ SetNtupleManager()

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

Definition at line 219 of file G4VAnalysisManager.cc.

220{
221 fVNtupleManager = std::move(ntupleManager);
222 fVNtupleManager->SetFirstId(fNtupleBookingManager->GetFirstId());
223 fVNtupleManager->SetFirstNtupleColumnId(fNtupleBookingManager->GetFirstNtupleColumnId());
224}

Referenced by G4ToolsAnalysisManager::OpenFileImpl().

◆ SetNtupleMerging()

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

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 921 of file G4VAnalysisManager.cc.

923{
924// The function is overridden in the managers which supports ntuple merging
925// Here we give just a warning that the feature is not available.
926
927 NtupleMergingWarning(fkClass, "SetNtupleMerging", GetType());
928}

◆ SetNtupleRowWise()

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

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 931 of file G4VAnalysisManager.cc.

933{
934// The function is overridden in the managers which supports ntuple merging
935// Here we give just a warning that the feature is not available.
936
937 NtupleMergingWarning(fkClass, "SetNtupleRowWise", GetType());
938}

◆ 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 778 of file G4VAnalysisManager.cc.

783{
784 std::array<G4HnDimension, kDim2> bins = {
785 G4HnDimension(edges), G4HnDimension(0, ymin, ymax)};
786 std::array<G4HnDimensionInformation, kDim2> info = {
787 G4HnDimensionInformation(xunitName, xfcnName),
788 G4HnDimensionInformation(yunitName, yfcnName)};
789
790 return fVP1Manager->Set(id, bins, info);
791}

◆ 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 760 of file G4VAnalysisManager.cc.

766{
767 std::array<G4HnDimension, kDim2> bins = {
768 G4HnDimension(nbins, xmin, xmax),
769 G4HnDimension(0, ymin, ymax) };
770 std::array<G4HnDimensionInformation, kDim2> info = {
771 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
772 G4HnDimensionInformation(yunitName, yfcnName)};
773
774 return fVP1Manager->Set(id, bins, info);
775}

◆ SetP1Activation() [1/2]

void G4VAnalysisManager::SetP1Activation ( G4bool  activation)

Definition at line 1418 of file G4VAnalysisManager.cc.

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

◆ SetP1Activation() [2/2]

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

Definition at line 1410 of file G4VAnalysisManager.cc.

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

◆ SetP1Ascii()

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

Definition at line 1426 of file G4VAnalysisManager.cc.

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

◆ SetP1FileName()

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

Definition at line 1438 of file G4VAnalysisManager.cc.

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

◆ SetP1Manager()

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

Definition at line 203 of file G4VAnalysisManager.cc.

204{
205 fVP1Manager.reset(p1Manager);
206 fP1HnManager = p1Manager->GetHnManager();
207 if (fVFileManager != nullptr ) fP1HnManager->SetFileManager(fVFileManager);
208}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetP1Plotting()

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

Definition at line 1432 of file G4VAnalysisManager.cc.

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

◆ 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 818 of file G4VAnalysisManager.cc.

828{
829 std::array<G4HnDimension, kDim3> bins = {
830 G4HnDimension(xedges), G4HnDimension(yedges), G4HnDimension(0, zmin, zmax)};
831 std::array<G4HnDimensionInformation, kDim3> info = {
832 G4HnDimensionInformation(xunitName, xfcnName),
833 G4HnDimensionInformation(yunitName, yfcnName),
834 G4HnDimensionInformation(zunitName, zfcnName)};
835
836 return fVP2Manager->Set(id, bins, info);
837}

◆ 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 794 of file G4VAnalysisManager.cc.

804{
805 std::array<G4HnDimension, kDim3> bins = {
806 G4HnDimension(nxbins, xmin, xmax),
807 G4HnDimension(nybins, ymin, ymax),
808 G4HnDimension(0, zmin, zmax)};
809 std::array<G4HnDimensionInformation, kDim3> info = {
810 G4HnDimensionInformation(xunitName, xfcnName, xbinSchemeName),
811 G4HnDimensionInformation(yunitName, yfcnName, ybinSchemeName),
812 G4HnDimensionInformation(zunitName, zfcnName)};
813
814 return fVP2Manager->Set(id, bins, info);
815}

◆ SetP2Activation() [1/2]

void G4VAnalysisManager::SetP2Activation ( G4bool  activation)

Definition at line 1452 of file G4VAnalysisManager.cc.

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

◆ SetP2Activation() [2/2]

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

Definition at line 1444 of file G4VAnalysisManager.cc.

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

◆ SetP2Ascii()

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

Definition at line 1460 of file G4VAnalysisManager.cc.

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

◆ SetP2FileName()

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

Definition at line 1472 of file G4VAnalysisManager.cc.

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

◆ SetP2Manager()

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

Definition at line 211 of file G4VAnalysisManager.cc.

212{
213 fVP2Manager.reset(p2Manager);
214 fP2HnManager = p2Manager->GetHnManager();
215 if (fVFileManager != nullptr ) fP2HnManager->SetFileManager(fVFileManager);
216}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetP2Plotting()

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

Definition at line 1466 of file G4VAnalysisManager.cc.

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

◆ 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 1518 of file G4VAnalysisManager.cc.

1519{
1520 fState.SetVerboseLevel(verboseLevel);
1521}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ Write()

G4bool G4VAnalysisManager::Write ( )

Definition at line 322 of file G4VAnalysisManager.cc.

323{
324 auto result = true;
325
326 result &= WriteImpl();
327 if ( IsPlotting() ) {
328 result &= PlotImpl();
329 }
330
331 // Increment cycle number
333
334 return result;
335}
virtual G4bool WriteImpl()=0

◆ WriteAscii()

G4bool G4VAnalysisManager::WriteAscii ( const G4String fileName)
protected

Definition at line 246 of file G4VAnalysisManager.cc.

247{
248 // Do not write on workers
249 if ( ! fState.GetIsMaster() ) return true;
250
251 auto result = true;
252
253 // Replace or add file extension .ascii
254 G4String name(fileName);
255 if (name.find('.') != std::string::npos) {
256 name.erase(name.find('.'), name.length());
257 }
258 name.append(".ascii");
259
260 Message(kVL3, "write ASCII", "file", name);
261
262 std::ofstream output(name, std::ios::out);
263 if ( ! output ) {
264 Warn("Cannot open file. File name is not defined.",
265 fkClass, "WriteAscii");
266 return false;
267 }
268 output.setf( std::ios::scientific, std::ios::floatfield );
269
270 result &= fVH1Manager->WriteOnAscii(output);
271 result &= fVH2Manager->WriteOnAscii(output);
272 result &= fVH3Manager->WriteOnAscii(output);
273 result &= fVP1Manager->WriteOnAscii(output);
274 result &= fVP2Manager->WriteOnAscii(output);
275
276 Message(kVL1, "write ASCII", "file", name, result);
277
278 return result;
279}
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 Function Documentation

◆ G4AnalysisMessenger

friend class G4AnalysisMessenger
friend

Definition at line 65 of file G4VAnalysisManager.hh.

Member Data Documentation

◆ fNtupleBookingManager

◆ fState

◆ fVFileManager

◆ fVNtupleFileManager

◆ fVNtupleManager

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

◆ kDim1

constexpr unsigned int G4VAnalysisManager::kDim1 { 1 }
staticconstexprprotected

Definition at line 681 of file G4VAnalysisManager.hh.

◆ kDim2

constexpr unsigned int G4VAnalysisManager::kDim2 { 2 }
staticconstexprprotected

Definition at line 682 of file G4VAnalysisManager.hh.

◆ kDim3

constexpr unsigned int G4VAnalysisManager::kDim3 { 3 }
staticconstexprprotected

Definition at line 683 of file G4VAnalysisManager.hh.


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