Avoid warnings on non-ansi compiler HP-UX CC
[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$
18*/
19
58005f18 20#include "AliITSmodule.h"
21#include "AliRun.h"
22
23ClassImp(AliITSmodule)
24
25//_______________________________________________________________________
26//
27// Impementation of class AliITSmodule
28//
29// created by: A. Bouchm, W. Peryt, S. Radomski, P. Skowronski
30// R. Barbers, B. Batyunia, B. S. Nilsen
31// ver 1.0 CERN 16.09.1999
32//_______________________________________________________________________
33//
34
35//________________________________________________________________________
36//
37// Constructors and deconstructor
38//________________________________________________________________________
39//
40
41
42AliITSmodule::AliITSmodule() {
43
44 fIndex = 0;
45 fHitsM = new TObjArray();
46 fNhitsM = 0;
47 fITS = (AliITS*)(gAlice->GetDetector("ITS"));
48}
49
50
51//_________________________________________________________________________
52
53AliITSmodule::AliITSmodule(Int_t index) {
54
55 fIndex = index;
56 fHitsM = new TObjArray();
57 fNhitsM = 0;
58 fITS = (AliITS*)(gAlice->GetDetector("ITS"));
59}
60
61
62//__________________________________________________________________________
63
64AliITSmodule::~AliITSmodule() {
65 if(fHitsM) delete fHitsM;
66 fNhitsM = 0;
67}
68
69//_________________________________________________________________________
70//
71// Hits menagement
72//__________________________________________________________________________
73
74
75Int_t AliITSmodule::AddHit(AliITShit* hit ) {
76 fHitsM->AddLast(hit);
77 fNhitsM = fHitsM->GetEntriesFast();
78 return fNhitsM;
79}
80
81//___________________________________________________________________________
82void AliITSmodule::Streamer(TBuffer &R__b){
83 // Stream an object of class AliITSmodule.
84
85 return;
86// This class is not to be written out to any file.
87// if (R__b.IsReading()) {
88// Version_t R__v = R__b.ReadVersion(); if (R__v) { }
89// TObject::Streamer(R__b);
90// R__b >> fITS;
91// R__b >> fIndex;
92// R__b >> fHitsM;
93// R__b >> fNhitsM;
94// R__b >> fIDigits;
95// R__b >> fNdigits;
96// R__b >> fIPoints;
97// R__b >> fNpoints;
98// } else {
99// R__b.WriteVersion(AliITSmodule::IsA());
100// TObject::Streamer(R__b);
101// R__b << fITS;
102// R__b << fIndex;
103// R__b << fHitsM;
104// R__b << fNhitsM;
105// R__b << fIDigits;
106// R__b << fNdigits;
107// R__b << fIPoints;
108// R__b << fNpoints;
109// }
110}
111//______________________________________________________________________