]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHDigit.cxx
Added the magnetic field as a static member of the AliL3Transform class,
[u/mrichter/AliRoot.git] / RICH / AliRICHDigit.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.1  2000/06/12 15:20:36  jbarbosa
19   Cleaned up version.
20
21 */
22
23
24 #include "AliRICHDigit.h"
25
26 ClassImp(AliRICHDigit)
27 //_____________________________________________________________________________
28 AliRICHDigit::AliRICHDigit(Int_t *digits)
29 {
30     //
31     // Creates a RICH digit object to be updated
32     //
33     fPadX        = digits[0];
34     fPadY        = digits[1];
35     fSignal      = digits[2];
36     fPhysics     = digits[3];
37     fHit         = digits[4];
38     
39 }
40 //_____________________________________________________________________________
41 AliRICHDigit::AliRICHDigit(Int_t *tracks, Int_t *charges, Int_t *digits)
42 {
43     //
44     // Creates a RICH digit object
45     //
46     fPadX        = digits[0];
47     fPadY        = digits[1];
48     fSignal      = digits[2];
49     fPhysics     = digits[3];
50     fHit         = digits[4];
51
52     for(Int_t i=0; i<kMAXTRACKSPERRICHDIGIT; i++) {
53         fTcharges[i]  = charges[i];
54         fTracks[i]    = tracks[i];
55     }
56 }