Files
geant4/source/analysis/include/tools/histo/p1d
T
2016-06-09 16:46:55 +02:00

63 lines
1.3 KiB
Plaintext

// 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