Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4H1DummyManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
|
||||
|
||||
// Manager class for H1 for managers which do not support this object
|
||||
// type. It will just issue warnings.
|
||||
|
||||
// Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
|
||||
|
||||
#ifndef G4H1DummyManager_h
|
||||
#define G4H1DummyManager_h 1
|
||||
|
||||
#include "G4VH1Manager.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4H1DummyManager : public G4VH1Manager
|
||||
{
|
||||
public:
|
||||
G4H1DummyManager(const G4AnalysisManagerState& state);
|
||||
virtual ~G4H1DummyManager();
|
||||
|
||||
protected:
|
||||
// Virtual functions from base class
|
||||
|
||||
// Methods to create histograms
|
||||
//
|
||||
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& binScheme = "linear");
|
||||
virtual G4int CreateH1(const G4String& name, const G4String& title,
|
||||
const std::vector<G4double>& edges,
|
||||
const G4String& unitName = "none",
|
||||
const G4String& fcnName = "none");
|
||||
|
||||
virtual G4bool SetH1(G4int id,
|
||||
G4int nbins, G4double xmin, G4double xmax,
|
||||
const G4String& unitName = "none",
|
||||
const G4String& fcnName = "none",
|
||||
const G4String& binSchemeName = "linear");
|
||||
virtual G4bool SetH1(G4int id,
|
||||
const std::vector<G4double>& edges,
|
||||
const G4String& unitName = "none",
|
||||
const G4String& fcnName = "none");
|
||||
|
||||
virtual G4bool ScaleH1(G4int id, G4double factor);
|
||||
|
||||
// Method to fill histograms
|
||||
//
|
||||
virtual G4bool FillH1(G4int id, G4double value, G4double weight = 1.0);
|
||||
|
||||
// Access methods
|
||||
//
|
||||
virtual G4int GetNofH1s() const;
|
||||
virtual G4int GetH1Id(const G4String& name, G4bool warn = true) const;
|
||||
|
||||
// Access to H1 parameters
|
||||
virtual G4int GetH1Nbins(G4int id) const;
|
||||
virtual G4double GetH1Xmin(G4int id) const;
|
||||
virtual G4double GetH1Xmax(G4int id) const;
|
||||
virtual G4double GetH1Width(G4int id) const;
|
||||
|
||||
// Attributes for plotting
|
||||
//
|
||||
|
||||
// Setters
|
||||
virtual G4bool SetH1Title(G4int id, const G4String& title);
|
||||
virtual G4bool SetH1XAxisTitle(G4int id, const G4String& title);
|
||||
virtual G4bool SetH1YAxisTitle(G4int id, const G4String& title);
|
||||
|
||||
// Accessors
|
||||
virtual G4String GetH1Title(G4int id) const;
|
||||
virtual G4String GetH1XAxisTitle(G4int id) const;
|
||||
virtual G4String GetH1YAxisTitle(G4int id) const;
|
||||
|
||||
// Write data on ASCII file
|
||||
virtual G4bool WriteOnAscii(std::ofstream& output);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4H1ToolsManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
|
||||
|
||||
// Manager class for tools::histo::h1d.
|
||||
// It implements functions specific to the H1 type
|
||||
// (defined in g4tools).
|
||||
//
|
||||
// Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
|
||||
|
||||
#ifndef G4H1ToolsManager_h
|
||||
#define G4H1ToolsManager_h 1
|
||||
|
||||
#include "G4VH1Manager.hh"
|
||||
#include "G4HnManager.hh"
|
||||
#include "G4BinScheme.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace tools {
|
||||
namespace histo {
|
||||
class h1d;
|
||||
}
|
||||
}
|
||||
|
||||
class G4H1ToolsManager : public G4VH1Manager
|
||||
{
|
||||
public:
|
||||
G4H1ToolsManager(const G4AnalysisManagerState& state);
|
||||
virtual ~G4H1ToolsManager();
|
||||
|
||||
// Method for merge (MT)
|
||||
void AddH1Vector(const std::vector<tools::histo::h1d*>& h1Vector);
|
||||
// Reset data
|
||||
G4bool Reset();
|
||||
// Return true if the H1 vector is empty
|
||||
G4bool IsEmpty() const;
|
||||
|
||||
// Access methods
|
||||
//
|
||||
tools::histo::h1d* GetH1(G4int id, G4bool warn = true,
|
||||
G4bool onlyIfActive = true) const;
|
||||
// Access to histogram vector (needed for Write())
|
||||
const std::vector<tools::histo::h1d*>& GetH1Vector() const;
|
||||
const std::vector<G4HnInformation*>& GetHnVector() const;
|
||||
|
||||
protected:
|
||||
// Virtual functions from base class
|
||||
//
|
||||
|
||||
// Methods to create histograms
|
||||
//
|
||||
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& binScheme = "linear");
|
||||
virtual G4int CreateH1(const G4String& name, const G4String& title,
|
||||
const std::vector<G4double>& edges,
|
||||
const G4String& unitName = "none",
|
||||
const G4String& fcnName = "none");
|
||||
|
||||
virtual G4bool SetH1(G4int id,
|
||||
G4int nbins, G4double xmin, G4double xmax,
|
||||
const G4String& unitName = "none",
|
||||
const G4String& fcnName = "none",
|
||||
const G4String& binSchemeName = "linear");
|
||||
virtual G4bool SetH1(G4int id,
|
||||
const std::vector<G4double>& edges,
|
||||
const G4String& unitName = "none",
|
||||
const G4String& fcnName = "none");
|
||||
virtual G4bool ScaleH1(G4int id, G4double factor);
|
||||
|
||||
// Method to fill histograms
|
||||
//
|
||||
virtual G4bool FillH1(G4int id, G4double value, G4double weight = 1.0);
|
||||
|
||||
// Access methods
|
||||
//
|
||||
virtual G4int GetH1Id(const G4String& name, G4bool warn = true) const;
|
||||
|
||||
// Access to H1 parameters
|
||||
virtual G4int GetH1Nbins(G4int id) const;
|
||||
virtual G4double GetH1Xmin(G4int id) const;
|
||||
virtual G4double GetH1Xmax(G4int id) const;
|
||||
virtual G4double GetH1Width(G4int id) const;
|
||||
|
||||
// Attributes for plotting
|
||||
//
|
||||
|
||||
// Setters
|
||||
virtual G4bool SetH1Title(G4int id, const G4String& title);
|
||||
virtual G4bool SetH1XAxisTitle(G4int id, const G4String& title);
|
||||
virtual G4bool SetH1YAxisTitle(G4int id, const G4String& title);
|
||||
|
||||
// Accessors
|
||||
virtual G4String GetH1Title(G4int id) const;
|
||||
virtual G4String GetH1XAxisTitle(G4int id) const;
|
||||
virtual G4String GetH1YAxisTitle(G4int id) const;
|
||||
|
||||
// Write data on ASCII file
|
||||
virtual G4bool WriteOnAscii(std::ofstream& output);
|
||||
|
||||
private:
|
||||
// methods
|
||||
//
|
||||
virtual tools::histo::h1d* GetH1InFunction(G4int id,
|
||||
G4String functionName,
|
||||
G4bool warn = true,
|
||||
G4bool onlyIfActive = true) const;
|
||||
|
||||
void AddH1Information(const G4String& name,
|
||||
const G4String& unitName,
|
||||
const G4String& fcnName,
|
||||
G4BinScheme binScheme) const;
|
||||
|
||||
G4int RegisterToolsH1(tools::histo::h1d* h1d,
|
||||
const G4String& name);
|
||||
|
||||
// data members
|
||||
//
|
||||
std::vector<tools::histo::h1d*> fH1Vector;
|
||||
std::map<G4String, G4int> fH1NameIdMap;
|
||||
};
|
||||
|
||||
// inline methods
|
||||
|
||||
inline const std::vector<tools::histo::h1d*>& G4H1ToolsManager::GetH1Vector() const
|
||||
{ return fH1Vector; }
|
||||
|
||||
inline const std::vector<G4HnInformation*>& G4H1ToolsManager::GetHnVector() const
|
||||
{ return fHnManager->GetHnVector(); }
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4H2DummyManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
|
||||
|
||||
// Manager class for H2 for managers which do not support this object
|
||||
// type. It will just issue warnings.
|
||||
|
||||
// Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
|
||||
|
||||
#ifndef G4H2DummyManager_h
|
||||
#define G4H2DummyManager_h 1
|
||||
|
||||
#include "G4VH2Manager.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4H2DummyManager : public G4VH2Manager
|
||||
{
|
||||
public:
|
||||
G4H2DummyManager(const G4AnalysisManagerState& state);
|
||||
virtual ~G4H2DummyManager();
|
||||
|
||||
protected:
|
||||
// Virtual functions from base class
|
||||
//
|
||||
|
||||
// Methods to create histograms
|
||||
//
|
||||
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");
|
||||
|
||||
virtual 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");
|
||||
|
||||
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");
|
||||
|
||||
virtual 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");
|
||||
|
||||
virtual G4bool ScaleH2(G4int id, G4double factor);
|
||||
|
||||
// Method to fill histograms
|
||||
//
|
||||
virtual G4bool FillH2(G4int id, G4double xvalue, G4double yvalue,
|
||||
G4double weight = 1.0);
|
||||
|
||||
// Methods to manipulate histograms
|
||||
//
|
||||
|
||||
// Access methods
|
||||
virtual G4int GetNofH2s() const;
|
||||
virtual G4int GetH2Id(const G4String& name, G4bool warn = true) const;
|
||||
|
||||
// Access to H2 parameters
|
||||
virtual G4int GetH2Nxbins(G4int id) const;
|
||||
virtual G4double GetH2Xmin(G4int id) const;
|
||||
virtual G4double GetH2Xmax(G4int id) const;
|
||||
virtual G4double GetH2XWidth(G4int id) const;
|
||||
virtual G4int GetH2Nybins(G4int id) const;
|
||||
virtual G4double GetH2Ymin(G4int id) const;
|
||||
virtual G4double GetH2Ymax(G4int id) const;
|
||||
virtual G4double GetH2YWidth(G4int id) const;
|
||||
|
||||
// Setters for attributes for plotting
|
||||
virtual G4bool SetH2Title(G4int id, const G4String& title);
|
||||
virtual G4bool SetH2XAxisTitle(G4int id, const G4String& title);
|
||||
virtual G4bool SetH2YAxisTitle(G4int id, const G4String& title);
|
||||
virtual G4bool SetH2ZAxisTitle(G4int id, const G4String& title);
|
||||
|
||||
// Access attributes for plotting
|
||||
virtual G4String GetH2Title(G4int id) const;
|
||||
virtual G4String GetH2XAxisTitle(G4int id) const;
|
||||
virtual G4String GetH2YAxisTitle(G4int id) const;
|
||||
virtual G4String GetH2ZAxisTitle(G4int id) const;
|
||||
|
||||
// Write data on ASCII file
|
||||
virtual G4bool WriteOnAscii(std::ofstream& output);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4H2ToolsManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
|
||||
|
||||
// Manager class for tools::histo::h2d.
|
||||
// It implements functions specific to the H2 type
|
||||
// (defined in g4tools).
|
||||
//
|
||||
// Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
|
||||
|
||||
#ifndef G4H2ToolsManager_h
|
||||
#define G4H2ToolsManager_h 1
|
||||
|
||||
#include "G4VH2Manager.hh"
|
||||
#include "G4HnManager.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace tools {
|
||||
namespace histo {
|
||||
class h2d;
|
||||
}
|
||||
}
|
||||
|
||||
class G4H2ToolsManager : public G4VH2Manager
|
||||
{
|
||||
public:
|
||||
G4H2ToolsManager(const G4AnalysisManagerState& state);
|
||||
virtual ~G4H2ToolsManager();
|
||||
|
||||
// Method for merge (MT)
|
||||
void AddH2Vector(const std::vector<tools::histo::h2d*>& h2Vector);
|
||||
// Reset data
|
||||
G4bool Reset();
|
||||
// Return true if the H2 vector is empty
|
||||
G4bool IsEmpty() const;
|
||||
|
||||
// Access methods
|
||||
//
|
||||
tools::histo::h2d* GetH2(G4int id, G4bool warn = true,
|
||||
G4bool onlyIfActive = true) const;
|
||||
// Access to histogram vector (needed for Write())
|
||||
const std::vector<tools::histo::h2d*>& GetH2Vector() const;
|
||||
const std::vector<G4HnInformation*>& GetHnVector() const;
|
||||
|
||||
protected:
|
||||
// Virtual functions from base class
|
||||
//
|
||||
|
||||
// Methods to create histograms
|
||||
//
|
||||
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");
|
||||
|
||||
virtual 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");
|
||||
|
||||
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");
|
||||
|
||||
virtual 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");
|
||||
|
||||
virtual G4bool ScaleH2(G4int id, G4double factor);
|
||||
|
||||
// Method to fill histograms
|
||||
//
|
||||
virtual G4bool FillH2(G4int id, G4double xvalue, G4double yvalue,
|
||||
G4double weight = 1.0);
|
||||
|
||||
|
||||
// Methods to manipulate histograms
|
||||
//
|
||||
|
||||
// Access methods
|
||||
virtual G4int GetH2Id(const G4String& name, G4bool warn = true) const;
|
||||
|
||||
// Access to H2 parameters
|
||||
virtual G4int GetH2Nxbins(G4int id) const;
|
||||
virtual G4double GetH2Xmin(G4int id) const;
|
||||
virtual G4double GetH2Xmax(G4int id) const;
|
||||
virtual G4double GetH2XWidth(G4int id) const;
|
||||
virtual G4int GetH2Nybins(G4int id) const;
|
||||
virtual G4double GetH2Ymin(G4int id) const;
|
||||
virtual G4double GetH2Ymax(G4int id) const;
|
||||
virtual G4double GetH2YWidth(G4int id) const;
|
||||
|
||||
// Setters for attributes for plotting
|
||||
virtual G4bool SetH2Title(G4int id, const G4String& title);
|
||||
virtual G4bool SetH2XAxisTitle(G4int id, const G4String& title);
|
||||
virtual G4bool SetH2YAxisTitle(G4int id, const G4String& title);
|
||||
virtual G4bool SetH2ZAxisTitle(G4int id, const G4String& title);
|
||||
|
||||
// Access attributes for plotting
|
||||
virtual G4String GetH2Title(G4int id) const;
|
||||
virtual G4String GetH2XAxisTitle(G4int id) const;
|
||||
virtual G4String GetH2YAxisTitle(G4int id) const;
|
||||
virtual G4String GetH2ZAxisTitle(G4int id) const;
|
||||
|
||||
// Write data on ASCII file
|
||||
virtual G4bool WriteOnAscii(std::ofstream& output);
|
||||
|
||||
|
||||
private:
|
||||
virtual tools::histo::h2d* GetH2InFunction(G4int id, G4String function,
|
||||
G4bool warn = true,
|
||||
G4bool onlyIfActive = true) const;
|
||||
|
||||
void AddH2Information(const G4String& name,
|
||||
const G4String& xunitName,
|
||||
const G4String& yunitName,
|
||||
const G4String& xfcnName,
|
||||
const G4String& yfcnName,
|
||||
G4BinScheme xbinScheme,
|
||||
G4BinScheme ybinScheme) const;
|
||||
|
||||
G4int RegisterToolsH2(tools::histo::h2d* h2d,
|
||||
const G4String& name);
|
||||
|
||||
// data members
|
||||
//
|
||||
std::vector<tools::histo::h2d*> fH2Vector;
|
||||
std::map<G4String, G4int> fH2NameIdMap;
|
||||
};
|
||||
// inline methods
|
||||
|
||||
inline const std::vector<tools::histo::h2d*>& G4H2ToolsManager::GetH2Vector() const
|
||||
{ return fH2Vector; }
|
||||
|
||||
inline const std::vector<G4HnInformation*>& G4H2ToolsManager::GetHnVector() const
|
||||
{ return fHnManager->GetHnVector(); }
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user