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 **************************************************************************/
19 #include "AliCRTdigit.h"
24 //_____________________________________________________________________________
25 AliCRTdigit::AliCRTdigit()
35 //_____________________________________________________________________________
36 AliCRTdigit::AliCRTdigit(Int_t tracknum, Int_t *vol,Float_t *digit)
41 // The creator for the AliCRTdigit class. This routine fills the
42 // AliCRTdigit data members from the array digits.
51 fTdc = new TArrayF(fNDigits);
52 (*fTdc)[0] = digit[0];
53 fAdc = new TArrayF(fNDigits);
54 (*fAdc)[0] = digit[1];
55 //fTracks = new TArrayI(kMAXDIGITS*fNDigits);
56 fTracks = new TArrayI(fNDigits);
57 (*fTracks)[0] = tracknum;
58 //for (Int_t i = 1; i <kMAXDIGITS*fNDigits; i++) {
59 for (Int_t i = 1; i <fNDigits; i++) {
65 //_____________________________________________________________________________
66 AliCRTdigit::AliCRTdigit(const AliCRTdigit & digit)
71 fSector = digit.fSector;
72 fPlate = digit.fPlate;
73 fStrip = digit.fStrip;
76 fNDigits = digit.fNDigits;
77 fTdc = new TArrayF(*digit.fTdc);
78 fAdc = new TArrayF(*digit.fAdc);
79 fTracks = new TArrayI(*digit.fTracks);
83 //_____________________________________________________________________________
84 AliCRTdigit& AliCRTdigit::operator= (const AliCRTdigit & digit)
87 //-- Asingment operator.
89 fSector = digit.fSector;
90 fPlate = digit.fPlate;
91 fStrip = digit.fStrip;
94 fNDigits = digit.fNDigits;
95 fTdc = new TArrayF(*digit.fTdc);
96 fAdc = new TArrayF(*digit.fAdc);
97 fTracks = new TArrayI(*digit.fTracks);