00001
00002
00003 #ifndef STAR_StMcOutputMaker
00004 #define STAR_StMcOutputMaker
00005
00006
00007 #ifndef StMaker_H
00008 #include "StMaker.h"
00009 #endif
00010
00011 class TH1;
00012 class TObjArray ;
00013 class EEmcGeomSimple;
00014 #include "StLorentzVectorF.hh"
00015 #include "StMcEvent/StMcTrack.hh"
00016
00017 class StMcOutputMaker : public StMaker {
00018 private:
00019 enum {mxHa=16};
00020 TH1 *hA[mxHa];
00021 EEmcGeomSimple *geomE;
00022
00023 public:
00024 StLorentzVectorF probTr;
00025 TObjArray *HList;
00026 void SetHList(TObjArray * x){HList=x;}
00027
00028 StMcOutputMaker(const char *name="mcRead");
00029
00030 virtual ~StMcOutputMaker();
00031 virtual Int_t Init();
00032 virtual Int_t Make();
00033 float TgenEoftower();
00034 float TgenEta();
00035 float TgenPhi();
00036 float genZgg();
00037 float genE;
00038 float genEta;
00039 float genPhi;
00040 float zgg;
00041 void Clear(const Option_t*);
00042
00043
00044
00046 virtual const char *GetCVS() const {
00047 static const char cvs[]="Tag $Name: $ $Id: StMcOutputMaker.h,v 1.1 2008/10/30 15:52:15 balewski Exp $ built "__DATE__" "__TIME__ ;
00048 return cvs;
00049 }
00050 vector <StMcTrack *> gTr;
00051 std::vector<Float_t> geemcEta;
00052 std::vector<Float_t> genZZ;
00053 std::vector<Float_t> genXX;
00054 std::vector<Float_t> genYY;
00055 ClassDef(StMcOutputMaker,0)
00056 };
00057
00058 inline float StMcOutputMaker::TgenEoftower() { return (float) genE; }
00059 inline float StMcOutputMaker::TgenEta() { return (float) genEta; }
00060 inline float StMcOutputMaker::TgenPhi() { return (float) genPhi; }
00061 inline Float_t StMcOutputMaker::genZgg(){ return (float)zgg; }
00062 #endif
00063
00064
00065
00066
00067
00068