//---------------------------------------------------------------------- // File and Version Information: // $Id: Exp $ // // Description: // Class EmcWaveformToDigi. Module to take the hit list for the // calorimeter and make ADC waveforms from them. // // Software developed for the BaBar Detector at the SLAC B-Factory. // Adapted for the PANDA experiment at GSI // // Author List: // Phil Strother Original Author // Dima Melnichuk - adaption for PANDA // // Copyright Information: // Copyright (C) 1996 Imperial College // //---------------------------------------------------------------------- #ifndef EmcWaveformToDigi_HH #define EmcWaveformToDigi_HH #include "CbmTask.h" #include #include using std::string; class CbmEmcHit; class TwoCoordIndex; class EmcWaveform; class TClonesArray; class EmcDigiPar; class EmcWaveformToDigi : public CbmTask { public: // Constructors EmcWaveformToDigi(); // Destructor virtual ~EmcWaveformToDigi(); /** Virtual method Init **/ virtual InitStatus Init(); /** Virtual method Exec **/ virtual void Exec(Option_t* opt); private: /** Input array of EmcWaveforms **/ TClonesArray* fWaveformArray; /** output array of EmcDigis **/ TClonesArray* fDigiArray; double sampleRate; double threshold; string fDigiPosMethod;// "surface" or "depth" double fEmcDigiRescaleFactor; double fEmcDigiPositionDepth; EmcDigiPar* fDigiPar; /** Digitisation parameter container **/ /** Get parameter containers **/ virtual void SetParContainers(); std::vector hitList; ClassDef(EmcWaveformToDigi,1); }; #endif