00001
00002
00003 #ifndef STJTRACKLISTWRITER_H
00004 #define STJTRACKLISTWRITER_H
00005
00006 #include <TObject.h>
00007
00008 #include "StjTrackList.h"
00009 #include <Rtypes.h>
00010
00011 class TDirectory;
00012 class TTree;
00013
00014 class StjTrackListWriter : public TObject {
00015
00016 public:
00017
00018 StjTrackListWriter(const char* treeName, TDirectory* file);
00019 virtual ~StjTrackListWriter() { }
00020
00021 void Fill(const StjTrackList& theList);
00022 void Finish();
00023
00024 private:
00025
00026 TDirectory* _file;
00027 TTree* _tree;
00028
00029 Int_t _runNumber;
00030 Int_t _eventId;
00031 Int_t _detectorId;
00032 Int_t _nTracks;
00033 Double_t _pt[4096];
00034 Double_t _eta[4096];
00035 Double_t _phi[4096];
00036 Short_t _flag[4096];
00037 UShort_t _nHits[4096];
00038 Short_t _charge[4096];
00039 UShort_t _nHitsPoss[4096];
00040 UShort_t _nHitsDedx[4096];
00041 UShort_t _nHitsFit[4096];
00042 Double_t _nSigmaPion[4096];
00043 Double_t _Tdca[4096];
00044 Double_t _dcaZ[4096];
00045 Double_t _dcaD[4096];
00046 Double_t _BField;
00047 Double_t _vertexZ;
00048 Double_t _bemcRadius;
00049 Int_t _exitDetectorId[4096];
00050 Int_t _exitTowerId[4096];
00051 Double_t _exitEta[4096];
00052 Double_t _exitPhi[4096];
00053 Double_t _dEdx[4096];
00054 Int_t _trackIndex[4096];
00055 Short_t _trackId[4096];
00056
00057 ClassDef(StjTrackListWriter, 1)
00058
00059 };
00060
00061 #endif // STJTRACKLISTWRITER_H