qaReader_epos4_root.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef QATOOLS_READERS_EPOS4_ROOT_H
  2. #define QATOOLS_READERS_EPOS4_ROOT_H
  3. #include <Rtypes.h>
  4. #include <TChain.h>
  5. #include <qaEvent.h>
  6. #include <qaParticle.h>
  7. #include <Utility.h>
  8. #include <qaReader_manager.h>
  9. #define MAX_TRACKS 15000
  10. class qaReader_epos4_root : virtual public qaReader_manager
  11. {
  12. private:
  13. TChain *fChain;
  14. const char *fChainName = "teposevent";
  15. bool is_init;
  16. Long64_t fCurrentEvent;
  17. Int_t np;
  18. Float_t bim;
  19. Float_t phi;
  20. Int_t nev;
  21. Int_t id[MAX_TRACKS]; //[np]
  22. Float_t e[MAX_TRACKS]; //[np]
  23. Float_t px[MAX_TRACKS]; //[np]
  24. Float_t py[MAX_TRACKS]; //[np]
  25. Float_t pz[MAX_TRACKS]; //[np]
  26. Float_t t[MAX_TRACKS]; //[np]
  27. Float_t x[MAX_TRACKS]; //[np]
  28. Float_t y[MAX_TRACKS]; //[np]
  29. Float_t z[MAX_TRACKS]; //[np]
  30. std::map<int,int> fId2pdg;
  31. void SetPidMap();
  32. Bool_t ChainCheck();
  33. public:
  34. qaReader_epos4_root(/* args */);
  35. virtual ~qaReader_epos4_root();
  36. virtual void SetChain(const TString &inputFileName);
  37. virtual Long64_t GetEntries() { return fChain->GetEntries(); }
  38. virtual qaEvent *ReadEvent(Long64_t iev);
  39. virtual qaParticle* ReadParticle(Int_t ipart);
  40. ClassDef(qaReader_epos4_root, 0);
  41. };
  42. #endif