Line data Source code
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 :
18 44 : ClassImp(AliVZEROdigit)
19 :
20 : //__________________________________________________________________________
21 : AliVZEROdigit::AliVZEROdigit()
22 2691 : :AliDigit(),
23 2691 : fPMNumber(0),
24 2691 : fTime(0.),
25 2691 : fWidth(0.),
26 2691 : fIntegrator(0)
27 :
28 13455 : {
29 : // Standard default
30 : // constructor
31 118404 : for(Int_t iClock = 0; iClock < kNClocks; ++iClock) fChargeADC[iClock] = 0;
32 5382 : }
33 :
34 : //__________________________________________________________________________
35 : AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t time,
36 : Float_t width,
37 : Bool_t integrator,
38 : Short_t *chargeADC,
39 : Int_t *labels)
40 512 : :AliDigit(),
41 512 : fPMNumber(PMnumber),
42 512 : fTime(time),
43 512 : fWidth(width),
44 512 : fIntegrator(integrator)
45 1536 : {
46 : // Constructor
47 : // Used in the digitizer
48 512 : if (chargeADC) {
49 22528 : for(Int_t iClock = 0; iClock < kNClocks; ++iClock)
50 10752 : fChargeADC[iClock] = chargeADC[iClock];
51 512 : }
52 : else {
53 0 : for(Int_t iClock = 0; iClock < kNClocks; ++iClock)
54 0 : fChargeADC[iClock] = 0;
55 : }
56 :
57 512 : if (labels)
58 2304 : for(Int_t iTrack = 0; iTrack < 3; ++iTrack) fTracks[iTrack] = labels[iTrack];
59 1024 : }
60 :
61 : //__________________________________________________________________________
62 : void AliVZEROdigit::Print(const Option_t*) const
63 : {
64 : // Dumps digit object
65 0 : Dump();
66 0 : }
|