star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Profile2D.h
Go to the documentation of this file.
1 #ifndef Profile2D_h
2 #define Profile2D_h
3 
4 #include <string>
5 
6 #include "TH2D.h"
7 #include "TProfile2D.h"
8 #include "TProfile.h"
9 
10 
11 class Profile2D : public TProfile2D
12 {
13 public:
14 
15  Profile2D();
16  Profile2D(const TH2D& h2D);
17  Profile2D(std::string name, std::string title, Int_t nbinsx, Double_t xlow,
18  Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup, std::string options="");
19  Profile2D(std::string name, std::string title, Int_t nbinsx, const Double_t* xbins,
20  Int_t nbinsy, const Double_t* ybins, std::string options="");
21 
22  void ResetBinEntries(double val);
23  using TProfile2D::Multiply;
24  Bool_t Multiply(const Profile2D &prof2);
25  TProfile *ProfileX(const char *name="_pfx", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const;
26  TProfile *ProfileY(const char *name="_pfy", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const;
27 
28 protected:
29 
30  virtual TProfile *DoProfile(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const;
31 
32  ClassDef(Profile2D, 1)
33 };
34 
35 #endif
virtual TProfile * DoProfile(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const
Definition: Profile2D.cxx:141
TProfile * ProfileY(const char *name="_pfy", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const
Definition: Profile2D.cxx:119
TProfile * ProfileX(const char *name="_pfx", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const
Definition: Profile2D.cxx:98
Bool_t Multiply(const Profile2D &prof2)
Definition: Profile2D.cxx:74
void ResetBinEntries(double val)
Definition: Profile2D.cxx:59