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