]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/UPGRADE/AliITSUDigitizer.h
A coarse implementation of the support cylinders (Mario)
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUDigitizer.h
1 #ifndef ALIITSUDIGITIZER_H
2 #define ALIITSUDIGITIZER_H
3 /* Copyright (c) 1998-2001, ALICE Experiment at CERN, All rights reserved *
4  * See cxx source for full Copyright notice                               */
5
6 /*
7   $Id: AliITSUDigitizer.h 52261 2011-10-23 15:46:57Z hristov $
8  */
9 //////////////////////////////////////////////////////////////////
10 // Digitizer class for ITS                                      //
11 //////////////////////////////////////////////////////////////////
12 class TObjArray;
13 class TTree;
14
15 class AliDigitizationInput;
16
17 #include "AliDigitizer.h" // Base class from which this one is derived
18 #include "AliITSU.h"   // ITS class functions used in inline functions.
19
20 class AliITSUDigitizer : public AliDigitizer {
21  public:
22   AliITSUDigitizer();
23   AliITSUDigitizer(AliDigitizationInput* digInput);
24   
25   virtual ~AliITSUDigitizer();
26   virtual Bool_t Init();
27   virtual void Digitize(Option_t* opt=0);
28   virtual void SetChipActive(Int_t i){if(fModActive) fModActive[i] = kTRUE;}
29   virtual void SetChipInActive(Int_t i){if(fModActive) fModActive[i] = kFALSE;}
30   virtual void SetByRegionOfInterestFlag(Int_t i=0){fRoif = i;}
31   virtual void SetByRegionOfFileNumber(Int_t i=-1){fRoiifile = i;}
32   virtual void ClearByRegionOfInterestFlag(){fRoif = 0;}
33   //
34  private:
35   AliITSUDigitizer(const AliITSUDigitizer& dig);
36   AliITSUDigitizer& operator=(const AliITSUDigitizer &source);
37   AliDigitizationInput* GetDigInput(){return fDigInput;}
38   virtual void SetByRegionOfInterest(TTree *ts);
39   //
40  protected:
41   AliITSU   *fITS;      //! local pointer to ITS
42   Bool_t    *fModActive;//! flag to indicate which chip to digitize.
43   Bool_t     fInit;     //! flag to indecate Initilization when well.
44   Int_t      fRoif;     //! Region of interest flag.
45   Int_t      fRoiifile; //! The file number with which to determing the region of interest from.
46   Bool_t     fFlagFirstEv; //! Flag to control calibration access
47   
48   ClassDef(AliITSUDigitizer,1) // Task to Digitize ITS from summable hits.
49 };
50 #endif