Changeset 371 for trunk/MagicSoft/include-Classes/MRawEvt.cxx
- Timestamp:
- 02/21/00 14:52:28 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MRawEvt.cxx
r306 r371 22 22 // ---------- 23 23 // 24 // UInt_t uiEvtNo24 // UInt_t EvtNo 25 25 // 26 26 // This it the number of the Event in one … … 37 37 // ---------- 38 38 // 39 // ULong_t ulTimeStamp39 // ULong_t TimeStamp 40 40 // 41 41 // Time of the event. … … 49 49 // ---------- 50 50 // 51 // UChar_t ucEvtStatus51 // UChar_t EvtStatus 52 52 // 53 53 // Status of Event. … … 57 57 // ---------- 58 58 // 59 // UShort_t usTrig1st59 // UShort_t Trig1st 60 60 // 61 61 // Number of first level trigger … … 70 70 // ---------- 71 71 // 72 // UShort_t usMultPixel72 // UShort_t MultPixel 73 73 // 74 74 // Multiplicity of Pixels … … 80 80 // ---------- 81 81 // 82 // TClonesArray * taPixels82 // TClonesArray *Pixels 83 83 // 84 84 // Array of Pixels … … 108 108 // set all member to zero, init the pointer to ClonesArray, 109 109 110 uiEvtNo = 0 ;111 ulTimeStamp = 0 ;112 ucEvtStatus = 0 ;113 usTrig1st = 0 ;114 usMultPixel = 0 ;110 EvtNo = 0 ; 111 TimeStamp = 0 ; 112 EvtStatus = 0 ; 113 Trig1st = 0 ; 114 MultPixel = 0 ; 115 115 116 116 // … … 120 120 // initialize the list to this global pointer 121 121 122 taPixels = new TClonesArray ("MRawPixel", 2*CAMERA_PIXELS ) ;122 Pixels = new TClonesArray ("MRawPixel", 2*CAMERA_PIXELS ) ; 123 123 124 124 cout << " default constructor " << endl ; … … 130 130 // Implementation of the default destructor 131 131 // 132 delete taPixels ;132 delete Pixels ; 133 133 cout << " default destructor " << endl ; 134 134 } … … 140 140 // Resets all members to zero, clear the list of Pixels 141 141 // 142 uiEvtNo = 0 ;143 ulTimeStamp = 0 ;144 ucEvtStatus = 0 ;145 usTrig1st = 0 ;146 usMultPixel = 0 ;147 148 taPixels->Clear() ;142 EvtNo = 0 ; 143 TimeStamp = 0 ; 144 EvtStatus = 0 ; 145 Trig1st = 0 ; 146 MultPixel = 0 ; 147 148 Pixels->Clear() ; 149 149 } 150 150 … … 157 157 158 158 // Prints out the data of one Pixel 159 cout << endl << "EventNumber " << uiEvtNo ;160 cout << endl << "Event Time Stamp " << ulTimeStamp ;161 cout << endl << "Event Status " << (int) ucEvtStatus ;162 cout << endl << "Trigger 1. Level " << usTrig1st ;163 cout << endl << "Number of Pixels " << usMultPixel ;164 165 for (Int_t i=0 ; i< usMultPixel; i++ ) {166 ((MRawPixel *) taPixels->At(i))->Print() ;159 cout << endl << "EventNumber " << EvtNo ; 160 cout << endl << "Event Time Stamp " << TimeStamp ; 161 cout << endl << "Event Status " << (int) EvtStatus ; 162 cout << endl << "Trigger 1. Level " << Trig1st ; 163 cout << endl << "Number of Pixels " << MultPixel ; 164 165 for (Int_t i=0 ; i<MultPixel; i++ ) { 166 ((MRawPixel *)Pixels->At(i))->Print() ; 167 167 } 168 168 } … … 176 176 // 177 177 178 uiEvtNo = uiN ;179 ulTimeStamp = ulT ;178 EvtNo = uiN ; 179 TimeStamp = ulT ; 180 180 181 181 UChar_t ucA[FADC_SLICES] ; … … 184 184 GetFadcNoise ( ucA ) ; 185 185 186 TClonesArray &caP = * taPixels ;187 new ( caP[ usMultPixel++] ) MRawPixel((usMultPixel), 0, ucA) ;186 TClonesArray &caP = *Pixels ; 187 new ( caP[MultPixel++] ) MRawPixel((MultPixel), 0, ucA) ; 188 188 } 189 189 } … … 191 191 void MRawEvt::FillHeader ( UInt_t uiN, ULong_t ulT ) { 192 192 193 uiEvtNo = uiN ;194 ulTimeStamp = ulT ;195 196 ucEvtStatus = 0 ;197 usTrig1st = 0 ;198 usMultPixel = 0 ;199 200 taPixels->Clear() ;193 EvtNo = uiN ; 194 TimeStamp = ulT ; 195 196 EvtStatus = 0 ; 197 Trig1st = 0 ; 198 MultPixel = 0 ; 199 200 Pixels->Clear() ; 201 201 } 202 202 … … 213 213 } 214 214 215 TClonesArray &caP = * taPixels ;216 new ( caP[ usMultPixel++] ) MRawPixel((uiPix), 0, ucA) ;215 TClonesArray &caP = *Pixels ; 216 new ( caP[MultPixel++] ) MRawPixel((uiPix), 0, ucA) ; 217 217 } 218 218 … … 224 224 // 225 225 226 uiEvtNo = uiN ;227 ulTimeStamp = ulT ;228 229 usMultPixel = 0 ;226 EvtNo = uiN ; 227 TimeStamp = ulT ; 228 229 MultPixel = 0 ; 230 230 231 231 UChar_t ucA[FADC_SLICES] ; … … 239 239 ucA[5] = (UShort_t) (array[i]) ; 240 240 241 TClonesArray &caP = * taPixels ;242 new ( caP[ usMultPixel++] ) MRawPixel(i, 0, ucA) ;241 TClonesArray &caP = *Pixels ; 242 new ( caP[MultPixel++] ) MRawPixel(i, 0, ucA) ; 243 243 } 244 244 } … … 249 249 // returns the pixel multiplicity of the Event 250 250 // 251 return usMultPixel;251 return MultPixel; 252 252 } 253 253
Note:
See TracChangeset
for help on using the changeset viewer.