]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHTransientDigit.cxx
Minor improvements on the code
[u/mrichter/AliRoot.git] / RICH / AliRICHTransientDigit.cxx
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   Revision 1.2  2000/10/02 15:53:28  jbarbosa
19   Fixed memory leak (delete fTrackList).
20
21   Revision 1.1  2000/06/12 15:35:17  jbarbosa
22   Cleaned up version.
23
24 */
25
26
27 #include "AliRICHTransientDigit.h"
28 #include <TObjArray.h>
29
30 ClassImp(AliRICHTransientDigit)
31     
32 //____________________________________________________________________________
33 AliRICHTransientDigit::AliRICHTransientDigit(Int_t ich, Int_t *digits): 
34     AliRICHDigit(digits)
35 {
36     //
37     // Creates a RICH digit list object
38     //
39     
40     fChamber = ich;
41     fTrackList   = new TObjArray;
42     
43 }
44 //_____________________________________________________________________________
45
46 AliRICHTransientDigit::~AliRICHTransientDigit()
47 {
48   if (fTrackList) {
49     fTrackList->Delete();
50     delete fTrackList;
51   }
52 }