X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=VZERO%2FAliVZEROdigit.cxx;h=e2ca7099579b3c4ef05059ae1f254a2d6efdaad7;hb=c83af4df291e66a305953a3d10e0c557fa57e26e;hp=0094ce83200be29393d474f6ecfede88ec336e9d;hpb=47890cd397de5938f4c382744651beb700f29fbd;p=u%2Fmrichter%2FAliRoot.git diff --git a/VZERO/AliVZEROdigit.cxx b/VZERO/AliVZEROdigit.cxx index 0094ce83200..e2ca7099579 100644 --- a/VZERO/AliVZEROdigit.cxx +++ b/VZERO/AliVZEROdigit.cxx @@ -13,29 +13,54 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ - -#include "AliVZERO.h" #include "AliVZEROdigit.h" -#include "AliRun.h" -ClassImp(AliVZEROdigit) -AliVZEROdigit::AliVZEROdigit(Int_t* tracks, Int_t *digits): - AliDigit(tracks){ - - // - // Creates VZERO digit - // The creator for the AliVZEROdigit class. This routine fills the - // AliVZEROdigit data members from the array digits. - // - - fTrack = tracks[0]; - fEvent = digits[0]; - fMulti = digits[1]; - fNCerenkovs = digits[2]; - -} +ClassImp(AliVZEROdigit) +//__________________________________________________________________________ +AliVZEROdigit::AliVZEROdigit() + :AliDigit(), + fPMNumber(0), + fTime(0.), + fWidth(0.), + fIntegrator(0) +{ + // Standard default + // constructor + for(Int_t iClock = 0; iClock < kNClocks; ++iClock) fChargeADC[iClock] = 0; +} +//__________________________________________________________________________ +AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Float_t time, + Float_t width, + Bool_t integrator, + Short_t *chargeADC, + Int_t *labels) +:AliDigit(), +fPMNumber(PMnumber), +fTime(time), +fWidth(width), +fIntegrator(integrator) +{ + // Constructor + // Used in the digitizer + if (chargeADC) { + for(Int_t iClock = 0; iClock < kNClocks; ++iClock) + fChargeADC[iClock] = chargeADC[iClock]; + } + else { + for(Int_t iClock = 0; iClock < kNClocks; ++iClock) + fChargeADC[iClock] = 0; + } + if (labels) + for(Int_t iTrack = 0; iTrack < 3; ++iTrack) fTracks[iTrack] = labels[iTrack]; +} +//__________________________________________________________________________ +void AliVZEROdigit::Print(const Option_t*) const +{ + // Dumps digit object + Dump(); +}