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 **************************************************************************/
16 #include "AliMUONLocalStruct.h"
19 /// Local structure for trigger raw data.
20 /// The structure includes the information
21 /// about the x,y position of the 4 detection planes,
22 /// the trigger word (address, local decision, y trigger, y position, x deviation,
26 ClassImp(AliMUONLocalStruct)
28 const Int_t AliMUONLocalStruct::fgkLength = 5;
29 const Int_t AliMUONLocalStruct::fgkScalerLength = 45;
30 const UInt_t AliMUONLocalStruct::fgkEndOfLocal = 0xCAFEFADE;
32 //___________________________________________
33 AliMUONLocalStruct::AliMUONLocalStruct()
52 for (Int_t i = 0; i < 5; i++)
55 for (Int_t i = 0; i < 8*4; i++)
61 //___________________________________________
62 AliMUONLocalStruct::AliMUONLocalStruct(const AliMUONLocalStruct& event)
71 fLPtNTrig = event.fLPtNTrig;
72 fHPtNTrig = event.fHPtNTrig;
73 fLPtRTrig = event.fLPtRTrig;
74 fHPtRTrig = event.fHPtRTrig;
75 fLPtLTrig = event.fLPtLTrig;
76 fHPtLTrig = event.fHPtLTrig;
77 fLPtSTrig = event.fLPtSTrig;
78 fHPtSTrig = event.fHPtSTrig;
80 fReset = event.fReset ;
82 for (Int_t i = 0; i < 5; i++)
83 fData[i] = event.fData[i];
85 for (Int_t i = 0; i < 8*4; i++)
86 fScaler[i] = event.fScaler[i];
90 //___________________________________________
92 AliMUONLocalStruct::operator=(const AliMUONLocalStruct& event)
95 // assignment operator
98 if (this == &event) return *this;
103 fLPtNTrig = event.fLPtNTrig;
104 fHPtNTrig = event.fHPtNTrig;
105 fLPtRTrig = event.fLPtRTrig;
106 fHPtRTrig = event.fHPtRTrig;
107 fLPtLTrig = event.fLPtLTrig;
108 fHPtLTrig = event.fHPtLTrig;
109 fLPtSTrig = event.fLPtSTrig;
110 fHPtSTrig = event.fHPtSTrig;
112 fReset = event.fReset;
114 for (Int_t i = 0; i < 5; i++)
115 fData[i] = event.fData[i];
117 for (Int_t i = 0; i < 8*4; i++)
118 fScaler[i] = event.fScaler[i];
123 //___________________________________________
124 void AliMUONLocalStruct::SetScalersNumbers()
126 // set numbers for scaler events for local structure
127 // crasy numbers for scaler words, while no beam is coming
144 for (Int_t i = 0; i < 8*4; i++)