X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDDigitizer.h;h=1d9530d69902d8165b85da4def669025441cb016;hb=70bd63a20cfc69365b432f8789b133c2e312fc0c;hp=6db14c3d2a30dec235e9d7952b2a15efe7417523;hpb=383238cfb4c9c1fa4de80ec37de26f8b5c45bdd5;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDDigitizer.h b/FMD/AliFMDDigitizer.h index 6db14c3d2a3..1d9530d6990 100644 --- a/FMD/AliFMDDigitizer.h +++ b/FMD/AliFMDDigitizer.h @@ -1,41 +1,87 @@ #ifndef ALIFMDDIGITIZER_H #define ALIFMDDIGITIZER_H -/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ - -#include "AliDigitizer.h" +/* 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 -class AliRunDigitizer; +//==================================================================== class TClonesArray; -class AliFMDDigitizer : public AliDigitizer { - public: - - AliFMDDigitizer(); - AliFMDDigitizer(AliRunDigitizer * manager); - virtual ~AliFMDDigitizer(); - virtual Bool_t Init(); - - - // 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 manager Manager of digitization */ + AliFMDDigitizer(AliRunDigitizer * manager) + : AliFMDBaseDigitizer(manager) {} + /** DTOR */ + virtual ~AliFMDDigitizer() {} + /** Initialise */ + virtual Bool_t Init(); + /** Execute this digitizer. + This member function will be called once per event by the passed + AliRunDigitizer manager object. + @param options Not used */ + virtual void Exec(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 +// +