00001 #ifndef MYDECAY_H
00002 #define MYDECAY_H
00003
00004 #include <TROOT.h>
00005 #include <TSystem.h>
00006 #include <TObject.h>
00007 #include <TObjArray.h>
00008 #include <TParticle.h>
00009 #include <TH1F.h>
00010 #include <TFile.h>
00011 #include <TString.h>
00012
00013 class MyDecay : public TObject{
00014 protected:
00015 Bool_t isPP05;
00016 Bool_t isDAU;
00017 Double_t fETAMTSCALE;
00018 TString mFileName;
00019 public:
00020 MyDecay(const char* file="junk.root");
00021 ~MyDecay();
00022 TObjArray *decay(TParticle *part);
00023 void doDecay(Int_t i);
00024 Double_t ptweight(Double_t x);
00025 Double_t ptweightETA(Double_t x);
00026 Double_t ptweightOMEGA(Double_t x);
00027 Double_t etaweight(Double_t x);
00028 Double_t phiweight(Double_t x);
00029
00030 void setPP05(Bool_t val) {isPP05=val;}
00031 void setDAU(Bool_t val) {isDAU=val;}
00032 void setETAMTSCALE(Double_t val) {fETAMTSCALE=val;}
00033
00034 ClassDef(MyDecay,1)
00035 };
00036
00037 #endif