X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDRawReader.h;h=17166302d567676aace7665e74200d811bd50215;hb=cc2abffdc4a11215606b90580370664d93492d79;hp=01d95825dc50d61e9c75989578fc1fb00de4978b;hpb=088f8e792ce3da25a5271d1d98a4d250d376e929;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDRawReader.h b/FMD/AliFMDRawReader.h index 01d95825dc5..17166302d56 100644 --- a/FMD/AliFMDRawReader.h +++ b/FMD/AliFMDRawReader.h @@ -7,13 +7,19 @@ * * See cxx source for full Copyright notice */ -/* $Id$ */ //____________________________________________________________________ // // Class to read ADC values from a AliRawReader object. // Note, that it uses an ALTRO reader, which is wrong. // Perhaps we need to implement it our selves // +/* $Id$ */ +/** @file AliFMDRawReader.h + @author Christian Holm Christensen + @date Mon Mar 27 12:45:23 2006 + @brief Class to read raw data + @ingroup FMD_rec +*/ #ifndef ROOT_TTask # include #endif @@ -21,16 +27,44 @@ //____________________________________________________________________ class AliRawReader; class TTree; +class TClonesArray; //____________________________________________________________________ +/** @brief Class to read ALTRO formated raw data from an AliRawReader + object. + @code + AliRawReader* reader = new AliRawReaderFile(0); + AliFMDRawReader* fmdReader = new AliFMDRawReader(reader); + TClonesArray* array = new TClonesArray("AliFMDDigit"); + fmdReader->ReadAdcs(array); + @endcode + @ingroup FMD_rec +*/ class AliFMDRawReader : public TTask { public: + /** CTOR + @param reader Raw reader + @param array Output tree */ AliFMDRawReader(AliRawReader* reader, TTree* array); + /** DTOR */ virtual ~AliFMDRawReader() {} - virtual void Exec(Option_t* option=""); + /** Read in, and store in output tree + @param option Not used */ + virtual void Exec(Option_t* option=""); + /** Read ADC's into a TClonesArray of AliFMDDigit objects. + @param array Array to read into + @return @c true on success */ + virtual Bool_t ReadAdcs(TClonesArray* array); protected: + AliFMDRawReader(const AliFMDRawReader& o) + : TTask(o), + fTree(0), + fReader(0), + fSampleRate(0) + {} + AliFMDRawReader& operator=(const AliFMDRawReader&) { return *this; } TTree* fTree; //! Pointer to tree to read into AliRawReader* fReader; //! Pointer to raw reader UShort_t fSampleRate; // The sample rate (if 0, inferred from data)