1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 #include "AliMUONLocalStruct.h"
21 /// Local structure for trigger raw data.
22 /// The structure includes the information
23 /// about the x,y position of the 4 detection planes,
24 /// the trigger word (address, local decision, y trigger, y position, x deviation,
29 ClassImp(AliMUONLocalStruct)
32 const Int_t AliMUONLocalStruct::fgkLength = 5;
33 const Int_t AliMUONLocalStruct::fgkScalerLength = 45;
34 const UInt_t AliMUONLocalStruct::fgkEndOfLocal = 0xCAFEFADE;
36 //___________________________________________
37 AliMUONLocalStruct::AliMUONLocalStruct()
56 for (Int_t i = 0; i < 5; i++)
59 for (Int_t i = 0; i < 8*4; i++)
65 //___________________________________________
66 AliMUONLocalStruct::AliMUONLocalStruct(const AliMUONLocalStruct& event)
75 fLPtNTrig = event.fLPtNTrig;
76 fHPtNTrig = event.fHPtNTrig;
77 fLPtRTrig = event.fLPtRTrig;
78 fHPtRTrig = event.fHPtRTrig;
79 fLPtLTrig = event.fLPtLTrig;
80 fHPtLTrig = event.fHPtLTrig;
81 fLPtSTrig = event.fLPtSTrig;
82 fHPtSTrig = event.fHPtSTrig;
84 fReset = event.fReset ;
86 for (Int_t i = 0; i < 5; i++)
87 fData[i] = event.fData[i];
89 for (Int_t i = 0; i < 8*4; i++)
90 fScaler[i] = event.fScaler[i];
94 //___________________________________________
96 AliMUONLocalStruct::operator=(const AliMUONLocalStruct& event)
99 // assignment operator
102 if (this == &event) return *this;
107 fLPtNTrig = event.fLPtNTrig;
108 fHPtNTrig = event.fHPtNTrig;
109 fLPtRTrig = event.fLPtRTrig;
110 fHPtRTrig = event.fHPtRTrig;
111 fLPtLTrig = event.fLPtLTrig;
112 fHPtLTrig = event.fHPtLTrig;
113 fLPtSTrig = event.fLPtSTrig;
114 fHPtSTrig = event.fHPtSTrig;
116 fReset = event.fReset;
118 for (Int_t i = 0; i < 5; i++)
119 fData[i] = event.fData[i];
121 for (Int_t i = 0; i < 8*4; i++)
122 fScaler[i] = event.fScaler[i];
127 //___________________________________________
128 void AliMUONLocalStruct::SetScalersNumbers()
130 // set numbers for scaler events for local structure
131 // crasy numbers for scaler words, while no beam is coming
148 for (Int_t i = 0; i < 8*4; i++)