Changeset 9289
- Timestamp:
- 02/02/09 17:34:21 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9286 r9289 19 19 -*-*- END OF LINE -*-*- 20 20 21 2009/02/02 Thomas Bretz 22 23 * mcamera/MCameraCentralPix.[h,cc]: 24 - added data member fDC 25 - increased class version number accordingly 26 27 * mreport/MReportCC.cc: 28 - improved debug output 29 - remove minus from the third argument in SCHEDULE 30 31 * mreport/MReportCamera.[h,cc]: 32 - fixed for ver>=200812140 33 - added InterpretePSSEN 34 - added InterpreteLIQ 35 36 37 21 38 2009/01/30 Thomas Bretz 22 39 23 40 * RELEASE V2.2 41 42 43 2009/02/02 Thomas Bretz 44 45 * mjobs/MJCalibrateSignal.cc, mjobs/MJStar.cc: 46 - fixed the regular expresssion 24 47 25 48 -
trunk/MagicSoft/Mars/mcamera/MCameraCentralPix.cc
r6963 r9289 18 18 ! Author(s): Daniel Mazin, 04/2005 <mailto:mazin@mppmu.mpg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 520 ! Copyright: MAGIC Software Development, 2000-2009 21 21 ! 22 22 ! … … 27 27 // MCameraCentralPix 28 28 // 29 // Class Version 2: 30 // ---------------- 31 // + Float_t fDC 32 // 29 33 ///////////////////////////////////////////////////////////////////////////// 30 34 #include "MCameraCentralPix.h" -
trunk/MagicSoft/Mars/mcamera/MCameraCentralPix.h
r6963 r9289 13 13 Bool_t fStatus; // Status of central pixel 14 14 15 Float_t fDC; // [nA] 16 15 17 public: 16 MCameraCentralPix() 18 MCameraCentralPix() : fDC(-1) 17 19 { 18 20 fName = "MCameraCentralPix"; … … 23 25 Bool_t GetStatusCPix() const { return fStatus; } // deprecated - for compatibility only 24 26 25 ClassDef(MCameraCentralPix, 1) // Container storing information about the Central Pixel status27 ClassDef(MCameraCentralPix, 2) // Container storing information about the Central Pixel status 26 28 }; 27 29 -
trunk/MagicSoft/Mars/mreport/MReportCC.cc
r9141 r9289 149 149 } 150 150 151 constTString str2 = str(0, pos2);151 TString str2 = str(0, pos2); 152 152 153 153 str.Remove(0, pos2); 154 155 // Remove a leading minus. FIXME: What is its meaning? 156 if (str2[0]=='-') 157 str2.Remove(0, 1); 154 158 155 159 if (!str2.IsDigit()) 156 160 { 157 *fLog << warn << "WARNING - Wrong type of second argument ."<< endl;161 *fLog << warn << "WARNING - Wrong type of second argument: " << str2 << endl; 158 162 return kFALSE; 159 163 } -
trunk/MagicSoft/Mars/mreport/MReportCamera.cc
r9059 r9289 400 400 str.Remove(0, len); 401 401 str=str.Strip(TString::kBoth); 402 return kTRUE; 403 402 403 return kTRUE; 404 404 } 405 405 … … 443 443 // Interprete the Central Pixel part 444 444 // 445 Bool_t MReportCamera::InterpreteCentralPix(TString &str )445 Bool_t MReportCamera::InterpreteCentralPix(TString &str, Int_t ver) 446 446 { 447 447 if (!CheckTag(str, "CPIX ")) … … 450 450 Int_t len; 451 451 Short_t status; 452 Int_t n=sscanf(str.Data(), " %hd %n", 453 452 453 Int_t n=sscanf(str.Data(), " %hd %n", &status, &len); 454 454 if (n!=1) 455 455 { 456 456 *fLog << warn << "WARNING - Reading information of 'CPIX' section." << endl; 457 return kFALSE; 457 return kFALSE; 458 } 459 460 if (ver>=200812140) 461 { 462 Int_t len2; 463 Int_t dc; 464 n=sscanf(str.Data()+len, " %d %n", &dc, &len2); 465 if (n!=1) 466 { 467 *fLog << warn << "WARNING - Reading information of 'CPIX' section." << endl; 468 return kFALSE; 469 } 470 471 fCentralPix->fDC = dc; 472 473 len += len2; 458 474 } 459 475 … … 518 534 519 535 str.Remove(0, pos); 536 str=str.Strip(TString::kBoth); 537 538 return kTRUE; 539 } 540 541 // -------------------------------------------------------------------------- 542 // 543 // ps: Camera cabinet power supply 544 // v1: PS sensor v1 545 // v2: PS sensor v2 546 // 547 Bool_t MReportCamera::InterpretePSSEN(TString &str) 548 { 549 if (!CheckTag(str, "PSSEN ")) 550 return kFALSE; 551 552 Int_t len; 553 Int_t ps, v1, v2; 554 555 const Int_t n=sscanf(str.Data(), "%d %d %d %n", &ps, &v1, &v2, &len); 556 if (n!=3) 557 { 558 *fLog << warn << "WARNING - Reading information of 'PSSEN' section." << endl; 559 return kFALSE; 560 } 561 562 str.Remove(0, len); 563 str=str.Strip(TString::kBoth); 564 565 return kTRUE; 566 } 567 568 // -------------------------------------------------------------------------- 569 // 570 // liq: Liquid inside camera 571 // 572 Bool_t MReportCamera::InterpreteLIQ(TString &str) 573 { 574 if (!CheckTag(str, "LIQ ")) 575 return kFALSE; 576 577 Int_t len; 578 Int_t liq; 579 580 const Int_t n=sscanf(str.Data(), "%d %n", &liq, &len); 581 if (n!=1) 582 { 583 *fLog << warn << "WARNING - Reading information of 'LIQ' section." << endl; 584 return kFALSE; 585 } 586 587 str.Remove(0, len); 520 588 str=str.Strip(TString::kBoth); 521 589 … … 621 689 if (!InterpreteActiveLoad(str)) 622 690 return kCONTINUE; 623 if (!InterpreteCentralPix(str ))691 if (!InterpreteCentralPix(str, ver)) 624 692 return kCONTINUE; 625 693 } … … 633 701 } 634 702 703 if (ver >= 200812140) 704 { 705 if (!InterpretePSSEN(str)) 706 return kCONTINUE; 707 if (!InterpreteLIQ(str)) 708 return kCONTINUE; 709 } 710 635 711 if (str!="OVER") 636 712 { 637 *fLog << warn << "WARNING - 'OVER' tag not found. "<< endl;638 return kCONTINUE; 639 } 640 641 return kTRUE; 642 } 713 *fLog << warn << "WARNING - 'OVER' tag not found... remaining: " << str << endl; 714 return kCONTINUE; 715 } 716 717 return kTRUE; 718 } -
trunk/MagicSoft/Mars/mreport/MReportCamera.h
r9005 r9289 44 44 Bool_t InterpreteHOT(TString &str); 45 45 Bool_t InterpreteActiveLoad(TString &str); 46 Bool_t InterpreteCentralPix(TString &str );46 Bool_t InterpreteCentralPix(TString &str, Int_t ver); 47 47 Bool_t InterpreteCHTEMP(TString &str); 48 48 Bool_t InterpreteHVFIL(TString &str); 49 Bool_t InterpretePSSEN(TString &str); 50 Bool_t InterpreteLIQ(TString &str); 49 51 50 52 Int_t InterpreteBody(TString &str, Int_t ver);
Note:
See TracChangeset
for help on using the changeset viewer.