00001
00008 #ifndef STAR_StPreEclMaker
00009 #define STAR_StPreEclMaker
00010
00011 #include "StMaker.h"
00012 #include "StMessMgr.h"
00013 #include "StEmcVirtualFinder.h"
00014 #include "StEmcOldFinder.h"
00015 #include "StEmcUtil/others/emcInternalDef.h"
00016 #include "StEmcRawMaker/defines.h"
00017
00018 #include "EmcClusterAlgorithm.h"
00019
00020 class StPreEclMaker : public StMaker
00021 {
00022 private:
00023 StEmcVirtualFinder *mFinder;
00024 EmcClusterAlgorithm mAlg;
00025
00026 StEvent* getEvent();
00027
00028 protected:
00029 public:
00030 StPreEclMaker(const char *name="ecl", const char *title="event/data/emc/hits");
00031 virtual ~StPreEclMaker();
00032 virtual Int_t Init();
00033 virtual Int_t Make();
00034 virtual Int_t Finish();
00035
00036 void setPrint(Bool_t a)
00037 {
00038 LOG_INFO << "::setPrint() is obsolete. Use logger config file to set verbosity instead." << endm;
00039 }
00040 void setAlgorithm(EmcClusterAlgorithm a)
00041 {
00042 mAlg = a;
00043 }
00044
00045 EmcClusterAlgorithm algorithm()
00046 {
00047 return mAlg;
00048 }
00049 StEmcVirtualFinder* finder()
00050 {
00051 return mFinder;
00052 }
00053
00054
00055
00056 void SetClusterConditions(char*,Int_t, Float_t, Float_t, Float_t, Bool_t = kFALSE);
00057
00058 virtual const char *GetCVS() const {
00059 static const char cvs[]="Tag $Name: $ $Id: StPreEclMaker.h,v 1.20 2007/01/22 19:13:53 kocolosk Exp $ built "__DATE__" "__TIME__ ;
00060 return cvs;
00061 }
00062
00063 ClassDef(StPreEclMaker,1)
00064 };
00065
00066 #endif