Changeset 5714
- Timestamp:
- 01/05/05 19:44:11 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r5712 r5714 83 83 static TString outpath = "./"; 84 84 static TString inpath = "/home/rootdata/Calib/2004_09_22"; 85 static TString badfile = "";85 static TString badfile; 86 86 //static TString badfile = "badpixels_only0_388_559.dat"; 87 87 // … … 170 170 pruns.AddRun(prun,inpath); 171 171 172 if (crun 2==0)173 cruns.AddRun(crun1,inpath);174 else175 cruns.AddRuns(crun1,crun2,inpath);176 177 172 if (crun1!=0) 173 if (crun2==0) 174 cruns.AddRun(crun1,inpath); 175 else 176 cruns.AddRuns(crun1,crun2,inpath); 177 178 178 MStatusDisplay *display = NULL; 179 179 … … 255 255 calloop.SetExtractorCam(pedloop2.GetPedestalCam()); 256 256 } 257 258 if (crun1 == 0) 259 return 0; 257 260 258 261 MPedestalCam &pedcam = pedloop1.GetPedestalCam(); … … 509 512 // check for the right usage of the program 510 513 // 511 if (arg.GetNumArguments()> 4)514 if (arg.GetNumArguments()>6) 512 515 { 513 516 Usage(); … … 530 533 Int_t calr1 = 0; 531 534 Int_t calr2 = 0; 535 Int_t datr1 = 0; 536 Int_t datr2 = 0; 532 537 533 538 const Int_t nargs = arg.GetNumArguments(); 534 539 535 if (nargs>= 3)540 if (nargs>=5) 536 541 { 537 542 pedr = arg.GetArgumentInt(0); 538 543 calr1 = arg.GetArgumentInt(1); 539 544 calr2 = arg.GetArgumentInt(2); 540 return calibration(pedr,calr1,calr2); 545 datr1 = arg.GetArgumentInt(3); 546 datr2 = arg.GetArgumentInt(4); 547 return calibration(extractorflag,pedr,calr1,calr2,datr1,datr2); 548 } 549 550 if (nargs>=4) 551 { 552 pedr = arg.GetArgumentInt(0); 553 calr1 = arg.GetArgumentInt(1); 554 calr2 = arg.GetArgumentInt(2); 555 datr1 = arg.GetArgumentInt(3); 556 datr2 = arg.GetArgumentInt(4); 557 return calibration(extractorflag,pedr,calr1,calr2,datr1,0); 558 } 559 560 if (nargs>=3) 561 { 562 pedr = arg.GetArgumentInt(0); 563 calr1 = arg.GetArgumentInt(1); 564 calr2 = arg.GetArgumentInt(2); 565 return calibration(extractorflag,pedr,calr1,calr2,0); 541 566 } 542 567 … … 548 573 gLog << "inpath: " << inpath << endl; 549 574 gLog << "extractor: " << extractorflag << endl; 550 return calibration( );575 return calibration(extractorflag,pedr,calr1,0,0); 551 576 } 552 577 … … 554 579 { 555 580 pedr = arg.GetArgumentInt(0); 556 return calibration( pedr,calr1,calr2);557 } 558 559 return calibration( pedr,calr1,calr2);581 return calibration(extractorflag,pedr,0); 582 } 583 584 return calibration(extractorflag,pedr,calr1,calr2); 560 585 } 561 586
Note:
See TracChangeset
for help on using the changeset viewer.