3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //#include "AliITSpoint.h"
10 #include "AliITSdigit.h"
11 #include "AliITShit.h"
12 #include "TObjArray.h"
16 //________________________________________________________________
19 // is a superclass for AliITSmoduleSSD, SPD and SDD.
20 // The main function of modules is to simulate DIGITS from
21 // GEANT HITS and produce POINTS from DIGITS
22 // It also make fast simulation without use of DIGITS
24 // created by: A.Boucham, W.Peryt, S.Radomski, P.Skowronski
25 // R.Barbera, B. Batynia, B. Nilsen
26 // ver. 1.0 CERN, 16.09.1999
28 //________________________________________________________________
32 class AliITSmodule : public TObject {
36 //________________________________________________________________
38 // Constructors and deconstructor
39 //________________________________________________________________
42 AliITSmodule(); // default constructor
43 AliITSmodule(Int_t index); // index in TObjectArray in ITS object
45 virtual ~AliITSmodule() ;
47 //________________________________________________________________
49 // Position menagenent
50 //________________________________________________________________
53 Int_t GetIndex() const { return fIndex;}
54 //Int_t GetLayer() const { return fLayer;}
55 //Int_t GetLadder() const { return fLadder;}
56 //Int_t GetDet() const { return fDet;}
59 //________________________________________________________________
62 //________________________________________________________________
65 Int_t GetNhits() const { return fNhitsM;}
66 // returns number of hits in this module
68 TObjArray *GetHits() const { return fHitsM; }
69 // returns pointer to array (TClonesArray) of pointers to hits
71 Int_t AddHit(AliITShit *hit);
72 // Adds pointer of hit belonging to this module
73 // and returns number of hits in this module
75 //________________________________________________________________
78 //________________________________________________________________
81 virtual void HitToDigit() {};
82 // this functon is virtual, becouse each type of a detector
83 // make simulation in its own specific methods
85 //________________________________________________________________
88 //________________________________________________________________
91 virtual void DigitToPoint() {};
92 // this functon is virtual, becouse each type of a detector
93 // make reconstruction in its own specific methods
94 // classes DIGIT and POINT are specyfic to detector type
96 //________________________________________________________________
99 //________________________________________________________________
102 virtual void HitToPoint() {};
103 // this functon is virtual, becouse each type of a detector
104 // make fast simulation in its own specific methods
105 // this simulation do not use DIGITS
110 //________________________________________________________________
113 //________________________________________________________________
116 AliDetector *fITS; // Pointer to ITS detector
117 Int_t fIndex; // Index of this module in ITSmodules TObjectArray
119 TObjArray *fHitsM; // Pointer to list of hits on this module
120 Int_t fNhitsM; // Number of hits
122 TArrayI *fIdigits; // Indexes of DIGITS belonging to this module
124 Int_t fNdigits; // Number of DIGITS
126 TArrayI *fIpoints; // Indexes of POINTS belonging to this module
128 Int_t fNpoints; // Number of POINTS
132 //________________________________________________________________
134 // ROOT compatibility
135 //________________________________________________________________
137 ClassDef(AliITSmodule,1)