]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliDigitizer.h
GetEvent() - do not skip the event if the current event is the same, because by defau...
[u/mrichter/AliRoot.git] / STEER / AliDigitizer.h
index eb90473c0ebf3db2c8db8dc7a14fe3a6d4d24c5e..0eaadb37bd570361730bb18a35887b4b5be64d3b 100644 (file)
@@ -8,7 +8,7 @@
 ////////////////////////////////////////////////////////////////////////
 //
 //  Base Class for Detector specific Merging/Digitization   
-//                  
+//  Detector specific digitization classes derive from this
 //  Author: Jiri Chudoba (CERN)
 //
 ////////////////////////////////////////////////////////////////////////
@@ -22,20 +22,30 @@ class AliDigitizer: public TTask {
  public:
 // ctor with name and title
     AliDigitizer(const Text_t* name="AliDigitizer",
-                const Text_t* title="AliDigitizer");
+                const Text_t* title="AliDigitizer");
 // ctor to be used with name and title
     AliDigitizer(AliRunDigitizer *manager,
-                const Text_t* name="AliDigitizer",
-                const Text_t* title="AliDigitizer");
+                 const Text_t* name="AliDigitizer",
+                 const Text_t* title="AliDigitizer");
+// Copy ctor needed because there is a pointer
+    AliDigitizer(const AliDigitizer &dig);
+    AliDigitizer& operator=(const AliDigitizer &dig)
+      {dig.Copy(*this);return *this;}
       
     virtual ~AliDigitizer();
     virtual Bool_t Init() {return kTRUE;}
+    void SetRegionOfInterest(Bool_t flag) {fRegionOfInterest = flag;};
 //    virtual void Digitize() = 0;
 
- protected:
-    AliRunDigitizer *fManager;
+protected:
+    Int_t GetNInputStreams() const;
+    void Copy(TObject &dig) const;
+
+    AliRunDigitizer *fManager;   //! Pointer to the Digitizer manager
+    Bool_t fRegionOfInterest;    // Flag for digitization only in region of interest
     
-    ClassDef(AliDigitizer,1) // Base class for detector digitizers
+    ClassDef(AliDigitizer,2) // Base class for detector digitizers
 };
 
 #endif // ALIDIGITIZER_H
+