]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/AliVZEROdigit.cxx
AliITSRecoParam & AliITStrackerMI:
[u/mrichter/AliRoot.git] / VZERO / AliVZEROdigit.cxx
CommitLineData
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 18ClassImp(AliVZEROdigit)
19
d0502ab2 20//__________________________________________________________________________
6905601e 21AliVZEROdigit::AliVZEROdigit()
0b2bea8b 22 :AliDigit(),
0b2bea8b 23 fPMNumber(0),
db0db003 24 fADC(0.),
25 fTime(0.),
26 fWidth(0.),
3b8367b8 27 fBBFlag(0),
fad64858 28 fBGFlag(0),
db0db003 29 fIntegrator(0)
0b2bea8b 30
6905601e 31{
30c4ff64 32 // Standard default
33 // constructor
34 for(Int_t iClock = 0; iClock < kNClocks; ++iClock) fChargeADC[iClock] = 0;
47890cd3 35}
36
d0502ab2 37//__________________________________________________________________________
db0db003 38AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t adc, Float_t time)
0b2bea8b 39 :AliDigit(),
30c4ff64 40 fPMNumber(PMnumber),
41 fADC(adc),
42 fTime(time),
db0db003 43 fWidth(0.),
3b8367b8 44 fBBFlag(0),
fad64858 45 fBGFlag(0),
db0db003 46 fIntegrator(0)
6905601e 47{
30c4ff64 48 // Constructor
49 // so far used in raw->sdigits
50 for(Int_t iClock = 0; iClock < kNClocks; ++iClock) fChargeADC[iClock] = 0;
6905601e 51}
47890cd3 52
fad64858 53//__________________________________________________________________________
db0db003 54AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t adc, Float_t time,
30c4ff64 55 Float_t width, Bool_t BeamBeamFlag, Bool_t BeamGasFlag,
56 Bool_t integrator,
57 Short_t *chargeADC,
58 Int_t *labels)
fad64858 59:AliDigit(),
fad64858 60fPMNumber(PMnumber),
61fADC(adc),
62fTime(time),
63fWidth(width),
64fBBFlag(BeamBeamFlag),
65fBGFlag(BeamGasFlag),
66fIntegrator(integrator)
67{
30c4ff64 68 // Constructor
69 // Used in the digitizer
70 if (chargeADC) {
71 for(Int_t iClock = 0; iClock < kNClocks; ++iClock)
72 fChargeADC[iClock] = chargeADC[iClock];
73 }
74 else {
75 for(Int_t iClock = 0; iClock < kNClocks; ++iClock)
76 fChargeADC[iClock] = 0;
77 }
78
79 if (labels)
80 for(Int_t iTrack = 0; iTrack < 3; ++iTrack) fTracks[iTrack] = labels[iTrack];
d0502ab2 81}
82
83//__________________________________________________________________________
8db56859 84void AliVZEROdigit::Print(const Option_t*) const
85{
d0502ab2 86 // Dumps digit object
8db56859 87 Dump();
88}