StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcStripClusterFinder.h
1 
8 #ifndef _ST_STRIP_CLUSTER_FINDER_H_
9 #define _ST_STRIP_CLUSTER_FINDER_H_
10 
11 #include <Rtypes.h>
12 
13 #include "StSimpleCluster.h"
14 #include "StFinderAlg.h"
15 
16 class ESmdLayer_t;
17 
19 
20  public:
22  virtual ~StEEmcStripClusterFinder_t() { /* */ };
23 
25  virtual void clear(){ /* */ };
26 
28  void resetClusterCount(){ mLastClusterID = -1; };
29 
31  virtual Int_t find( const ESmdLayer_t& smdLayer, StSimpleClusterVec_t& cluster ) = 0;
32 
34  enum LayerOfSMD_t { U_LAYER = 0, V_LAYER = 1};
35 
37  void setCurrentLayer( LayerOfSMD_t layer ){ mLayer = layer; };
38  void setCurrentSector( Int_t sector ){ mSector = sector; };
39 
40 
41  protected:
42  LayerOfSMD_t mLayer;
43  Int_t mSector;
44  Int_t mLastClusterID;
45 
46  private:
47  ClassDef( StEEmcStripClusterFinder_t, 1 );
48 };
49 
50 
51 #endif
52 
53 /*
54  * $Id: StEEmcStripClusterFinder.h,v 1.1 2012/11/26 19:05:55 sgliske Exp $
55  * $Log: StEEmcStripClusterFinder.h,v $
56  * Revision 1.1 2012/11/26 19:05:55 sgliske
57  * moved from offline/users/sgliske/StRoot/StEEmcPool/StEEmcHitMaker to StRoot/StEEmcPool/StEEmcHitMaker
58  *
59  *
60  */
void setCurrentLayer(LayerOfSMD_t layer)
Set current layer and sector.
LayerOfSMD_t
enum to keep track of layers
virtual Int_t find(const ESmdLayer_t &smdLayer, StSimpleClusterVec_t &cluster)=0
find some clusters
virtual void clear()
clear things before doing the finding for the next sector or layer
void resetClusterCount()
reset the count