Geant4 10.7.0
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 (const G4String &type, G4bool isMaster)
 
virtual ~G4VAnalysisManager ()
 
G4bool OpenFile (const G4String &fileName="")
 
G4bool Write ()
 
G4bool CloseFile (G4bool reset=true)
 
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)
 
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)
 
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
 
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

virtual G4bool OpenFileImpl (const G4String &fileName)=0
 
virtual G4bool WriteImpl ()=0
 
virtual G4bool CloseFileImpl (G4bool reset)=0
 
virtual G4bool PlotImpl ()=0
 
virtual G4bool MergeImpl (tools::histo::hmpi *hmpi)=0
 
virtual G4bool IsOpenFileImpl () const =0
 
void SetH1Manager (G4VH1Manager *h1Manager)
 
void SetH2Manager (G4VH2Manager *h2Manager)
 
void SetH3Manager (G4VH3Manager *h3Manager)
 
void SetP1Manager (G4VP1Manager *p1Manager)
 
void SetP2Manager (G4VP2Manager *p2Manager)
 
void SetNtupleManager (std::shared_ptr< G4VNtupleManager > ntupleManager)
 
void SetFileManager (std::shared_ptr< G4VFileManager > fileManager)
 
void SetPlotManager (std::shared_ptr< G4PlotManager > plotManager)
 
G4bool WriteAscii (const G4String &fileName)
 

Protected Attributes

G4AnalysisManagerState fState
 
std::shared_ptr< G4VFileManagerfVFileManager
 
std::shared_ptr< G4PlotManagerfPlotManager
 
std::shared_ptr< G4NtupleBookingManagerfNtupleBookingManager
 
std::shared_ptr< G4VNtupleManagerfVNtupleManager
 

Static Protected Attributes

static constexpr unsigned int fgkDefaultBasketSize = 32000
 
static constexpr unsigned int fgkDefaultBasketEntries = 4000
 

Detailed Description

Definition at line 66 of file G4VAnalysisManager.hh.

Constructor & Destructor Documentation

◆ G4VAnalysisManager()

G4VAnalysisManager::G4VAnalysisManager ( const G4String type,
G4bool  isMaster 
)

Definition at line 63 of file G4VAnalysisManager.cc.

64 : fState(type, isMaster),
65 fVFileManager(nullptr),
66 fPlotManager(nullptr),
67 fNtupleBookingManager(nullptr),
68 fVNtupleManager(nullptr),
69 fMessenger(G4Analysis::make_unique<G4AnalysisMessenger>(this)),
70 fH1HnManager(nullptr),
71 fH2HnManager(nullptr),
72 fH3HnManager(nullptr),
73 fP1HnManager(nullptr),
74 fP2HnManager(nullptr),
75 fVH1Manager(nullptr),
76 fVH2Manager(nullptr),
77 fVH3Manager(nullptr),
78 fVP1Manager(nullptr),
79 fVP2Manager(nullptr)
80{
81 fNtupleBookingManager = std::make_shared<G4NtupleBookingManager>(fState);
82}
std::shared_ptr< G4PlotManager > fPlotManager
std::shared_ptr< G4NtupleBookingManager > fNtupleBookingManager
G4AnalysisManagerState fState
std::shared_ptr< G4VNtupleManager > fVNtupleManager
std::shared_ptr< G4VFileManager > fVFileManager

◆ ~G4VAnalysisManager()

G4VAnalysisManager::~G4VAnalysisManager ( )
virtual

Definition at line 85 of file G4VAnalysisManager.cc.

86{
87 // delete fVNtupleManager;
88}

Member Function Documentation

◆ AddNtupleRow() [1/2]

◆ AddNtupleRow() [2/2]

G4bool G4VAnalysisManager::AddNtupleRow ( G4int  ntupleId)

◆ CloseFile()

G4bool G4VAnalysisManager::CloseFile ( G4bool  reset = true)

Definition at line 256 of file G4VAnalysisManager.cc.

257{
258 return CloseFileImpl(reset);
259}
virtual G4bool CloseFileImpl(G4bool reset)=0

◆ CloseFileImpl()

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

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

345{
346 if ( ! CheckName(name, "H1") ) return kInvalidId;
347 if ( ! CheckEdges(edges) ) return kInvalidId;
348
349 return fVH1Manager->CreateH1(name, title, edges, unitName, fcnName);
350}
G4bool CheckEdges(const std::vector< G4double > &edges)
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId

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

332{
333 if ( ! CheckName(name, "H1") ) return kInvalidId;
334 if ( ! CheckNbins(nbins) ) return kInvalidId;
335 if ( ! CheckMinMax(xmin, xmax, fcnName, binSchemeName) ) return kInvalidId;
336
337 return fVH1Manager->CreateH1(name, title, nbins, xmin, xmax,
338 unitName, fcnName, binSchemeName);
339}
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool CheckNbins(G4int nbins)

Referenced by G4H1Messenger::SetNewValue().

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

383{
384 if ( ! CheckName(name, "H2") ) return kInvalidId;
385
386 if ( ! CheckEdges(xedges) ) return kInvalidId;
387 if ( ! CheckEdges(yedges) ) return kInvalidId;
388
389 return fVH2Manager->CreateH2(name, title,
390 xedges, yedges,
391 xunitName, yunitName, xfcnName, yfcnName);
392}

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

361{
362 if ( ! CheckName(name, "H2") ) return kInvalidId;
363
364 if ( ! CheckNbins(nxbins) ) return kInvalidId;
365 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
366
367 if ( ! CheckNbins(nybins) ) return kInvalidId;
368 if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
369
370 return fVH2Manager->CreateH2(name, title,
371 nxbins, xmin, xmax, nybins, ymin, ymax,
372 xunitName, yunitName, xfcnName, yfcnName,
373 xbinSchemeName, ybinSchemeName);
374}

Referenced by G4H2Messenger::SetNewValue().

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

437{
438 if ( ! CheckName(name, "H3") ) return kInvalidId;
439
440 if ( ! CheckEdges(xedges) ) return kInvalidId;
441 if ( ! CheckEdges(yedges) ) return kInvalidId;
442 if ( ! CheckEdges(zedges) ) return kInvalidId;
443
444 return fVH3Manager->CreateH3(name, title,
445 xedges, yedges, zedges,
446 xunitName, yunitName, zunitName,
447 xfcnName, yfcnName, zfcnName);
448}

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

407{
408 if ( ! CheckName(name, "H3") ) return kInvalidId;
409
410 if ( ! CheckNbins(nxbins) ) return kInvalidId;
411 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
412
413 if ( ! CheckNbins(nybins) ) return kInvalidId;
414 if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
415
416 if ( ! CheckNbins(nzbins) ) return kInvalidId;
417 if ( ! CheckMinMax(zmin, zmax, zfcnName, zbinSchemeName) ) return kInvalidId;
418
419 return fVH3Manager->CreateH3(name, title,
420 nxbins, xmin, xmax, nybins, ymin, ymax,
421 nzbins, zmin, zmax,
422 xunitName, yunitName, zunitName,
423 xfcnName, yfcnName, zfcnName,
424 xbinSchemeName, ybinSchemeName, zbinSchemeName);
425}

Referenced by G4H3Messenger::SetNewValue().

◆ CreateNtuple()

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

Definition at line 766 of file G4VAnalysisManager.cc.

768{
769 if ( ! CheckName(name, "Ntuple") ) return kInvalidId;
770
771 return fNtupleBookingManager->CreateNtuple(name, title);
772}

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

◆ CreateNtupleDColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleDColumn ( const G4String name)

Definition at line 791 of file G4VAnalysisManager.cc.

792{
793 if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
794
795 return fNtupleBookingManager->CreateNtupleDColumn(name, 0);
796}

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

◆ CreateNtupleDColumn() [2/4]

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

Definition at line 825 of file G4VAnalysisManager.cc.

827{
828 if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
829
830 return fNtupleBookingManager->CreateNtupleDColumn(name, &vector);
831}

◆ CreateNtupleDColumn() [3/4]

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

Definition at line 901 of file G4VAnalysisManager.cc.

903{
904 if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
905
906 return fNtupleBookingManager->CreateNtupleDColumn(ntupleId, name, 0);
907}

◆ CreateNtupleDColumn() [4/4]

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

Definition at line 939 of file G4VAnalysisManager.cc.

942{
943 if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
944
945 return fNtupleBookingManager->CreateNtupleDColumn(ntupleId, name, &vector);
946}

◆ CreateNtupleFColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleFColumn ( const G4String name)

Definition at line 783 of file G4VAnalysisManager.cc.

784{
785 if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
786
787 return fNtupleBookingManager->CreateNtupleFColumn(name, 0);
788}

◆ CreateNtupleFColumn() [2/4]

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

Definition at line 816 of file G4VAnalysisManager.cc.

818{
819 if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
820
821 return fNtupleBookingManager->CreateNtupleFColumn(name, &vector);
822}

◆ CreateNtupleFColumn() [3/4]

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

Definition at line 891 of file G4VAnalysisManager.cc.

893{
894 if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
895
896 return fNtupleBookingManager->CreateNtupleFColumn(ntupleId, name, 0);
897}

◆ CreateNtupleFColumn() [4/4]

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

Definition at line 929 of file G4VAnalysisManager.cc.

932{
933 if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
934
935 return fNtupleBookingManager->CreateNtupleFColumn(ntupleId, name, &vector);
936}

◆ CreateNtupleIColumn() [1/4]

G4int G4VAnalysisManager::CreateNtupleIColumn ( const G4String name)

Definition at line 775 of file G4VAnalysisManager.cc.

776{
777 if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
778
779 return fNtupleBookingManager->CreateNtupleIColumn(name, 0);
780}

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

◆ CreateNtupleIColumn() [2/4]

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

Definition at line 807 of file G4VAnalysisManager.cc.

809{
810 if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
811
812 return fNtupleBookingManager->CreateNtupleIColumn(name, &vector);
813}

◆ CreateNtupleIColumn() [3/4]

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

Definition at line 882 of file G4VAnalysisManager.cc.

884{
885 if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
886
887 return fNtupleBookingManager->CreateNtupleIColumn(ntupleId, name, 0);
888}

◆ CreateNtupleIColumn() [4/4]

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

Definition at line 919 of file G4VAnalysisManager.cc.

922{
923 if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
924
925 return fNtupleBookingManager->CreateNtupleIColumn(ntupleId, name, &vector);
926}

◆ CreateNtupleSColumn() [1/2]

G4int G4VAnalysisManager::CreateNtupleSColumn ( const G4String name)

Definition at line 799 of file G4VAnalysisManager.cc.

800{
801 if ( ! CheckName(name, "NtupleSColumn") ) return kInvalidId;
802
803 return fNtupleBookingManager->CreateNtupleSColumn(name);
804}

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

◆ CreateNtupleSColumn() [2/2]

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

Definition at line 910 of file G4VAnalysisManager.cc.

912{
913 if ( ! CheckName(name, "NtupleSColumn") ) return kInvalidId;
914
915 return fNtupleBookingManager->CreateNtupleSColumn(ntupleId, name);
916}

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

600{
601 if ( ! CheckName(name, "P1") ) return kInvalidId;
602 if ( ! CheckEdges(edges) ) return kInvalidId;
603 if ( ymin != 0. || ymax != 0. ) {
604 // Do not check default values
605 if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
606 }
607
608 return fVP1Manager->CreateP1(name, title, edges, ymin, ymax,
609 xunitName, yunitName, xfcnName, yfcnName);
610}

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

580{
581 if ( ! CheckName(name, "P1") ) return kInvalidId;
582 if ( ! CheckNbins(nbins) ) return kInvalidId;
583 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
584 if ( ymin != 0. || ymax != 0. ) {
585 // Do not check default values
586 if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
587 }
588
589 return fVP1Manager->CreateP1(name, title, nbins, xmin, xmax, ymin, ymax,
590 xunitName, yunitName, xfcnName, yfcnName,
591 xbinSchemeName);
592}

Referenced by G4P1Messenger::SetNewValue().

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

650{
651 if ( ! CheckName(name, "P2") ) return kInvalidId;
652 if ( ! CheckEdges(xedges) ) return kInvalidId;
653 if ( ! CheckEdges(yedges) ) return kInvalidId;
654 if ( zmin != 0. || zmax != 0. ) {
655 // Do not check default values
656 if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
657 }
658
659 return fVP2Manager->CreateP2(name, title, xedges, yedges, zmin, zmax,
660 xunitName, yunitName, zunitName,
661 xfcnName, yfcnName, zfcnName);
662}

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

623{
624 if ( ! CheckName(name, "P2") ) return kInvalidId;
625 if ( ! CheckNbins(nxbins) ) return kInvalidId;
626 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
627 if ( ! CheckMinMax(ymin, ymax, yfcnName, xbinSchemeName) ) return kInvalidId;
628 if ( zmin != 0. || zmax != 0. ) {
629 // Do not check default values
630 if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
631 }
632
633 return fVP2Manager->CreateP2(name, title,
634 nxbins, xmin, xmax, nybins, ymin, ymax,
635 zmin, zmax,
636 xunitName, yunitName, zunitName,
637 xfcnName, yfcnName, zfcnName,
638 xbinSchemeName, ybinSchemeName);
639}

Referenced by G4P2Messenger::SetNewValue().

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

835{
836 auto ntupleBooking = fNtupleBookingManager->FinishNtuple();
837
838 if ( fVNtupleManager ) {
839 fVNtupleManager->CreateNtuple(ntupleBooking);
840 }
841}

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

◆ FinishNtuple() [2/2]

void G4VAnalysisManager::FinishNtuple ( G4int  ntupleId)

Definition at line 949 of file G4VAnalysisManager.cc.

950{
951 auto ntupleBooking = fNtupleBookingManager->FinishNtuple(ntupleId);
952
953 if ( fVNtupleManager ) {
954 fVNtupleManager->CreateNtuple(ntupleBooking);
955 }
956}

◆ GetActivation()

G4bool G4VAnalysisManager::GetActivation ( ) const

◆ GetCompressionLevel()

G4int G4VAnalysisManager::GetCompressionLevel ( ) const

Definition at line 322 of file G4VAnalysisManager.cc.

323{
325}

◆ GetFileName()

G4String G4VAnalysisManager::GetFileName ( ) const

Definition at line 304 of file G4VAnalysisManager.cc.

305{
306 return fVFileManager->GetFileName();
307}

◆ GetFileType()

G4String G4VAnalysisManager::GetFileType ( ) const

◆ GetFirstH1Id()

G4int G4VAnalysisManager::GetFirstH1Id ( ) const

Definition at line 1100 of file G4VAnalysisManager.cc.

1101{
1102// Return first H1 id
1103
1104 return fH1HnManager->GetFirstId();
1105}

◆ GetFirstH2Id()

G4int G4VAnalysisManager::GetFirstH2Id ( ) const

Definition at line 1108 of file G4VAnalysisManager.cc.

1109{
1110// Return first H2 id
1111
1112 return fH2HnManager->GetFirstId();
1113}

◆ GetFirstH3Id()

G4int G4VAnalysisManager::GetFirstH3Id ( ) const

Definition at line 1116 of file G4VAnalysisManager.cc.

1117{
1118// Return first H3 id
1119
1120 return fH3HnManager->GetFirstId();
1121}

◆ GetFirstNtupleColumnId()

G4int G4VAnalysisManager::GetFirstNtupleColumnId ( ) const

Definition at line 1148 of file G4VAnalysisManager.cc.

1149{
1150// Return first Ntuple column id
1151
1152 return fNtupleBookingManager->GetFirstNtupleColumnId();
1153}

◆ GetFirstNtupleId()

G4int G4VAnalysisManager::GetFirstNtupleId ( ) const

Definition at line 1140 of file G4VAnalysisManager.cc.

1141{
1142// Return first Ntuple id
1143
1144 return fNtupleBookingManager->GetFirstId();
1145}

◆ GetFirstP1Id()

G4int G4VAnalysisManager::GetFirstP1Id ( ) const

Definition at line 1124 of file G4VAnalysisManager.cc.

1125{
1126// Return first P1 id
1127
1128 return fP1HnManager->GetFirstId();
1129}

◆ GetFirstP2Id()

G4int G4VAnalysisManager::GetFirstP2Id ( ) const

Definition at line 1132 of file G4VAnalysisManager.cc.

1133{
1134// Return first P2 id
1135
1136 return fP2HnManager->GetFirstId();
1137}

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

311{
312 return fVFileManager->GetHistoDirectoryName();
313}

◆ GetNofH1s()

G4int G4VAnalysisManager::GetNofH1s ( ) const

Definition at line 1156 of file G4VAnalysisManager.cc.

1157{
1158 return fH1HnManager->GetNofHns();
1159}

◆ GetNofH2s()

G4int G4VAnalysisManager::GetNofH2s ( ) const

Definition at line 1162 of file G4VAnalysisManager.cc.

1163{
1164 return fH2HnManager->GetNofHns();
1165}

◆ GetNofH3s()

G4int G4VAnalysisManager::GetNofH3s ( ) const

Definition at line 1168 of file G4VAnalysisManager.cc.

1169{
1170 return fH3HnManager->GetNofHns();
1171}

◆ GetNofNtuples()

G4int G4VAnalysisManager::GetNofNtuples ( ) const

Definition at line 1186 of file G4VAnalysisManager.cc.

1187{
1188 return fVNtupleManager->GetNofNtuples();
1189}

◆ GetNofP1s()

G4int G4VAnalysisManager::GetNofP1s ( ) const

Definition at line 1174 of file G4VAnalysisManager.cc.

1175{
1176 return fP1HnManager->GetNofHns();
1177}

◆ GetNofP2s()

G4int G4VAnalysisManager::GetNofP2s ( ) const

Definition at line 1180 of file G4VAnalysisManager.cc.

1181{
1182 return fP2HnManager->GetNofHns();
1183}

◆ GetNtupleActivation()

G4bool G4VAnalysisManager::GetNtupleActivation ( G4int  id) const

◆ GetNtupleDirectoryName()

G4String G4VAnalysisManager::GetNtupleDirectoryName ( ) const

Definition at line 316 of file G4VAnalysisManager.cc.

317{
318 return fVFileManager->GetNtupleDirectoryName();
319}

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

1063{
1064// Return true if activation option is selected and any of managers has
1065// an activated object.
1066
1067 return fState.GetIsActivation() &&
1068 ( fH1HnManager->IsActive() ||
1069 fH2HnManager->IsActive() ||
1070 fH3HnManager->IsActive() ||
1071 fP1HnManager->IsActive() ||
1072 fP2HnManager->IsActive() );
1073}

◆ IsAscii()

G4bool G4VAnalysisManager::IsAscii ( ) const

Definition at line 1076 of file G4VAnalysisManager.cc.

1077{
1078// Return true any of managers has an object with activated ASCII option.
1079
1080 return ( fH1HnManager->IsAscii() ||
1081 fH2HnManager->IsAscii() ||
1082 fH3HnManager->IsAscii() ||
1083 fP1HnManager->IsAscii() ||
1084 fP2HnManager->IsAscii() );
1085}

Referenced by G4GenericAnalysisManager::WriteImpl(), G4Hdf5AnalysisManager::WriteImpl(), G4XmlAnalysisManager::WriteImpl(), and G4RootAnalysisManager::WriteImpl().

◆ IsOpenFile()

G4bool G4VAnalysisManager::IsOpenFile ( ) const

Definition at line 274 of file G4VAnalysisManager.cc.

275{
276 return IsOpenFileImpl();
277}
virtual G4bool IsOpenFileImpl() const =0

◆ IsOpenFileImpl()

virtual G4bool G4VAnalysisManager::IsOpenFileImpl ( ) const
protectedpure virtual

◆ IsPlotting()

G4bool G4VAnalysisManager::IsPlotting ( ) const

Definition at line 1088 of file G4VAnalysisManager.cc.

1089{
1090// Return true any of managers has an object with activated plotting option.
1091
1092 return ( fH1HnManager->IsPlotting() ||
1093 fH2HnManager->IsPlotting() ||
1094 fH3HnManager->IsPlotting() ||
1095 fP1HnManager->IsPlotting() ||
1096 fP2HnManager->IsPlotting() );
1097}

Referenced by Write().

◆ Merge()

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

Definition at line 262 of file G4VAnalysisManager.cc.

263{
264 return MergeImpl(hmpi);
265}
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().

◆ OpenFile()

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

Definition at line 221 of file G4VAnalysisManager.cc.

222{
223 if ( fileName != "" ) {
224 return OpenFileImpl(fileName);
225 }
226 else {
227 if ( fVFileManager->GetFileName() == "" ) {
228 G4ExceptionDescription description;
229 description
230 << "Cannot open file. File name is not defined.";
231 G4Exception("G4VFileManager::OpenFile()",
232 "Analysis_W001", JustWarning, description);
233 return false;
234 }
235 return OpenFileImpl(fVFileManager->GetFileName());
236 }
237}
@ JustWarning
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40
virtual G4bool OpenFileImpl(const G4String &fileName)=0

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

◆ OpenFileImpl()

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

◆ Plot()

G4bool G4VAnalysisManager::Plot ( )

Definition at line 268 of file G4VAnalysisManager.cc.

269{
270 return PlotImpl();
271}
virtual G4bool PlotImpl()=0

◆ PlotImpl()

virtual G4bool G4VAnalysisManager::PlotImpl ( )
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Referenced by Plot(), and Write().

◆ ScaleH1()

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

Definition at line 556 of file G4VAnalysisManager.cc.

557{
558 return fVH1Manager->ScaleH1(id, factor);
559}

◆ ScaleH2()

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

Definition at line 562 of file G4VAnalysisManager.cc.

563{
564 return fVH2Manager->ScaleH2(id, factor);
565}

◆ ScaleH3()

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

Definition at line 568 of file G4VAnalysisManager.cc.

569{
570 return fVH3Manager->ScaleH3(id, factor);
571}

◆ ScaleP1()

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

Definition at line 754 of file G4VAnalysisManager.cc.

755{
756 return fVP1Manager->ScaleP1(id, factor);
757}

◆ ScaleP2()

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

Definition at line 760 of file G4VAnalysisManager.cc.

761{
762 return fVP2Manager->ScaleP2(id, factor);
763}

◆ SetActivation()

void G4VAnalysisManager::SetActivation ( G4bool  activation)

Definition at line 1054 of file G4VAnalysisManager.cc.

1055{
1056 fState.SetIsActivation(activation);
1057}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetBasketEntries()

void G4VAnalysisManager::SetBasketEntries ( unsigned int  basketEntries)
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 873 of file G4VAnalysisManager.cc.

874{
875// The function is overridden in the managers which supports ntuple merging
876// Here we give just a warning that the feature is not available.
877
878 NtupleMergingWarning("G4VAnalysisManager::SetBasketEntries", GetType());
879}
G4String GetType() const

◆ SetBasketSize()

void G4VAnalysisManager::SetBasketSize ( unsigned int  basketSize)
virtual

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 864 of file G4VAnalysisManager.cc.

865{
866// The function is overridden in the managers which supports ntuple merging
867// Here we give just a warning that the feature is not available.
868
869 NtupleMergingWarning("G4VAnalysisManager::SetBasketSize", GetType());
870}

◆ SetCompressionLevel()

void G4VAnalysisManager::SetCompressionLevel ( G4int  level)

Definition at line 298 of file G4VAnalysisManager.cc.

299{
300 fState.SetCompressionLevel(level);
301}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ SetFileManager()

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

Definition at line 148 of file G4VAnalysisManager.cc.

149{
150 fVFileManager = fileManager;
151
152 if ( fH1HnManager != nullptr ) fH1HnManager->SetFileManager(fileManager);
153 if ( fH2HnManager != nullptr ) fH2HnManager->SetFileManager(fileManager);
154 if ( fH3HnManager != nullptr ) fH3HnManager->SetFileManager(fileManager);
155 if ( fP1HnManager != nullptr ) fP1HnManager->SetFileManager(fileManager);
156 if ( fP2HnManager != nullptr ) fP2HnManager->SetFileManager(fileManager);
157}

Referenced by G4CsvAnalysisManager::G4CsvAnalysisManager(), G4GenericAnalysisManager::G4GenericAnalysisManager(), G4Hdf5AnalysisManager::G4Hdf5AnalysisManager(), G4RootAnalysisManager::G4RootAnalysisManager(), and G4XmlAnalysisManager::G4XmlAnalysisManager().

◆ SetFileName()

G4bool G4VAnalysisManager::SetFileName ( const G4String fileName)

Definition at line 280 of file G4VAnalysisManager.cc.

281{
282 return fVFileManager->SetFileName(fileName);
283}

Referenced by G4FileMessenger::SetNewValue().

◆ SetFirstH1Id()

G4bool G4VAnalysisManager::SetFirstH1Id ( G4int  firstId)

Definition at line 976 of file G4VAnalysisManager.cc.

977{
978 return fH1HnManager->SetFirstId(firstId);
979}

Referenced by SetFirstHistoId().

◆ SetFirstH2Id()

G4bool G4VAnalysisManager::SetFirstH2Id ( G4int  firstId)

Definition at line 982 of file G4VAnalysisManager.cc.

983{
984 return fH2HnManager->SetFirstId(firstId);
985}

Referenced by SetFirstHistoId().

◆ SetFirstH3Id()

G4bool G4VAnalysisManager::SetFirstH3Id ( G4int  firstId)

Definition at line 988 of file G4VAnalysisManager.cc.

989{
990 return fH3HnManager->SetFirstId(firstId);
991}

Referenced by SetFirstHistoId().

◆ SetFirstHistoId()

G4bool G4VAnalysisManager::SetFirstHistoId ( G4int  firstId)

Definition at line 959 of file G4VAnalysisManager.cc.

960{
961 G4bool finalResult = true;
962
963 G4bool result = SetFirstH1Id(firstId);
964 finalResult = finalResult && result;
965
966 result = SetFirstH2Id(firstId);
967 finalResult = finalResult && result;
968
969 result = SetFirstH3Id(firstId);
970 finalResult = finalResult && result;
971
972 return finalResult;
973}
bool G4bool
Definition: G4Types.hh:86
G4bool SetFirstH3Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)
G4bool SetFirstH1Id(G4int firstId)

◆ SetFirstNtupleColumnId()

G4bool G4VAnalysisManager::SetFirstNtupleColumnId ( G4int  firstId)

Definition at line 1036 of file G4VAnalysisManager.cc.

1037{
1038 auto finalResult = true;
1039
1040 auto result = fNtupleBookingManager->SetFirstNtupleColumnId(firstId);
1041 finalResult = finalResult && result;
1042
1043 if ( fVNtupleManager ) {
1044 result = fVNtupleManager->SetFirstNtupleColumnId(firstId);
1045 finalResult = finalResult && result;
1046 }
1047
1048 return finalResult;
1049}

◆ SetFirstNtupleId()

G4bool G4VAnalysisManager::SetFirstNtupleId ( G4int  firstId)

Definition at line 1020 of file G4VAnalysisManager.cc.

1021{
1022 auto finalResult = true;
1023
1024 auto result = fNtupleBookingManager->SetFirstId(firstId);
1025 finalResult = finalResult && result;
1026
1027 if ( fVNtupleManager ) {
1028 result = fVNtupleManager->SetFirstId(firstId);
1029 finalResult = finalResult && result;
1030 }
1031
1032 return finalResult;
1033}

◆ SetFirstP1Id()

G4bool G4VAnalysisManager::SetFirstP1Id ( G4int  firstId)

Definition at line 1008 of file G4VAnalysisManager.cc.

1009{
1010 return fP1HnManager->SetFirstId(firstId);
1011}

Referenced by SetFirstProfileId().

◆ SetFirstP2Id()

G4bool G4VAnalysisManager::SetFirstP2Id ( G4int  firstId)

Definition at line 1014 of file G4VAnalysisManager.cc.

1015{
1016 return fP2HnManager->SetFirstId(firstId);
1017}

Referenced by SetFirstProfileId().

◆ SetFirstProfileId()

G4bool G4VAnalysisManager::SetFirstProfileId ( G4int  firstId)

Definition at line 994 of file G4VAnalysisManager.cc.

995{
996 G4bool finalResult = true;
997
998 G4bool result = SetFirstP1Id(firstId);
999 finalResult = finalResult && result;
1000
1001 result = SetFirstP2Id(firstId);
1002 finalResult = finalResult && result;
1003
1004 return finalResult;
1005}
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 463 of file G4VAnalysisManager.cc.

466{
467 if ( ! CheckEdges(edges) ) return kInvalidId;
468
469 return fVH1Manager->SetH1(id, edges, unitName, fcnName);
470}

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

455{
456 if ( ! CheckNbins(nbins) ) return kInvalidId;
457 if ( ! CheckMinMax(xmin, xmax, fcnName, binSchemeName) ) return kInvalidId;
458
459 return fVH1Manager->SetH1(id, nbins, xmin, xmax, unitName, fcnName, binSchemeName);
460}

Referenced by G4H1Messenger::SetNewValue().

◆ SetH1Activation() [1/2]

void G4VAnalysisManager::SetH1Activation ( G4bool  activation)

Definition at line 1202 of file G4VAnalysisManager.cc.

1203{
1204// Set activation to all H1 objects
1205
1206 fH1HnManager->SetActivation(activation);
1207}

◆ SetH1Activation() [2/2]

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

Definition at line 1194 of file G4VAnalysisManager.cc.

1195{
1196// Set activation to a given H1 object
1197
1198 fH1HnManager->SetActivation(id, activation);
1199}

◆ SetH1Ascii()

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

Definition at line 1210 of file G4VAnalysisManager.cc.

1211{
1212 fH1HnManager->SetAscii(id, ascii);
1213}

◆ SetH1FileName()

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

Definition at line 1222 of file G4VAnalysisManager.cc.

1223{
1224 fH1HnManager->SetFileName(id, fileName);
1225}

◆ SetH1Manager()

void G4VAnalysisManager::SetH1Manager ( G4VH1Manager h1Manager)
protected

Definition at line 95 of file G4VAnalysisManager.cc.

96{
97 fVH1Manager.reset(h1Manager);
98 fH1HnManager = h1Manager->GetHnManager();
99 fMessenger->SetH1HnManager(*fH1HnManager);
100 if (fVFileManager != nullptr ) fH1HnManager->SetFileManager(fVFileManager);
101}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH1Plotting()

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

Definition at line 1216 of file G4VAnalysisManager.cc.

1217{
1218 fH1HnManager->SetPlotting(id, plotting);
1219}

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

498{
499 if ( ! CheckEdges(xedges) ) return kInvalidId;
500 if ( ! CheckEdges(yedges) ) return kInvalidId;
501
502 return fVH2Manager->SetH2(id, xedges, yedges,
503 xunitName, yunitName, xfcnName, yfcnName);
504}

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

480{
481 if ( ! CheckNbins(nxbins) ) return kInvalidId;
482 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
483
484 if ( ! CheckNbins(nybins) ) return kInvalidId;
485 if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
486
487 return fVH2Manager->SetH2(id, nxbins, xmin, xmax, nybins, ymin, ymax,
488 xunitName, yunitName, xfcnName, yfcnName,
489 xbinSchemeName, ybinSchemeName);
490}

Referenced by G4H2Messenger::SetNewValue().

◆ SetH2Activation() [1/2]

void G4VAnalysisManager::SetH2Activation ( G4bool  activation)

Definition at line 1236 of file G4VAnalysisManager.cc.

1237{
1238// Set activation to all H2 objects
1239
1240 fH2HnManager->SetActivation(activation);
1241}

◆ SetH2Activation() [2/2]

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

Definition at line 1228 of file G4VAnalysisManager.cc.

1229{
1230// Set activation to a given H2 object
1231
1232 fH2HnManager->SetActivation(id, activation);
1233}

◆ SetH2Ascii()

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

Definition at line 1244 of file G4VAnalysisManager.cc.

1245{
1246 fH2HnManager->SetAscii(id, ascii);
1247}

◆ SetH2FileName()

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

Definition at line 1256 of file G4VAnalysisManager.cc.

1257{
1258 fH2HnManager->SetFileName(id, fileName);
1259}

◆ SetH2Manager()

void G4VAnalysisManager::SetH2Manager ( G4VH2Manager h2Manager)
protected

Definition at line 104 of file G4VAnalysisManager.cc.

105{
106 fVH2Manager.reset(h2Manager);
107 fH2HnManager = h2Manager->GetHnManager();
108 fMessenger->SetH2HnManager(*fH2HnManager);
109 if (fVFileManager != nullptr ) fH2HnManager->SetFileManager(fVFileManager);
110}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH2Plotting()

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

Definition at line 1250 of file G4VAnalysisManager.cc.

1251{
1252 fH2HnManager->SetPlotting(id, plotting);
1253}

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

545{
546 if ( ! CheckEdges(xedges) ) return kInvalidId;
547 if ( ! CheckEdges(yedges) ) return kInvalidId;
548 if ( ! CheckEdges(zedges) ) return kInvalidId;
549
550 return fVH3Manager->SetH3(id, xedges, yedges, zedges,
551 xunitName, yunitName, zunitName,
552 xfcnName, yfcnName, zfcnName);
553}

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

518{
519 if ( ! CheckNbins(nxbins) ) return kInvalidId;
520 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
521
522 if ( ! CheckNbins(nybins) ) return kInvalidId;
523 if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
524
525 if ( ! CheckNbins(nzbins) ) return kInvalidId;
526 if ( ! CheckMinMax(zmin, zmax, zfcnName, zbinSchemeName) ) return kInvalidId;
527
528 return fVH3Manager->SetH3(id,
529 nxbins, xmin, xmax, nybins, ymin, ymax,
530 nzbins, zmin, zmax,
531 xunitName, yunitName, zunitName,
532 xfcnName, yfcnName, zfcnName,
533 xbinSchemeName, ybinSchemeName, zbinSchemeName);
534}

Referenced by G4H3Messenger::SetNewValue().

◆ SetH3Activation() [1/2]

void G4VAnalysisManager::SetH3Activation ( G4bool  activation)

Definition at line 1270 of file G4VAnalysisManager.cc.

1271{
1272// Set activation to all H3 objects
1273
1274 fH3HnManager->SetActivation(activation);
1275}

◆ SetH3Activation() [2/2]

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

Definition at line 1262 of file G4VAnalysisManager.cc.

1263{
1264// Set activation to a given H3 object
1265
1266 fH3HnManager->SetActivation(id, activation);
1267}

◆ SetH3Ascii()

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

Definition at line 1278 of file G4VAnalysisManager.cc.

1279{
1280 fH3HnManager->SetAscii(id, ascii);
1281}

◆ SetH3FileName()

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

Definition at line 1290 of file G4VAnalysisManager.cc.

1291{
1292 fH3HnManager->SetFileName(id, fileName);
1293}

◆ SetH3Manager()

void G4VAnalysisManager::SetH3Manager ( G4VH3Manager h3Manager)
protected

Definition at line 113 of file G4VAnalysisManager.cc.

114{
115 fVH3Manager.reset(h3Manager);
116 fH3HnManager = h3Manager->GetHnManager();
117 fMessenger->SetH3HnManager(*fH3HnManager);
118 if (fVFileManager != nullptr ) fH3HnManager->SetFileManager(fVFileManager);
119}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetH3Plotting()

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

Definition at line 1284 of file G4VAnalysisManager.cc.

1285{
1286 fH3HnManager->SetPlotting(id, plotting);
1287}

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

287{
288 return fVFileManager->SetHistoDirectoryName(dirName);
289}

Referenced by G4FileMessenger::SetNewValue().

◆ SetNtupleActivation() [1/2]

void G4VAnalysisManager::SetNtupleActivation ( G4bool  activation)

Definition at line 1375 of file G4VAnalysisManager.cc.

1376{
1377// Set activation to all ntuple objects
1378
1379 fNtupleBookingManager->SetActivation(activation);
1380 if ( fVNtupleManager ) {
1381 fVNtupleManager->SetActivation(activation);
1382 }
1383}

Referenced by G4NtupleMessenger::SetNewValue().

◆ SetNtupleActivation() [2/2]

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

Definition at line 1364 of file G4VAnalysisManager.cc.

1365{
1366// Set activation to a given ntuple object
1367
1368 fNtupleBookingManager->SetActivation(id, activation);
1369 if ( fVNtupleManager ) {
1370 fVNtupleManager->SetActivation(id, activation);
1371 }
1372}

◆ SetNtupleDirectoryName()

G4bool G4VAnalysisManager::SetNtupleDirectoryName ( const G4String dirName)

Definition at line 292 of file G4VAnalysisManager.cc.

293{
294 return fVFileManager->SetNtupleDirectoryName(dirName);
295}

Referenced by G4FileMessenger::SetNewValue().

◆ SetNtupleFileName() [1/2]

void G4VAnalysisManager::SetNtupleFileName ( const G4String fileName)

Definition at line 1394 of file G4VAnalysisManager.cc.

1395{
1396// Set activation to all P2 objects
1397
1398 fNtupleBookingManager->SetFileName(fileName);
1399}

Referenced by G4NtupleMessenger::SetNewValue().

◆ SetNtupleFileName() [2/2]

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

Definition at line 1386 of file G4VAnalysisManager.cc.

1387{
1388// Set activation to a given P2 object
1389
1390 fNtupleBookingManager->SetFileName(id, fileName);
1391}

◆ SetNtupleManager()

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

◆ SetNtupleMerging()

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

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 844 of file G4VAnalysisManager.cc.

846{
847// The function is overridden in the managers which supports ntuple merging
848// Here we give just a warning that the feature is not available.
849
850 NtupleMergingWarning("G4VAnalysisManager::SetNtupleMerging", GetType());
851}

◆ SetNtupleRowWise()

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

Reimplemented in G4GenericAnalysisManager, and G4RootAnalysisManager.

Definition at line 854 of file G4VAnalysisManager.cc.

856{
857// The function is overridden in the managers which supports ntuple merging
858// Here we give just a warning that the feature is not available.
859
860 NtupleMergingWarning("G4VAnalysisManager::SetNtupleRowWise", GetType());
861}

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

690{
691 if ( ! CheckEdges(edges) ) return kInvalidId;
692 if ( ymin != 0. || ymax != 0. ) {
693 // Do not check default values
694 if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
695 }
696
697 return fVP1Manager->SetP1(id, edges, ymin, ymax,
698 xunitName, yunitName, xfcnName, yfcnName);
699}

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

671{
672 if ( ! CheckNbins(nbins) ) return kInvalidId;
673 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
674 if ( ymin != 0. || ymax != 0. ) {
675 // Do not check default values
676 if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
677 }
678
679 return fVP1Manager->SetP1(id, nbins, xmin, xmax, ymin, ymax,
680 xunitName, yunitName, xfcnName, yfcnName,
681 xbinSchemeName);
682}

Referenced by G4P1Messenger::SetNewValue().

◆ SetP1Activation() [1/2]

void G4VAnalysisManager::SetP1Activation ( G4bool  activation)

Definition at line 1304 of file G4VAnalysisManager.cc.

1305{
1306// Set activation to all P1 objects
1307
1308 fP1HnManager->SetActivation(activation);
1309}

◆ SetP1Activation() [2/2]

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

Definition at line 1296 of file G4VAnalysisManager.cc.

1297{
1298// Set activation to a given P1 object
1299
1300 fP1HnManager->SetActivation(id, activation);
1301}

◆ SetP1Ascii()

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

Definition at line 1312 of file G4VAnalysisManager.cc.

1313{
1314 fP1HnManager->SetAscii(id, ascii);
1315}

◆ SetP1FileName()

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

Definition at line 1324 of file G4VAnalysisManager.cc.

1325{
1326 fP1HnManager->SetFileName(id, fileName);
1327}

◆ SetP1Manager()

void G4VAnalysisManager::SetP1Manager ( G4VP1Manager p1Manager)
protected

Definition at line 122 of file G4VAnalysisManager.cc.

123{
124 fVP1Manager.reset(p1Manager);
125 fP1HnManager = p1Manager->GetHnManager();
126 fMessenger->SetP1HnManager(*fP1HnManager);
127 if (fVFileManager != nullptr ) fP1HnManager->SetFileManager(fVFileManager);
128}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetP1Plotting()

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

Definition at line 1318 of file G4VAnalysisManager.cc.

1319{
1320 fP1HnManager->SetPlotting(id, plotting);
1321}

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

740{
741 if ( ! CheckEdges(xedges) ) return kInvalidId;
742 if ( ! CheckEdges(yedges) ) return kInvalidId;
743 if ( zmin != 0. || zmax != 0. ) {
744 // Do not check default values
745 if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
746 }
747
748 return fVP2Manager->SetP2(id, xedges, yedges, zmin, zmax,
749 xunitName, yunitName, zunitName,
750 xfcnName, yfcnName, zfcnName);
751}

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

712{
713 if ( ! CheckNbins(nxbins) ) return kInvalidId;
714 if ( ! CheckNbins(nybins) ) return kInvalidId;
715 if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
716 if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
717 if ( zmin != 0. || zmax != 0. ) {
718 // Do not check default values
719 if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
720 }
721
722 return fVP2Manager->SetP2(id, nxbins, xmin, xmax, nybins, ymin, ymax,
723 zmin, zmax,
724 xunitName, yunitName, zunitName,
725 xfcnName, yfcnName, zfcnName,
726 xbinSchemeName, ybinSchemeName);
727}

Referenced by G4P2Messenger::SetNewValue().

◆ SetP2Activation() [1/2]

void G4VAnalysisManager::SetP2Activation ( G4bool  activation)

Definition at line 1338 of file G4VAnalysisManager.cc.

1339{
1340// Set activation to all P2 objects
1341
1342 fP2HnManager->SetActivation(activation);
1343}

◆ SetP2Activation() [2/2]

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

Definition at line 1330 of file G4VAnalysisManager.cc.

1331{
1332// Set activation to a given P2 object
1333
1334 fP2HnManager->SetActivation(id, activation);
1335}

◆ SetP2Ascii()

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

Definition at line 1346 of file G4VAnalysisManager.cc.

1347{
1348 fP2HnManager->SetAscii(id, ascii);
1349}

◆ SetP2FileName()

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

Definition at line 1358 of file G4VAnalysisManager.cc.

1359{
1360 fP2HnManager->SetFileName(id, fileName);
1361}

◆ SetP2Manager()

void G4VAnalysisManager::SetP2Manager ( G4VP2Manager p2Manager)
protected

Definition at line 131 of file G4VAnalysisManager.cc.

132{
133 fVP2Manager.reset(p2Manager);
134 fP2HnManager = p2Manager->GetHnManager();
135 fMessenger->SetP2HnManager(*fP2HnManager);
136 if (fVFileManager != nullptr ) fP2HnManager->SetFileManager(fVFileManager);
137}
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetP2Plotting()

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

Definition at line 1352 of file G4VAnalysisManager.cc.

1353{
1354 fP2HnManager->SetPlotting(id, plotting);
1355}

◆ 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 
)

◆ SetPlotManager()

void G4VAnalysisManager::SetPlotManager ( std::shared_ptr< G4PlotManager plotManager)
protected

Definition at line 160 of file G4VAnalysisManager.cc.

161{
162 fPlotManager = plotManager;
163}

Referenced by G4ToolsAnalysisManager::G4ToolsAnalysisManager().

◆ SetVerboseLevel()

void G4VAnalysisManager::SetVerboseLevel ( G4int  verboseLevel)

Definition at line 1404 of file G4VAnalysisManager.cc.

1405{
1406 fState.SetVerboseLevel(verboseLevel);
1407}

Referenced by G4AnalysisMessenger::SetNewValue().

◆ Write()

G4bool G4VAnalysisManager::Write ( )

Definition at line 240 of file G4VAnalysisManager.cc.

241{
242 G4bool finalResult = true;
243
244 G4bool result = WriteImpl();
245 finalResult = finalResult && result;
246
247 if ( IsPlotting() ) {
248 result = PlotImpl();
249 finalResult = finalResult && result;
250 }
251
252 return finalResult;
253}
virtual G4bool WriteImpl()=0

◆ WriteAscii()

G4bool G4VAnalysisManager::WriteAscii ( const G4String fileName)
protected

Definition at line 166 of file G4VAnalysisManager.cc.

167{
168 G4bool finalResult = true;
169
170 // Replace or add file extension .ascii
171 G4String name(fileName);
172 if ( name.find(".") != std::string::npos ) {
173 name.erase(name.find("."), name.length());
174 }
175 name.append(".ascii");
176
177#ifdef G4VERBOSE
178 if ( fState.GetVerboseL3() )
179 fState.GetVerboseL3()->Message("write ASCII", "file", name);
180#endif
181
182 std::ofstream output(name, std::ios::out);
183 if ( ! output ) {
184 G4ExceptionDescription description;
185 description
186 << "Cannot open file. File name is not defined.";
187 G4Exception("G4VAnalysisManager::WriteAscii()",
188 "Analysis_W001", JustWarning, description);
189 return false;
190 }
191 output.setf( std::ios::scientific, std::ios::floatfield );
192
193 G4bool result = fVH1Manager->WriteOnAscii(output);
194 finalResult = finalResult && result;
195
196 result = fVH2Manager->WriteOnAscii(output);
197 finalResult = finalResult && result;
198
199 result = fVH3Manager->WriteOnAscii(output);
200 finalResult = finalResult && result;
201
202 //result = fVP1Manager->WriteOnAscii(output);
203 //finalResult = finalResult && result;
204
205 //result = fVP2Manager->WriteOnAscii(output);
206 //finalResult = finalResult && result;
207
208#ifdef G4VERBOSE
209 if ( fState.GetVerboseL1() )
210 fState.GetVerboseL1()->Message("write ASCII", "file", name, result);
211#endif
212
213 return finalResult;
214}
const G4AnalysisVerbose * GetVerboseL3() const
const G4AnalysisVerbose * GetVerboseL1() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
const char * name(G4int ptype)

Referenced by G4GenericAnalysisManager::WriteImpl(), G4Hdf5AnalysisManager::WriteImpl(), G4XmlAnalysisManager::WriteImpl(), and G4RootAnalysisManager::WriteImpl().

◆ WriteImpl()

virtual G4bool G4VAnalysisManager::WriteImpl ( )
protectedpure virtual

Member Data Documentation

◆ fgkDefaultBasketEntries

constexpr unsigned int G4VAnalysisManager::fgkDefaultBasketEntries = 4000
staticconstexprprotected

Definition at line 654 of file G4VAnalysisManager.hh.

Referenced by G4RootAnalysisManager::G4RootAnalysisManager().

◆ fgkDefaultBasketSize

constexpr unsigned int G4VAnalysisManager::fgkDefaultBasketSize = 32000
staticconstexprprotected

Definition at line 653 of file G4VAnalysisManager.hh.

Referenced by G4RootAnalysisManager::G4RootAnalysisManager().

◆ fNtupleBookingManager

◆ fPlotManager

std::shared_ptr<G4PlotManager> G4VAnalysisManager::fPlotManager
protected

Definition at line 659 of file G4VAnalysisManager.hh.

Referenced by G4ToolsAnalysisManager::PlotImpl(), and SetPlotManager().

◆ fState

◆ fVFileManager

◆ fVNtupleManager

std::shared_ptr<G4VNtupleManager> G4VAnalysisManager::fVNtupleManager
protected

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