//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Reading data from the T2K-based prototype and FOPI data // Write it in a TpcSample TCclones array // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Maxence Vandenbroucke TUM (original author) // // //----------------------------------------------------------- #ifndef TPCTCREADER_HH #define TPCTCREADER_HH // Base Class Headers ---------------- #include "FairTask.h" #include "TVector3.h" #include "TChain.h" #include "TpcPadPlane.h" #include "TpcDigiPar.h" #include "TpcSample.h" #include "TpcEvent.h" //#include "TpcEventIdentifier.h" // Collaborating Class Headers ------- #include #include // Collaborating Class Declarations -- class TClonesArray; class TpcPadPlane; class TpcDigiPar; class QAPlotCollection; class TpcCdcDataReaderTask : public FairTask { public: // Constructors/Destructors --------- TpcCdcDataReaderTask(); ~TpcCdcDataReaderTask(); //operator void SetSampleBranchName(const TString& name) {fSampleBranchName=name;} void SetPersistence(Bool_t opt=kTRUE) {_persistence=opt;} void SetDatafile(const TString& name) {fFile=name;} void SetCdcDataFile(const TString& name) {fCdcFile=name;} void SetMinNbSamples(unsigned int nb) {fCutoff=nb;} void SetNevent(unsigned int nEvent){nEvents=nEvent;} void SetRunNr(unsigned int run){runNr=run;} // Operations ---------------------- virtual InitStatus Init(); virtual void Exec(Option_t* opt); virtual void SetParContainers(); private: unsigned int nEvents; unsigned int runNr; TString fSampleBranchName; TString fFOPIEvBranchName; TString fCdcHitBranchName; TString fCdcTrackBranchName; TString fRpcTrackBranchName; TString fFile; TString fCdcFile; //std::vector* _di; //! TChain* fIntree; //external data input TpcEvent* fEv; //TpcEventIdentifier* fEventId; TChain* fCdcIntree; TClonesArray *fFOPIEv; TClonesArray *fCdcTrack; TClonesArray *fRpcTrack; TClonesArray *fCdcHit; //TpcPadPlane* fPadplane; TpcDigiPar* fPar; unsigned int fLoop; unsigned int fCdcLoop; unsigned int fEventNb; unsigned int fSpillNb; unsigned int fRunNum; //unsigned int fMaxSample; //unsigned int fCutOcc; //unsigned int fNbChip; TClonesArray* fSampleOutArray; //TClonesArray* fEventIdOutArray; TClonesArray* fFopiEventOutArray; TClonesArray* fCdcTrackOutArray; TClonesArray* fRpcTrackOutArray; TClonesArray* fCdcHitOutArray; Bool_t _persistence; unsigned int fCutoff; // Private Data Members ------------ public: ClassDef(TpcCdcDataReaderTask,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------