00001 #ifndef ST_CHARGED_PION_MAKER_HH
00002 #define ST_CHARGED_PION_MAKER_HH
00003
00004
00005
00006 #ifndef StMaker_H
00007 #include "StMaker.h"
00008 #endif
00009
00010 class TFile;
00011 class TTree;
00012 class TClonesArray;
00013 class TString;
00014
00015 class StEmcTriggerMaker;
00016 class StJetMaker;
00017 class StMuDstMaker;
00018 class StSpinDbMaker;
00019 class StTriggerSimuMaker;
00020 class StJets;
00021 class StMiniMcEvent;
00022
00023 class StChargedPionBaseEv;
00024 class StChargedPionEvent;
00025 class StChargedPionJet;
00026 class StChargedPionMcEvent;
00027 class StChargedPionTrack;
00028
00029 class StChargedPionMaker : public StMaker {
00030 public:
00031 StChargedPionMaker(const char *name = "chargedPionMaker", const char *outfile = "test.tracks.root");
00032 virtual ~StChargedPionMaker();
00033
00034 void Clear(const char *option="");
00035 Int_t Init();
00036 Int_t InitRun(int runnumber);
00037 Int_t Make();
00038 Int_t Finish();
00039
00040 void addTrigger(int trigId);
00041
00042 const char* GetCVS() const
00043 {static const char cvs[]="Tag $Name: $ $Id: StChargedPionMaker.h,v 1.10 2008/12/29 15:58:30 kocolosk Exp $ built "__DATE__" "__TIME__; return cvs;}
00044
00045 private:
00046 TFile *mFile;
00047 TTree *mTree;
00048 StChargedPionBaseEv *mEvent;
00049
00050 TFile *mJetFile;
00051 TTree *mJetTree;
00052 StJets *mJets;
00053 StJets *mPyJets;
00054
00055 TH1 *mBadTracks;
00056 enum badTrackTypes {kFlagged=1, kBadHelix, kBadOuterHelix, kMissingGlobal};
00057
00058 TString mCurrentFile;
00059
00060 TFile *mMiniMcFile;
00061 TTree *mMiniMcTree;
00062 StMiniMcEvent *mMiniMcEvent;
00063
00064
00065 StMuDstMaker *mMuDstMk;
00066 StSpinDbMaker *mSpDbMk;
00067 StEmcTriggerMaker *mEmcTrgMk;
00068 StJetMaker *mJetMk;
00069 StTriggerSimuMaker *mTrgSimuMk;
00070
00071 vector<int> mTriggers;
00072
00073 void makeTriggerSimu(StChargedPionBaseEv*);
00074
00075 ClassDef(StChargedPionMaker,1)
00076 };
00077
00078 inline void StChargedPionMaker::
00079 addTrigger(int trigId) { mTriggers.push_back(trigId); }
00080
00081 #endif
00082
00083
00084
00085
00086
00087
00088
00089