48 : fState(type, isMaster),
138 G4bool finalResult =
true;
142 if ( name.find(
".") != std::string::npos ) {
143 name.erase(name.find(
"."), name.length());
152 std::ofstream output(name, std::ios::out);
156 <<
"Cannot open file. File name is not defined.";
161 output.setf( std::ios::scientific, std::ios::floatfield );
164 finalResult = finalResult && result;
167 finalResult = finalResult && result;
170 finalResult = finalResult && result;
193 if ( fileName !=
"" ) {
200 <<
"Cannot open file. File name is not defined.";
268 unitName, fcnName, binSchemeName);
273 const std::vector<G4double>& edges,
301 nxbins, xmin, xmax, nybins, ymin, ymax,
302 xunitName, yunitName, xfcnName, yfcnName,
303 xbinSchemeName, ybinSchemeName);
308 const std::vector<G4double>& xedges,
309 const std::vector<G4double>& yedges,
321 xunitName, yunitName, xfcnName, yfcnName);
350 nxbins, xmin, xmax, nybins, ymin, ymax,
352 xunitName, yunitName, zunitName,
353 xfcnName, yfcnName, zfcnName,
354 xbinSchemeName, ybinSchemeName, zbinSchemeName);
359 const std::vector<G4double>& xedges,
360 const std::vector<G4double>& yedges,
361 const std::vector<G4double>& zedges,
375 xedges, yedges, zedges,
376 xunitName, yunitName, zunitName,
377 xfcnName, yfcnName, zfcnName);
389 return fVH1Manager->
SetH1(
id, nbins, xmin, xmax, unitName, fcnName, binSchemeName);
394 const std::vector<G4double>& edges,
418 xunitName, yunitName, xfcnName, yfcnName,
419 xbinSchemeName, ybinSchemeName);
424 const std::vector<G4double>& xedges,
425 const std::vector<G4double>& yedges,
433 xunitName, yunitName, xfcnName, yfcnName);
459 nxbins, xmin, xmax, nybins, ymin, ymax,
461 xunitName, yunitName, zunitName,
462 xfcnName, yfcnName, zfcnName,
463 xbinSchemeName, ybinSchemeName, zbinSchemeName);
468 const std::vector<G4double>& xedges,
469 const std::vector<G4double>& yedges,
470 const std::vector<G4double>& zedges,
481 xunitName, yunitName, zunitName,
482 xfcnName, yfcnName, zfcnName);
517 xunitName, yunitName, xfcnName, yfcnName,
523 const std::vector<G4double>& edges,
532 xunitName, yunitName, xfcnName, yfcnName);
554 nxbins, xmin, xmax, nybins, ymin, ymax,
556 xunitName, yunitName, zunitName,
557 xfcnName, yfcnName, zfcnName,
558 xbinSchemeName, ybinSchemeName);
563 const std::vector<G4double>& xedges,
564 const std::vector<G4double>& yedges,
576 xunitName, yunitName, zunitName,
577 xfcnName, yfcnName, zfcnName);
592 xunitName, yunitName, xfcnName, yfcnName,
598 const std::vector<G4double>& edges,
606 xunitName, yunitName, xfcnName, yfcnName);
628 xunitName, yunitName, zunitName,
629 xfcnName, yfcnName, zfcnName,
630 xbinSchemeName, ybinSchemeName);
635 const std::vector<G4double>& xedges,
636 const std::vector<G4double>& yedges,
649 xunitName, yunitName, zunitName,
650 xfcnName, yfcnName, zfcnName);
708 std::vector<int>& vector)
717 std::vector<float>& vector)
726 std::vector<double>& vector)
779 std::vector<int>& vector)
789 std::vector<float>& vector)
799 std::vector<double>& vector)
815 G4bool finalResult =
true;
818 finalResult = finalResult && result;
821 finalResult = finalResult && result;
824 finalResult = finalResult && result;
832 G4bool finalResult =
true;
834 finalResult = finalResult && result;
837 finalResult = finalResult && result;
845 G4bool finalResult =
true;
847 finalResult = finalResult && result;
850 finalResult = finalResult && result;
858 G4bool finalResult =
true;
860 finalResult = finalResult && result;
863 finalResult = finalResult && result;
871 G4bool finalResult =
true;
874 finalResult = finalResult && result;
877 finalResult = finalResult && result;
885 G4bool finalResult =
true;
887 finalResult = finalResult && result;
890 finalResult = finalResult && result;
898 G4bool finalResult =
true;
900 finalResult = finalResult && result;
903 finalResult = finalResult && result;
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")
void SetP1Manager(G4VP1Manager *p1Manager)
G4bool SetHistoDirectoryName(const G4String &dirName)
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
void SetH2Ascii(G4int id, G4bool ascii)
G4bool SetNtupleDirectoryName(const G4String &dirName)
G4String GetNtupleDirectoryName() const
G4AnalysisMessenger * fMessenger
virtual 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 &xbinScheme="linear", const G4String &ybinScheme="linear", const G4String &zbinScheme="linear")=0
G4int CreateNtupleIColumn(const G4String &name)
G4bool SetFirstHistoId(G4int firstId)
G4VH2Manager * fVH2Manager
virtual G4int GetNofNtuples() const =0
std::ostringstream G4ExceptionDescription
void SetP1HnManager(G4HnManager *h1HnManager)
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")
virtual G4bool ScaleH3(G4int id, G4double factor)=0
G4HnManager * fP1HnManager
G4bool ScaleH1(G4int id, G4double factor)
G4bool ScaleH2(G4int id, G4double factor)
void SetH2HnManager(G4HnManager *h2HnManager)
void SetH1Manager(G4VH1Manager *h1Manager)
void SetP2Activation(G4bool activation)
virtual G4bool WriteImpl()=0
void SetVerboseLevel(G4int verboseLevel)
G4bool SetFirstId(G4int firstId)
void SetH2Activation(G4bool activation)
G4int CreateNtuple(const G4String &name, const G4String &title)
G4VFileManager * fVFileManager
G4int GetFirstP2Id() const
virtual G4int CreateNtupleSColumn(const G4String &name)=0
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 GetFirstH2Id() const
G4int GetFirstH1Id() const
virtual 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 &xbinScheme="linear", const G4String &ybinScheme="linear", const G4String &zbinScheme="linear")=0
G4VNtupleManager * fVNtupleManager
G4bool SetFileName(const G4String &fileName)
G4bool ScaleH3(G4int id, G4double factor)
G4int CreateNtupleSColumn(const G4String &name)
G4bool SetNtupleDirectoryName(const G4String &dirName)
G4int GetFirstP1Id() const
virtual 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 &xbinScheme="linear", const G4String &ybinScheme="linear")=0
virtual G4bool ScaleH2(G4int id, G4double factor)=0
void SetP1Activation(G4bool activation)
void SetH1HnManager(G4HnManager *h1HnManager)
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")
G4int GetFirstNtupleColumnId() const
G4bool OpenFile(const G4String &fileName="")
virtual G4bool WriteOnAscii(std::ofstream &output)=0
virtual 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 &xbinScheme="linear", const G4String &ybinScheme="linear")=0
void SetH3Manager(G4VH3Manager *h3Manager)
void SetP2HnManager(G4HnManager *h2HnManager)
G4bool SetFirstH1Id(G4int firstId)
G4String GetNtupleDirectoryName() const
G4VAnalysisManager(const G4String &type, G4bool isMaster)
void SetH3Ascii(G4int id, G4bool ascii)
virtual G4int CreateNtuple(const G4String &name, const G4String &title)=0
G4VH3Manager * fVH3Manager
G4bool SetFirstProfileId(G4int firstId)
const G4AnalysisVerbose * GetVerboseL3() const
void SetH1Ascii(G4int id, G4bool ascii)
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")
void SetP2Manager(G4VP2Manager *p2Manager)
G4bool SetFirstNtupleColumnId(G4int firstId)
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual void FinishNtuple()=0
G4int GetNofNtuples() const
G4VP1Manager * fVP1Manager
G4String GetHistoDirectoryName() const
G4VH1Manager * fVH1Manager
virtual G4bool OpenFileImpl(const G4String &fileName)=0
void SetIsActivation(G4bool isActivation)
G4int GetFirstH3Id() const
virtual G4bool ScaleP1(G4int id, G4double factor)=0
G4bool SetFirstP1Id(G4int firstId)
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector)=0
virtual G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector)=0
void SetAscii(G4int id, G4bool ascii)
G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
virtual 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 &xbinScheme="linear", const G4String &ybinScheme="linear")=0
virtual 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 &xbinScheme="linear", const G4String &ybinScheme="linear")=0
G4String GetFileName() const
G4bool ScaleP2(G4int id, G4double factor)
void SetFileManager(G4VFileManager *fileManager)
G4String GetHistoDirectoryName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
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")
void SetH2Manager(G4VH2Manager *h2Manager)
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")
G4HnManager * fH2HnManager
G4bool SetFirstNtupleId(G4int firstId)
virtual G4bool ScaleP2(G4int id, G4double factor)=0
G4bool SetFirstH3Id(G4int firstId)
G4HnManager * fP2HnManager
virtual ~G4VAnalysisManager()
G4bool SetFirstP2Id(G4int firstId)
void SetH3HnManager(G4HnManager *h2HnManager)
static const G4double factor
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")
virtual 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 &xbinScheme="linear")=0
G4String & append(const G4String &)
void SetH1Activation(G4bool activation)
virtual G4bool WriteOnAscii(std::ofstream &output)=0
void SetActivation(G4bool activation)
void SetP2Ascii(G4int id, G4bool ascii)
G4int CreateNtupleFColumn(const G4String &name)
G4HnManager * fH1HnManager
void SetH3Activation(G4bool activation)
void SetP1Ascii(G4int id, G4bool ascii)
virtual G4bool SetFileName(const G4String &fileName)
G4bool CheckNbins(G4int nbins)
G4bool SetFirstNtupleColumnId(G4int firstId)
virtual G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")=0
G4bool SetFirstH2Id(G4int firstId)
G4int GetFirstNtupleColumnId() const
G4int CreateNtupleDColumn(const G4String &name)
G4bool SetHistoDirectoryName(const G4String &dirName)
virtual G4bool ScaleH1(G4int id, G4double factor)=0
G4HnManager * fH3HnManager
G4VP2Manager * fVP2Manager
virtual 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 &xbinScheme="linear")=0
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector)=0
G4String GetFileName() const
G4AnalysisManagerState fState
virtual G4bool WriteOnAscii(std::ofstream &output)=0
void SetVerboseLevel(G4int verboseLevel)
virtual G4bool CloseFileImpl()=0
G4int GetFirstNtupleId() const
G4bool GetIsActivation() const
const G4AnalysisVerbose * GetVerboseL1() const
void SetActivation(G4bool activation)
void SetNtupleManager(G4VNtupleManager *ntupleManager)
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
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")
G4bool CheckEdges(const std::vector< G4double > &edges)
G4bool ScaleP1(G4int id, G4double factor)
G4bool WriteAscii(const G4String &fileName)
virtual 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")=0