]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONDigit.cxx
Geometry construction functions separated from AliMUON, AliMUONv1into a new AliMUONGe...
[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)
61adb9bd 21//_____________________________________________________________________________
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
30178c30 39//_____________________________________________________________________________
40 AliMUONDigit::AliMUONDigit()
41 : TObject()
42{
43// Default constructor
44}
45
a9e2aefa 46//_____________________________________________________________________________
47AliMUONDigit::AliMUONDigit(Int_t *digits)
48{
49 //
50 // Creates a MUON digit object to be updated
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];
a9e2aefa 58
59}
60//_____________________________________________________________________________
61AliMUONDigit::AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits)
62{
63 //
64 // Creates a MUON digit object
65 //
66 fPadX = digits[0];
67 fPadY = digits[1];
a450cfad 68 fCathode = digits[2];
69 fSignal = digits[3];
70 fPhysics = digits[4];
71 fHit = digits[5];
72
cb73aa80 73 for(Int_t i=0; i<kMAXTRACKS; i++) {
a9e2aefa 74 fTcharges[i] = charges[i];
75 fTracks[i] = tracks[i];
76 }
77}
78
79AliMUONDigit::~AliMUONDigit()
80{
81 // Destructor
82}
61adb9bd 83
84//_____________________________________________________________________________
85AliMUONDigit& AliMUONDigit::operator=(const AliMUONDigit& digits)
86{
87 if (this == &digits)
88 return *this;
89
90 fPadX = digits.fPadX;
91 fPadY = digits.fPadY;
92 fCathode = digits.fCathode;
93 fSignal = digits.fSignal;
94 fPhysics = digits.fPhysics;
95 fHit = digits.fHit;
96
97 for(Int_t i=0; i<kMAXTRACKS; i++) {
98 fTcharges[i] = digits.fTcharges[i];
99 fTracks[i] = digits.fTracks[i];
100 }
101
102 return *this;
103}