// ----------------------------------------------------------------------------- // ----- ----- // ----- CbmRocSource ----- // ----- Created 05.11.2013 by F. Uhlig ----- // ----- ----- // ----------------------------------------------------------------------------- #ifndef CBMROCSOURCE_H #define CBMROCSOURCE_H #include "FairSource.h" #include "roc/Message.h" #include "roc/Iterator.h" #include "TString.h" class CbmRocSource : public FairSource { public: CbmRocSource(); CbmRocSource(const char *); CbmRocSource(const CbmRocSource& source); virtual ~CbmRocSource(); virtual Bool_t Init(); virtual Int_t ReadEvent(); virtual void Close(); virtual void Reset(); void AddFile(const char * fname) { fInputFileName = fname;} private: TString fInputFileName; /** Name of input LMD file **/ Int_t fNofMessages; /** Number of processed ROC messages **/ roc::Iterator* fRocIter; //! ROC iterator roc::Message* fCurrentMessage; //! Curent ROC message ClassDef(CbmRocSource, 0) }; #endif