00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef STAR_StFgtClustFindMaker
00013 #define STAR_StFgtClustFindMaker
00014
00015
00016 #ifndef StMaker_H
00017 #include "StMaker.h"
00018 #endif
00019
00020 #include "StFgtGeom.h"
00021 #include "StFgtContainers.h"
00022 class TRandom3;
00023
00024 class StFgtClustFindMaker : public StMaker {
00025 private:
00026 enum {mxH=16};
00027 TH1 *hA[mxH];
00028 TObjArray *HList;
00029 StFgtGeom *geom;
00030 TRandom3* mRnd;
00031
00032 int mInpEve;
00033 int par_bx_valley;
00034 int par_cl_width;
00035 double par_seedStripThres;
00036 double par_clusterMinAmpl;
00037 double par_stripNoiseSigma;
00038
00039 int findClust1D(vector<fgt_strip> &sL, vector<fgt_cluster1D> &clL);
00040 public:
00041 vector<fgt_cluster1D> mRadClustList[kFgtMxDisk];
00042 vector<fgt_cluster1D> mPhiClustList[kFgtMxDisk];
00043
00044
00045 StFgtClustFindMaker(const char *name="FgtClustFind");
00046 virtual ~StFgtClustFindMaker();
00047 virtual Int_t Init();
00048 virtual Int_t Finish();
00049 virtual Int_t Make();
00050 virtual void Clear(Option_t *option="");
00051 void setHList(TObjArray * x){HList=x;}
00052 void setStripNoiseSigma(double x) {par_stripNoiseSigma=x;}
00053 void setSeedStripThres(double x) {par_seedStripThres=x;}
00054 void setClusterMinAmpl(double x) {par_clusterMinAmpl=x;}
00055 void saveHisto(TString fname);
00056
00057 virtual const char *GetCVS() const {
00058 static const char cvs[]="Tag $Name: $ $Id: StFgtClustFindMaker.h,v 1.1 2011/04/07 19:31:22 balewski Exp $ built "__DATE__" "__TIME__ ;
00059
00060 return cvs;
00061 }
00062 private:
00063
00064 ClassDef(StFgtClustFindMaker,0)
00065 };
00066
00067 #endif
00068
00069
00070
00071
00072
00073
00074