Implementation of Trigger simulation (Raphael Tieulent)
[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),
3b8367b8 27 fTime(0),
28 fWidth(0),
29 fBBFlag(0),
30 fBGFlag(0)
0b2bea8b 31
6905601e 32{
0b2bea8b 33 // Standard default constructor
6905601e 34}
35
d0502ab2 36//__________________________________________________________________________
3b8367b8 37AliVZEROdigit::AliVZEROdigit(Int_t* tracks, Int_t *digits)
38 :AliDigit(tracks),
0b2bea8b 39 fTrack(0),
40 fEvent(0),
41 fPMNumber(0),
42 fADC(0),
3b8367b8 43 fTime(0),
44 fWidth(0),
45 fBBFlag(0),
46 fBGFlag(0)
0b2bea8b 47
48{
6905601e 49 // Creates VZERO digits
b2501ea3 50 // Fills the AliVZEROdigit data members from the array digits.
0b2bea8b 51
6905601e 52 fTrack = tracks[0];
53 fEvent = digits[0];
47890cd3 54}
55
d0502ab2 56//__________________________________________________________________________
20277079 57AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time)
0b2bea8b 58 :AliDigit(),
59 fTrack(0),
60 fEvent(0),
61 fPMNumber(0),
62 fADC(0),
3b8367b8 63 fTime(0),
64 fWidth(0),
65 fBBFlag(0),
66 fBGFlag(0)
6905601e 67{
0b2bea8b 68 fPMNumber = PMnumber;
69 fADC = adc;
70 fTime = time;
6905601e 71}
47890cd3 72
d0502ab2 73//__________________________________________________________________________
74AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time,
3b8367b8 75 Int_t width, Bool_t BeamBeamFlag, Bool_t BeamGasFlag)
d0502ab2 76 :AliDigit(),
77 fTrack(0),
78 fEvent(0),
79 fPMNumber(0),
3b8367b8 80 fADC(0),
d0502ab2 81 fTime(0),
82 fWidth(0),
83 fBBFlag(0),
84 fBGFlag(0)
85{
86
87 fPMNumber = PMnumber; // PM number
88 fADC = adc; // ADC value
89 fTime = time; // Leading time
90 fWidth = width; // Time Width
3b8367b8 91 fBBFlag = BeamBeamFlag; // Beam Beam Flag
92 fBGFlag = BeamGasFlag; // Beam Gas Flag
d0502ab2 93
94}
95
96//__________________________________________________________________________
8db56859 97void AliVZEROdigit::Print(const Option_t*) const
98{
d0502ab2 99 // Dumps digit object
100
8db56859 101 Dump();
102}
47890cd3 103
104