/** MBSUnpack * @author P. Russotto * @since 12.03.12 ** ** Base class for tasks in the cbmroot framework. ** Derived classes should implement the Exec method. ** Modified by A. Le Fevre, 11/2012 (ROOT INFO branch added) **/ #ifndef MBSUnpack_H #define MBSUnpack_H #include "FairLogger.h" #include "FairRootManager.h" #include "FairTask.h" #include "TRootEvent.h" // ALF, 11/2012 #include "TClonesArray.h" #include "MbsFile.h" #include "TEvtBuffer.h" #include "FairRunAna.h" #include "TMbsInfo.h" using std::cout; using std::endl; class MBSUnpack : public FairTask { public: /** Default constructor **/ MBSUnpack(); /** Standard constructor *@param name Name of task *@param iVerbose Verbosity level **/ MBSUnpack(const char* name, TString runlist, Int_t iVerbose = 1); ///, FairRunAna *pippo = NULL /** Destructor **/ virtual ~MBSUnpack(); /** Virtual method Init **/ InitStatus Init(); /** Virtual method Exec **/ void Exec(Option_t* opt); void Finish(); void Reset(); void SetParTask(); void PrintBuffer(TString Det, int * SubEvtPtr, int jmax); private: MBSUnpack(const MBSUnpack&); MBSUnpack& operator=(const MBSUnpack&); TRootINFOEvent *fRootINFOEvent; // ALF, 11/2012 TClonesArray *fRootINFOEventCopy; // ALF, 11/2012 Int_t ii; Int_t chievt; Int_t krattaevt; Int_t mbsevt; Int_t totevt; Int_t iFile, NFiles; TString InFile ; ifstream inputfile; TString frunlist; MbsFile *fMyMbs; Int_t *fMbsFileStatus; Int_t fIsLastEvent; TEvtBuffer* fEvtBuffer; TClonesArray* fEvtBufferClone; ///FairRunAna* fpippo; TMbsInfo* fMbsInfo; TClonesArray* fMbsInfoClone; ClassDef(MBSUnpack,1); }; #endif