]>
Commit | Line | Data |
---|---|---|
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 | ||
10 | class TObjArray; | |
11 | ||
12 | #include <TClonesArray.h> // function of this class used in inline functions. | |
13 | ||
14 | class AliRunDigitizer; | |
15 | ||
16 | #include "AliDigitizer.h" // Base class from which this one is derived | |
17 | #include "AliITS.h" // ITS class functions used in inline functions. | |
18 | class AliITShit; | |
19 | class AliITSmodule; | |
20 | ||
9ad8b5dd | 21 | class AliITSDigitizer : public AliDigitizer{ |
22 | public: | |
23 | AliITSDigitizer(); | |
24 | AliITSDigitizer(AliRunDigitizer *manager); | |
25 | virtual ~AliITSDigitizer(); | |
26 | // Standard routines. | |
27 | virtual Bool_t Init(); | |
28 | virtual void Exec(Option_t* opt=0); | |
f1888ca5 | 29 | // Sets a particular module active |
30 | virtual void SetModuleActive(Int_t i){if(fActive) fActive[i] = kTRUE;} | |
31 | // Sets a particular module inactive | |
32 | virtual void SetModuleInActive(Int_t i){if(fActive) fActive[i] = kFALSE;} | |
9ad8b5dd | 33 | private: |
34 | // Routines used internaly | |
35 | TClonesArray* GetHits(){return fITS->Hits();} | |
36 | AliITShit* GetHit(Int_t h){return (AliITShit*)(GetHits()->UncheckedAt(h));} | |
37 | TObjArray* GetModules(){return fITS->GetModules();} | |
38 | AliITSmodule* GetModule(Int_t i){return fITS->GetModule(i);} | |
39 | AliRunDigitizer* GetManager(){return fManager;} | |
40 | private: | |
41 | AliITS *fITS; //! local pointer to ITS | |
f1888ca5 | 42 | Bool_t *fActive; //! flag to indicate which module to digitize. |
9ad8b5dd | 43 | |
44 | ClassDef(AliITSDigitizer,1) // Task to Digitize ITS from summable hits. | |
45 | }; | |
46 | #endif |