Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
+62
View File
@@ -0,0 +1,62 @@
// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_histo_p1d
#define tools_histo_p1d
#include "p1"
namespace tools {
namespace histo {
class p1d : public p1<double,unsigned int,double,double,double> {
typedef p1<double,unsigned int,double,double,double> parent;
public:
static const std::string& s_class() {
static const std::string s_v("tools::histo::p1d");
return s_v;
}
public:
p1d(const std::string& a_title,
int aXnumber,double aXmin,double aXmax)
: parent(a_title,aXnumber,aXmin,aXmax)
{}
p1d(const std::string& a_title,
int aXnumber,double aXmin,double aXmax,
double aVmin,double aVmax)
: parent(a_title,aXnumber,aXmin,aXmax,aVmin,aVmax)
{}
p1d(const std::string& a_title,
const std::vector<double>& aEdges)
: parent(a_title,aEdges)
{}
p1d(const std::string& a_title,
const std::vector<double>& aEdges,
double aVmin,double aVmax)
: parent(a_title,aEdges,aVmin,aVmax)
{}
virtual ~p1d(){}
public:
p1d(const p1d& a_from): parent(a_from){}
p1d& operator=(const p1d& a_from){
parent::operator=(a_from);
return *this;
}
};
inline void p1d_check_instantiation() {
p1d dummy("",10,0,1);
dummy.gather_bins(5);
}
}}
#endif