fix finding of pad neighbours; remove methods to write them in OCDB
[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 fTime(0.),
25 fWidth(0.),
db0db003 26 fIntegrator(0)
0b2bea8b 27
6905601e 28{
30c4ff64 29 // Standard default
30 // constructor
31 for(Int_t iClock = 0; iClock < kNClocks; ++iClock) fChargeADC[iClock] = 0;
47890cd3 32}
33
d0502ab2 34//__________________________________________________________________________
b47d88ce 35AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t time,
b6fd9c4a 36 Float_t width,
30c4ff64 37 Bool_t integrator,
38 Short_t *chargeADC,
39 Int_t *labels)
fad64858 40:AliDigit(),
fad64858 41fPMNumber(PMnumber),
fad64858 42fTime(time),
43fWidth(width),
fad64858 44fIntegrator(integrator)
45{
30c4ff64 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];
d0502ab2 59}
60
61//__________________________________________________________________________
8db56859 62void AliVZEROdigit::Print(const Option_t*) const
63{
d0502ab2 64 // Dumps digit object
8db56859 65 Dump();
66}