StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MyDecay.h
1 #ifndef MYDECAY_H
2 #define MYDECAY_H
3 
4 #include <TROOT.h>
5 #include <TSystem.h>
6 #include <TObject.h>
7 #include <TObjArray.h>
8 #include <TParticle.h>
9 #include <TH1F.h>
10 #include <TFile.h>
11 #include <TString.h>
12 
13 class MyDecay : public TObject{
14  protected:
15  Bool_t isPP05;
16  Bool_t isDAU;
17  Double_t fETAMTSCALE;
18  TString mFileName;
19  public:
20  MyDecay(const char* file="junk.root");
21  ~MyDecay();
22  TObjArray *decay(TParticle *part);
23  void doDecay(Int_t i);
24  Double_t ptweight(Double_t x);
25  Double_t ptweightETA(Double_t x);
26  Double_t ptweightOMEGA(Double_t x);
27  Double_t etaweight(Double_t x);
28  Double_t phiweight(Double_t x);
29 
30  void setPP05(Bool_t val) {isPP05=val;}
31  void setDAU(Bool_t val) {isDAU=val;}
32  void setETAMTSCALE(Double_t val) {fETAMTSCALE=val;}
33 
34  ClassDef(MyDecay,1)
35 };
36 
37 #endif