StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtClustFindMaker.h
1 // $Id: StFgtClustFindMaker.h,v 1.2 2014/08/06 11:42:57 jeromel Exp $
2 
3 
4 /* \class StFgtClustFindMaker
5 \author Jan Balewski
6 
7 CLuster finder for FGT
8 
9 
10 */
11 
12 #ifndef STAR_StFgtClustFindMaker
13 #define STAR_StFgtClustFindMaker
14 
15 
16 #ifndef StMaker_H
17 #include "StMaker.h"
18 #endif
19 
20 #include "StFgtGeom.h"
21 #include "StFgtContainers.h"
22 class TRandom3;
23 
24 class StFgtClustFindMaker : public StMaker {
25  private:
26  enum {mxH=16};
27  TH1 *hA[mxH];
28  TObjArray *HList;
29  StFgtGeom *geom;
30  TRandom3* mRnd;
31 
32  int mInpEve;
33  int par_bx_valley; // # of strips, min separation between 2 clusters
34  int par_cl_width; // # of strips,min cluster width
35  double par_seedStripThres; //a.u., for valid cluster
36  double par_clusterMinAmpl; // a.u., min ampl for a cluster
37  double par_stripNoiseSigma; // random noise sigma
38 
39  int findClust1D(vector<fgt_strip> &sL, vector<fgt_cluster1D> &clL);
40  public:
41  vector<fgt_cluster1D> mRadClustList[kFgtMxDisk]; // tmp for export
42  vector<fgt_cluster1D> mPhiClustList[kFgtMxDisk];
43 
44 
45  StFgtClustFindMaker(const char *name="FgtClustFind");
46  virtual ~StFgtClustFindMaker();
47  virtual Int_t Init();
48  virtual Int_t Finish();
49  virtual Int_t Make();
50  virtual void Clear(Option_t *option="");
51  void setHList(TObjArray * x){HList=x;}
52  void setStripNoiseSigma(double x) {par_stripNoiseSigma=x;}
53  void setSeedStripThres(double x) {par_seedStripThres=x;}
54  void setClusterMinAmpl(double x) {par_clusterMinAmpl=x;}
55  void saveHisto(TString fname);
56 
57  virtual const char *GetCVS() const {
58  static const char cvs[]="Tag $Name: $ $Id: StFgtClustFindMaker.h,v 1.2 2014/08/06 11:42:57 jeromel Exp $ built " __DATE__ " " __TIME__ ;
59 
60  return cvs;
61  }
62  private:
63 
64  ClassDef(StFgtClustFindMaker,0)
65 };
66 
67 #endif
68 
69 
70 // $Log: StFgtClustFindMaker.h,v $
71 // Revision 1.2 2014/08/06 11:42:57 jeromel
72 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
73 //
74 // Revision 1.1 2011/04/07 19:31:22 balewski
75 // start
76 //
77 
virtual void Clear(Option_t *option="")
User defined functions.
StFgtClustFindMaker(const char *name="FgtClustFind")