StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBarrelEmcClusterMaker.h
1 // //
3 // StBarrelEmcClusterMaker //
4 // //
5 // Michael Betancourt //
6 // Massachusetts Institute of Technology //
7 // //
8 // Find 3x3 tower cluster in the BEMC //
9 // //
10 // Original concept and implementation by //
11 // Pibero Djawatho (Indiana University) //
12 // //
14 
15 #ifndef STAR_StBarrelEmcClusterMaker
16 #define STAR_StBarrelEmcClusterMaker
17 
18 class StBarrelEmcCluster;
19 class StGammaEventMaker;
20 class StGammaRawMaker;
21 class StGammaTower;
22 
23 #include "StMaker.h"
24 
26 {
27 
28  public:
29 
30  StBarrelEmcClusterMaker(const char* name = "mBemcClusterMaker");
32 
33  virtual const char* GetCVS() const
34  {static const char cvs[] = "Tag $Name: $ $Id: StBarrelEmcClusterMaker.h,v 1.6 2014/08/06 11:43:17 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs; }
35 
36  // Required Maker Methods
37  int Init();
38  void Clear(Option_t* option = "");
39  int Make();
40  int Finish() { return kStOK; }
41 
42  // Accessors
43  vector<StBarrelEmcCluster*>& clusters();
44 
45  // Mutators
46  void setSeedThreshold(double threshold);
47  void setClusterThreshold(double threshold);
48 
49  private:
50 
51  float mHighTowerThreshold;
52  float mClusterThreshold;
53 
54  StGammaEventMaker* mGammaEventMaker;
55  StGammaRawMaker* mGammaRawMaker;
56  TVector3 mVertex;
57  vector<StBarrelEmcCluster*> mClusters;
58 
59  StBarrelEmcCluster* makeCluster(StGammaTower* tower) const;
60  void getTowerPosition(int id, TVector3& position) const;
61 
62  ClassDef(StBarrelEmcClusterMaker, 2)
63 
64 };
65 
66 inline vector<StBarrelEmcCluster*>& StBarrelEmcClusterMaker::clusters() { return mClusters; }
67 inline void StBarrelEmcClusterMaker::setSeedThreshold(double threshold) { mHighTowerThreshold = threshold; }
68 inline void StBarrelEmcClusterMaker::setClusterThreshold(double threshold) { mClusterThreshold = threshold; }
69 
70 #endif
void Clear(Option_t *option="")
User defined functions.
Definition: Stypes.h:40