00001
00002
00003
00004
00005
00006 #ifndef STAR_St2009pubSpinMaker
00007 #define STAR_St2009pubSpinMaker
00008
00021 #ifndef StMaker_H
00022 #include "StMaker.h"
00023 #endif
00024 #include <TString.h>
00025
00026 class St2009WMaker;
00027 class StSpinDbMaker;
00028
00029 class St2009pubSpinMaker : public StMaker {
00030 private:
00031 int nRun;
00032 int Tfirst,Tlast;
00033
00034 float par_QPTlow,par_QPThighET0,par_QPThighET1, par_QPThighA ,par_QPThighB;
00035 float par_leptonEta1, par_leptonEta2;
00036 int par_useNoEEMC;
00037
00038 St2009WMaker *wMK;
00039 StSpinDbMaker *spinDb;
00040 TString core;
00041
00042
00043 TObjArray *HList;
00044 enum {mxHA=32}; TH1 * hA[mxHA];
00045 TH1 *hbxIdeal;
00046
00047 void initHistos();
00048 void bXingSort();
00049 public:
00050 St2009pubSpinMaker(const char *name="2009publWana");
00051 virtual ~St2009pubSpinMaker(){};
00052 virtual Int_t Init();
00053 virtual Int_t InitRun (int runumber);
00054 virtual Int_t Make();
00055 void setHList(TObjArray * x){HList=x;}
00056 void setEta(float x, float y) { par_leptonEta1=x; par_leptonEta2=y;};
00057 void setQPT(float x){ par_QPTlow=x;}
00058 void setNoEEMC() {par_useNoEEMC=1;}
00059
00060 void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
00061 void attachSpinDb(StSpinDbMaker *mk){ spinDb=mk;}
00062 virtual Int_t FinishRun(int runumber);
00063
00064
00066 virtual const char *GetCVS() const {
00067 static const char cvs[]="Tag $Name: $ $Id: St2009pubSpinMaker.h,v 1.6 2010/04/14 20:00:08 balewski Exp $ built "__DATE__" "__TIME__ ;
00068 return cvs;
00069 }
00070
00071 ClassDef(St2009pubSpinMaker,0)
00072 };
00073
00074 #endif
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098