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
00043
00044
00045
00046 #ifndef STAR_StEpcMaker
00047 #define STAR_StEpcMaker
00048 #include "StMaker.h"
00049 #include "StMessMgr.h"
00050 #include <TH2.h>
00051
00052 class StEvent;
00053 class StEmcCollection;
00054 class StPointCollection;
00055
00056 class StEpcMaker : public StMaker
00057 {
00058 private:
00059 StEvent* mEvent;
00060 StEmcCollection* mTheEmcCollection;
00061 StPointCollection* mPoint;
00062 void MakeHistograms();
00063
00064 protected:
00065 TH1F *m_point_flag;
00066 TH1F *m_point_quality;
00067 TH1F *m_point_energy[4];
00068 TH1F *m_point_eta[4];
00069 TH1F *m_point_phi[4];
00070
00071
00072 TH1F *m_point_sigeta[4];
00073 TH1F *m_point_sigphi[4];
00074 TH1F *m_point_trmom[4];
00075 TH1F *m_emc_points[4];
00076
00077 Bool_t mFillHisto;
00078
00079 public:
00080 StEpcMaker(const char *name="epc");
00081 virtual ~StEpcMaker();
00082 virtual Int_t Init();
00083 virtual Int_t Make();
00084 virtual Int_t Finish();
00085 virtual Int_t fillStEvent();
00086 void setPrint(Bool_t a)
00087 {
00088 LOG_INFO << "::setPrint() is obsolete. Use logger config file to set verbosity instead." << endm;
00089 }
00090 void setFillHisto(Bool_t a)
00091 {
00092 mFillHisto = a;
00093 }
00094 virtual void Browse(TBrowser* b);
00095
00096 virtual const char *GetCVS() const
00097 {
00098 static const char cvs[]=
00099 "Tag $Name: $ $Id: StEpcMaker.h,v 1.12 2007/01/22 19:13:50 kocolosk Exp $ built "__DATE__" "__TIME__ ;
00100 return cvs;
00101 }
00102
00103 ClassDef(StEpcMaker,0)
00104 };
00105
00106 #endif
00107
00108
00109
00110
00111
00112
00113
00114