fmcReadmciniEvent.h 970 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // Created by peter on 11/29/19.
  3. //
  4. #ifndef FMC_FMCREADMCINIEVENT_H
  5. #define FMC_FMCREADMCINIEVENT_H
  6. #include <TROOT.h>
  7. #include <TChain.h>
  8. #include <TFile.h>
  9. #include <TDatabasePDG.h>
  10. #include <algorithm>
  11. #include <URun.h>
  12. #include <UEvent.h>
  13. #include <UParticle.h>
  14. #include <EventInitialState.h>
  15. #include "fmcEvent.h"
  16. class fmcReadmciniEvent {
  17. private:
  18. TTree *fChain;
  19. Int_t fCurrent;
  20. EventInitialState *fIniState;
  21. UEvent *fEvent;
  22. public:
  23. fmcReadmciniEvent();
  24. virtual ~fmcReadmciniEvent();
  25. virtual void Init(TTree *tree);
  26. virtual Long64_t LoadTree(Long64_t entry);
  27. virtual Bool_t Notify();
  28. virtual Long64_t GetEntries();
  29. virtual Long64_t GetEntriesFast();
  30. virtual fmcInt GetNparticle();
  31. // virtual fmcEvent *ReadEvent(fmcLong iev);
  32. virtual fmcEventHeader *ReadEventHeader(fmcLong iev);
  33. virtual fmcParticle *ReadParticle(fmcInt ipart);
  34. };
  35. #endif //FMC_FMCREADMCINIEVENT_H