StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFttPointMaker.h
1 /***************************************************************************
2  *
3  * StFttPointMaker.h
4  *
5  * Author: jdb 2021
6  ***************************************************************************
7  *
8  * Description: StFttPointMaker - class to fill the points in StEvent
9  *
10  ***************************************************************************/
11 #ifndef STFTTPOINTMAKER_H
12 #define STFTTPOINTMAKER_H
13 #include "StMaker.h"
14 #include <vector>
15 #include <map>
16 
17 
18 
19 class StFttDb;
20 class StEvent;
21 class StFttCollection;
22 class StFttPoint;
23 class StFttCluster;
24 
25 class StFttPointMaker: public StMaker {
26 
27 public:
28  StFttPointMaker( const char* name = "stgcPoint" );
29 
30  ~StFttPointMaker();
31 
32 
33  Int_t Init();
34  Int_t InitRun( Int_t );
35  Int_t FinishRun( Int_t );
36  Int_t Finish();
37  Int_t Make();
38 
39 private:
40  void InjectTestData();
41  void MakeLocalPoints();
42  void clusterBounds( StFttCluster* clu, float &x1, float &y1, float &x2, float &y2 );
43  StFttPoint *makePoint( StFttCluster * cluH, StFttCluster * cluV, int mode = 0 );
44  void MakeGlobalPoints();
45 
46  StEvent* mEvent;
47  StFttCollection* mFttCollection;
48  Bool_t mDebug;
49  Bool_t mUseTestData;
50  StFttDb* mFttDb;
51 
52  ClassDef( StFttPointMaker, 1 )
53 };
54 
55 #endif // STFTTPOINTMAKER_H