Small bug fixes to TPC files
[u/mrichter/AliRoot.git] / ITS / AliITSmodule.cxx
CommitLineData
4c039060 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/*
17$Log$
ad0e60d9 18Revision 1.2 1999/09/29 09:24:20 fca
19Introduction of the Copyright and cvs Log
20
4c039060 21*/
22
58005f18 23#include "AliITSmodule.h"
24#include "AliRun.h"
25
26ClassImp(AliITSmodule)
27
28//_______________________________________________________________________
29//
30// Impementation of class AliITSmodule
31//
32// created by: A. Bouchm, W. Peryt, S. Radomski, P. Skowronski
33// R. Barbers, B. Batyunia, B. S. Nilsen
34// ver 1.0 CERN 16.09.1999
35//_______________________________________________________________________
36//
37
38//________________________________________________________________________
39//
40// Constructors and deconstructor
41//________________________________________________________________________
42//
43
44
45AliITSmodule::AliITSmodule() {
46
47 fIndex = 0;
48 fHitsM = new TObjArray();
49 fNhitsM = 0;
50 fITS = (AliITS*)(gAlice->GetDetector("ITS"));
51}
52
53
54//_________________________________________________________________________
55
56AliITSmodule::AliITSmodule(Int_t index) {
57
58 fIndex = index;
59 fHitsM = new TObjArray();
60 fNhitsM = 0;
61 fITS = (AliITS*)(gAlice->GetDetector("ITS"));
62}
63
64
65//__________________________________________________________________________
66
67AliITSmodule::~AliITSmodule() {
68 if(fHitsM) delete fHitsM;
69 fNhitsM = 0;
70}
71
72//_________________________________________________________________________
73//
74// Hits menagement
75//__________________________________________________________________________
76
77
78Int_t AliITSmodule::AddHit(AliITShit* hit ) {
79 fHitsM->AddLast(hit);
80 fNhitsM = fHitsM->GetEntriesFast();
81 return fNhitsM;
82}
83
84//___________________________________________________________________________
ad0e60d9 85void AliITSmodule::Streamer(TBuffer & /*R__b*/){
58005f18 86 // Stream an object of class AliITSmodule.
87
88 return;
89// This class is not to be written out to any file.
90// if (R__b.IsReading()) {
91// Version_t R__v = R__b.ReadVersion(); if (R__v) { }
92// TObject::Streamer(R__b);
93// R__b >> fITS;
94// R__b >> fIndex;
95// R__b >> fHitsM;
96// R__b >> fNhitsM;
97// R__b >> fIDigits;
98// R__b >> fNdigits;
99// R__b >> fIPoints;
100// R__b >> fNpoints;
101// } else {
102// R__b.WriteVersion(AliITSmodule::IsA());
103// TObject::Streamer(R__b);
104// R__b << fITS;
105// R__b << fIndex;
106// R__b << fHitsM;
107// R__b << fNhitsM;
108// R__b << fIDigits;
109// R__b << fNdigits;
110// R__b << fIPoints;
111// R__b << fNpoints;
112// }
113}
114//______________________________________________________________________