StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcClusterDebug.hh
1 // StFtpcClusterDebug
2 
3 #ifndef STAR_StFtpcClusterDebug
4 #define STAR_StFtpcClusterDebug
5 
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include "TFile.h"
9 #include "TString.h"
10 #include "TH2.h"
11 #include "TTree.h"
12 #include "TBranch.h"
13 #include "TObjArray.h"
14 #include "TDirectory.h"
15 
16 #include "StDAQMaker/StFTPCReader.h"
17 #include "StFtpcClustersStructures.hh"
18 
20 {
21 
22  private:
23 
24  TString histodatei;
25  TFile *histofile;
26  int hardsecold, hardrowold,hardsecold2, hardrowold2;
27  Int_t run, nevent, neventold;
28  TH2F *clusterhisto,*clusterhisto2;
29  TH1F *vertex_east,*vertex_west,*vertex_both;
30  bool fileopen;
31  bool dir,dir2;
32  TBranch *bRun;
33  TBranch *bhit, *bevent, *bcluster;
34  TBranch *bthit, *btcluster, *btevent;
35  TBranch *btrevent, *btrack,*btrvertex;
36  TBranch *bclusterraw;
37 
38  TDirectory *histdir, *histdir2, *vertexdir;
39  TDirectory *topdir;
40 
41  void backup();
42 
43  public:
44 
45  TTree *drtree;
46  TTree *dtree;
47  TTree *dttree;
48  TTree *dtrtree;
49  TTree *dtreeraw;
50 
51  int drawclhisto;
52  int drawvertexhisto;
53 
55  StFtpcClusterDebug(int grun, int gevent);
56  void drawhisto(int hardsec, int hardrow, int iPad, TPCSequence HSequence);
57  void fillraw(int hardsec, int hardrow, int iPad, TPCSequence HSequence);
58  void drawgainhisto(int hardsec, int hardrow,int iPad,float gainfac,TPCSequence HSequence);
59  void drawvertex(TH1F *veast,TH1F *vwest, TH1F *v);
60  void fillRun(Int_t run, Int_t date, Int_t time, Float_t micropertimebin, Float_t normalizedNowPressure, Float_t standardPressure, Float_t baseTemperature, Float_t gasTemperatureWest, Float_t gasTemperatureEast, Float_t deltapW, Float_t deltapE);
61  void fillclustertree(TPeak *Peak,TClusterUC *cl,Float_t charge,Int_t hsec, Int_t hrow, Float_t raderror, Float_t phierror,Int_t flag,float getpressure, int getnumpeaks);
62  void fillclustertree(TPeak Peak,TClusterUC *cl,Float_t charge,Int_t hsec, Int_t hrow, Float_t raderror, Float_t phierror,Int_t flag,float getpressure, int getnumpeaks);
63  void clusteranalyse();
64  void filltracktree(TObjArray *foundtracks,Double_t vertexpos[3]);
65  void fillgeanttree();
67 };
68 
69 #endif