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 **************************************************************************/
18 #include "AliCRTdigit.h"
25 //_____________________________________________________________________________
26 AliCRTdigit::AliCRTdigit()
39 // Default constructor
43 //_____________________________________________________________________________
44 AliCRTdigit::AliCRTdigit(Int_t tracknum, Int_t *vol, Float_t *digit)
52 fTdc(new TArrayF(fNDigits)),
53 fAdc(new TArrayF(fNDigits)),
54 fTracks(new TArrayI(fNDigits))
59 // The creator for the AliCRTdigit class. This routine fills the
60 // AliCRTdigit data members from the array digits.
62 (*fTdc)[0] = digit[0];
63 (*fAdc)[0] = digit[1];
64 //fTracks = new TArrayI(kMAXDIGITS*fNDigits);
65 (*fTracks)[0] = tracknum;
66 //for (Int_t i = 1; i <kMAXDIGITS*fNDigits; i++) {
67 for (Int_t i = 1; i <fNDigits; i++) {
73 //_____________________________________________________________________________
74 AliCRTdigit::AliCRTdigit(const AliCRTdigit& digit)
76 fSector(digit.fSector),
81 fNDigits(digit.fNDigits),
84 fTracks(digit.fTracks)
91 //_____________________________________________________________________________
92 AliCRTdigit::~AliCRTdigit()
97 if ( fTracks ) { delete fTracks; fTracks = 0; }
98 if ( fAdc ) { delete fAdc; fAdc = 0; }
99 if ( fTdc ) { delete fTdc; fTdc = 0; }
102 //_____________________________________________________________________________
103 AliCRTdigit& AliCRTdigit::operator=(const AliCRTdigit& digit)
106 //-- Asingment operator.
108 fSector = digit.fSector;
109 fPlate = digit.fPlate;
110 fStrip = digit.fStrip;
113 fNDigits = digit.fNDigits;
116 fTracks = digit.fTracks;