00001
00002
00003
00004 #ifndef STJMCPARTICLELISTREADER_H
00005 #define STJMCPARTICLELISTREADER_H
00006
00007 #include "StjTreeReader.h"
00008
00009 #include "StjMCParticleList.h"
00010
00011 #include <Rtypes.h>
00012
00013 class StjMCParticleListReader : public StjTreeReader {
00014
00015 public:
00016 StjMCParticleListReader(TTree *tree) : StjTreeReader(tree) { }
00017 virtual ~StjMCParticleListReader() { }
00018
00019 StjMCParticleList getMCParticleList() { return _list; }
00020
00021 private:
00022
00023 void SetBranchAddress(TTree *tree);
00024
00025 void clearEntry();
00026 void readEntry();
00027
00028 StjMCParticleList _list;
00029
00030 Int_t _runNumber;
00031 Int_t _eventId;
00032 Int_t _nMCParticles;
00033 Int_t _mcparticleId[4096];
00034 Int_t _pdg[4096];
00035 Int_t _firstMotherId[4096];
00036 Int_t _lastMotherId[4096];
00037 Int_t _firstDaughterId[4096];
00038 Int_t _lastDaughterId[4096];
00039 Double_t _pt[4096];
00040 Double_t _eta[4096];
00041 Double_t _phi[4096];
00042 Double_t _m[4096];
00043 Double_t _e[4096];
00044 Int_t _status[4096];
00045 Double_t _vertexZ;
00046
00047 ClassDef(StjMCParticleListReader, 1)
00048
00049 };
00050
00051 #endif // STJMCPARTICLELISTREADER_H