00001
00002
00003
00004
00005
00006 #ifndef STAR_St2011pubSpinMaker
00007 #define STAR_St2011pubSpinMaker
00008
00021 #ifndef StMaker_H
00022 #include "StMaker.h"
00023 #endif
00024 #include <TString.h>
00025
00026 class St2011WMaker;
00027 class StSpinDbMaker;
00028
00029 class St2011pubSpinMaker : 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 St2011WMaker *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 St2011pubSpinMaker(const char *name="2011pubSpin");
00051 virtual ~St2011pubSpinMaker(){};
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(St2011WMaker *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: St2011pubSpinMaker.h,v 1.1 2011/02/10 20:33:25 balewski Exp $ built "__DATE__" "__TIME__ ;
00068 return cvs;
00069 }
00070
00071 ClassDef(St2011pubSpinMaker,0)
00072 };
00073
00074 #endif
00075
00076
00077
00078
00079
00080