/** AsyUnpack * @author P. Russotto * @since 13.04.12 ** ** Base class for tasks in the cbmroot framework. ** Derived classes should implement the Exec method. **/ #ifndef MBUnpack_H #define MBUnpack_H #include "FairLogger.h" #include "FairRootManager.h" #include "FairTask.h" #include "TMath.h" #include "TRootEvent.h" #include "TMBALLEvent.h" #include "TClonesArray.h" #include "TEvtBuffer.h" class MBUnpack : public FairTask { public: /** Default constructor **/ MBUnpack(); /** Standard constructor *@param name Name of task *@param iVerbose Verbosity level **/ MBUnpack(const char* name, Int_t iVerbose = 1); /** Destructor **/ virtual ~MBUnpack(); /** Virtual method Init **/ InitStatus Init(); /** Virtual method Exec **/ void Exec(Option_t* opt); void Finish(); void Reset(); void SetParTask(); private: MBUnpack(const MBUnpack&); MBUnpack& operator=(const MBUnpack&); TMBALLEvent* fMBall_evt; TRootTS* fMBSTS; TClonesArray *fMBSTSCopy; TRootMBallEvent *fRootMBallEvent; TClonesArray *fRootMBallEventCopy; TRootMBallGlobal *fRootMBallGlobal; TClonesArray *fRootMBallGlobalCopy; TEvtBuffer *ffBuffer; TClonesArray *ffBufferClone; ClassDef(MBUnpack,1); }; #endif