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