]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSDigitizer.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / ITS / AliITSDigitizer.h
index b5ed7c8342378bea60c10e7aedb8b53286a2507b..b6c434d8a502125ea50f7f1af95b7d61fc3a46f5 100644 (file)
@@ -1,16 +1,18 @@
-#ifndef ALIITSDIGITZER_H
-#define ALIITSDIGITZER_H
+#ifndef ALIITSDIGITIZER_H
+#define ALIITSDIGITIZER_H
 /* Copyright (c) 1998-2001, ALICE Experiment at CERN, All rights reserved *
  * See cxx source for full Copyright notice                               */
 
 /*
   $Id$
  */
-
+//////////////////////////////////////////////////////////////////
+// Digitizer class for ITS                                      //
+//////////////////////////////////////////////////////////////////
 class TObjArray;
 class TTree;
 
-class AliRunDigitizer;
+class AliDigitizationInput;
 
 #include "AliDigitizer.h" // Base class from which this one is derived
 #include "AliITS.h"   // ITS class functions used in inline functions.
@@ -19,13 +21,14 @@ class AliITSmodule;
 class AliITSDigitizer : public AliDigitizer{
  public:
     AliITSDigitizer();
-    AliITSDigitizer(AliRunDigitizer *manager);
+    AliITSDigitizer(AliDigitizationInput* digInput);
+
     virtual ~AliITSDigitizer();
     // Standard routines.
     virtual Bool_t Init();
     // Perform SDigits to Digits, with or without merging, depending on the
     // number of files.
-    virtual void Exec(Option_t* opt=0);
+    virtual void Digitize(Option_t* opt=0);
     // Sets a particular module active
     virtual void SetModuleActive(Int_t i){if(fModActive) fModActive[i] = kTRUE;}
     // Sets a particular module inactive
@@ -42,13 +45,15 @@ class AliITSDigitizer : public AliDigitizer{
     // Region of interest cut will not be made.
     virtual void ClearByRegionOfInterestFlag(){fRoif = 0;};
  private:
+    AliITSDigitizer(const AliITSDigitizer& dig);
+    AliITSDigitizer& operator=(const AliITSDigitizer &source);
     // Routines used internaly
     // Returns a pointer to the TObjecArray of Modules.
     TObjArray* GetModules(){return fITS->GetModules();}
     // Returns a pointer to a  specific module.
     AliITSmodule* GetModule(Int_t i){return fITS->GetModule(i);}
     // Returns a pointer to the manager
-    AliRunDigitizer* GetManager(){return fManager;}
+    AliDigitizationInput* GetDigInput(){return fDigInput;}
     // Sets the region of Interest based on which module have SDigits
     // Defined (non-noise SDigits).
     virtual void SetByRegionOfInterest(TTree *ts);
@@ -59,7 +64,8 @@ class AliITSDigitizer : public AliDigitizer{
     Int_t   fRoif;     //! Region of interest flag.
     Int_t   fRoiifile; //! The file number with which to determing the region
                        // of interest from.
+    Bool_t fFlagFirstEv; //! Flag to control calibration access
 
-    ClassDef(AliITSDigitizer,1) // Task to Digitize ITS from summable hits.
+    ClassDef(AliITSDigitizer,2) // Task to Digitize ITS from summable hits.
 };
 #endif