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"
20 /// \class AliMUONLocalStruct
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,
27 /// \author Christian Finck
30 ClassImp(AliMUONLocalStruct)
33 const Int_t AliMUONLocalStruct::fgkLength = 5;
34 const Int_t AliMUONLocalStruct::fgkScalerLength = 45;
35 const UInt_t AliMUONLocalStruct::fgkEndOfLocal = 0xCAFEFADE;
36 const UInt_t AliMUONLocalStruct::fgkDisableWord = 0x010CDEAD;
37 //___________________________________________
38 AliMUONLocalStruct::AliMUONLocalStruct()
57 for (Int_t i = 0; i < 5; i++)
60 for (Int_t i = 0; i < 8*4; i++)
66 //___________________________________________
67 AliMUONLocalStruct::AliMUONLocalStruct(const AliMUONLocalStruct& event)
72 fLPtNTrig(event.fLPtNTrig),
73 fHPtNTrig(event.fHPtNTrig),
74 fLPtRTrig(event.fLPtRTrig),
75 fHPtRTrig(event.fHPtRTrig),
76 fLPtLTrig(event.fLPtLTrig),
77 fHPtLTrig(event.fHPtLTrig),
78 fLPtSTrig(event.fLPtSTrig),
79 fHPtSTrig(event.fHPtSTrig),
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];
95 //___________________________________________
96 AliMUONLocalStruct::~AliMUONLocalStruct()
101 //___________________________________________
103 AliMUONLocalStruct::operator=(const AliMUONLocalStruct& event)
106 /// assignment operator
109 if (this == &event) return *this;
114 fLPtNTrig = event.fLPtNTrig;
115 fHPtNTrig = event.fHPtNTrig;
116 fLPtRTrig = event.fLPtRTrig;
117 fHPtRTrig = event.fHPtRTrig;
118 fLPtLTrig = event.fLPtLTrig;
119 fHPtLTrig = event.fHPtLTrig;
120 fLPtSTrig = event.fLPtSTrig;
121 fHPtSTrig = event.fHPtSTrig;
123 fReset = event.fReset;
125 for (Int_t i = 0; i < 5; i++)
126 fData[i] = event.fData[i];
128 for (Int_t i = 0; i < 8*4; i++)
129 fScaler[i] = event.fScaler[i];
134 //___________________________________________
135 void AliMUONLocalStruct::SetScalersNumbers()
137 /// set numbers for scaler events for local structure
138 /// crasy numbers for scaler words, while no beam is coming
155 for (Int_t i = 0; i < 8*4; i++)