]>
Commit | Line | Data |
---|---|---|
47890cd3 | 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 | ||
47890cd3 | 16 | #include "AliVZEROdigit.h" |
b2501ea3 | 17 | |
47890cd3 | 18 | ClassImp(AliVZEROdigit) |
19 | ||
d0502ab2 | 20 | //__________________________________________________________________________ |
6905601e | 21 | AliVZEROdigit::AliVZEROdigit() |
0b2bea8b | 22 | :AliDigit(), |
23 | fTrack(0), | |
24 | fEvent(0), | |
25 | fPMNumber(0), | |
db0db003 | 26 | fADC(0.), |
27 | fTime(0.), | |
28 | fWidth(0.), | |
3b8367b8 | 29 | fBBFlag(0), |
fad64858 | 30 | fBGFlag(0), |
db0db003 | 31 | fIntegrator(0) |
0b2bea8b | 32 | |
6905601e | 33 | { |
0b2bea8b | 34 | // Standard default constructor |
6905601e | 35 | } |
36 | ||
d0502ab2 | 37 | //__________________________________________________________________________ |
3b8367b8 | 38 | AliVZEROdigit::AliVZEROdigit(Int_t* tracks, Int_t *digits) |
39 | :AliDigit(tracks), | |
0b2bea8b | 40 | fTrack(0), |
41 | fEvent(0), | |
42 | fPMNumber(0), | |
db0db003 | 43 | fADC(0.), |
44 | fTime(0.), | |
45 | fWidth(0.), | |
3b8367b8 | 46 | fBBFlag(0), |
fad64858 | 47 | fBGFlag(0), |
48 | fIntegrator(0) | |
0b2bea8b | 49 | |
50 | { | |
6905601e | 51 | // Creates VZERO digits |
b2501ea3 | 52 | // Fills the AliVZEROdigit data members from the array digits. |
0b2bea8b | 53 | |
6905601e | 54 | fTrack = tracks[0]; |
55 | fEvent = digits[0]; | |
47890cd3 | 56 | } |
57 | ||
d0502ab2 | 58 | //__________________________________________________________________________ |
db0db003 | 59 | AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t adc, Float_t time) |
0b2bea8b | 60 | :AliDigit(), |
61 | fTrack(0), | |
62 | fEvent(0), | |
63 | fPMNumber(0), | |
db0db003 | 64 | fADC(0.), |
65 | fTime(0.), | |
66 | fWidth(0.), | |
3b8367b8 | 67 | fBBFlag(0), |
fad64858 | 68 | fBGFlag(0), |
db0db003 | 69 | fIntegrator(0) |
6905601e | 70 | { |
0b2bea8b | 71 | fPMNumber = PMnumber; |
72 | fADC = adc; | |
73 | fTime = time; | |
6905601e | 74 | } |
47890cd3 | 75 | |
d0502ab2 | 76 | //__________________________________________________________________________ |
db0db003 | 77 | AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t adc, Float_t time, |
78 | Float_t width, Bool_t BeamBeamFlag, Bool_t BeamGasFlag) | |
d0502ab2 | 79 | :AliDigit(), |
80 | fTrack(0), | |
81 | fEvent(0), | |
fad64858 | 82 | fPMNumber(PMnumber), |
83 | fADC(adc), | |
84 | fTime(time), | |
85 | fWidth(width), | |
86 | fBBFlag(BeamBeamFlag), | |
db0db003 | 87 | fBGFlag(BeamGasFlag), |
88 | fIntegrator(0) | |
d0502ab2 | 89 | { |
90 | ||
fad64858 | 91 | } |
92 | //__________________________________________________________________________ | |
db0db003 | 93 | AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t adc, Float_t time, |
94 | Float_t width, Bool_t BeamBeamFlag, Bool_t BeamGasFlag, Bool_t integrator) | |
fad64858 | 95 | :AliDigit(), |
96 | fTrack(0), | |
97 | fEvent(0), | |
98 | fPMNumber(PMnumber), | |
99 | fADC(adc), | |
100 | fTime(time), | |
101 | fWidth(width), | |
102 | fBBFlag(BeamBeamFlag), | |
103 | fBGFlag(BeamGasFlag), | |
104 | fIntegrator(integrator) | |
105 | { | |
106 | ||
d0502ab2 | 107 | } |
108 | ||
109 | //__________________________________________________________________________ | |
8db56859 | 110 | void AliVZEROdigit::Print(const Option_t*) const |
111 | { | |
d0502ab2 | 112 | // Dumps digit object |
113 | ||
8db56859 | 114 | Dump(); |
115 | } | |
47890cd3 | 116 | |
117 |