Interface for setting up custom monitoring lib policy (Requested by Jens).
[u/mrichter/AliRoot.git] / STEER / STEER / AliDigitizer.h
1 #ifndef ALIDIGITIZER_H
2 #define ALIDIGITIZER_H
3 /* Copyright(c) 1998-2001, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$*/
7
8 ////////////////////////////////////////////////////////////////////////
9 //
10 //  Base Class for Detector specific Merging/Digitization   
11 //  Detector specific digitization classes derive from this
12 //  Author: Jiri Chudoba (CERN)
13 //
14 ////////////////////////////////////////////////////////////////////////
15
16 #include "TTask.h"
17
18 class AliRunDigitizer;
19
20 class AliDigitizer: public TTask {
21
22  public:
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;}
34       
35     virtual ~AliDigitizer();
36     virtual Bool_t Init() {return kTRUE;}
37     void SetRegionOfInterest(Bool_t flag) {fRegionOfInterest = flag;};
38 //    virtual void Digitize() = 0;
39
40 protected:
41     Int_t GetNInputStreams() const;
42     void Copy(TObject &dig) const;
43
44     AliRunDigitizer *fManager;   //! Pointer to the Digitizer manager
45     Bool_t fRegionOfInterest;    // Flag for digitization only in region of interest
46     
47     ClassDef(AliDigitizer,2) // Base class for detector digitizers
48 };
49
50 #endif // ALIDIGITIZER_H
51