]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/AliVZEROdigit.cxx
Adding the complete vzero raw data to the esd friend. The channel numbering follows...
[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(),
23 fTrack(0),
24 fEvent(0),
25 fPMNumber(0),
26 fADC(0),
27 fTime(0)
28
6905601e 29{
0b2bea8b 30 // Standard default constructor
6905601e 31}
32
d0502ab2 33//__________________________________________________________________________
47890cd3 34AliVZEROdigit::AliVZEROdigit(Int_t* tracks, Int_t *digits):
0b2bea8b 35 AliDigit(tracks),
36 fTrack(0),
37 fEvent(0),
38 fPMNumber(0),
39 fADC(0),
40 fTime(0)
41
42{
6905601e 43 // Creates VZERO digits
b2501ea3 44 // Fills the AliVZEROdigit data members from the array digits.
0b2bea8b 45
6905601e 46 fTrack = tracks[0];
47 fEvent = digits[0];
47890cd3 48}
49
d0502ab2 50//__________________________________________________________________________
20277079 51AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time)
0b2bea8b 52 :AliDigit(),
53 fTrack(0),
54 fEvent(0),
55 fPMNumber(0),
56 fADC(0),
57 fTime(0)
6905601e 58{
0b2bea8b 59 fPMNumber = PMnumber;
60 fADC = adc;
61 fTime = time;
6905601e 62}
47890cd3 63
d0502ab2 64//__________________________________________________________________________
65AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time,
66 Int_t width, Bool_t BBFlag, Bool_t BGFlag)
67 :AliDigit(),
68 fTrack(0),
69 fEvent(0),
70 fPMNumber(0),
71 fTime(0),
72 fWidth(0),
73 fBBFlag(0),
74 fBGFlag(0)
75{
76
77 fPMNumber = PMnumber; // PM number
78 fADC = adc; // ADC value
79 fTime = time; // Leading time
80 fWidth = width; // Time Width
81 fBBFlag = BBFlag; // Beam Beam Flag
82 fBGFlag = BGFlag; // Beam Gas Flag
83
84}
85
86//__________________________________________________________________________
8db56859 87void AliVZEROdigit::Print(const Option_t*) const
88{
d0502ab2 89 // Dumps digit object
90
8db56859 91 Dump();
92}
47890cd3 93
94