]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - VZERO/AliVZEROdigit.cxx
Move from the DAQ SOR/EOR time-stamps to the CTP ones. Should prevent the problem...
[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 fPMNumber(0),
24 fTime(0.),
25 fWidth(0.),
26 fIntegrator(0)
27
28{
29 // Standard default
30 // constructor
31 for(Int_t iClock = 0; iClock < kNClocks; ++iClock) fChargeADC[iClock] = 0;
32}
33
34//__________________________________________________________________________
35AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t time,
36 Float_t width,
37 Bool_t integrator,
38 Short_t *chargeADC,
39 Int_t *labels)
40:AliDigit(),
41fPMNumber(PMnumber),
42fTime(time),
43fWidth(width),
44fIntegrator(integrator)
45{
46 // Constructor
47 // Used in the digitizer
48 if (chargeADC) {
49 for(Int_t iClock = 0; iClock < kNClocks; ++iClock)
50 fChargeADC[iClock] = chargeADC[iClock];
51 }
52 else {
53 for(Int_t iClock = 0; iClock < kNClocks; ++iClock)
54 fChargeADC[iClock] = 0;
55 }
56
57 if (labels)
58 for(Int_t iTrack = 0; iTrack < 3; ++iTrack) fTracks[iTrack] = labels[iTrack];
59}
60
61//__________________________________________________________________________
62void AliVZEROdigit::Print(const Option_t*) const
63{
64 // Dumps digit object
65 Dump();
66}