]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZEROdigit.cxx
Example macro for merging sets of alignment objects
[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
29 {
30   // Standard default constructor 
31 }
32
33 //__________________________________________________________________________
34 AliVZEROdigit::AliVZEROdigit(Int_t* tracks, Int_t *digits):
35    AliDigit(tracks),
36    fTrack(0),
37    fEvent(0),
38    fPMNumber(0),
39    fADC(0),
40    fTime(0)
41   
42 {
43   // Creates VZERO digits  
44   // Fills the AliVZEROdigit data members from the array digits. 
45     
46   fTrack      =  tracks[0];
47   fEvent      =  digits[0];  
48 }
49
50 //__________________________________________________________________________
51 AliVZEROdigit::AliVZEROdigit(Int_t PMnumber, Int_t adc, Int_t time)
52    :AliDigit(),
53    fTrack(0),
54    fEvent(0),
55    fPMNumber(0),
56    fADC(0),
57    fTime(0)
58 {  
59    fPMNumber   = PMnumber;
60    fADC        = adc;
61    fTime       = time;
62 }
63
64 //__________________________________________________________________________
65 AliVZEROdigit::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 //__________________________________________________________________________
87 void AliVZEROdigit::Print(const Option_t*) const
88 {
89     // Dumps digit object
90     
91     Dump();
92 }
93
94