00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00043
00044 #ifndef STAR_StGammaMaker
00045 #define STAR_StGammaMaker
00046
00047 #include "StMaker.h"
00048
00049 #include "StGammaEventMaker.h"
00050 #include "StGammaRawMaker.h"
00051 #include "StGammaCandidateMaker.h"
00052 #include "StGammaTreeMaker.h"
00053 #include "StGammaPythiaEventMaker.h"
00054 #include "StGammaScheduleMaker.h"
00055
00056 #include "StBarrelEmcClusterMaker.h"
00057
00058 #include "StEEmcPool/StEEmcClusterMaker/StMyClusterMaker.h"
00059 #include "StEEmcPool/StEEmcA2EMaker/StEEmcA2EMaker.h"
00060
00061 #include "StSpinPool/StMCAsymMaker/StMCAsymMaker.h"
00062
00063 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
00064
00065 using namespace std;
00066
00067 class StGammaMaker: public StMaker
00068 {
00069
00070 public:
00071
00072 enum detectorSwitch { kBemc, kEemc, kBoth };
00073 enum analysisType { kData, kSimu };
00074
00075 StGammaMaker(const char *name = "gammaMaker", detectorSwitch detector = kBoth, analysisType analysis = kData);
00076 ~StGammaMaker() {};
00077
00078 virtual const char* GetCVS() const
00079 {static const char cvs[] = "Tag $Name: $ $Id: StGammaMaker.h,v 1.5 2011/03/04 19:38:38 betan Exp $ built "__DATE__" "__TIME__; return cvs; }
00080
00081
00082 Int_t Init();
00083 void Clear(const Option_t* option = "") { StMaker::Clear(option); }
00084 Int_t Make() { return kStOK; }
00085 Int_t Finish() { return kStOK; }
00086
00088
00090
00091
00092 void setOutputFile(const char *output) { mTreeMaker->SetFilename(output); }
00093 void storeEmptyEvents() { mTreeMaker->storeEmptyEvents(); }
00094
00095
00096
00097
00098
00099
00100 void setClusterEtThreshold(double threshold) { mCandidateMaker->SetMinimumEt(threshold); }
00101 void setConeRadius(double radius) { mCandidateMaker->SetRadius(radius); }
00102 void setBsmdRange(double range) { mCandidateMaker->SetBsmdRange(range); }
00103 void setEsmdRange(double range) { mCandidateMaker->SetEsmdRange(range); }
00104
00105 void useStrictBemcStatus() { mCandidateMaker->useStrictBemcStatus(); }
00106
00107
00108
00109
00110
00111
00112
00113
00114 void setSeedEnergyThreshold(double threshold);
00115 void setClusterEnergyThreshold(double threshold);
00116
00117
00118
00119
00120 void setTrackEtRawThreshold(double threshold) { mRawMaker->SetTrackCutoff(threshold); }
00121 void setTowerEtRawThreshold(double threshold) { mRawMaker->SetTowerCutoff(threshold); }
00122
00123
00124 void excludeBemcTower(int softId) { mRawMaker->excludeBemcTower(softId); }
00125
00126
00127 void shiftBemcGains(double shift) { mRawMaker->shiftBemcGains(shift); }
00128
00129
00130
00131 void setEemcTowerClusterThreshold(double threshold) { if(mUseEemc) mEemcClusterMaker->setMinimumEnergy(threshold); }
00132
00133
00134 void addTimestamp(int date, int time, double weight);
00135
00136
00137 void addSimuTrigger(unsigned int triggerId) { mEventMaker->addSimuTrigger(triggerId); }
00138
00139 private:
00140
00141 bool mUseBemc;
00142 bool mUseEemc;
00143
00144 bool mSimu;
00145
00146 StMuDstMaker *mMuDstMaker;
00147 StEEmcA2EMaker *mEemcAnalysis;
00148
00149 StGammaPythiaEventMaker *mPythiaMaker;
00150 StMCAsymMaker *mAsymMaker;
00151 StGammaScheduleMaker *mScheduleMaker;
00152
00153 StGammaEventMaker *mEventMaker;
00154 StGammaRawMaker *mRawMaker;
00155
00156 StBarrelEmcClusterMaker *mBemcClusterMaker;
00157 StMyClusterMaker *mEemcClusterMaker;
00158
00159 StGammaCandidateMaker *mCandidateMaker;
00160 StGammaTreeMaker *mTreeMaker;
00161
00162 ClassDef(StGammaMaker, 1);
00163
00164 };
00165
00166
00167 #endif