]>
Commit | Line | Data |
---|---|---|
c8f4be1a | 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 "AliMUONScalerEventTrigger.h" | |
17 | ||
63ed9c6b | 18 | const Int_t AliMUONScalerEventTrigger::fgkLocalScalerLength = 45; |
19 | const Int_t AliMUONScalerEventTrigger::fgkRegScalerLength = 8; | |
20 | const Int_t AliMUONScalerEventTrigger::fgkGlobalScalerLength = 10; | |
21 | const Int_t AliMUONScalerEventTrigger::fgkDarcScalerLength = 6; | |
22 | ||
c8f4be1a | 23 | ClassImp(AliMUONScalerEventTrigger) |
c8f4be1a | 24 | |
25 | //___________________________________________ | |
26 | AliMUONScalerEventTrigger::AliMUONScalerEventTrigger() | |
27 | : fLocalL0(0), | |
28 | fLocalHold(0), | |
29 | fLocalClk(0), | |
30 | fLocalLPtNTrig(0), | |
31 | fLocalHPtNTrig(0), | |
32 | fLocalLPtRTrig(0), | |
33 | fLocalHPtRTrig(0), | |
34 | fLocalLPtLTrig(0), | |
35 | fLocalHPtLTrig(0), | |
36 | fLocalLPtSTrig(0), | |
37 | fLocalHPtSTrig(0), | |
38 | fLocalEOS(0), | |
39 | fLocalReset(0), | |
40 | ||
41 | fRegL0(0), | |
42 | fRegClk(0), | |
43 | fRegHold(0), | |
44 | ||
45 | fGlobalL0(0), | |
46 | fGlobalClk(0), | |
47 | fGlobalHold(0), | |
48 | fGlobalSpare(0), | |
49 | ||
50 | fDarcL0R(0), | |
51 | fDarcL0U(0), | |
52 | fDarcL0P(0), | |
53 | fDarcL0S(0), | |
54 | fDarcClk(0), | |
55 | fDarcHold(0) | |
56 | { | |
57 | for (Int_t i = 0; i < 8*4; i++) | |
58 | fLocalScaler[i] = 0; | |
59 | ||
60 | for (Int_t i = 0; i < 8; i++) | |
61 | fRegScaler[i] = 0; | |
62 | ||
63 | for (Int_t i = 0; i < 6; i++) | |
64 | fGlobalScaler[i] = 0; | |
65 | ||
66 | } | |
ced309a5 | 67 | //___________________________________________ |
68 | void AliMUONScalerEventTrigger::SetNumbers() | |
69 | { | |
70 | // set crasy numbers for scaler words, while no beam is coming | |
71 | ||
72 | fLocalL0 = 1000; | |
73 | fLocalHold = 100; | |
74 | fLocalClk = 10000; | |
75 | fLocalLPtNTrig = 1; | |
76 | fLocalHPtNTrig = 1; | |
77 | fLocalLPtRTrig = 2; | |
78 | fLocalHPtRTrig = 2; | |
79 | fLocalLPtLTrig = 3; | |
80 | fLocalHPtLTrig = 3; | |
81 | fLocalLPtSTrig = 4; | |
82 | fLocalHPtSTrig = 4; | |
83 | fLocalEOS = 0x2AA; | |
84 | fLocalReset = 10; | |
85 | ||
86 | fRegL0 = 1000; | |
87 | fRegClk = 10000; | |
88 | fRegHold = 100; | |
89 | ||
90 | fGlobalL0 = 1000; | |
91 | fGlobalClk = 10000; | |
92 | fGlobalHold = 100; | |
93 | fGlobalSpare = 1; | |
94 | ||
95 | fDarcL0R = 1000; | |
96 | fDarcL0U = 900; | |
97 | fDarcL0P = 800; | |
98 | fDarcL0S = 700; | |
99 | fDarcClk = 10000; | |
100 | fDarcHold = 100; | |
101 | ||
102 | for (Int_t i = 0; i < 8*4; i++) | |
103 | fLocalScaler[i] = i; | |
104 | ||
105 | for (Int_t i = 0; i < 8; i++) | |
106 | fRegScaler[i] = i; | |
107 | ||
108 | for (Int_t i = 0; i < 6; i++) | |
109 | fGlobalScaler[i] = i; | |
110 | ||
111 | } |