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