StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcStripClusterFinderTSP.h
1 
12 #ifndef _ST_STRIP_CLUSTER_FINDER_TSP_H_
13 #define _ST_STRIP_CLUSTER_FINDER_TSP_H_
14 
15 
16 #include "StRoot/StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
17 
18 #include "StEEmcStripClusterFinder.h"
19 
21 
22  public:
25 
27  virtual Int_t find( const ESmdLayer_t& stripArray, StSimpleClusterVec_t& cluster );
28 
29  void setNumSmoothIters( UInt_t val ){ mNumSmoothIters = val; };
30  void setMinStripsPerCluster( UInt_t val ){ mMinStripsPerCluster = val; };
31  void setMaxDist( UInt_t val ){ mMaxDist = val; };
32  void setSearchMargin( UInt_t val ){ mSearchMargin = val; };
33  void setSeedAbsThres( Double_t val ){ mSeedAbsThres = val; };
34  void setSeedRelThres( Double_t val ){ mSeedRelThres = val; };
35  void setAbsPeakValleyThres( Double_t val ){ mAbsPeakValleyThres = val; };
36  void setAnomalySubFactor( Double_t val ){ mAnomalySupFactor = val; }; // 0.5 here to avoid dividing by half to take the average
37 
38  protected:
39  // typedef
40  typedef std::vector< Int_t > IntVec_t;
41 
42  // parameters
43  UInt_t mNumSmoothIters, mMinStripsPerCluster, mMaxDist, mSearchMargin;
44  Double_t mSeedAbsThres, mSeedRelThres, mAbsPeakValleyThres, mAnomalySupFactor;
45 
46  // temp storage
47  Double_t mStripEnergyArray[ kEEmcNumStrips ], mSmoothedEnergyArrayA[ kEEmcNumStrips ], mSmoothedEnergyArrayB[ kEEmcNumStrips ];
48  Int_t mSmallestIdx, mLargestIdx;
49 
50  private:
51  ClassDef( StEEmcStripClusterFinderTSP_t, 1 );
52 };
53 
54 #endif
55 
56 /*
57  * $Id: StEEmcStripClusterFinderTSP.h,v 1.1 2012/11/26 19:05:55 sgliske Exp $
58  * $Log: StEEmcStripClusterFinderTSP.h,v $
59  * Revision 1.1 2012/11/26 19:05:55 sgliske
60  * moved from offline/users/sgliske/StRoot/StEEmcPool/StEEmcHitMaker to StRoot/StEEmcPool/StEEmcHitMaker
61  *
62  *
63  */
virtual Int_t find(const ESmdLayer_t &stripArray, StSimpleClusterVec_t &cluster)
find some clusters