]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSDigitizer.h
New ITS SDigit merging with region of interest cut. Update for changes in
[u/mrichter/AliRoot.git] / ITS / AliITSDigitizer.h
index 17b068fc5acec191e362ec9baaaa5ceef65f74e5..466f485bc9c56c94c2f684b57017bbb88140fe50 100644 (file)
@@ -25,11 +25,15 @@ class AliITSDigitizer : public AliDigitizer{
     virtual ~AliITSDigitizer();
     // Standard routines.
     virtual Bool_t Init();
+    virtual Bool_t Init(const char *filename);
     virtual void Exec(Option_t* opt=0);
     // Sets a particular module active
     virtual void SetModuleActive(Int_t i){if(fActive) fActive[i] = kTRUE;}
     // Sets a particular module inactive
     virtual void SetModuleInActive(Int_t i){if(fActive) fActive[i] = kFALSE;}
+    virtual void SetByRegionOfInterest(Int_t i=0){fRoif = i;};
+    virtual void SetByRegionOfFileNumber(Int_t i=0){fRoiifile = i;};
+    virtual void ClearByRegionOfInterest(){fRoif = -1;};
  private:
     // Routines used internaly
     TClonesArray* GetHits(){return fITS->Hits();}
@@ -37,9 +41,13 @@ class AliITSDigitizer : public AliDigitizer{
     TObjArray* GetModules(){return fITS->GetModules();}
     AliITSmodule* GetModule(Int_t i){return fITS->GetModule(i);}
     AliRunDigitizer* GetManager(){return fManager;}
+    virtual void SetByRegionOfInterest(TTree *ts);
  private:
     AliITS *fITS;  //! local pointer to ITS
     Bool_t *fActive; //! flag to indicate which module to digitize.
+    Int_t   fRoif;  //! Region of interest flag.
+    Int_t   fRoiifile; //! The file number with which to determing the region
+                       // of interest from.
 
     ClassDef(AliITSDigitizer,1) // Task to Digitize ITS from summable hits.
 };