58005f18 |
1 | #include "AliITSmodule.h" |
2 | #include "AliRun.h" |
3 | |
4 | ClassImp(AliITSmodule) |
5 | |
6 | //_______________________________________________________________________ |
7 | // |
8 | // Impementation of class AliITSmodule |
9 | // |
10 | // created by: A. Bouchm, W. Peryt, S. Radomski, P. Skowronski |
11 | // R. Barbers, B. Batyunia, B. S. Nilsen |
12 | // ver 1.0 CERN 16.09.1999 |
13 | //_______________________________________________________________________ |
14 | // |
15 | |
16 | //________________________________________________________________________ |
17 | // |
18 | // Constructors and deconstructor |
19 | //________________________________________________________________________ |
20 | // |
21 | |
22 | |
23 | AliITSmodule::AliITSmodule() { |
24 | |
25 | fIndex = 0; |
26 | fHitsM = new TObjArray(); |
27 | fNhitsM = 0; |
28 | fITS = (AliITS*)(gAlice->GetDetector("ITS")); |
29 | } |
30 | |
31 | |
32 | //_________________________________________________________________________ |
33 | |
34 | AliITSmodule::AliITSmodule(Int_t index) { |
35 | |
36 | fIndex = index; |
37 | fHitsM = new TObjArray(); |
38 | fNhitsM = 0; |
39 | fITS = (AliITS*)(gAlice->GetDetector("ITS")); |
40 | } |
41 | |
42 | |
43 | //__________________________________________________________________________ |
44 | |
45 | AliITSmodule::~AliITSmodule() { |
46 | if(fHitsM) delete fHitsM; |
47 | fNhitsM = 0; |
48 | } |
49 | |
50 | //_________________________________________________________________________ |
51 | // |
52 | // Hits menagement |
53 | //__________________________________________________________________________ |
54 | |
55 | |
56 | Int_t AliITSmodule::AddHit(AliITShit* hit ) { |
57 | fHitsM->AddLast(hit); |
58 | fNhitsM = fHitsM->GetEntriesFast(); |
59 | return fNhitsM; |
60 | } |
61 | |
62 | //___________________________________________________________________________ |
63 | void AliITSmodule::Streamer(TBuffer &R__b){ |
64 | // Stream an object of class AliITSmodule. |
65 | |
66 | return; |
67 | // This class is not to be written out to any file. |
68 | // if (R__b.IsReading()) { |
69 | // Version_t R__v = R__b.ReadVersion(); if (R__v) { } |
70 | // TObject::Streamer(R__b); |
71 | // R__b >> fITS; |
72 | // R__b >> fIndex; |
73 | // R__b >> fHitsM; |
74 | // R__b >> fNhitsM; |
75 | // R__b >> fIDigits; |
76 | // R__b >> fNdigits; |
77 | // R__b >> fIPoints; |
78 | // R__b >> fNpoints; |
79 | // } else { |
80 | // R__b.WriteVersion(AliITSmodule::IsA()); |
81 | // TObject::Streamer(R__b); |
82 | // R__b << fITS; |
83 | // R__b << fIndex; |
84 | // R__b << fHitsM; |
85 | // R__b << fNhitsM; |
86 | // R__b << fIDigits; |
87 | // R__b << fNdigits; |
88 | // R__b << fIPoints; |
89 | // R__b << fNpoints; |
90 | // } |
91 | } |
92 | //______________________________________________________________________ |