Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
+12 -23
View File
@@ -12,8 +12,8 @@ namespace hbook {
class p1 : public base_histo {
public:
p1(int aID,const std::string& aTitle,
int aXnumber,rarg aXmin,rarg aXmax,
rarg aVmin,rarg aVmax)
int aXnumber,rarg aXmin,rarg aXmax,
rarg aVmin,rarg aVmax)
:base_histo(aID)
,m_axis(m_path,aID,1,true,true)
{
@@ -39,6 +39,16 @@ private:
m_axis = a_from.m_axis;
return *this;
}
public:
bool configure(int aXnumber,rarg aXmin,rarg aXmax,rarg aVmin,rarg aVmax){
cd_beg();
CHBPROF(m_id,title(),
aXnumber,aXmin,aXmax,
aVmin,aVmax,
""); //FIXME : or "S" or "T" ?
cd_end();
return true;
}
public:
void fill(rarg aX,rarg aY,rarg aWeight = 1) {
cd_beg();
@@ -53,28 +63,7 @@ public:
}
void fill_end() const {cd_end();}
std::string title() const {
std::string title;
int ncx,ncy;
rarg xmin,xmax,ymin,ymax;
cd_beg();
CHGIVE(m_id,title,ncx,xmin,xmax,ncy,ymin,ymax);
cd_end();
return title;
}
int dimension() const {return 1;}
bool reset() {
cd_beg();
CHRESET(m_id," ");
cd_end();
return true;
}
int all_entries() const {
cd_beg();
int v = CHNOENT(m_id);
cd_end();
return v;
}
const hbook::axis& axis() const {return m_axis;}
hbook::axis& axis() {return m_axis;}