StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFcsEventDisplay.h
1 // \class StFcsEventDisplay
2 // \author Akio Ogawa
3 //
4 // This is FCS event display.
5 //
6 // $Id: StFcsEventDisplay.h,v 1.1 2021/03/30 13:34:15 akio Exp $
7 // $Log: StFcsEventDisplay.h,v $
8 // Revision 1.1 2021/03/30 13:34:15 akio
9 // Moved from $CVSROOT/offline/upgrade/akio/ to $CVSROOT/StRoot/StSpinPool/
10 //
11 // Revision 1.7 2021/02/25 21:28:07 akio
12 // Int_t -> int
13 //
14 // Revision 1.6 2021/02/13 21:37:31 akio
15 // #ifdef ___USESTGC___
16 //
17 // Revision 1.5 2020/05/29 18:54:29 akio
18 // Adding EPD as PRES
19 //
20 // Revision 1.4 2019/08/01 18:38:22 akio
21 // Added STGC
22 //
23 // Revision 1.3 2019/07/02 14:43:16 akio
24 // fixed TColor id ovewrite problem, fixed pdf file creation
25 //
26 // Revision 1.2 2019/06/21 18:53:25 akio
27 // added run19 version
28 //
29 // Revision 1.1 2018/11/14 16:50:14 akio
30 // FCS codes in offline/upgrade/akio
31 //
32 
33 #ifndef STAR_StFcsEventDisplay_HH
34 #define STAR_StFcsEventDisplay_HH
35 
36 #include "StMaker.h"
37 #include "StEnumerations.h"
38 
39 class TCanvas;
40 class TApplication;
41 class StFcsDb;
42 class StFcsCollection;
43 #ifdef ___USESTGC___
44 class StStgcDbMaker;
45 class StStgcCollection;
46 #endif
47 class StEpdGeom;
48 
49 class StFcsEventDisplay : public StMaker{
50 public:
51  StFcsEventDisplay(const char* name="FcsED");
53  int Init();
54  int Make();
55  int Finish();
56 
57  void setFilter(int v){mFilter=v;}
58  void setMaxEvents(int v){mMaxEvents=v;}
59  void setFileName(char* file){mFilename=file;}
60  void setRun19(int v) {mRun19=v;}
61  void setDebug(int v) {mDebug=1;}
62  void setMinMax(float min, float max) {mMinE=min; mMaxE=max;} // log10 min/max
63 
64 private:
65  StFcsDb* mFcsDb=0;
66  StFcsCollection* mFcsColl=0;
67 #ifdef ___USESTGC___
68  StStgcDbMaker* mStgcDbMaker=0;
69  StStgcCollection* mStgcColl=0;
70 #endif
71  StEpdGeom* mEpdgeo=0;
72 
73  float mMinE=-1.0;
74  float mMaxE=2.0;
75 
76  TApplication* mApplication=0;
77  TCanvas* mCanvas=0;
78  int mDebug=0;
79  int mFilter=0;
80  int mNEvents=-1;
81  int mNAccepted=0;
82  int mMaxEvents=20;
83  char* mFilename=0;
84  int mRun19=0;
85  TFile* mFile=0;
86 
87  virtual const char *GetCVS() const
88  {static const char cvs[]="Tag $Name: $ $Id: StFcsEventDisplay.h,v 1.1 2021/03/30 13:34:15 akio Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
89 
90  ClassDef(StFcsEventDisplay,0);
91 };
92 
93 #endif