star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
H2D.cxx
Go to the documentation of this file.
1 #include "StiRootIO/H2D.h"
2 
4 
5 
6 H2D::H2D() : TH2D()
7 {
8 }
9 
10 
11 H2D::H2D(const TProfile2D& prof2d) : TH2D()
12 {
13  prof2d.TH2D::Copy(*this);
14 
15  // Correct bin contents after initialization
16  for (int i=0; i<fNcells; i++) {
17  SetBinContent(i, prof2d.GetBinContent(i));
18  SetBinError(i, prof2d.GetBinError(i));
19  }
20 }
ClassImp(H2D) H2D
Definition: H2D.cxx:3
Definition: H2D.h:8