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