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 */
7 $Id: AliITSUDigitizer.h 52261 2011-10-23 15:46:57Z hristov $
9 //////////////////////////////////////////////////////////////////
10 // Digitizer class for ITS //
11 //////////////////////////////////////////////////////////////////
15 class AliDigitizationInput;
17 #include "AliDigitizer.h" // Base class from which this one is derived
18 #include "AliITSU.h" // ITS class functions used in inline functions.
20 class AliITSUDigitizer : public AliDigitizer {
23 AliITSUDigitizer(AliDigitizationInput* digInput);
25 virtual ~AliITSUDigitizer();
26 virtual Bool_t Init();
27 virtual void Digitize(Option_t* opt=0);
28 virtual void SetModuleActive(Int_t i){if(fModActive) fModActive[i] = kTRUE;}
29 virtual void SetModuleInActive(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;}
35 AliITSUDigitizer(const AliITSUDigitizer& dig);
36 AliITSUDigitizer& operator=(const AliITSUDigitizer &source);
37 AliDigitizationInput* GetDigInput(){return fDigInput;}
38 virtual void SetByRegionOfInterest(TTree *ts);
41 AliITSU *fITS; //! local pointer to ITS
42 Bool_t *fModActive;//! flag to indicate which module 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
48 ClassDef(AliITSUDigitizer,1) // Task to Digitize ITS from summable hits.