00001
00002
00003 #ifndef STAR_StGeant2LcpTreeMaker
00004 #define STAR_StGeant2LcpTreeMaker
00005
00016 #ifndef StMaker_H
00017 #include "StMaker.h"
00018 #endif
00019
00020 class StMuDstMaker;
00021 class TFile;
00022 class TH1F;
00023 class TH2F;
00024
00025 class TTree;
00026 class particle_st;
00027 class St_particle ;
00028
00029 class StGeant2LcpTreeMaker : public StMaker {
00030 private:
00031 StMuDstMaker* mMuDstMaker;
00032 TFile *hfile;
00033 TH1F *h[16];
00034 TH1F *hc[8];
00035 TTree *tree ;
00036 int runID;
00037 TString treeName;
00038
00039
00040 Int_t eve_id;
00041 Int_t eve_sub;
00042 Int_t eve_nPKPi;
00043 Float_t lcp_eta,lcp_phi,lcp_pt;
00044 Int_t lcp_idhep;
00045 Float_t lcp_e;
00046
00047 void clearLCP();
00048
00049
00050 float C_maxEta;
00051 float C_minPt;
00052
00053 void printTrack( particle_st* part);
00054 particle_st* findGeantLcp( St_particle *tab);
00055
00056 public:
00057 StGeant2LcpTreeMaker(const char *self="jasLcp2Tree", const char* muDstMakerName="muDstMaker");
00058 virtual ~StGeant2LcpTreeMaker();
00059 virtual Int_t Init();
00060 virtual Int_t Make();
00061 void SetOutDir(const char * path) {treeName=path;}
00062 void SetMaxEta(float x){C_maxEta=x;}
00063 void SetMinPt(float x){C_minPt=x;}
00064 void InitRunFromMake(int run_id);
00065
00067 virtual const char *GetCVS() const {
00068 static const char cvs[]="Tag $Name: $ $Id: StGeant2LcpTreeMaker.h,v 1.1 2004/01/06 17:25:26 balewski Exp $ built "__DATE__" "__TIME__ ;
00069 return cvs;
00070 }
00071
00072 ClassDef(StGeant2LcpTreeMaker, 1)
00073 };
00074
00075 #endif
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090