Pottu
ROOTSupport.hpp
Go to the documentation of this file.
1 
7 namespace pottu {
8 
9 
10 #ifdef POTTU_ROOT_SUPPORT
11 
12 
23  template <class T>
24  T *createROOTHisto1D( const std::string &name, uint32_t binc, double low, double high ) {
25  T *p = new T( name.c_str(), name.c_str(), binc, low, high );
26  return p;
27  }
28 
29 
40  template <class T>
41  T *createROOTHisto2D( const std::string &name, uint32_t xbinc, double xlow, double xhigh,
42  uint32_t ybinc, double ylow, double yhigh ) {
43  T *p = new T( name.c_str(), name.c_str(), xbinc, xlow, xhigh, ybinc, ylow, yhigh );
44  return p;
45  }
46 
47 
48 #endif
49 
50 
51 
52 }
53 
Definition: mainpage.dox:6