00001
00002
00003 #ifndef STAR_StFtpcClusterDebug
00004 #define STAR_StFtpcClusterDebug
00005
00006 #include <sys/types.h>
00007 #include <stdio.h>
00008 #include <stdlib.h>
00009 #include "TFile.h"
00010 #include "TString.h"
00011 #include "TH2.h"
00012 #include "TTree.h"
00013 #include "TBranch.h"
00014 #include "TObjArray.h"
00015 #include "TDirectory.h"
00016
00017 #include "StDAQMaker/StFTPCReader.h"
00018 #include "StFtpcClustersStructures.hh"
00019
00020 class StFtpcClusterDebug
00021 {
00022
00023 private:
00024
00025 TString histodatei;
00026 TFile *histofile;
00027 int hardsecold, hardrowold,hardsecold2, hardrowold2;
00028 Int_t run, nevent, neventold;
00029 TH2F *clusterhisto,*clusterhisto2;
00030 TH1F *vertex_east,*vertex_west,*vertex_both;
00031 bool fileopen;
00032 bool dir,dir2;
00033 TBranch *bRun;
00034 TBranch *bhit, *bevent, *bcluster;
00035 TBranch *bthit, *btcluster, *btevent;
00036 TBranch *btrevent, *btrack,*btrvertex;
00037 TBranch *bclusterraw;
00038
00039 TDirectory *histdir, *histdir2, *vertexdir;
00040 TDirectory *topdir;
00041
00042 void backup();
00043
00044 public:
00045
00046 TTree *drtree;
00047 TTree *dtree;
00048 TTree *dttree;
00049 TTree *dtrtree;
00050 TTree *dtreeraw;
00051
00052 int drawclhisto;
00053 int drawvertexhisto;
00054
00055 StFtpcClusterDebug();
00056 StFtpcClusterDebug(int grun, int gevent);
00057 void drawhisto(int hardsec, int hardrow, int iPad, TPCSequence HSequence);
00058 void fillraw(int hardsec, int hardrow, int iPad, TPCSequence HSequence);
00059 void drawgainhisto(int hardsec, int hardrow,int iPad,float gainfac,TPCSequence HSequence);
00060 void drawvertex(TH1F *veast,TH1F *vwest, TH1F *v);
00061 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);
00062 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);
00063 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);
00064 void clusteranalyse();
00065 void filltracktree(TObjArray *foundtracks,Double_t vertexpos[3]);
00066 void fillgeanttree();
00067 ~StFtpcClusterDebug();
00068 };
00069
00070 #endif