3 /* Copyright(c) 1998-2001, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////////////////////////////
10 // Base Class for Detector specific Merging/Digitization
11 // Detector specific digitization classes derive from this
12 // Author: Jiri Chudoba (CERN)
14 ////////////////////////////////////////////////////////////////////////
18 class AliRunDigitizer;
20 class AliDigitizer: public TTask {
23 // ctor with name and title
24 AliDigitizer(const Text_t* name="AliDigitizer",
25 const Text_t* title="AliDigitizer");
26 // ctor to be used with name and title
27 AliDigitizer(AliRunDigitizer *manager,
28 const Text_t* name="AliDigitizer",
29 const Text_t* title="AliDigitizer");
30 // Copy ctor needed because there is a pointer
31 AliDigitizer(const AliDigitizer &dig);
32 AliDigitizer& operator=(const AliDigitizer &dig)
33 {dig.Copy(*this);return *this;}
35 virtual ~AliDigitizer();
36 virtual Bool_t Init() {return kTRUE;}
37 void SetRegionOfInterest(Bool_t flag) {fRegionOfInterest = flag;};
38 // virtual void Digitize() = 0;
41 Int_t GetNInputStreams() const;
42 void Copy(TObject &dig) const;
44 AliRunDigitizer *fManager; //! Pointer to the Digitizer manager
45 Bool_t fRegionOfInterest; // Flag for digitization only in region of interest
47 ClassDef(AliDigitizer,2) // Base class for detector digitizers
50 #endif // ALIDIGITIZER_H