ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4RootAnalysisManager Class Reference

#include <geant4/tree/geant4-10.6-release/source/analysis/root/include/G4RootAnalysisManager.hh>

+ Inheritance diagram for G4RootAnalysisManager:
+ Collaboration diagram for G4RootAnalysisManager:

Public Member Functions

 G4RootAnalysisManager (G4bool isMaster=true)
 
virtual ~G4RootAnalysisManager ()
 
tools::wroot::ntupleGetNtuple () const
 
tools::wroot::ntupleGetNtuple (G4int ntupleId) const
 
std::vector
< tools::wroot::ntuple * >
::iterator 
BeginNtuple ()
 
std::vector
< tools::wroot::ntuple * >
::iterator 
EndNtuple ()
 
std::vector
< tools::wroot::ntuple * >
::const_iterator 
BeginConstNtuple () const
 
std::vector
< tools::wroot::ntuple * >
::const_iterator 
EndConstNtuple () const
 
virtual void SetNtupleMerging (G4bool mergeNtuples, G4int nofReducedNtupleFiles=0) override
 
virtual void SetNtupleRowWise (G4bool rowWise, G4bool rowMode=true) override
 
virtual void SetBasketSize (unsigned int basketSize) override
 
virtual void SetBasketEntries (unsigned int basketEntries) override
 
- Public Member Functions inherited from G4ToolsAnalysisManager
 G4ToolsAnalysisManager (const G4String &type, G4bool isMaster=true)
 
virtual ~G4ToolsAnalysisManager ()
 
tools::histo::h1dGetH1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::h2d * GetH2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::h3d * GetH3 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::p1d * GetP1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
tools::histo::p2d * GetP2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
std::vector< tools::histo::h1d * >
::iterator 
BeginH1 ()
 
std::vector< tools::histo::h1d * >
::iterator 
EndH1 ()
 
std::vector< tools::histo::h1d * >
::const_iterator 
BeginConstH1 () const
 
std::vector< tools::histo::h1d * >
::const_iterator 
EndConstH1 () const
 
std::vector< tools::histo::h2d * >
::iterator 
BeginH2 ()
 
std::vector< tools::histo::h2d * >
::iterator 
EndH2 ()
 
std::vector< tools::histo::h2d * >
::const_iterator 
BeginConstH2 () const
 
std::vector< tools::histo::h2d * >
::const_iterator 
EndConstH2 () const
 
std::vector< tools::histo::h3d * >
::iterator 
BeginH3 ()
 
std::vector< tools::histo::h3d * >
::iterator 
EndH3 ()
 
std::vector< tools::histo::h3d * >
::const_iterator 
BeginConstH3 () const
 
std::vector< tools::histo::h3d * >
::const_iterator 
EndConstH3 () const
 
std::vector< tools::histo::p1d * >
::iterator 
BeginP1 ()
 
std::vector< tools::histo::p1d * >
::iterator 
EndP1 ()
 
std::vector< tools::histo::p1d * >
::const_iterator 
BeginConstP1 () const
 
std::vector< tools::histo::p1d * >
::const_iterator 
EndConstP1 () const
 
std::vector< tools::histo::p2d * >
::iterator 
BeginP2 ()
 
std::vector< tools::histo::p2d * >
::iterator 
EndP2 ()
 
std::vector< tools::histo::p2d * >
::const_iterator 
BeginConstP2 () const
 
std::vector< tools::histo::p2d * >
::const_iterator 
EndConstP2 () const
 
std::vector
< tools::wroot::ntuple * >
::iterator 
BeginNtuple ()
 
std::vector
< tools::wroot::ntuple * >
::iterator 
EndNtuple ()
 
std::vector
< tools::wroot::ntuple * >
::const_iterator 
BeginConstNtuple () const
 
std::vector
< tools::wroot::ntuple * >
::const_iterator 
EndConstNtuple () const
 
- Public Member Functions inherited from G4VAnalysisManager
 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)
 
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 SetH2Activation (G4bool activation)
 
void SetH2Activation (G4int id, G4bool activation)
 
void SetH2Ascii (G4int id, G4bool ascii)
 
void SetH2Plotting (G4int id, G4bool plotting)
 
void SetH3Activation (G4bool activation)
 
void SetH3Activation (G4int id, G4bool activation)
 
void SetH3Ascii (G4int id, G4bool ascii)
 
void SetH3Plotting (G4int id, G4bool plotting)
 
void SetP1Activation (G4bool activation)
 
void SetP1Activation (G4int id, G4bool activation)
 
void SetP1Ascii (G4int id, G4bool ascii)
 
void SetP1Plotting (G4int id, G4bool plotting)
 
void SetP2Activation (G4bool activation)
 
void SetP2Activation (G4int id, G4bool activation)
 
void SetP2Ascii (G4int id, G4bool ascii)
 
void SetP2Plotting (G4int id, G4bool plotting)
 
void SetNtupleActivation (G4bool activation)
 
void SetNtupleActivation (G4int id, G4bool activation)
 
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 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
 
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
 

Static Public Member Functions

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

Protected Member Functions

virtual G4bool OpenFileImpl (const G4String &fileName) override
 
virtual G4bool WriteImpl () final
 
virtual G4bool CloseFileImpl (G4bool reset) override
 
virtual G4bool IsOpenFileImpl () const final
 
virtual G4bool WriteNtuple ()
 
virtual G4bool Reset ()
 
- Protected Member Functions inherited from G4ToolsAnalysisManager
virtual G4bool PlotImpl () final
 
virtual G4bool MergeImpl (tools::histo::hmpi *hmpi) final
 
G4bool Reset ()
 
- Protected Member Functions inherited from G4VAnalysisManager
void SetH1Manager (G4VH1Manager *h1Manager)
 
void SetH2Manager (G4VH2Manager *h2Manager)
 
void SetH3Manager (G4VH3Manager *h3Manager)
 
void SetP1Manager (G4VP1Manager *p1Manager)
 
void SetP2Manager (G4VP2Manager *p2Manager)
 
void SetNtupleManager (G4VNtupleManager *ntupleManager)
 
void SetFileManager (std::shared_ptr< G4VFileManager > fileManager)
 
void SetPlotManager (std::shared_ptr< G4PlotManager > plotManager)
 
G4bool WriteAscii (const G4String &fileName)
 

Private Member Functions

void SetNtupleMergingMode (G4bool mergeNtuples, G4int nofNtupleFiles)
 
void ClearNtupleManagers ()
 
void CreateNtupleManagers ()
 
G4int GetNtupleFileNumber ()
 
G4bool ResetNtuple ()
 
template<typename T >
G4bool WriteT (const std::vector< T * > &htVector, const std::vector< G4HnInformation * > &hnVector, tools::wroot::directory *directory, const G4String &hnType)
 
G4bool WriteH1 ()
 
G4bool WriteH2 ()
 
G4bool WriteH3 ()
 
G4bool WriteP1 ()
 
G4bool WriteP2 ()
 

Private Attributes

G4int fNofNtupleFiles
 
G4bool fNtupleRowWise
 
G4bool fNtupleRowMode
 
G4NtupleMergeMode fNtupleMergeMode
 
G4RootNtupleManagerfNtupleManager
 
G4RootPNtupleManagerfSlaveNtupleManager
 
std::shared_ptr
< G4RootFileManager
fFileManager
 

Static Private Attributes

static G4RootAnalysisManagerfgMasterInstance = nullptr
 
static G4ThreadLocal
G4RootAnalysisManager
fgInstance = nullptr
 

Friends

class G4RootMpiAnalysisManager
 

Additional Inherited Members

- Protected Attributes inherited from G4ToolsAnalysisManager
G4H1ToolsManagerfH1Manager
 
G4H2ToolsManagerfH2Manager
 
G4H3ToolsManagerfH3Manager
 
G4P1ToolsManagerfP1Manager
 
G4P2ToolsManagerfP2Manager
 
- Static Protected Attributes inherited from G4ToolsAnalysisManager
static G4ThreadLocal
G4ToolsAnalysisManager
fgToolsInstance = nullptr
 

Detailed Description

Definition at line 60 of file G4RootAnalysisManager.hh.

View newest version in sPHENIX GitHub at line 60 of file G4RootAnalysisManager.hh

Constructor & Destructor Documentation

G4RootAnalysisManager::G4RootAnalysisManager ( G4bool  isMaster = true)
explicit

Definition at line 79 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 79 of file G4RootAnalysisManager.cc

References CreateNtupleManagers(), FatalException, fFileManager, fgInstance, G4VAnalysisManager::fgkDefaultBasketEntries, G4VAnalysisManager::fgkDefaultBasketSize, fgMasterInstance, fNofNtupleFiles, G4VAnalysisManager::fState, G4Exception(), G4VAnalysisManager::SetFileManager(), and SetNtupleMergingMode().

Referenced by Instance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4RootAnalysisManager::~G4RootAnalysisManager ( )
virtual

Definition at line 118 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 118 of file G4RootAnalysisManager.cc

References fgInstance, fgMasterInstance, G4VAnalysisManager::fState, and G4AnalysisManagerState::GetIsMaster().

+ Here is the call graph for this function:

Member Function Documentation

std::vector<tools::wroot::ntuple*>::const_iterator G4RootAnalysisManager::BeginConstNtuple ( ) const
std::vector<tools::wroot::ntuple*>::iterator G4RootAnalysisManager::BeginNtuple ( )
void G4RootAnalysisManager::ClearNtupleManagers ( )
private

Definition at line 229 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 229 of file G4RootAnalysisManager.cc

References fNtupleManager, fNtupleMergeMode, fSlaveNtupleManager, G4VAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().

Referenced by G4RootMpiAnalysisManager::SetMpiNtupleMerging(), and SetNtupleMerging().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::CloseFileImpl ( G4bool  reset)
overrideprotectedvirtual

Implements G4VAnalysisManager.

Reimplemented in G4RootMpiAnalysisManager.

Definition at line 624 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 624 of file G4RootAnalysisManager.cc

References fFileManager, G4ToolsAnalysisManager::fH1Manager, G4ToolsAnalysisManager::fH2Manager, G4ToolsAnalysisManager::fH3Manager, fNtupleManager, fNtupleMergeMode, G4ToolsAnalysisManager::fP1Manager, G4ToolsAnalysisManager::fP2Manager, G4VAnalysisManager::fState, G4Exception(), G4AnalysisManagerState::GetIsMaster(), G4AnalysisManagerState::GetVerboseL1(), G4TNtupleManager< TNTUPLE >::IsEmpty(), G4THnManager< T >::IsEmpty(), G4Threading::IsMultithreadedApplication(), JustWarning, G4AnalysisVerbose::Message(), Reset(), and ResetNtuple().

Referenced by G4RootMpiAnalysisManager::CloseFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RootAnalysisManager::CreateNtupleManagers ( )
private

Definition at line 253 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 253 of file G4RootAnalysisManager.cc

References fFileManager, fgMasterInstance, fNofNtupleFiles, fNtupleManager, fNtupleMergeMode, fNtupleRowMode, fNtupleRowWise, fSlaveNtupleManager, G4VAnalysisManager::fState, G4RootNtupleManager::GetMainNtupleManager(), GetNtupleFileNumber(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), G4RootNtupleManager::SetFileManager(), and G4VAnalysisManager::SetNtupleManager().

Referenced by G4RootAnalysisManager(), and SetNtupleMerging().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector<tools::wroot::ntuple*>::const_iterator G4RootAnalysisManager::EndConstNtuple ( ) const
std::vector<tools::wroot::ntuple*>::iterator G4RootAnalysisManager::EndNtuple ( )
tools::wroot::ntuple* G4RootAnalysisManager::GetNtuple ( ) const
tools::wroot::ntuple* G4RootAnalysisManager::GetNtuple ( G4int  ntupleId) const
G4int G4RootAnalysisManager::GetNtupleFileNumber ( )
private

Definition at line 297 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 297 of file G4RootAnalysisManager.cc

References fNofNtupleFiles, G4cout, G4endl, G4Threading::G4GetThreadId(), and G4Threading::GetNumberOfRunningWorkerThreads().

Referenced by CreateNtupleManagers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4RootAnalysisManager * G4RootAnalysisManager::Instance ( void  )
static

Definition at line 62 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 62 of file G4RootAnalysisManager.cc

References fgInstance, G4RootAnalysisManager(), and G4Threading::IsWorkerThread().

Referenced by Histo::Book(), G4Analysis::ManagerInstance(), and Histo::Save().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::IsInstance ( )
static

Definition at line 73 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 73 of file G4RootAnalysisManager.cc

References fgInstance.

virtual G4bool G4RootAnalysisManager::IsOpenFileImpl ( ) const
finalprotectedvirtual

Implements G4VAnalysisManager.

G4bool G4RootAnalysisManager::OpenFileImpl ( const G4String fileName)
overrideprotectedvirtual

Implements G4VAnalysisManager.

Reimplemented in G4RootMpiAnalysisManager.

Definition at line 508 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 508 of file G4RootAnalysisManager.cc

References G4TNtupleManager< TNTUPLE >::CreateNtuplesFromBooking(), G4RootPNtupleManager::CreateNtuplesFromMain(), fFileManager, fNofNtupleFiles, fNtupleManager, fNtupleMergeMode, fSlaveNtupleManager, G4VAnalysisManager::fState, G4cout, G4endl, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4RootNtupleManager::SetNtupleDirectory().

Referenced by G4RootMpiAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::Reset ( )
protectedvirtual

Reimplemented in G4RootMpiAnalysisManager.

Definition at line 488 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 488 of file G4RootAnalysisManager.cc

References G4ToolsAnalysisManager::Reset(), and ResetNtuple().

Referenced by CloseFileImpl(), and G4RootMpiAnalysisManager::Reset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::ResetNtuple ( )
private

Definition at line 472 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 472 of file G4RootAnalysisManager.cc

References fNtupleManager, fNtupleMergeMode, and G4RootNtupleManager::Reset().

Referenced by CloseFileImpl(), and Reset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RootAnalysisManager::SetBasketEntries ( unsigned int  basketEntries)
overridevirtual

Reimplemented from G4VAnalysisManager.

Definition at line 744 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 744 of file G4RootAnalysisManager.cc

References fFileManager.

void G4RootAnalysisManager::SetBasketSize ( unsigned int  basketSize)
overridevirtual

Reimplemented from G4VAnalysisManager.

Definition at line 738 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 738 of file G4RootAnalysisManager.cc

References fFileManager.

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

Reimplemented from G4VAnalysisManager.

Definition at line 686 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 686 of file G4RootAnalysisManager.cc

References ClearNtupleManagers(), CreateNtupleManagers(), and SetNtupleMergingMode().

+ Here is the call graph for this function:

void G4RootAnalysisManager::SetNtupleMergingMode ( G4bool  mergeNtuples,
G4int  nofNtupleFiles 
)
private

Definition at line 129 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 129 of file G4RootAnalysisManager.cc

References fgMasterInstance, fNofNtupleFiles, fNtupleMergeMode, G4VAnalysisManager::fState, G4endl, G4Exception(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4Threading::IsMultithreadedApplication(), G4Threading::IsWorkerThread(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4RootAnalysisManager(), and SetNtupleMerging().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Reimplemented from G4VAnalysisManager.

Definition at line 701 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 701 of file G4RootAnalysisManager.cc

References fNtupleManager, fNtupleRowMode, fNtupleRowWise, fSlaveNtupleManager, G4VAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisVerbose::Message(), G4RootNtupleManager::SetNtupleRowWise(), and G4RootPNtupleManager::SetNtupleRowWise().

+ Here is the call graph for this function:

G4bool G4RootAnalysisManager::WriteH1 ( )
private

Definition at line 313 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 313 of file G4RootAnalysisManager.cc

References G4H1ToolsManager::AddH1Vector(), fFileManager, fgMasterInstance, G4ToolsAnalysisManager::fH1Manager, G4H1ToolsManager::GetH1Vector(), G4H1ToolsManager::GetHnVector(), G4Threading::IsWorkerThread(), G4TemplateAutoLock< _Mutex_t >::unlock(), and WriteT().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::WriteH2 ( )
private

Definition at line 338 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 338 of file G4RootAnalysisManager.cc

References G4H2ToolsManager::AddH2Vector(), fFileManager, fgMasterInstance, G4ToolsAnalysisManager::fH2Manager, G4H2ToolsManager::GetH2Vector(), G4H2ToolsManager::GetHnVector(), G4Threading::IsWorkerThread(), G4TemplateAutoLock< _Mutex_t >::unlock(), and WriteT().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::WriteH3 ( )
private

Definition at line 363 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 363 of file G4RootAnalysisManager.cc

References G4H3ToolsManager::AddH3Vector(), fFileManager, fgMasterInstance, G4ToolsAnalysisManager::fH3Manager, G4H3ToolsManager::GetH3Vector(), G4H3ToolsManager::GetHnVector(), G4Threading::IsWorkerThread(), G4TemplateAutoLock< _Mutex_t >::unlock(), and WriteT().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::WriteImpl ( )
finalprotectedvirtual
G4bool G4RootAnalysisManager::WriteNtuple ( )
protectedvirtual

Reimplemented in G4RootMpiAnalysisManager.

Definition at line 438 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 438 of file G4RootAnalysisManager.cc

References fNtupleManager, fNtupleMergeMode, fSlaveNtupleManager, G4VAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), G4RootNtupleManager::Merge(), G4RootPNtupleManager::Merge(), and G4AnalysisVerbose::Message().

Referenced by WriteImpl(), and G4RootMpiAnalysisManager::WriteNtuple().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::WriteP1 ( )
private

Definition at line 388 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 388 of file G4RootAnalysisManager.cc

References G4P1ToolsManager::AddP1Vector(), fFileManager, fgMasterInstance, G4ToolsAnalysisManager::fP1Manager, G4P1ToolsManager::GetHnVector(), G4P1ToolsManager::GetP1Vector(), G4Threading::IsWorkerThread(), G4TemplateAutoLock< _Mutex_t >::unlock(), and WriteT().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootAnalysisManager::WriteP2 ( )
private

Definition at line 413 of file G4RootAnalysisManager.cc.

View newest version in sPHENIX GitHub at line 413 of file G4RootAnalysisManager.cc

References G4P2ToolsManager::AddP2Vector(), fFileManager, fgMasterInstance, G4ToolsAnalysisManager::fP2Manager, G4P2ToolsManager::GetHnVector(), G4P2ToolsManager::GetP2Vector(), G4Threading::IsWorkerThread(), G4TemplateAutoLock< _Mutex_t >::unlock(), and WriteT().

Referenced by WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
G4bool G4RootAnalysisManager::WriteT ( const std::vector< T * > &  htVector,
const std::vector< G4HnInformation * > &  hnVector,
tools::wroot::directory *  directory,
const G4String hnType 
)
private

Referenced by WriteH1(), WriteH2(), WriteH3(), WriteP1(), and WriteP2().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4RootMpiAnalysisManager
friend

Definition at line 62 of file G4RootAnalysisManager.hh.

View newest version in sPHENIX GitHub at line 62 of file G4RootAnalysisManager.hh

Member Data Documentation

G4ThreadLocal G4RootAnalysisManager * G4RootAnalysisManager::fgInstance = nullptr
staticprivate

Definition at line 102 of file G4RootAnalysisManager.hh.

View newest version in sPHENIX GitHub at line 102 of file G4RootAnalysisManager.hh

Referenced by G4RootAnalysisManager(), Instance(), IsInstance(), and ~G4RootAnalysisManager().

G4RootAnalysisManager * G4RootAnalysisManager::fgMasterInstance = nullptr
staticprivate
G4NtupleMergeMode G4RootAnalysisManager::fNtupleMergeMode
private
G4bool G4RootAnalysisManager::fNtupleRowMode
private

Definition at line 126 of file G4RootAnalysisManager.hh.

View newest version in sPHENIX GitHub at line 126 of file G4RootAnalysisManager.hh

Referenced by G4RootMpiAnalysisManager::CreateMpiNtupleManagers(), CreateNtupleManagers(), and SetNtupleRowWise().

G4bool G4RootAnalysisManager::fNtupleRowWise
private

Definition at line 125 of file G4RootAnalysisManager.hh.

View newest version in sPHENIX GitHub at line 125 of file G4RootAnalysisManager.hh

Referenced by G4RootMpiAnalysisManager::CreateMpiNtupleManagers(), CreateNtupleManagers(), and SetNtupleRowWise().

G4RootPNtupleManager* G4RootAnalysisManager::fSlaveNtupleManager
private

Definition at line 129 of file G4RootAnalysisManager.hh.

View newest version in sPHENIX GitHub at line 129 of file G4RootAnalysisManager.hh

Referenced by ClearNtupleManagers(), CreateNtupleManagers(), OpenFileImpl(), SetNtupleRowWise(), and WriteNtuple().


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