/** KRATUnpack * @author S. Kupny * @since 23.06.12 ** ** Tasks class for in the asyeosroot framework. **/ #ifndef KRATUnpack_H #define KRATUnpack_H #include "FairLogger.h" #include "FairRootManager.h" #include "FairTask.h" #include "TRootEvent.h" #include "TMBALLEvent.h" #include "TKRATRawEvent.h" #include "TKRATEvent.h" #include "TClonesArray.h" #include "TEvtBuffer.h" ///#include "FairLogger.h" ///#include "TClonesArray.h" #include "TSystem.h" class KRATUnpack : public FairTask { public: /** Default constructor **/ KRATUnpack(); /** Standard constructor *@param name Name of task *@param iVerbose Verbosity level **/ KRATUnpack(const char* name, Int_t iVerbose = 1); /** Destructor **/ virtual ~KRATUnpack(); /** Virtual method Init **/ InitStatus Init(); /** Virtual method Exec **/ void Exec(Option_t* opt); void Finish(); void Reset(); void SetParTask(); //void SetDebugLevel( Int_t iNewDebugLvl ); //Int_t GetDebugLevel( void ){ return fDebugModeLvl; }; void SetVerboseLevel( Int_t iNewDebugLvl ); Int_t GetVerboseLevel( void ){ return fDebugModeLvl; }; // /** VERBOSE_LEVEL **/ //void SetVerboseLevel( Int_t verbose ) { // fVerbose = verbose; //} //Int_t GetVerboseLevel( void ) { // return fVerbose; //} /** KRATTA_IN **/ void SetKratContInName( TString ASYEventName ){ fKratContInName = ASYEventName; } TString GetKratContInName( void ) const { return fKratContInName; } /** KRATTA_OUT **/ void SetKratContOutName( TString KratContOutName ){ fKratContOutName = KratContOutName; } TString GetKratContOutName( void ) const { return fKratContOutName; } /** DOES WRITE OUTPUT DATA CONTAINER TO THE FILE **/ void SaveOutputIntoTree(Bool_t saveOutputToTree = kTRUE){ fSaveOutputToTree = saveOutputToTree; } Bool_t DoesSaveOutputIntoTree( void ){ return fSaveOutputToTree; } private: TString fKratContInName; TString fKratContOutName; Bool_t fSaveOutputToTree; KRATUnpack(const KRATUnpack&); KRATUnpack& operator=(const KRATUnpack&); //TMBALLEvent *fMBall_evt; TKRATRawEvent *fKratRaw_evt; TClonesArray *fKratRaw_evtCopy; TKRATMapping *fKrattaMapping; ///Pointer to object from data be readed TEvtBuffer *ffBuffer; TClonesArray *ffBufferClone; Int_t fEventIndex; ClassDef(KRATUnpack,1); Int_t fDebugModeLvl; //static const Bool_t Debug = false; ///Temporaraly member }; #endif