//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Reading data from the FOPI CDC and provide it to // the framework // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Maxence Boehmer TUM (original author) // // //----------------------------------------------------------- #ifndef CERNDATAREADER_HH #define CERNDATAREADER_HH #include "FairTask.h" #include "TString.h" //#include "TpcEventIdentifier.h" class TClonesArray; class TFile; class TTree; class TTreeIndex; class CsGEMPlane; class TpcEventIdentifier; class CernDataReaderTask : public FairTask { public: // Constructors / Destructors CernDataReaderTask(); ~CernDataReaderTask(); // Accessors void SetPersistence(Bool_t opt=kTRUE) {fPersistence=opt;} void SetInputFile(const TString& name) {fInputFileName=name;} //TODO: implement void SetInputChain(const TChain* ch) {;} //stub void SetGEMTreeName(const TString& n) {fGEMTreeName=n;} void SetCsGEMInBranchName(const TString& s) {fCsGEMInBranch=s;} void SetTpcEventIDBranchName(const TString& s) {fTpcEventIDBranch=s;} // Methods virtual InitStatus Init(); virtual void Exec(Option_t* opt); virtual void SetParContainers() {;} void SetDebug(bool opt) {DEBUG=opt;} private: Bool_t fPersistence; TString fInputFileName; TFile* fInputFile; unsigned int fNGEMEvents; TString fCsGEMInBranch; TString fTpcEventIDBranch; TString fGEMTreeName; TClonesArray* fCsGEMArray; TClonesArray* fTpcEventID; std::vector planes; TTree* fGEMTree; TTreeIndex* fGEMIndex; //the tree has ownership bool DEBUG; public: ClassDef(CernDataReaderTask,1) }; #endif