]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZEROdigit.cxx
fixing warning about suggested parantheses
[u/mrichter/AliRoot.git] / VZERO / AliVZEROdigit.cxx
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
18 ClassImp(AliVZEROdigit)
19
20 //__________________________________________________________________________
21 AliVZEROdigit::AliVZEROdigit()
22    :AliDigit(),
23     fTrack(0),
24     fEvent(0),
25     fPMNumber(0),
26     fADC(0),
27     fTime(0),
28     fWidth(0),
29     fBBFlag(0),
30     fBGFlag(0)
31
32 {
33   // Standard default constructor 
34 }
35
36 //__________________________________________________________________________
37 AliVZEROdigit::AliVZEROdigit(Int_t* tracks, Int_t *digits)
38    :AliDigit(tracks),
39    fTrack(0),
40    fEvent(0),
41    fPMNumber(0),
42    fADC(0),
43    fTime(0),
44    fWidth(0),
45    fBBFlag(0),
46    fBGFlag(0)
47   
48 {
49   // Creates VZERO digits  
50   // Fills the AliVZEROdigit data members from the array digits. 
51     
52   fTrack      =  tracks[0];
53   fEvent      =  digits[0];  
54 }
55
56 //__________________________________________________________________________
57 AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time)
58    :AliDigit(),
59    fTrack(0),
60    fEvent(0),
61    fPMNumber(0),
62    fADC(0),
63    fTime(0),
64    fWidth(0),
65    fBBFlag(0),
66    fBGFlag(0)
67 {  
68    fPMNumber   = PMnumber;
69    fADC        = adc;
70    fTime       = time;
71 }
72
73 //__________________________________________________________________________
74 AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time, 
75                              Int_t width, Bool_t BeamBeamFlag, Bool_t BeamGasFlag)
76    :AliDigit(),
77    fTrack(0),
78    fEvent(0),
79    fPMNumber(0),
80    fADC(0),
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
91    fBBFlag     = BeamBeamFlag;      // Beam Beam Flag
92    fBGFlag     = BeamGasFlag;      // Beam Gas  Flag
93
94 }
95
96 //__________________________________________________________________________
97 void AliVZEROdigit::Print(const Option_t*) const
98 {
99     // Dumps digit object
100     
101     Dump();
102 }
103
104