X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDDigitizer.h;h=08e972f2378610e6131b872b69e31363e5cddd90;hb=87ed2a3ad4312b8d58f90cca55c705a1613a882b;hp=2c1b292603bf57a27636dee3642d2a5573142b6c;hpb=ab256e65ae0476ac301fa834bfc7a3bd5f406ccd;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDDigitizer.h b/FMD/AliFMDDigitizer.h index 2c1b292603b..08e972f2378 100644 --- a/FMD/AliFMDDigitizer.h +++ b/FMD/AliFMDDigitizer.h @@ -1,40 +1,104 @@ #ifndef ALIFMDDIGITIZER_H #define ALIFMDDIGITIZER_H -/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ +/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights + * reserved. + * + * See cxx source for full Copyright notice + */ +// Classses to make SDigits into Digits +// +// Digits consists of +// - Detector # +// - Ring ID +// - Sector # +// - Strip # +// - ADC count in this channel +// +// Summable digits consists of +// - Detector # +// - Ring ID +// - Sector # +// - Strip # +// - Total energy deposited in the strip +// - ADC count in this channel +// +/** @file AliFMDDigitizer.h + @author Christian Holm Christensen + @date Mon Mar 27 12:38:26 2006 + @brief FMD Digitizers declaration + @ingroup FMD_sim +*/ +#ifndef ALIFMDBASEDIGITIZER_H +# include +#endif -#include "AliDigitizer.h" +//==================================================================== class TClonesArray; -class AliRunDigitizer; -class AliFMDDigitizer : public AliDigitizer { - public: - - AliFMDDigitizer(); - AliFMDDigitizer(AliRunDigitizer * manager); - virtual ~AliFMDDigitizer(); - virtual Bool_t Init() {return kTRUE;} ///??????????? - - - // Do the main work - void Exec(Option_t* option=0) ; - Int_t PutNoise(Int_t charge){return (Int_t)(gRandom->Gaus(charge,500));} - TClonesArray *Digits() const {return fDigits;} - TClonesArray *Hits() const {return fHits;} - +class AliFMD; +class AliLoader; +class AliRunLoader; +class AliFMDDigit; + - - enum {kBgTag = -1}; - - - private: - TClonesArray *fDigits; // ! array with digits - TClonesArray *fHits; // List of hits - AliRunDigitizer* GetManager(){return fManager;} - - ClassDef(AliFMDDigitizer,0) -}; -#endif +//==================================================================== +/** + * @class AliFMDDigitizer + * @brief Concrete digitizer to make digits from hits. See also + * AliFMDBaseDigitizer documentation. + * + * @ingroup FMD_sim + */ +class AliFMDDigitizer : public AliFMDBaseDigitizer +{ +public: + /** + * CTOR + */ + AliFMDDigitizer() : AliFMDBaseDigitizer() {} + /** + * CTOR + * + * @param input Input of digitization + */ + AliFMDDigitizer(AliDigitizationInput * digInput) + : AliFMDBaseDigitizer(digInput) {} + /** + * DTOR + */ + virtual ~AliFMDDigitizer() {} + /** + * Initialise + */ + virtual Bool_t Init(); + /** + * Execute this digitizer. + * This member function will be called once per event by the passed + * AliDigitizationInput* digInput object. + * + * @param options Not used + */ + virtual void Digitize(Option_t* option=""); +protected: + /** + * Sum contributions from SDigits + * + * @param sdigitsBranch Branch of SDigit data + */ + void SumContributions(TBranch* sdigitsBranch); + + ClassDef(AliFMDDigitizer,1) // Make Digits from Hits +}; +#endif +//____________________________________________________________________ +// +// Local Variables: +// mode: C++ +// End: +// +// +// EOF +//