Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VAnalysisManager Class Referenceabstract

#include <G4VAnalysisManager.hh>

Inheritance diagram for G4VAnalysisManager:
Collaboration diagram for G4VAnalysisManager:

Public Member Functions

 G4VAnalysisManager (const G4String &type, G4bool isMaster)
 
virtual ~G4VAnalysisManager ()
 
G4bool OpenFile (const G4String &fileName="")
 
G4bool Write ()
 
G4bool CloseFile ()
 
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 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 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 SetP1Title (G4int id, const G4String &title)
 
G4bool SetP1XAxisTitle (G4int id, const G4String &title)
 
G4bool SetP1YAxisTitle (G4int id, const G4String &title)
 
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)
 
G4String GetH1Title (G4int id) const
 
G4String GetH1XAxisTitle (G4int id) const
 
G4String GetH1YAxisTitle (G4int id) const
 
G4String GetH2Title (G4int id) const
 
G4String GetH2XAxisTitle (G4int id) const
 
G4String GetH2YAxisTitle (G4int id) const
 
G4String GetH2ZAxisTitle (G4int id) const
 
G4String GetH3Title (G4int id) const
 
G4String GetH3XAxisTitle (G4int id) const
 
G4String GetH3YAxisTitle (G4int id) const
 
G4String GetH3ZAxisTitle (G4int id) const
 
G4String GetP1Title (G4int id) const
 
G4String GetP1XAxisTitle (G4int id) const
 
G4String GetP1YAxisTitle (G4int id) const
 
G4String GetP1ZAxisTitle (G4int id) const
 
G4String GetP2Title (G4int id) const
 
G4String GetP2XAxisTitle (G4int id) const
 
G4String GetP2YAxisTitle (G4int id) const
 
G4String GetP2ZAxisTitle (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 ()=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 (G4VNtupleManager *ntupleManager)
 
void SetFileManager (std::shared_ptr< G4VFileManager > fileManager)
 
G4bool WriteAscii (const G4String &fileName)
 

Protected Attributes

G4AnalysisManagerState fState
 
std::shared_ptr< G4VFileManagerfVFileManager
 

Detailed Description

Definition at line 65 of file G4VAnalysisManager.hh.

Constructor & Destructor Documentation

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

Definition at line 47 of file G4VAnalysisManager.cc.

48  : fState(type, isMaster),
49  fVFileManager(nullptr),
50  fMessenger(G4Analysis::make_unique<G4AnalysisMessenger>(this)),
51  fH1HnManager(nullptr),
52  fH2HnManager(nullptr),
53  fH3HnManager(nullptr),
54  fP1HnManager(nullptr),
55  fP2HnManager(nullptr),
56  fVH1Manager(nullptr),
57  fVH2Manager(nullptr),
58  fVH3Manager(nullptr),
59  fVP1Manager(nullptr),
60  fVP2Manager(nullptr),
61  fVNtupleManager(nullptr)
62 {
63  //fMessenger = G4Analysis::make_unique<G4AnalysisMessenger>(this);
64 }
std::shared_ptr< G4VFileManager > fVFileManager
G4AnalysisManagerState fState
G4VAnalysisManager::~G4VAnalysisManager ( )
virtual

Definition at line 67 of file G4VAnalysisManager.cc.

68 {
69  delete fVNtupleManager;
70 }

Member Function Documentation

G4bool G4VAnalysisManager::AddNtupleRow ( )

Here is the caller graph for this function:

G4bool G4VAnalysisManager::AddNtupleRow ( G4int  ntupleId)
G4bool G4VAnalysisManager::CloseFile ( )

Definition at line 220 of file G4VAnalysisManager.cc.

221 {
222  return CloseFileImpl();
223 }
virtual G4bool CloseFileImpl()=0

Here is the call graph for this function:

Here is the caller graph for this function:

virtual G4bool G4VAnalysisManager::CloseFileImpl ( )
protectedpure virtual

Implemented in G4RootAnalysisManager, G4CsvAnalysisManager, and G4XmlAnalysisManager.

Here is the caller graph for this function:

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

296 {
297  if ( ! CheckName(name, "H1") ) return kInvalidId;
298  if ( ! CheckNbins(nbins) ) return kInvalidId;
299  if ( ! CheckMinMax(xmin, xmax, fcnName, binSchemeName) ) return kInvalidId;
300 
301  return fVH1Manager->CreateH1(name, title, nbins, xmin, xmax,
302  unitName, fcnName, binSchemeName);
303 }
G4bool CheckName(const G4String &name, const G4String &objectType)
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

309 {
310  if ( ! CheckName(name, "H1") ) return kInvalidId;
311  if ( ! CheckEdges(edges) ) return kInvalidId;
312 
313  return fVH1Manager->CreateH1(name, title, edges, unitName, fcnName);
314 }
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

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

325 {
326  if ( ! CheckName(name, "H2") ) return kInvalidId;
327 
328  if ( ! CheckNbins(nxbins) ) return kInvalidId;
329  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
330 
331  if ( ! CheckNbins(nybins) ) return kInvalidId;
332  if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
333 
334  return fVH2Manager->CreateH2(name, title,
335  nxbins, xmin, xmax, nybins, ymin, ymax,
336  xunitName, yunitName, xfcnName, yfcnName,
337  xbinSchemeName, ybinSchemeName);
338 }
G4bool CheckName(const G4String &name, const G4String &objectType)
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

347 {
348  if ( ! CheckName(name, "H2") ) return kInvalidId;
349 
350  if ( ! CheckEdges(xedges) ) return kInvalidId;
351  if ( ! CheckEdges(yedges) ) return kInvalidId;
352 
353  return fVH2Manager->CreateH2(name, title,
354  xedges, yedges,
355  xunitName, yunitName, xfcnName, yfcnName);
356 }
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

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

371 {
372  if ( ! CheckName(name, "H3") ) return kInvalidId;
373 
374  if ( ! CheckNbins(nxbins) ) return kInvalidId;
375  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
376 
377  if ( ! CheckNbins(nybins) ) return kInvalidId;
378  if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
379 
380  if ( ! CheckNbins(nzbins) ) return kInvalidId;
381  if ( ! CheckMinMax(zmin, zmax, zfcnName, zbinSchemeName) ) return kInvalidId;
382 
383  return fVH3Manager->CreateH3(name, title,
384  nxbins, xmin, xmax, nybins, ymin, ymax,
385  nzbins, zmin, zmax,
386  xunitName, yunitName, zunitName,
387  xfcnName, yfcnName, zfcnName,
388  xbinSchemeName, ybinSchemeName, zbinSchemeName);
389 }
G4bool CheckName(const G4String &name, const G4String &objectType)
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

401 {
402  if ( ! CheckName(name, "H3") ) return kInvalidId;
403 
404  if ( ! CheckEdges(xedges) ) return kInvalidId;
405  if ( ! CheckEdges(yedges) ) return kInvalidId;
406  if ( ! CheckEdges(zedges) ) return kInvalidId;
407 
408  return fVH3Manager->CreateH3(name, title,
409  xedges, yedges, zedges,
410  xunitName, yunitName, zunitName,
411  xfcnName, yfcnName, zfcnName);
412 }
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

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

Definition at line 730 of file G4VAnalysisManager.cc.

732 {
733  if ( ! CheckName(name, "Ntuple") ) return kInvalidId;
734 
735  return fVNtupleManager->CreateNtuple(name, title);
736 }
virtual G4int CreateNtuple(const G4String &name, const G4String &title)=0
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId

Here is the call graph for this function:

Here is the caller graph for this function:

G4int G4VAnalysisManager::CreateNtupleDColumn ( const G4String name)

Definition at line 755 of file G4VAnalysisManager.cc.

756 {
757  if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
758 
759  return fVNtupleManager->CreateNtupleDColumn(name, 0);
760 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 789 of file G4VAnalysisManager.cc.

791 {
792  if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
793 
794  return fVNtupleManager->CreateNtupleDColumn(name, &vector);
795 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

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

Definition at line 823 of file G4VAnalysisManager.cc.

825 {
826  if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
827 
828  return fVNtupleManager->CreateNtupleDColumn(ntupleId, name, 0);
829 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

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

Definition at line 861 of file G4VAnalysisManager.cc.

864 {
865  if ( ! CheckName(name, "NtupleDColumn") ) return kInvalidId;
866 
867  return fVNtupleManager->CreateNtupleDColumn(ntupleId, name, &vector);
868 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

G4int G4VAnalysisManager::CreateNtupleFColumn ( const G4String name)

Definition at line 747 of file G4VAnalysisManager.cc.

748 {
749  if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
750 
751  return fVNtupleManager->CreateNtupleFColumn(name, 0);
752 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 780 of file G4VAnalysisManager.cc.

782 {
783  if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
784 
785  return fVNtupleManager->CreateNtupleFColumn(name, &vector);
786 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

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

Definition at line 813 of file G4VAnalysisManager.cc.

815 {
816  if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
817 
818  return fVNtupleManager->CreateNtupleFColumn(ntupleId, name, 0);
819 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

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

Definition at line 851 of file G4VAnalysisManager.cc.

854 {
855  if ( ! CheckName(name, "NtupleFColumn") ) return kInvalidId;
856 
857  return fVNtupleManager->CreateNtupleFColumn(ntupleId, name, &vector);
858 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

G4int G4VAnalysisManager::CreateNtupleIColumn ( const G4String name)

Definition at line 739 of file G4VAnalysisManager.cc.

740 {
741  if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
742 
743  return fVNtupleManager->CreateNtupleIColumn(name, 0);
744 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 771 of file G4VAnalysisManager.cc.

773 {
774  if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
775 
776  return fVNtupleManager->CreateNtupleIColumn(name, &vector);
777 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

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

Definition at line 804 of file G4VAnalysisManager.cc.

806 {
807  if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
808 
809  return fVNtupleManager->CreateNtupleIColumn(ntupleId, name, 0);
810 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

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

Definition at line 841 of file G4VAnalysisManager.cc.

844 {
845  if ( ! CheckName(name, "NtupleIColumn") ) return kInvalidId;
846 
847  return fVNtupleManager->CreateNtupleIColumn(ntupleId, name, &vector);
848 }
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector)=0
const G4int kInvalidId

Here is the call graph for this function:

G4int G4VAnalysisManager::CreateNtupleSColumn ( const G4String name)

Definition at line 763 of file G4VAnalysisManager.cc.

764 {
765  if ( ! CheckName(name, "NtupleSColumn") ) return kInvalidId;
766 
767  return fVNtupleManager->CreateNtupleSColumn(name);
768 }
virtual G4int CreateNtupleSColumn(const G4String &name)=0
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 832 of file G4VAnalysisManager.cc.

834 {
835  if ( ! CheckName(name, "NtupleSColumn") ) return kInvalidId;
836 
837  return fVNtupleManager->CreateNtupleSColumn(ntupleId, name);
838 }
virtual G4int CreateNtupleSColumn(const G4String &name)=0
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId

Here is the call graph for this function:

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

544 {
545  if ( ! CheckName(name, "P1") ) return kInvalidId;
546  if ( ! CheckNbins(nbins) ) return kInvalidId;
547  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
548  if ( ymin != 0. || ymax != 0. ) {
549  // Do not check default values
550  if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
551  }
552 
553  return fVP1Manager->CreateP1(name, title, nbins, xmin, xmax, ymin, ymax,
554  xunitName, yunitName, xfcnName, yfcnName,
555  xbinSchemeName);
556 }
G4bool CheckName(const G4String &name, const G4String &objectType)
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

564 {
565  if ( ! CheckName(name, "P1") ) return kInvalidId;
566  if ( ! CheckEdges(edges) ) return kInvalidId;
567  if ( ymin != 0. || ymax != 0. ) {
568  // Do not check default values
569  if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
570  }
571 
572  return fVP1Manager->CreateP1(name, title, edges, ymin, ymax,
573  xunitName, yunitName, xfcnName, yfcnName);
574 }
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

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

587 {
588  if ( ! CheckName(name, "P2") ) return kInvalidId;
589  if ( ! CheckNbins(nxbins) ) return kInvalidId;
590  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
591  if ( ! CheckMinMax(ymin, ymax, yfcnName, xbinSchemeName) ) return kInvalidId;
592  if ( zmin != 0. || zmax != 0. ) {
593  // Do not check default values
594  if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
595  }
596 
597  return fVP2Manager->CreateP2(name, title,
598  nxbins, xmin, xmax, nybins, ymin, ymax,
599  zmin, zmax,
600  xunitName, yunitName, zunitName,
601  xfcnName, yfcnName, zfcnName,
602  xbinSchemeName, ybinSchemeName);
603 }
G4bool CheckName(const G4String &name, const G4String &objectType)
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

614 {
615  if ( ! CheckName(name, "P2") ) return kInvalidId;
616  if ( ! CheckEdges(xedges) ) return kInvalidId;
617  if ( ! CheckEdges(yedges) ) return kInvalidId;
618  if ( zmin != 0. || zmax != 0. ) {
619  // Do not check default values
620  if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
621  }
622 
623  return fVP2Manager->CreateP2(name, title, xedges, yedges, zmin, zmax,
624  xunitName, yunitName, zunitName,
625  xfcnName, yfcnName, zfcnName);
626 }
G4bool CheckName(const G4String &name, const G4String &objectType)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

G4bool G4VAnalysisManager::FillNtupleSColumn ( G4int  ntupleId,
G4int  id,
const G4String value 
)
G4bool G4VAnalysisManager::FillP1 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  weight = 1.0 
)
G4bool G4VAnalysisManager::FillP2 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  zvalue,
G4double  weight = 1.0 
)
void G4VAnalysisManager::FinishNtuple ( )

Definition at line 798 of file G4VAnalysisManager.cc.

799 {
800  return fVNtupleManager->FinishNtuple();
801 }
virtual void FinishNtuple()=0

Here is the call graph for this function:

Here is the caller graph for this function:

void G4VAnalysisManager::FinishNtuple ( G4int  ntupleId)

Definition at line 871 of file G4VAnalysisManager.cc.

872 {
873  return fVNtupleManager->FinishNtuple(ntupleId);
874 }
virtual void FinishNtuple()=0

Here is the call graph for this function:

G4bool G4VAnalysisManager::GetActivation ( ) const
G4int G4VAnalysisManager::GetCompressionLevel ( ) const

Definition at line 286 of file G4VAnalysisManager.cc.

287 {
288  return fState.GetCompressionLevel();
289 }
G4AnalysisManagerState fState

Here is the call graph for this function:

G4String G4VAnalysisManager::GetFileName ( ) const

Definition at line 268 of file G4VAnalysisManager.cc.

269 {
270  return fVFileManager->GetFileName();
271 }
std::shared_ptr< G4VFileManager > fVFileManager

Here is the caller graph for this function:

G4String G4VAnalysisManager::GetFileType ( ) const

Here is the caller graph for this function:

G4int G4VAnalysisManager::GetFirstH1Id ( ) const

Definition at line 998 of file G4VAnalysisManager.cc.

999 {
1000 // Return first H1 id
1001 
1002  return fH1HnManager->GetFirstId();
1003 }
G4int G4VAnalysisManager::GetFirstH2Id ( ) const

Definition at line 1006 of file G4VAnalysisManager.cc.

1007 {
1008 // Return first H2 id
1009 
1010  return fH2HnManager->GetFirstId();
1011 }
G4int G4VAnalysisManager::GetFirstH3Id ( ) const

Definition at line 1014 of file G4VAnalysisManager.cc.

1015 {
1016 // Return first H3 id
1017 
1018  return fH3HnManager->GetFirstId();
1019 }
G4int G4VAnalysisManager::GetFirstNtupleColumnId ( ) const

Definition at line 1046 of file G4VAnalysisManager.cc.

1047 {
1048 // Return first Ntuple column id
1049 
1050  return fVNtupleManager->GetFirstNtupleColumnId();
1051 }
G4int GetFirstNtupleColumnId() const

Here is the call graph for this function:

G4int G4VAnalysisManager::GetFirstNtupleId ( ) const

Definition at line 1038 of file G4VAnalysisManager.cc.

1039 {
1040 // Return first Ntuple id
1041 
1042  return fVNtupleManager->GetFirstId();
1043 }

Here is the call graph for this function:

G4int G4VAnalysisManager::GetFirstP1Id ( ) const

Definition at line 1022 of file G4VAnalysisManager.cc.

1023 {
1024 // Return first P1 id
1025 
1026  return fP1HnManager->GetFirstId();
1027 }
G4int G4VAnalysisManager::GetFirstP2Id ( ) const

Definition at line 1030 of file G4VAnalysisManager.cc.

1031 {
1032 // Return first P2 id
1033 
1034  return fP2HnManager->GetFirstId();
1035 }
G4bool G4VAnalysisManager::GetH1Activation ( G4int  id) const
G4bool G4VAnalysisManager::GetH1Ascii ( G4int  id) const
G4int G4VAnalysisManager::GetH1Id ( const G4String name,
G4bool  warn = true 
) const
G4String G4VAnalysisManager::GetH1Name ( G4int  id) const
G4int G4VAnalysisManager::GetH1Nbins ( G4int  id) const
G4bool G4VAnalysisManager::GetH1Plotting ( G4int  id) const
G4String G4VAnalysisManager::GetH1Title ( G4int  id) const
G4double G4VAnalysisManager::GetH1Unit ( G4int  id) const
G4double G4VAnalysisManager::GetH1Width ( G4int  id) const
G4String G4VAnalysisManager::GetH1XAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetH1Xmax ( G4int  id) const
G4double G4VAnalysisManager::GetH1Xmin ( G4int  id) const
G4String G4VAnalysisManager::GetH1YAxisTitle ( G4int  id) const
G4bool G4VAnalysisManager::GetH2Activation ( G4int  id) const
G4bool G4VAnalysisManager::GetH2Ascii ( G4int  id) const
G4int G4VAnalysisManager::GetH2Id ( const G4String name,
G4bool  warn = true 
) const
G4String G4VAnalysisManager::GetH2Name ( G4int  id) const
G4int G4VAnalysisManager::GetH2Nxbins ( G4int  id) const
G4int G4VAnalysisManager::GetH2Nybins ( G4int  id) const
G4bool G4VAnalysisManager::GetH2Plotting ( G4int  id) const
G4String G4VAnalysisManager::GetH2Title ( G4int  id) const
G4String G4VAnalysisManager::GetH2XAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetH2Xmax ( G4int  id) const
G4double G4VAnalysisManager::GetH2Xmin ( G4int  id) const
G4double G4VAnalysisManager::GetH2XUnit ( G4int  id) const
G4double G4VAnalysisManager::GetH2XWidth ( G4int  id) const
G4String G4VAnalysisManager::GetH2YAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetH2Ymax ( G4int  id) const
G4double G4VAnalysisManager::GetH2Ymin ( G4int  id) const
G4double G4VAnalysisManager::GetH2YUnit ( G4int  id) const
G4double G4VAnalysisManager::GetH2YWidth ( G4int  id) const
G4String G4VAnalysisManager::GetH2ZAxisTitle ( G4int  id) const
G4bool G4VAnalysisManager::GetH3Activation ( G4int  id) const
G4bool G4VAnalysisManager::GetH3Ascii ( G4int  id) const
G4int G4VAnalysisManager::GetH3Id ( const G4String name,
G4bool  warn = true 
) const
G4String G4VAnalysisManager::GetH3Name ( G4int  id) const
G4int G4VAnalysisManager::GetH3Nxbins ( G4int  id) const
G4int G4VAnalysisManager::GetH3Nybins ( G4int  id) const
G4int G4VAnalysisManager::GetH3Nzbins ( G4int  id) const
G4bool G4VAnalysisManager::GetH3Plotting ( G4int  id) const
G4String G4VAnalysisManager::GetH3Title ( G4int  id) const
G4String G4VAnalysisManager::GetH3XAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetH3Xmax ( G4int  id) const
G4double G4VAnalysisManager::GetH3Xmin ( G4int  id) const
G4double G4VAnalysisManager::GetH3XUnit ( G4int  id) const
G4double G4VAnalysisManager::GetH3XWidth ( G4int  id) const
G4String G4VAnalysisManager::GetH3YAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetH3Ymax ( G4int  id) const
G4double G4VAnalysisManager::GetH3Ymin ( G4int  id) const
G4double G4VAnalysisManager::GetH3YUnit ( G4int  id) const
G4double G4VAnalysisManager::GetH3YWidth ( G4int  id) const
G4String G4VAnalysisManager::GetH3ZAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetH3Zmax ( G4int  id) const
G4double G4VAnalysisManager::GetH3Zmin ( G4int  id) const
G4double G4VAnalysisManager::GetH3ZUnit ( G4int  id) const
G4double G4VAnalysisManager::GetH3ZWidth ( G4int  id) const
G4String G4VAnalysisManager::GetHistoDirectoryName ( ) const

Definition at line 274 of file G4VAnalysisManager.cc.

275 {
276  return fVFileManager->GetHistoDirectoryName();
277 }
std::shared_ptr< G4VFileManager > fVFileManager
G4int G4VAnalysisManager::GetNofH1s ( ) const

Definition at line 1054 of file G4VAnalysisManager.cc.

1055 {
1056  return fH1HnManager->GetNofHns();
1057 }

Here is the caller graph for this function:

G4int G4VAnalysisManager::GetNofH2s ( ) const

Definition at line 1060 of file G4VAnalysisManager.cc.

1061 {
1062  return fH2HnManager->GetNofHns();
1063 }

Here is the caller graph for this function:

G4int G4VAnalysisManager::GetNofH3s ( ) const

Definition at line 1066 of file G4VAnalysisManager.cc.

1067 {
1068  return fH3HnManager->GetNofHns();
1069 }
G4int G4VAnalysisManager::GetNofNtuples ( ) const

Definition at line 1084 of file G4VAnalysisManager.cc.

1085 {
1086  return fVNtupleManager->GetNofNtuples();
1087 }
virtual G4int GetNofNtuples() const =0

Here is the call graph for this function:

G4int G4VAnalysisManager::GetNofP1s ( ) const

Definition at line 1072 of file G4VAnalysisManager.cc.

1073 {
1074  return fP1HnManager->GetNofHns();
1075 }
G4int G4VAnalysisManager::GetNofP2s ( ) const

Definition at line 1078 of file G4VAnalysisManager.cc.

1079 {
1080  return fP2HnManager->GetNofHns();
1081 }
G4bool G4VAnalysisManager::GetNtupleActivation ( G4int  id) const
G4String G4VAnalysisManager::GetNtupleDirectoryName ( ) const

Definition at line 280 of file G4VAnalysisManager.cc.

281 {
282  return fVFileManager->GetNtupleDirectoryName();
283 }
std::shared_ptr< G4VFileManager > fVFileManager
G4bool G4VAnalysisManager::GetP1Activation ( G4int  id) const
G4bool G4VAnalysisManager::GetP1Ascii ( G4int  id) const
G4int G4VAnalysisManager::GetP1Id ( const G4String name,
G4bool  warn = true 
) const
G4String G4VAnalysisManager::GetP1Name ( G4int  id) const
G4int G4VAnalysisManager::GetP1Nbins ( G4int  id) const
G4bool G4VAnalysisManager::GetP1Plotting ( G4int  id) const
G4String G4VAnalysisManager::GetP1Title ( G4int  id) const
G4String G4VAnalysisManager::GetP1XAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetP1Xmax ( G4int  id) const
G4double G4VAnalysisManager::GetP1Xmin ( G4int  id) const
G4double G4VAnalysisManager::GetP1XUnit ( G4int  id) const
G4double G4VAnalysisManager::GetP1XWidth ( G4int  id) const
G4String G4VAnalysisManager::GetP1YAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetP1Ymax ( G4int  id) const
G4double G4VAnalysisManager::GetP1Ymin ( G4int  id) const
G4double G4VAnalysisManager::GetP1YUnit ( G4int  id) const
G4String G4VAnalysisManager::GetP1ZAxisTitle ( G4int  id) const
G4bool G4VAnalysisManager::GetP2Activation ( G4int  id) const
G4bool G4VAnalysisManager::GetP2Ascii ( G4int  id) const
G4int G4VAnalysisManager::GetP2Id ( const G4String name,
G4bool  warn = true 
) const
G4String G4VAnalysisManager::GetP2Name ( G4int  id) const
G4int G4VAnalysisManager::GetP2Nxbins ( G4int  id) const
G4int G4VAnalysisManager::GetP2Nybins ( G4int  id) const
G4bool G4VAnalysisManager::GetP2Plotting ( G4int  id) const
G4String G4VAnalysisManager::GetP2Title ( G4int  id) const
G4String G4VAnalysisManager::GetP2XAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetP2Xmax ( G4int  id) const
G4double G4VAnalysisManager::GetP2Xmin ( G4int  id) const
G4double G4VAnalysisManager::GetP2XUnit ( G4int  id) const
G4double G4VAnalysisManager::GetP2XWidth ( G4int  id) const
G4String G4VAnalysisManager::GetP2YAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetP2Ymax ( G4int  id) const
G4double G4VAnalysisManager::GetP2Ymin ( G4int  id) const
G4double G4VAnalysisManager::GetP2YUnit ( G4int  id) const
G4double G4VAnalysisManager::GetP2YWidth ( G4int  id) const
G4String G4VAnalysisManager::GetP2ZAxisTitle ( G4int  id) const
G4double G4VAnalysisManager::GetP2Zmax ( G4int  id) const
G4double G4VAnalysisManager::GetP2Zmin ( G4int  id) const
G4double G4VAnalysisManager::GetP2ZUnit ( G4int  id) const
G4String G4VAnalysisManager::GetType ( ) const

Here is the caller graph for this function:

G4int G4VAnalysisManager::GetVerboseLevel ( ) const
G4bool G4VAnalysisManager::IsActive ( ) const

Definition at line 960 of file G4VAnalysisManager.cc.

961 {
962 // Return true if activation option is selected and any of managers has
963 // an activated object.
964 
965  return fState.GetIsActivation() &&
966  ( fH1HnManager->IsActive() ||
967  fH2HnManager->IsActive() ||
968  fH3HnManager->IsActive() ||
969  fP1HnManager->IsActive() ||
970  fP2HnManager->IsActive() );
971 }
G4AnalysisManagerState fState

Here is the call graph for this function:

G4bool G4VAnalysisManager::IsAscii ( ) const

Definition at line 974 of file G4VAnalysisManager.cc.

975 {
976 // Return true any of managers has an object with activated ASCII option.
977 
978  return ( fH1HnManager->IsAscii() ||
979  fH2HnManager->IsAscii() ||
980  fH3HnManager->IsAscii() ||
981  fP1HnManager->IsAscii() ||
982  fP2HnManager->IsAscii() );
983 }

Here is the caller graph for this function:

G4bool G4VAnalysisManager::IsOpenFile ( ) const

Definition at line 238 of file G4VAnalysisManager.cc.

239 {
240  return IsOpenFileImpl();
241 }
virtual G4bool IsOpenFileImpl() const =0

Here is the call graph for this function:

virtual G4bool G4VAnalysisManager::IsOpenFileImpl ( ) const
protectedpure virtual

Implemented in G4RootAnalysisManager, G4CsvAnalysisManager, and G4XmlAnalysisManager.

Here is the caller graph for this function:

G4bool G4VAnalysisManager::IsPlotting ( ) const

Definition at line 986 of file G4VAnalysisManager.cc.

987 {
988 // Return true any of managers has an object with activated plotting option.
989 
990  return ( fH1HnManager->IsPlotting() ||
991  fH2HnManager->IsPlotting() ||
992  fH3HnManager->IsPlotting() ||
993  fP1HnManager->IsPlotting() ||
994  fP2HnManager->IsPlotting() );
995 }

Here is the caller graph for this function:

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

Definition at line 226 of file G4VAnalysisManager.cc.

227 {
228  return MergeImpl(hmpi);
229 }
virtual G4bool MergeImpl(tools::histo::hmpi *hmpi)=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implemented in G4ToolsAnalysisManager.

Here is the caller graph for this function:

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

Definition at line 185 of file G4VAnalysisManager.cc.

186 {
187  if ( fileName != "" ) {
188  return OpenFileImpl(fileName);
189  }
190  else {
191  if ( fVFileManager->GetFileName() == "" ) {
192  G4ExceptionDescription description;
193  description
194  << "Cannot open file. File name is not defined.";
195  G4Exception("G4VFileManager::OpenFile()",
196  "Analysis_W001", JustWarning, description);
197  return false;
198  }
199  return OpenFileImpl(fVFileManager->GetFileName());
200  }
201 }
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
std::shared_ptr< G4VFileManager > fVFileManager
virtual G4bool OpenFileImpl(const G4String &fileName)=0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implemented in G4RootAnalysisManager, G4CsvAnalysisManager, and G4XmlAnalysisManager.

Here is the caller graph for this function:

G4bool G4VAnalysisManager::Plot ( )

Definition at line 232 of file G4VAnalysisManager.cc.

233 {
234  return PlotImpl();
235 }
virtual G4bool PlotImpl()=0

Here is the call graph for this function:

virtual G4bool G4VAnalysisManager::PlotImpl ( )
protectedpure virtual

Implemented in G4ToolsAnalysisManager.

Here is the caller graph for this function:

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

Definition at line 520 of file G4VAnalysisManager.cc.

521 {
522  return fVH1Manager->ScaleH1(id, factor);
523 }

Here is the caller graph for this function:

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

Definition at line 526 of file G4VAnalysisManager.cc.

527 {
528  return fVH2Manager->ScaleH2(id, factor);
529 }

Here is the caller graph for this function:

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

Definition at line 532 of file G4VAnalysisManager.cc.

533 {
534  return fVH3Manager->ScaleH3(id, factor);
535 }
G4bool G4VAnalysisManager::ScaleP1 ( G4int  id,
G4double  factor 
)

Definition at line 718 of file G4VAnalysisManager.cc.

719 {
720  return fVP1Manager->ScaleP1(id, factor);
721 }
G4bool G4VAnalysisManager::ScaleP2 ( G4int  id,
G4double  factor 
)

Definition at line 724 of file G4VAnalysisManager.cc.

725 {
726  return fVP2Manager->ScaleP2(id, factor);
727 }
void G4VAnalysisManager::SetActivation ( G4bool  activation)

Definition at line 952 of file G4VAnalysisManager.cc.

953 {
954  fState.SetIsActivation(activation);
955 }
G4AnalysisManagerState fState

Here is the caller graph for this function:

void G4VAnalysisManager::SetCompressionLevel ( G4int  level)

Definition at line 262 of file G4VAnalysisManager.cc.

263 {
264  fState.SetCompressionLevel(level);
265 }
G4AnalysisManagerState fState

Here is the caller graph for this function:

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

Definition at line 124 of file G4VAnalysisManager.cc.

125 {
126  fVFileManager = fileManager;
127 }
std::shared_ptr< G4VFileManager > fVFileManager

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFileName ( const G4String fileName)

Definition at line 244 of file G4VAnalysisManager.cc.

245 {
246  return fVFileManager->SetFileName(fileName);
247 }
std::shared_ptr< G4VFileManager > fVFileManager

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstH1Id ( G4int  firstId)

Definition at line 894 of file G4VAnalysisManager.cc.

895 {
896  return fH1HnManager->SetFirstId(firstId);
897 }

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstH2Id ( G4int  firstId)

Definition at line 900 of file G4VAnalysisManager.cc.

901 {
902  return fH2HnManager->SetFirstId(firstId);
903 }

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstH3Id ( G4int  firstId)

Definition at line 906 of file G4VAnalysisManager.cc.

907 {
908  return fH3HnManager->SetFirstId(firstId);
909 }

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstHistoId ( G4int  firstId)

Definition at line 877 of file G4VAnalysisManager.cc.

878 {
879  G4bool finalResult = true;
880 
881  G4bool result = SetFirstH1Id(firstId);
882  finalResult = finalResult && result;
883 
884  result = SetFirstH2Id(firstId);
885  finalResult = finalResult && result;
886 
887  result = SetFirstH3Id(firstId);
888  finalResult = finalResult && result;
889 
890  return finalResult;
891 }
G4double G4ParticleHPJENDLHEData::G4double result
G4bool SetFirstH1Id(G4int firstId)
bool G4bool
Definition: G4Types.hh:79
G4bool SetFirstH3Id(G4int firstId)
G4bool SetFirstH2Id(G4int firstId)

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstNtupleColumnId ( G4int  firstId)

Definition at line 944 of file G4VAnalysisManager.cc.

945 {
946  return fVNtupleManager->SetFirstNtupleColumnId(firstId);
947 }
G4bool SetFirstNtupleColumnId(G4int firstId)

Here is the call graph for this function:

G4bool G4VAnalysisManager::SetFirstNtupleId ( G4int  firstId)

Definition at line 938 of file G4VAnalysisManager.cc.

939 {
940  return fVNtupleManager->SetFirstId(firstId);
941 }
G4bool SetFirstId(G4int firstId)

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstP1Id ( G4int  firstId)

Definition at line 926 of file G4VAnalysisManager.cc.

927 {
928  return fP1HnManager->SetFirstId(firstId);
929 }

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstP2Id ( G4int  firstId)

Definition at line 932 of file G4VAnalysisManager.cc.

933 {
934  return fP2HnManager->SetFirstId(firstId);
935 }

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetFirstProfileId ( G4int  firstId)

Definition at line 912 of file G4VAnalysisManager.cc.

913 {
914  G4bool finalResult = true;
915 
916  G4bool result = SetFirstP1Id(firstId);
917  finalResult = finalResult && result;
918 
919  result = SetFirstP2Id(firstId);
920  finalResult = finalResult && result;
921 
922  return finalResult;
923 }
G4double G4ParticleHPJENDLHEData::G4double result
bool G4bool
Definition: G4Types.hh:79
G4bool SetFirstP1Id(G4int firstId)
G4bool SetFirstP2Id(G4int firstId)

Here is the call graph for this function:

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

419 {
420  if ( ! CheckNbins(nbins) ) return kInvalidId;
421  if ( ! CheckMinMax(xmin, xmax, fcnName, binSchemeName) ) return kInvalidId;
422 
423  return fVH1Manager->SetH1(id, nbins, xmin, xmax, unitName, fcnName, binSchemeName);
424 }
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 427 of file G4VAnalysisManager.cc.

430 {
431  if ( ! CheckEdges(edges) ) return kInvalidId;
432 
433  return fVH1Manager->SetH1(id, edges, unitName, fcnName);
434 }
const G4int kInvalidId
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

void G4VAnalysisManager::SetH1Activation ( G4bool  activation)

Definition at line 1100 of file G4VAnalysisManager.cc.

1101 {
1102 // Set activation to all H1 objects
1103 
1104  fH1HnManager->SetActivation(activation);
1105 }
void G4VAnalysisManager::SetH1Activation ( G4int  id,
G4bool  activation 
)

Definition at line 1092 of file G4VAnalysisManager.cc.

1093 {
1094 // Set activation to a given H1 object
1095 
1096  fH1HnManager->SetActivation(id, activation);
1097 }
void G4VAnalysisManager::SetH1Ascii ( G4int  id,
G4bool  ascii 
)

Definition at line 1108 of file G4VAnalysisManager.cc.

1109 {
1110  fH1HnManager->SetAscii(id, ascii);
1111 }

Here is the caller graph for this function:

void G4VAnalysisManager::SetH1Manager ( G4VH1Manager h1Manager)
protected

Definition at line 77 of file G4VAnalysisManager.cc.

78 {
79  fVH1Manager.reset(h1Manager);
80  fH1HnManager = h1Manager->GetHnManager();
81  fMessenger->SetH1HnManager(*fH1HnManager);
82 }
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1114 of file G4VAnalysisManager.cc.

1115 {
1116  fH1HnManager->SetPlotting(id, plotting);
1117 }
G4bool G4VAnalysisManager::SetH1Title ( G4int  id,
const G4String title 
)

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

444 {
445  if ( ! CheckNbins(nxbins) ) return kInvalidId;
446  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
447 
448  if ( ! CheckNbins(nybins) ) return kInvalidId;
449  if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
450 
451  return fVH2Manager->SetH2(id, nxbins, xmin, xmax, nybins, ymin, ymax,
452  xunitName, yunitName, xfcnName, yfcnName,
453  xbinSchemeName, ybinSchemeName);
454 }
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

462 {
463  if ( ! CheckEdges(xedges) ) return kInvalidId;
464  if ( ! CheckEdges(yedges) ) return kInvalidId;
465 
466  return fVH2Manager->SetH2(id, xedges, yedges,
467  xunitName, yunitName, xfcnName, yfcnName);
468 }
const G4int kInvalidId
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

void G4VAnalysisManager::SetH2Activation ( G4bool  activation)

Definition at line 1128 of file G4VAnalysisManager.cc.

1129 {
1130 // Set activation to all H2 objects
1131 
1132  fH2HnManager->SetActivation(activation);
1133 }
void G4VAnalysisManager::SetH2Activation ( G4int  id,
G4bool  activation 
)

Definition at line 1120 of file G4VAnalysisManager.cc.

1121 {
1122 // Set activation to a given H2 object
1123 
1124  fH2HnManager->SetActivation(id, activation);
1125 }
void G4VAnalysisManager::SetH2Ascii ( G4int  id,
G4bool  ascii 
)

Definition at line 1136 of file G4VAnalysisManager.cc.

1137 {
1138  fH2HnManager->SetAscii(id, ascii);
1139 }
void G4VAnalysisManager::SetH2Manager ( G4VH2Manager h2Manager)
protected

Definition at line 85 of file G4VAnalysisManager.cc.

86 {
87  fVH2Manager.reset(h2Manager);
88  fH2HnManager = h2Manager->GetHnManager();
89  fMessenger->SetH2HnManager(*fH2HnManager);
90 }
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1142 of file G4VAnalysisManager.cc.

1143 {
1144  fH2HnManager->SetPlotting(id, plotting);
1145 }
G4bool G4VAnalysisManager::SetH2Title ( G4int  id,
const G4String title 
)

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

482 {
483  if ( ! CheckNbins(nxbins) ) return kInvalidId;
484  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
485 
486  if ( ! CheckNbins(nybins) ) return kInvalidId;
487  if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
488 
489  if ( ! CheckNbins(nzbins) ) return kInvalidId;
490  if ( ! CheckMinMax(zmin, zmax, zfcnName, zbinSchemeName) ) return kInvalidId;
491 
492  return fVH3Manager->SetH3(id,
493  nxbins, xmin, xmax, nybins, ymin, ymax,
494  nzbins, zmin, zmax,
495  xunitName, yunitName, zunitName,
496  xfcnName, yfcnName, zfcnName,
497  xbinSchemeName, ybinSchemeName, zbinSchemeName);
498 }
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

509 {
510  if ( ! CheckEdges(xedges) ) return kInvalidId;
511  if ( ! CheckEdges(yedges) ) return kInvalidId;
512  if ( ! CheckEdges(zedges) ) return kInvalidId;
513 
514  return fVH3Manager->SetH3(id, xedges, yedges, zedges,
515  xunitName, yunitName, zunitName,
516  xfcnName, yfcnName, zfcnName);
517 }
const G4int kInvalidId
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

void G4VAnalysisManager::SetH3Activation ( G4bool  activation)

Definition at line 1156 of file G4VAnalysisManager.cc.

1157 {
1158 // Set activation to all H3 objects
1159 
1160  fH3HnManager->SetActivation(activation);
1161 }
void G4VAnalysisManager::SetH3Activation ( G4int  id,
G4bool  activation 
)

Definition at line 1148 of file G4VAnalysisManager.cc.

1149 {
1150 // Set activation to a given H3 object
1151 
1152  fH3HnManager->SetActivation(id, activation);
1153 }
void G4VAnalysisManager::SetH3Ascii ( G4int  id,
G4bool  ascii 
)

Definition at line 1164 of file G4VAnalysisManager.cc.

1165 {
1166  fH3HnManager->SetAscii(id, ascii);
1167 }
void G4VAnalysisManager::SetH3Manager ( G4VH3Manager h3Manager)
protected

Definition at line 93 of file G4VAnalysisManager.cc.

94 {
95  fVH3Manager.reset(h3Manager);
96  fH3HnManager = h3Manager->GetHnManager();
97  fMessenger->SetH3HnManager(*fH3HnManager);
98 }
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1170 of file G4VAnalysisManager.cc.

1171 {
1172  fH3HnManager->SetPlotting(id, plotting);
1173 }
G4bool G4VAnalysisManager::SetH3Title ( G4int  id,
const G4String title 
)

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

G4bool G4VAnalysisManager::SetHistoDirectoryName ( const G4String dirName)

Definition at line 250 of file G4VAnalysisManager.cc.

251 {
252  return fVFileManager->SetHistoDirectoryName(dirName);
253 }
std::shared_ptr< G4VFileManager > fVFileManager

Here is the caller graph for this function:

void G4VAnalysisManager::SetNtupleActivation ( G4bool  activation)

Definition at line 1240 of file G4VAnalysisManager.cc.

1241 {
1242 // Set activation to all P2 objects
1243 
1244  fVNtupleManager->SetActivation(activation);
1245 }
virtual void SetActivation(G4bool activation)=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1232 of file G4VAnalysisManager.cc.

1233 {
1234 // Set activation to a given P2 object
1235 
1236  fVNtupleManager->SetActivation(id, activation);
1237 }
virtual void SetActivation(G4bool activation)=0

Here is the call graph for this function:

G4bool G4VAnalysisManager::SetNtupleDirectoryName ( const G4String dirName)

Definition at line 256 of file G4VAnalysisManager.cc.

257 {
258  return fVFileManager->SetNtupleDirectoryName(dirName);
259 }
std::shared_ptr< G4VFileManager > fVFileManager

Here is the caller graph for this function:

void G4VAnalysisManager::SetNtupleManager ( G4VNtupleManager ntupleManager)
protected

Definition at line 117 of file G4VAnalysisManager.cc.

118 {
119  // fVNtupleManager.reset(ntupleManager);
120  fVNtupleManager = ntupleManager;
121 }

Here is the caller graph for this function:

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

635 {
636  if ( ! CheckNbins(nbins) ) return kInvalidId;
637  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
638  if ( ymin != 0. || ymax != 0. ) {
639  // Do not check default values
640  if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
641  }
642 
643  return fVP1Manager->SetP1(id, nbins, xmin, xmax, ymin, ymax,
644  xunitName, yunitName, xfcnName, yfcnName,
645  xbinSchemeName);
646 }
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

654 {
655  if ( ! CheckEdges(edges) ) return kInvalidId;
656  if ( ymin != 0. || ymax != 0. ) {
657  // Do not check default values
658  if ( ! CheckMinMax(ymin, ymax) ) return kInvalidId;
659  }
660 
661  return fVP1Manager->SetP1(id, edges, ymin, ymax,
662  xunitName, yunitName, xfcnName, yfcnName);
663 }
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

void G4VAnalysisManager::SetP1Activation ( G4bool  activation)

Definition at line 1184 of file G4VAnalysisManager.cc.

1185 {
1186 // Set activation to all P1 objects
1187 
1188  fP1HnManager->SetActivation(activation);
1189 }
void G4VAnalysisManager::SetP1Activation ( G4int  id,
G4bool  activation 
)

Definition at line 1176 of file G4VAnalysisManager.cc.

1177 {
1178 // Set activation to a given P1 object
1179 
1180  fP1HnManager->SetActivation(id, activation);
1181 }
void G4VAnalysisManager::SetP1Ascii ( G4int  id,
G4bool  ascii 
)

Definition at line 1192 of file G4VAnalysisManager.cc.

1193 {
1194  fP1HnManager->SetAscii(id, ascii);
1195 }
void G4VAnalysisManager::SetP1Manager ( G4VP1Manager p1Manager)
protected

Definition at line 101 of file G4VAnalysisManager.cc.

102 {
103  fVP1Manager.reset(p1Manager);
104  fP1HnManager = p1Manager->GetHnManager();
105  fMessenger->SetP1HnManager(*fP1HnManager);
106 }
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1198 of file G4VAnalysisManager.cc.

1199 {
1200  fP1HnManager->SetPlotting(id, plotting);
1201 }
G4bool G4VAnalysisManager::SetP1Title ( G4int  id,
const G4String title 
)

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

676 {
677  if ( ! CheckNbins(nxbins) ) return kInvalidId;
678  if ( ! CheckNbins(nybins) ) return kInvalidId;
679  if ( ! CheckMinMax(xmin, xmax, xfcnName, xbinSchemeName) ) return kInvalidId;
680  if ( ! CheckMinMax(ymin, ymax, yfcnName, ybinSchemeName) ) return kInvalidId;
681  if ( zmin != 0. || zmax != 0. ) {
682  // Do not check default values
683  if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
684  }
685 
686  return fVP2Manager->SetP2(id, nxbins, xmin, xmax, nybins, ymin, ymax,
687  zmin, zmax,
688  xunitName, yunitName, zunitName,
689  xfcnName, yfcnName, zfcnName,
690  xbinSchemeName, ybinSchemeName);
691 }
G4bool CheckNbins(G4int nbins)
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")

Here is the call graph for this function:

Here is the caller graph for this function:

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

704 {
705  if ( ! CheckEdges(xedges) ) return kInvalidId;
706  if ( ! CheckEdges(yedges) ) return kInvalidId;
707  if ( zmin != 0. || zmax != 0. ) {
708  // Do not check default values
709  if ( ! CheckMinMax(zmin, zmax) ) return kInvalidId;
710  }
711 
712  return fVP2Manager->SetP2(id, xedges, yedges, zmin, zmax,
713  xunitName, yunitName, zunitName,
714  xfcnName, yfcnName, zfcnName);
715 }
const G4int kInvalidId
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool CheckEdges(const std::vector< G4double > &edges)

Here is the call graph for this function:

void G4VAnalysisManager::SetP2Activation ( G4bool  activation)

Definition at line 1212 of file G4VAnalysisManager.cc.

1213 {
1214 // Set activation to all P2 objects
1215 
1216  fP2HnManager->SetActivation(activation);
1217 }
void G4VAnalysisManager::SetP2Activation ( G4int  id,
G4bool  activation 
)

Definition at line 1204 of file G4VAnalysisManager.cc.

1205 {
1206 // Set activation to a given P2 object
1207 
1208  fP2HnManager->SetActivation(id, activation);
1209 }
void G4VAnalysisManager::SetP2Ascii ( G4int  id,
G4bool  ascii 
)

Definition at line 1220 of file G4VAnalysisManager.cc.

1221 {
1222  fP2HnManager->SetAscii(id, ascii);
1223 }
void G4VAnalysisManager::SetP2Manager ( G4VP2Manager p2Manager)
protected

Definition at line 109 of file G4VAnalysisManager.cc.

110 {
111  fVP2Manager.reset(p2Manager);
112  fP2HnManager = p2Manager->GetHnManager();
113  fMessenger->SetP2HnManager(*fP2HnManager);
114 }
virtual std::shared_ptr< G4HnManager > GetHnManager()=0

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1226 of file G4VAnalysisManager.cc.

1227 {
1228  fP2HnManager->SetPlotting(id, plotting);
1229 }
G4bool G4VAnalysisManager::SetP2Title ( G4int  id,
const G4String title 
)

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void G4VAnalysisManager::SetVerboseLevel ( G4int  verboseLevel)

Definition at line 1250 of file G4VAnalysisManager.cc.

1251 {
1252  fState.SetVerboseLevel(verboseLevel);
1253 }
G4AnalysisManagerState fState

Here is the caller graph for this function:

G4bool G4VAnalysisManager::Write ( )

Definition at line 204 of file G4VAnalysisManager.cc.

205 {
206  G4bool finalResult = true;
207 
208  G4bool result = WriteImpl();
209  finalResult = finalResult && result;
210 
211  if ( IsPlotting() ) {
212  result = PlotImpl();
213  finalResult = finalResult && result;
214  }
215 
216  return finalResult;
217 }
G4double G4ParticleHPJENDLHEData::G4double result
virtual G4bool WriteImpl()=0
virtual G4bool PlotImpl()=0
bool G4bool
Definition: G4Types.hh:79
G4bool IsPlotting() const

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4VAnalysisManager::WriteAscii ( const G4String fileName)
protected

Definition at line 130 of file G4VAnalysisManager.cc.

131 {
132  G4bool finalResult = true;
133 
134  // Replace or add file extension .ascii
135  G4String name(fileName);
136  if ( name.find(".") != std::string::npos ) {
137  name.erase(name.find("."), name.length());
138  }
139  name.append(".ascii");
140 
141 #ifdef G4VERBOSE
142  if ( fState.GetVerboseL3() )
143  fState.GetVerboseL3()->Message("write ASCII", "file", name);
144 #endif
145 
146  std::ofstream output(name, std::ios::out);
147  if ( ! output ) {
148  G4ExceptionDescription description;
149  description
150  << "Cannot open file. File name is not defined.";
151  G4Exception("G4VAnalysisManager::WriteAscii()",
152  "Analysis_W001", JustWarning, description);
153  return false;
154  }
155  output.setf( std::ios::scientific, std::ios::floatfield );
156 
157  G4bool result = fVH1Manager->WriteOnAscii(output);
158  finalResult = finalResult && result;
159 
160  result = fVH2Manager->WriteOnAscii(output);
161  finalResult = finalResult && result;
162 
163  result = fVH3Manager->WriteOnAscii(output);
164  finalResult = finalResult && result;
165 
166  //result = fVP1Manager->WriteOnAscii(output);
167  //finalResult = finalResult && result;
168 
169  //result = fVP2Manager->WriteOnAscii(output);
170  //finalResult = finalResult && result;
171 
172 #ifdef G4VERBOSE
173  if ( fState.GetVerboseL1() )
174  fState.GetVerboseL1()->Message("write ASCII", "file", name, result);
175 #endif
176 
177  return finalResult;
178 }
G4double G4ParticleHPJENDLHEData::G4double result
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
const XML_Char * name
Definition: expat.h:151
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
const G4AnalysisVerbose * GetVerboseL3() const
bool G4bool
Definition: G4Types.hh:79
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4AnalysisManagerState fState
const G4AnalysisVerbose * GetVerboseL1() const

Here is the call graph for this function:

Here is the caller graph for this function:

virtual G4bool G4VAnalysisManager::WriteImpl ( )
protectedpure virtual

Implemented in G4RootAnalysisManager, G4CsvAnalysisManager, and G4XmlAnalysisManager.

Here is the caller graph for this function:

Member Data Documentation

G4AnalysisManagerState G4VAnalysisManager::fState
protected

Definition at line 610 of file G4VAnalysisManager.hh.

std::shared_ptr<G4VFileManager> G4VAnalysisManager::fVFileManager
protected

Definition at line 611 of file G4VAnalysisManager.hh.


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