StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcStripClusterFinderMorhac.h
1 
9 #ifndef _ST_STRIP_CLUSTER_FINDER_MORHAC_H_
10 #define _ST_STRIP_CLUSTER_FINDER_MORHAC_H_
11 
12 #include <TRandom3.h>
13 #include <TSpectrum.h>
14 
15 
16 #include "StRoot/StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
17 
18 #include "StEEmcStripClusterFinder.h"
19 
21 
22  public:
23  StEEmcStripClusterFinderMorhac_t( Int_t maxNumPoints = 5, Float_t resolution = 1 );
25 
27  virtual Int_t find( const ESmdLayer_t& stripArray, StSimpleClusterVec_t& cluster );
28 
29  void setDoMarkov( Bool_t val ){ mDoMarkov = val; };
30  void setRemoveBkg( Bool_t val ){ mRemoveBkg = val; };
31  void setMinStripsPerCluster( Int_t val ){ mMinStripsPerCluster = val; };
32  void setNumDeconIters( Int_t val ){ mNumDeconIters = val; };
33  void setAverWindow( Int_t val ){ mAverWindow = val; };
34  void setWidth( Float_t val ){ mWidth = val; };
35  void setThreshold( Float_t val ){ mThreshold = val; };
36  void setMinPeakEnergy( Float_t val ){ mMinPeakEnergy = val; };
37  void setMinClusterEnergy( Float_t val ){ mMinClusterEnergy = val; };
38  void setNumSmoothIters( Int_t num ){ mNumSmoothIters = num; };
39 
40  protected:
41  Bool_t mRemoveBkg, mDoMarkov;
42  Int_t mMaxNumPoints, mMinStripsPerCluster, mNumDeconIters, mAverWindow, mNumSmoothIters;
43  Float_t mWidth, mThreshold, mMinPeakEnergy, mMinClusterEnergy;
44 
45  Float_t mStripEnergyArray[kEEmcNumStrips], mSmoothedEnergyArray[kEEmcNumStrips];
46  Double_t mStripEnergyArrayTemp[kEEmcNumStrips];
47  Float_t mDeconvoluted[kEEmcNumStrips];
48 
49  TSpectrum *peakFinderPtr;
50 
51  private:
52  ClassDef( StEEmcStripClusterFinderMorhac_t, 1 );
53 };
54 
55 
56 #endif
57 
58 /*
59  * $Id: StEEmcStripClusterFinderMorhac.h,v 1.1 2012/11/26 19:05:55 sgliske Exp $
60  * $Log: StEEmcStripClusterFinderMorhac.h,v $
61  * Revision 1.1 2012/11/26 19:05:55 sgliske
62  * moved from offline/users/sgliske/StRoot/StEEmcPool/StEEmcHitMaker to StRoot/StEEmcPool/StEEmcHitMaker
63  *
64  *
65  */
virtual Int_t find(const ESmdLayer_t &stripArray, StSimpleClusterVec_t &cluster)
find some clusters