#ifndef PNDANANDDETECTORDIGITIZE_H #define PNDANANDDETECTORDIGITIZE_H 1 #include "FairTask.h" class TClonesArray; class PndAnandDetectorDigiWriteoutBuffer; class PndAnandDetectorDigitize : public FairTask { public: /** Default constructor **/ PndAnandDetectorDigitize(); /** Constructor with name **/ PndAnandDetectorDigitize(const char* name, Int_t iVerbose); /** Destructor **/ virtual ~PndAnandDetectorDigitize(); /** Execution **/ virtual void Exec(Option_t* opt); void RunTimeBased (Bool_t bt=kTRUE) {fRunTimeBased = bt;} private: TClonesArray* fPoints; /** Input array of PndAnandDetectorPoint **/ Int_t fNPoints; Int_t fNDigis; Int_t fTNofEvents; Int_t fTNofPoints; Int_t fTNofDigis; Bool_t fRunTimeBased; PndAnandDetectorDigiWriteoutBuffer* fDataBuffer; /** Get parameter containers **/ virtual void SetParContainers(); /** Intialisation **/ virtual InitStatus Init(); /** Reinitialisation **/ virtual InitStatus ReInit(); /** Reset eventwise counters **/ void Reset(); /** Finish at the end of each event **/ virtual void Finish(); /** Print Digis **/ void PrintDigis(); ClassDef(PndAnandDetectorDigitize,1); }; #endif