a9e2aefa |
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$ |
0e88acc2 |
18 | Revision 1.3 2001/01/26 21:26:58 morsch |
19 | All data members private. Access functions provided. |
20 | |
a450cfad |
21 | Revision 1.2 2000/06/15 07:58:48 morsch |
22 | Code from MUON-dev joined |
23 | |
a9e2aefa |
24 | Revision 1.1.2.1 2000/06/09 22:03:22 morsch |
25 | Was before in DataStructures.cxx |
26 | |
27 | */ |
28 | |
29 | #include "AliMUONDigit.h" |
30 | |
31 | ClassImp(AliMUONDigit) |
32 | //_____________________________________________________________________________ |
33 | AliMUONDigit::AliMUONDigit(Int_t *digits) |
34 | { |
35 | // |
36 | // Creates a MUON digit object to be updated |
37 | // |
38 | fPadX = digits[0]; |
39 | fPadY = digits[1]; |
a450cfad |
40 | fCathode = digits[2]; |
41 | fSignal = digits[3]; |
42 | fPhysics = digits[4]; |
43 | fHit = digits[5]; |
a9e2aefa |
44 | |
45 | } |
46 | //_____________________________________________________________________________ |
47 | AliMUONDigit::AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits) |
48 | { |
49 | // |
50 | // Creates a MUON digit object |
51 | // |
52 | fPadX = digits[0]; |
53 | fPadY = digits[1]; |
a450cfad |
54 | fCathode = digits[2]; |
55 | fSignal = digits[3]; |
56 | fPhysics = digits[4]; |
57 | fHit = digits[5]; |
58 | |
0e88acc2 |
59 | for(Int_t i=0; i<MAXTRACKS; i++) { |
a9e2aefa |
60 | fTcharges[i] = charges[i]; |
61 | fTracks[i] = tracks[i]; |
62 | } |
63 | } |
64 | |
65 | AliMUONDigit::~AliMUONDigit() |
66 | { |
67 | // Destructor |
68 | } |