00001
00002
00003 #ifndef STJMCPARTICLELISTWRITER_H
00004 #define STJMCPARTICLELISTWRITER_H
00005
00006 #include <TObject.h>
00007
00008 #include "StjMCParticleList.h"
00009 #include <Rtypes.h>
00010
00011 class TDirectory;
00012 class TTree;
00013
00014 class StjMCParticleListWriter : public TObject {
00015
00016 public:
00017
00018 StjMCParticleListWriter(const char* treeName, TDirectory* file);
00019 virtual ~StjMCParticleListWriter() { }
00020
00021 void Fill(const StjMCParticleList& 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 _nMCParticles;
00032 Int_t _mcparticleId[4096];
00033 Int_t _pdg[4096];
00034 Int_t _firstMotherId[4096];
00035 Int_t _lastMotherId[4096];
00036 Int_t _firstDaughterId[4096];
00037 Int_t _lastDaughterId[4096];
00038 Double_t _pt[4096];
00039 Double_t _eta[4096];
00040 Double_t _phi[4096];
00041 Double_t _m[4096];
00042 Double_t _e[4096];
00043 Int_t _status[4096];
00044 Double_t _vertexZ;
00045
00046 ClassDef(StjMCParticleListWriter, 1)
00047
00048 };
00049
00050 #endif // STJMCPARTICLELISTWRITER_H