- Welding section on absorber side (LHCVC2C_001)
[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
88cb7938 16/* $Id$ */
a9e2aefa 17
18#include "AliMUONDigit.h"
19
20ClassImp(AliMUONDigit)
21//_____________________________________________________________________________
61adb9bd 22 AliMUONDigit::AliMUONDigit(const AliMUONDigit& digits):TObject(digits)
23{
24// copy constructor
25
26 fPadX = digits.fPadX;
27 fPadY = digits.fPadY;
28 fCathode = digits.fCathode;
29 fSignal = digits.fSignal;
30 fPhysics = digits.fPhysics;
31 fHit = digits.fHit;
32
33 for(Int_t i=0; i<kMAXTRACKS; i++) {
34 fTcharges[i] = digits.fTcharges[i];
35 fTracks[i] = digits.fTracks[i];
36 }
37}
38
39//_____________________________________________________________________________
a9e2aefa 40AliMUONDigit::AliMUONDigit(Int_t *digits)
41{
42 //
43 // Creates a MUON digit object to be updated
44 //
45 fPadX = digits[0];
46 fPadY = digits[1];
a450cfad 47 fCathode = digits[2];
48 fSignal = digits[3];
49 fPhysics = digits[4];
50 fHit = digits[5];
a9e2aefa 51
52}
53//_____________________________________________________________________________
54AliMUONDigit::AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits)
55{
56 //
57 // Creates a MUON digit object
58 //
59 fPadX = digits[0];
60 fPadY = digits[1];
a450cfad 61 fCathode = digits[2];
62 fSignal = digits[3];
63 fPhysics = digits[4];
64 fHit = digits[5];
65
cb73aa80 66 for(Int_t i=0; i<kMAXTRACKS; i++) {
a9e2aefa 67 fTcharges[i] = charges[i];
68 fTracks[i] = tracks[i];
69 }
70}
71
72AliMUONDigit::~AliMUONDigit()
73{
74 // Destructor
75}
61adb9bd 76
77//_____________________________________________________________________________
78AliMUONDigit& AliMUONDigit::operator=(const AliMUONDigit& digits)
79{
80 if (this == &digits)
81 return *this;
82
83 fPadX = digits.fPadX;
84 fPadY = digits.fPadY;
85 fCathode = digits.fCathode;
86 fSignal = digits.fSignal;
87 fPhysics = digits.fPhysics;
88 fHit = digits.fHit;
89
90 for(Int_t i=0; i<kMAXTRACKS; i++) {
91 fTcharges[i] = digits.fTcharges[i];
92 fTracks[i] = digits.fTracks[i];
93 }
94
95 return *this;
96}