Moving the functions used to initialize TF1 and TF2 to the pivate part of the class
[u/mrichter/AliRoot.git] / ITS / AliITSDigitizer.h
CommitLineData
9ad8b5dd 1#ifndef ALIITSDIGITZER_H
2#define ALIITSDIGITZER_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$
8 */
9
10class TObjArray;
fd04285a 11class TTree;
9ad8b5dd 12
9ad8b5dd 13class AliRunDigitizer;
14
15#include "AliDigitizer.h" // Base class from which this one is derived
16#include "AliITS.h" // ITS class functions used in inline functions.
9ad8b5dd 17class AliITSmodule;
18
9ad8b5dd 19class AliITSDigitizer : public AliDigitizer{
20 public:
21 AliITSDigitizer();
22 AliITSDigitizer(AliRunDigitizer *manager);
23 virtual ~AliITSDigitizer();
24 // Standard routines.
25 virtual Bool_t Init();
fd04285a 26 // Perform SDigits to Digits, with or without merging, depending on the
27 // number of files.
9ad8b5dd 28 virtual void Exec(Option_t* opt=0);
f1888ca5 29 // Sets a particular module active
0b572028 30 virtual void SetModuleActive(Int_t i){if(fModActive) fModActive[i] = kTRUE;}
f1888ca5 31 // Sets a particular module inactive
0b572028 32 virtual void SetModuleInActive(Int_t i){if(fModActive) fModActive[i] = kFALSE;}
fd04285a 33 // Sets Region of Interst Flag. if fRiof=0 then no Region of Interest
34 // cut applyed
35 virtual void SetByRegionOfInterestFlag(Int_t i=0){fRoif = i;};
36 // Sets the SDigits file number to be used to define the region of
37 // interest. Default is file=-1, assumed that a region of interest
38 // cut will be applied. A value of 0 means no cut to be applyed. Other
39 // values have yet to be defined.
40 virtual void SetByRegionOfFileNumber(Int_t i=-1){fRoiifile = i;};
41 // Clears the region of interest flag. Calling this implies that a
42 // Region of interest cut will not be made.
43 virtual void ClearByRegionOfInterestFlag(){fRoif = 0;};
9ad8b5dd 44 private:
45 // Routines used internaly
fd04285a 46 // Returns a pointer to the TObjecArray of Modules.
9ad8b5dd 47 TObjArray* GetModules(){return fITS->GetModules();}
fd04285a 48 // Returns a pointer to a specific module.
9ad8b5dd 49 AliITSmodule* GetModule(Int_t i){return fITS->GetModule(i);}
fd04285a 50 // Returns a pointer to the manager
9ad8b5dd 51 AliRunDigitizer* GetManager(){return fManager;}
fd04285a 52 // Sets the region of Interest based on which module have SDigits
53 // Defined (non-noise SDigits).
fca85276 54 virtual void SetByRegionOfInterest(TTree *ts);
9ad8b5dd 55 private:
fd04285a 56 AliITS *fITS; //! local pointer to ITS
0b572028 57 Bool_t *fModActive;//! flag to indicate which module to digitize.
fd04285a 58 Bool_t fInit; //! flag to indecate Initilization when well.
59 Int_t fRoif; //! Region of interest flag.
fca85276 60 Int_t fRoiifile; //! The file number with which to determing the region
61 // of interest from.
9ad8b5dd 62
63 ClassDef(AliITSDigitizer,1) // Task to Digitize ITS from summable hits.
64};
65#endif