4 //#include "AliITSpoint.h"
6 #include "AliITSdigit.h"
12 //________________________________________________________________
15 // is a superclass for AliITSmoduleSSD, SPD and SDD.
16 // The main function of modules is to simulate DIGITS from
17 // GEANT HITS and produce POINTS from DIGITS
18 // It also make fast simulation without use of DIGITS
20 // created by: A.Boucham, W.Peryt, S.Radomski, P.Skowronski
21 // R.Barbera, B. Batynia, B. Nilsen
22 // ver. 1.0 CERN, 16.09.1999
24 //________________________________________________________________
28 class AliITSmodule : public TObject {
32 //________________________________________________________________
34 // Constructors and deconstructor
35 //________________________________________________________________
38 AliITSmodule(); // default constructor
39 AliITSmodule(Int_t index); // index in TObjectArray in ITS object
41 virtual ~AliITSmodule() ;
43 //________________________________________________________________
45 // Position menagenent
46 //________________________________________________________________
49 inline Int_t GetIndex() { return fIndex;}
50 //inline Int_t GetLayer() { return fLayer;}
51 //inline Int_t GetLadder() { return fLadder;}
52 //inline Int_t GetDet() { return fDet;}
55 //________________________________________________________________
58 //________________________________________________________________
61 inline Int_t GetNhits() { return fNhitsM;}
62 // returns number of hits in this module
64 inline TObjArray *GetHits() { return fHitsM; }
65 // returns pointer to array (TClonesArray) of pointers to hits
67 Int_t AddHit(AliITShit *hit);
68 // Adds pointer of hit belonging to this module
69 // and returns number of hits in this module
71 //________________________________________________________________
74 //________________________________________________________________
77 virtual void HitToDigit() {};
78 // this functon is virtual, becouse each type of a detector
79 // make simulation in its own specific methods
81 //________________________________________________________________
84 //________________________________________________________________
87 virtual void DigitToPoint() {};
88 // this functon is virtual, becouse each type of a detector
89 // make reconstruction in its own specific methods
90 // classes DIGIT and POINT are specyfic to detector type
92 //________________________________________________________________
95 //________________________________________________________________
98 virtual void HitToPoint() {};
99 // this functon is virtual, becouse each type of a detector
100 // make fast simulation in its own specific methods
101 // this simulation do not use DIGITS
106 //________________________________________________________________
109 //________________________________________________________________
112 AliDetector *fITS; // Pointer to ITS detector
113 Int_t fIndex; // Index of this module in ITSmodules TObjectArray
115 TObjArray *fHitsM; // Pointer to list of hits on this module
116 Int_t fNhitsM; // Number of hits
118 TArrayI *fIdigits; // Indexes of DIGITS belonging to this module
120 Int_t fNdigits; // Number of DIGITS
122 TArrayI *fIpoints; // Indexes of POINTS belonging to this module
124 Int_t fNpoints; // Number of POINTS
128 //________________________________________________________________
130 // ROOT compatibility
131 //________________________________________________________________
133 ClassDef(AliITSmodule,1)