AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONLocalStruct.cxx
Go to the documentation of this file.
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 /* $Id$ */
17 
18 #include "AliMUONLocalStruct.h"
19 
20 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
30 
34 
35  const Int_t AliMUONLocalStruct::fgkLength = 5;
36  const Int_t AliMUONLocalStruct::fgkScalerLength = 45;
37  const UInt_t AliMUONLocalStruct::fgkEndOfLocal = 0xCAFEFADE;
38  const UInt_t AliMUONLocalStruct::fgkDisableWord = 0x10CADEAD;
39 //___________________________________________
41  : TObject(),
42  fL0(0),
43  fHold(0),
44  fClk(0),
45  fLPtNTrig(0),
46  fHPtNTrig(0),
47  fLPtRTrig(0),
48  fHPtRTrig(0),
49  fLPtLTrig(0),
50  fHPtLTrig(0),
51  fLPtSTrig(0),
52  fHPtSTrig(0),
53  fEOS(0),
54  fReset(0)
55 {
59  for (Int_t i = 0; i < 5; i++)
60  fData[i] = 0;
61 
62  for (Int_t i = 0; i < 8*4; i++)
63  fScaler[i] = 0;
64 
65 
66 }
67 
68 //___________________________________________
70  : TObject(event),
71  fL0(event.fL0),
72  fHold(event.fHold),
73  fClk(event.fClk),
74  fLPtNTrig(event.fLPtNTrig),
75  fHPtNTrig(event.fHPtNTrig),
76  fLPtRTrig(event.fLPtRTrig),
77  fHPtRTrig(event.fHPtRTrig),
78  fLPtLTrig(event.fLPtLTrig),
79  fHPtLTrig(event.fHPtLTrig),
80  fLPtSTrig(event.fLPtSTrig),
81  fHPtSTrig(event.fHPtSTrig),
82  fEOS(event.fEOS),
83  fReset(event.fReset)
84 {
88  for (Int_t i = 0; i < 5; i++)
89  fData[i] = event.fData[i];
90 
91  for (Int_t i = 0; i < 8*4; i++)
92  fScaler[i] = event.fScaler[i];
93 
94 
95 }
96 
97 //___________________________________________
99 {
101 }
102 
103 //___________________________________________
106 {
110 
111  if (this == &event) return *this;
112 
113  fL0 = event.fL0;
114  fHold = event.fHold;
115  fClk = event.fClk;
116  fLPtNTrig = event.fLPtNTrig;
117  fHPtNTrig = event.fHPtNTrig;
118  fLPtRTrig = event.fLPtRTrig;
119  fHPtRTrig = event.fHPtRTrig;
120  fLPtLTrig = event.fLPtLTrig;
121  fHPtLTrig = event.fHPtLTrig;
122  fLPtSTrig = event.fLPtSTrig;
123  fHPtSTrig = event.fHPtSTrig;
124  fEOS = event.fEOS;
125  fReset = event.fReset;
126 
127  for (Int_t i = 0; i < 5; i++)
128  fData[i] = event.fData[i];
129 
130  for (Int_t i = 0; i < 8*4; i++)
131  fScaler[i] = event.fScaler[i];
132 
133  return *this;
134 }
135 
136 //___________________________________________
138 {
140  Short_t vec[4] = {static_cast<Short_t>(GetX1()), static_cast<Short_t>(GetX2()), static_cast<Short_t>(GetX3()), static_cast<Short_t>(GetX4())};
141  array.Set(4, vec);
142 }
143 
144 //___________________________________________
145 void AliMUONLocalStruct::GetYPattern(TArrayS& array) const
146 {
148  Short_t vec[4] = {static_cast<Short_t>(GetY1()), static_cast<Short_t>(GetY2()), static_cast<Short_t>(GetY3()), static_cast<Short_t>(GetY4())};
149  array.Set(4, vec);
150 }
151 
152 //___________________________________________
154 {
158 
159  fL0 = 1000;
160  fHold = 100;
161  fClk = 10000;
162  fLPtNTrig = 1;
163  fHPtNTrig = 1;
164  fLPtRTrig = 2;
165  fHPtRTrig = 2;
166  fLPtLTrig = 3;
167  fHPtLTrig = 3;
168  fLPtSTrig = 4;
169  fHPtSTrig = 4;
170  fEOS = 0x2AA;
171  fReset = 10;
172 
173  for (Int_t i = 0; i < 8*4; i++)
174  fScaler[i] = i;
175 
176 }
UInt_t fEOS
contains switches conf. & flag for reading X (0) or Y (1) in fScaler
UInt_t fLPtLTrig
local low Pt left trigger
Rawdata local card structure for trigger.
UInt_t fHold
local hold (dead time)
UShort_t GetY3() const
Return Y3.
TVectorD vec
Definition: AnalyzeLaser.C:8
UInt_t fLPtNTrig
local low Pt no trigger
for(Int_t isec=54;isec< 71;isec+=1)
Definition: AnalyzeLaser.C:32
UInt_t fHPtSTrig
local high Pt straight trigger
UInt_t fClk
local clock
UShort_t GetY4() const
Return Y4.
UInt_t fLPtRTrig
local low Pt right trigger
TObjArray * array
Definition: AnalyzeLaser.C:12
UShort_t GetX1() const
Return X1.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
UInt_t fHPtRTrig
local high Pt right trigger
AliMUONLocalStruct & operator=(const AliMUONLocalStruct &event)
UShort_t GetY2() const
Return Y2.
UShort_t GetY1() const
Return Y1.
void GetXPattern(TArrayS &array) const
return X pattern array
UInt_t fHPtLTrig
local high Pt left trigger
void GetYPattern(TArrayS &array) const
return Y pattern array
UInt_t fHPtNTrig
local high Pt no trigger
UInt_t fScaler[8 *4]
local data
UInt_t fReset
reset signal
UInt_t fData[5]
local data
UShort_t GetX3() const
Return X3.
UShort_t GetX4() const
Return X4.
UShort_t GetX2() const
Return X2.
UInt_t fLPtSTrig
local low Pt straight trigger