45 : fState(type, isMaster),
102 G4bool finalResult =
true;
106 if ( name.find(
".") != std::string::npos ) {
107 name.erase(name.find(
"."), name.length());
116 std::ofstream output(name, std::ios::out);
120 <<
"Cannot open file. File name is not defined.";
125 output.setf( std::ios::scientific, std::ios::floatfield );
128 finalResult = finalResult && result;
131 finalResult = finalResult && result;
151 <<
"Cannot open file. File name is not defined.";
225 unitName, fcnName, binSchemeName);
230 const std::vector<G4double>& edges,
258 nxbins, xmin, xmax, nybins, ymin, ymax,
259 xunitName, yunitName, xfcnName, yfcnName,
260 xbinSchemeName, ybinSchemeName);
265 const std::vector<G4double>& xedges,
266 const std::vector<G4double>& yedges,
278 xunitName, yunitName, xfcnName, yfcnName);
290 return fVH1Manager->
SetH1(
id, nbins, xmin, xmax, unitName, fcnName, binSchemeName);
295 const std::vector<G4double>& edges,
319 xunitName, yunitName, xfcnName, yfcnName,
320 xbinSchemeName, ybinSchemeName);
325 const std::vector<G4double>& xedges,
326 const std::vector<G4double>& yedges,
334 xunitName, yunitName, xfcnName, yfcnName);
423 G4bool finalResult =
true;
425 finalResult = finalResult && result;
428 finalResult = finalResult && result;
431 finalResult = finalResult && result;
434 finalResult = finalResult && result;
442 G4bool finalResult =
true;
444 finalResult = finalResult && result;
447 finalResult = finalResult && result;
455 G4bool finalResult =
true;
457 finalResult = finalResult && result;
460 finalResult = finalResult && result;
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
G4int CreateNtupleIColumn(const G4String &name)
G4bool SetFirstHistoId(G4int firstId)
G4VH2Manager * fVH2Manager
virtual G4int GetNofNtuples() const =0
std::ostringstream G4ExceptionDescription
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 G4int CreateNtupleIColumn(const G4String &name)=0
G4bool ScaleH1(G4int id, G4double factor)
G4bool ScaleH2(G4int id, G4double factor)
void SetH2HnManager(G4HnManager *h2HnManager)
void SetH1Manager(G4VH1Manager *h1Manager)
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
G4VNtupleManager * fVNtupleManager
G4bool SetFileName(const G4String &fileName)
G4bool SetNtupleDirectoryName(const G4String &dirName)
virtual G4bool ScaleH2(G4int id, G4double factor)=0
void SetH1HnManager(G4HnManager *h1HnManager)
virtual G4bool WriteOnAscii(std::ofstream &output)=0
G4bool SetFirstH1Id(G4int firstId)
G4String GetNtupleDirectoryName() const
G4VAnalysisManager(const G4String &type, G4bool isMaster)
virtual G4int CreateNtuple(const G4String &name, const G4String &title)=0
const G4AnalysisVerbose * GetVerboseL3() const
void SetH1Ascii(G4int id, G4bool ascii)
G4bool SetFirstNtupleColumnId(G4int firstId)
G4bool CheckName(const G4String &name, const G4String &objectType)
virtual void FinishNtuple()=0
G4int GetNofNtuples() const
G4String GetFileName() const
G4String GetHistoDirectoryName() const
G4VH1Manager * fVH1Manager
virtual G4bool OpenFileImpl(const G4String &fileName)=0
void SetIsActivation(G4bool isActivation)
virtual G4int CreateNtupleFColumn(const G4String &name)=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
virtual G4int CreateNtupleDColumn(const G4String &name)=0
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &binSchemeName)
G4String GetFileName() const
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)
G4HnManager * fH2HnManager
G4bool SetFirstNtupleId(G4int firstId)
virtual ~G4VAnalysisManager()
G4String & append(const G4String &)
void SetH1Activation(G4bool activation)
void SetActivation(G4bool activation)
G4int CreateNtupleFColumn(const G4String &name)
G4HnManager * fH1HnManager
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 CreateNtupleDColumn(const G4String &name)
G4bool SetHistoDirectoryName(const G4String &dirName)
virtual G4bool ScaleH1(G4int id, G4double factor)=0
G4AnalysisManagerState fState
virtual G4bool WriteOnAscii(std::ofstream &output)=0
void SetVerboseLevel(G4int verboseLevel)
virtual G4bool CloseFileImpl()=0
G4bool GetIsActivation() const
const G4AnalysisVerbose * GetVerboseL1() const
void SetActivation(G4bool activation)
void SetNtupleManager(G4VNtupleManager *ntupleManager)
G4bool CheckEdges(const std::vector< G4double > &edges)
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
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")