00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00059 #ifndef StPeCMaker_HH
00060 #define StPeCMaker_HH
00061 #include "StMaker.h"
00062 #include "StPeCEvent.h"
00063 #include "StPeCTrigger.h"
00064 #include "StPeCGeant.h"
00065 #include "TH1.h"
00066 #include "TH2.h"
00067 #include "TNtuple.h"
00068 #include "TFile.h"
00069 #include "TTree.h"
00070 #include "TString.h"
00071
00072 class StEvent;
00073 class StPeCEvent;
00074 class TH1F;
00075 class TH2F;
00076 class StMuDst;
00077
00078 class StPeCMaker : public StMaker
00079 {
00080 public:
00081 StPeCMaker(const Char_t *name = "analysis");
00082 virtual ~StPeCMaker();
00083 virtual Int_t Init();
00084 virtual Int_t InitRun(Int_t runnr);
00085 virtual Int_t Make();
00086 virtual Int_t Finish();
00087
00088 void setInfoLevel(Int_t in) {infoLevel = in ;};
00089 void setFilter(Int_t fi) {filter = fi;};
00090 void setMuDst(StMuDst* mu) {muDst = mu;};
00091 void setFileName ( TString name ) { treeFileName = name ; } ;
00092 void setOutputPerRun ( Int_t in = 1 ) { outputPerRun = in ; } ;
00093
00094 TString treeFileName ;
00095 protected:
00096 TFile* m_outfile;
00097
00098 TTree* uDstTree;
00099 TTree* geantTree;
00100
00101 StPeCEvent* pevent;
00102 StPeCTrigger* trigger;
00103 StPeCGeant* geant;
00104
00105 Int_t infoLevel;
00106 Int_t filter;
00107 Int_t outputPerRun ;
00108 private:
00109 StMuDst* muDst;
00110
00111
00112 Int_t Cuts(StEvent* event, StPeCEvent* pevent);
00113 Int_t Cuts4Prong(StEvent* event, StPeCEvent* pevent);
00114 Int_t triggerSim(StEvent*);
00115
00116 virtual const char *GetCVS() const
00117 {static const char cvs[]="Tag $Name: $ $Id: StPeCMaker.h,v 1.15 2003/11/25 01:54:32 meissner Exp $ built "__DATE__" "__TIME__ ; return cvs;}
00118
00119 ClassDef(StPeCMaker,1)
00120 };
00121
00122 #endif
00123
00124
00125