00001
00002
00003 #ifndef STAR_StMuLcp2TreeMaker
00004 #define STAR_StMuLcp2TreeMaker
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 StMuTrack;
00027
00028 class StMuEvent;
00029 class CtbMatching;
00030
00031 class StMuLcp2TreeMaker : public StMaker {
00032 private:
00033 StMuDstMaker* mMuDstMaker;
00034 TObjArray* primTrA;
00035
00036 TFile *hfile;
00037 TH1F *h[16];
00038 TH1F *hc[8];
00039 TTree *tree ;
00040 int runID;
00041 int off48;
00042 TString treeName;
00043
00044
00045 Float_t eve_vz;
00046 Int_t eve_bx48,eve_bx120;
00047 Int_t eve_id;
00048 Int_t eve_sb;
00049 Int_t eve_nPrim;
00050 Int_t eve_nGlob;
00051 Int_t eve_cosm;
00052 Float_t lcp_eta,lcp_phi,lcp_pt;
00053 Int_t lcp_q,lcp_nFit;
00054
00055 void clearLCP();
00056 const StMuTrack* findLCP( float minPt,int minNFitP, float maxDCAxy, float maxEta, float minFitPfrac) ;
00057 void examinCut(const StMuTrack* lcp0);
00058
00059 int C_minNFitPoint;
00060 float C_minFitPfrac;
00061 float C_maxDCAxy;
00062 float C_maxEta;
00063 float C_minPt;
00064 float C_maxZvertex;
00065
00066 CtbMatching *ctb;
00067
00068 public:
00069 StMuLcp2TreeMaker(const char *self="jasLcp2Tree", const char* muDstMakerName="muDstMaker");
00070 virtual ~StMuLcp2TreeMaker();
00071 virtual Int_t Init();
00072 Int_t InitRunFromMake (int runumber);
00073 virtual Int_t Make();
00074 void SetOutDir(const char * path) {treeName=path;}
00075 void SetOff48(int off) {off48=off;}
00076 void SetMinNFitPoint(int n){C_minNFitPoint=n;}
00077 void SetMaxDCAxy(float x){C_maxDCAxy=x;}
00078 void SetMaxEta(float x){C_maxEta=x;}
00079 void SetMinPt(float x){C_minPt=x;}
00080 void SetMaxZvert(float x){C_maxZvertex=x;}
00081 void SetMinFitPfrac(float x){C_minFitPfrac=x;}
00082
00083
00085 virtual const char *GetCVS() const {
00086 static const char cvs[]="Tag $Name: $ $Id: StMuLcp2TreeMaker.h,v 1.5 2009/12/02 16:35:58 fine Exp $ built "__DATE__" "__TIME__ ;
00087 return cvs;
00088 }
00089
00090 ClassDef(StMuLcp2TreeMaker, 1)
00091 };
00092
00093 #endif
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111