1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
22 #include "AliCRTdigit.h"
27 //_____________________________________________________________________________
28 AliCRTdigit::AliCRTdigit()
38 //_____________________________________________________________________________
39 AliCRTdigit::AliCRTdigit(Int_t tracknum, Int_t *vol,Float_t *digit)
44 // The creator for the AliCRTdigit class. This routine fills the
45 // AliCRTdigit data members from the array digits.
54 fTdc = new TArrayF(fNDigits);
55 (*fTdc)[0] = digit[0];
56 fAdc = new TArrayF(fNDigits);
57 (*fAdc)[0] = digit[1];
58 //fTracks = new TArrayI(kMAXDIGITS*fNDigits);
59 fTracks = new TArrayI(fNDigits);
60 (*fTracks)[0] = tracknum;
61 //for (Int_t i = 1; i <kMAXDIGITS*fNDigits; i++) {
62 for (Int_t i = 1; i <fNDigits; i++) {
68 //_____________________________________________________________________________
69 AliCRTdigit::AliCRTdigit(const AliCRTdigit & digit)
74 fSector = digit.fSector;
75 fPlate = digit.fPlate;
76 fStrip = digit.fStrip;
79 fNDigits = digit.fNDigits;
80 fTdc = new TArrayF(*digit.fTdc);
81 fAdc = new TArrayF(*digit.fAdc);
82 fTracks = new TArrayI(*digit.fTracks);
86 //_____________________________________________________________________________
87 AliCRTdigit& AliCRTdigit::operator= (const AliCRTdigit & digit)
90 //-- Asingment operator.
92 fSector = digit.fSector;
93 fPlate = digit.fPlate;
94 fStrip = digit.fStrip;
97 fNDigits = digit.fNDigits;
98 fTdc = new TArrayF(*digit.fTdc);
99 fAdc = new TArrayF(*digit.fAdc);
100 fTracks = new TArrayI(*digit.fTracks);