MpdFemtoMiniDstReader.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**
  2. * \class MpdFemtoMiniDstReader
  3. * \brief Reader for the MpdMiniDst format
  4. *
  5. * The reader class for MpdMiniDst format. It reads McDst and
  6. * converts data to the internal MpdFemtoMaker structure (MpdFemtoEvent,
  7. * MpdFemtoTrack, etc).
  8. *
  9. * \author Grigory Nigmatkulov (NRNU MEPhI)
  10. * \date September 03, 2020
  11. * \email nigmatkulov@gmail.com
  12. */
  13. #ifndef MpdFemtoMiniDstReader_h
  14. #define MpdFemtoMiniDstReader_h
  15. // MpdFemtoMaker headers
  16. // Base
  17. #include "MpdFemtoBaseEventReader.h"
  18. // Infrastructure
  19. #include "MpdFemtoEvent.h"
  20. #include "MpdFemtoTrack.h"
  21. #include "MpdFemtoV0.h"
  22. #include "MpdFemtoKink.h"
  23. #include "MpdFemtoXi.h"
  24. #include "MpdFemtoEnumeration.h"
  25. #include "MpdFemtoString.h"
  26. #include "MpdFemtoModelHiddenInfo.h"
  27. // MpdMiniDst headers
  28. #include "MpdMiniDst.h"
  29. #include "MpdMiniDstReader.h"
  30. #include "MpdMiniEvent.h"
  31. #include "MpdMiniTrack.h"
  32. #include "MpdMiniMcTrack.h"
  33. #include "MpdMiniBTofPidTraits.h"
  34. // ROOT haders
  35. #include "TSystem.h"
  36. #include "TChain.h"
  37. #include "TTree.h"
  38. //_________________
  39. class MpdFemtoMiniDstReader : public MpdFemtoBaseEventReader {
  40. public:
  41. /// Default constructor
  42. MpdFemtoMiniDstReader();
  43. /// Constructor
  44. MpdFemtoMiniDstReader(MpdMiniDstReader *miniDstReader, int debug=1);
  45. /// Copy constructor
  46. MpdFemtoMiniDstReader(const MpdFemtoMiniDstReader& copy);
  47. /// Assignment operator
  48. MpdFemtoMiniDstReader& operator=(const MpdFemtoMiniDstReader& copy);
  49. /// Destructor
  50. virtual ~MpdFemtoMiniDstReader();
  51. /// Return MpdFemtoEvent (back to the analysis)
  52. virtual MpdFemtoEvent *returnHbtEvent();
  53. /// Make report
  54. virtual MpdFemtoString report();
  55. /// Set miniDst reader
  56. void setMiniDstReader(MpdMiniDstReader *miniDstReader) { mMiniDstReader = miniDstReader; }
  57. private:
  58. /// Pointer to the MpdMiniDstReader
  59. MpdMiniDstReader *mMiniDstReader;
  60. /// Pointer to MpdFemtoEvent
  61. MpdFemtoEvent *mHbtEvent;
  62. /// Number of events passed
  63. long int mEventsPassed;
  64. #ifdef __ROOT__
  65. ClassDef(MpdFemtoMiniDstReader, 1)
  66. #endif
  67. };
  68. #endif // #define MpdFemtoMiniDstReader_h