Changeset 4917 for trunk/MagicSoft
- Timestamp:
- 09/10/04 10:27:55 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mpisa/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mpisa/classes/MReportTrigger.cc
r4890 r4917 94 94 Bool_t MReportTrigger::SetupReading(MParList &plist) 95 95 { 96 f Pixel= (MTriggerIPR*)plist.FindCreateObj("MTriggerIPR");97 if (!f Pixel)96 fIPR = (MTriggerIPR*)plist.FindCreateObj("MTriggerIPR"); 97 if (!fIPR) 98 98 return kFALSE; 99 99 … … 165 165 } 166 166 TString descriptor = str(0, ws); 167 *fLog << descriptor <<endl;167 //*fLog << descriptor <<endl; 168 168 str.Remove(0, ws); 169 169 … … 175 175 } 176 176 str.Remove(0, len); // Remove Prescal. factors from report string 177 *fLog << warn << fPrescFactor->fPrescFact[i]<<endl;177 // *fLog << warn << fPrescFactor->fPrescFact[i]<<endl; 178 178 } 179 179 str=str.Strip(TString::kLeading); … … 305 305 } 306 306 str.Remove(0, len); // Remove dummies from report string 307 307 308 } 308 309 … … 320 321 { 321 322 323 // Read Individual pixel rates 324 const char *pos = str.Data(); 325 const char *end = str.Data() + 340*8; 326 327 Int_t i=0,n,len; 328 short dummy; 329 while (pos < end) 330 { 331 const Char_t hex[9] = { pos[0], pos[1], pos[2], pos[3],pos[4],pos[5],pos[6],pos[7],0 }; 332 n = sscanf(hex, "%hx", &dummy); 333 pos+=8; 334 if (n!=1) 335 { 336 *fLog << warn << "WARNING - Rate #" << i << " missing." << endl; 337 return kFALSE; 338 } 339 *fLog << warn << " " << hex ; 340 } 341 *fLog <<endl; 342 343 344 str.Remove(0, end-str.Data()); // Remove IPR hex from report string 345 str.Strip(TString::kBoth); 346 347 348 *fLog << warn << "string: " << str << " ==== " <<str.Data() << endl; 349 350 for (i=0;i<397;i++) 351 { 352 n = sscanf(str.Data(), " %ld %n", &fIPR->fIPR[i++], &len); 353 if (n!=1) 354 { 355 *fLog << warn << "WARNING - IPR dec #" << i << " missing." << endl; 356 return kCONTINUE; 357 } 358 str.Remove(0, len); // Remove IPR dec from report string 359 360 *fLog << warn<< " - " << dummy ; 361 } 362 363 str=str.Strip(TString::kLeading); 364 322 365 323 366 *fLog << warn << "IPR ok!" <<endl; … … 402 445 return kCONTINUE; 403 446 404 /*405 406 // Read Individual pixel rates407 pos = str.Data();408 end = str.Data() + 344;409 447 410 Int_t i=0; 411 while (pos < end) 412 { 413 const Char_t hex[4] = { pos[0], pos[1], pos[2], 0 }; 414 n = sscanf(hex, "%hx", &fRates->fRates[i++]); 415 pos++; 416 if (n!=1) 417 { 418 *fLog << warn << "WARNING - Rate #" << i << " missing." << endl; 419 return kFALSE; 420 } 421 } 422 423 */ 424 425 str.Remove(0,len); 426 str.Strip(TString::kBoth); 448 449 // str.Remove(0,len); 450 // str.Strip(TString::kBoth); 451 452 //*fLog << warn << " str=" << str << endl; 427 453 428 454 return str==(TString)"OVER" ? kTRUE : kCONTINUE; -
trunk/MagicSoft/Mars/mtemp/mpisa/classes/MReportTrigger.h
r4890 r4917 24 24 25 25 MTriggerBit *fBit; //! container of the L2 prescaler rates 26 MTriggerIPR *f Pixel;//! container of the IPR26 MTriggerIPR *fIPR; //! container of the IPR 27 27 MTriggerCell *fCell; //! container of the L1 cell trigger rates 28 28 MTriggerPrescFact *fPrescFactor; //! container of the L2 prescaling factors
Note:
See TracChangeset
for help on using the changeset viewer.