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 ////////////////////////////////////////////////////////////////////////////
21 // The digits are made in FinishEvent() by summing all the hits in a
23 // The main parts of the code need to be written.
25 ////////////////////////////////////////////////////////////////////////////
27 #include "AliCRTdigit.h"
34 //_____________________________________________________________________________
35 AliCRTdigit::AliCRTdigit()
47 // Default constructor
51 //_____________________________________________________________________________
52 AliCRTdigit::AliCRTdigit(Int_t* tracks, Int_t *vol, Float_t *digit)
60 fTdc(new TArrayF(fNDigits)),
61 fAdc(new TArrayF(fNDigits))
66 // The creator for the AliCRTdigit class. This routine fills the
67 // AliCRTdigit data members from the array digits.
69 (*fTdc)[0] = digit[0];
70 (*fAdc)[0] = digit[1];
73 //_____________________________________________________________________________
74 AliCRTdigit::AliCRTdigit(const AliCRTdigit& digit)
76 fSector(digit.fSector),
81 fNDigits(digit.fNDigits),
90 //_____________________________________________________________________________
91 AliCRTdigit::~AliCRTdigit()
96 if ( fAdc ) { delete fAdc; fAdc = 0; }
97 if ( fTdc ) { delete fTdc; fTdc = 0; }
100 //_____________________________________________________________________________
101 AliCRTdigit& AliCRTdigit::operator=(const AliCRTdigit& digit)
104 //-- Asingment operator.
106 fSector = digit.fSector;
107 fPlate = digit.fPlate;
108 fStrip = digit.fStrip;
111 fNDigits = digit.fNDigits;