Changeset 2167 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 06/09/03 07:41:40 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CT1Analysis.C
r2145 r2167 633 633 // fPadFlag = 2 get Sigma from fHSigmaPixTheta 634 634 635 M PadSchweizer padthomas("MPadSchweizer","Task for the padding (Schweizer)");635 MCT1PadSchweizer padthomas("MCT1PadSchweizer","Task for the padding (Schweizer)"); 636 636 padthomas.SetHistograms(fHSigmaTheta, fHSigmaPixTheta, fHDiffPixTheta, 637 637 fHIdBlindPixels, fHNBlindPixels); -
trunk/MagicSoft/Mars/macros/ONOFFCT1Analysis.C
r2152 r2167 282 282 //-------------------------------------------------- 283 283 // type of data to be padded 284 //TString typeInput = "ON";285 TString typeInput = "OFF";284 TString typeInput = "ON"; 285 //TString typeInput = "OFF"; 286 286 //TString typeInput = "MC"; 287 287 gLog << "typeInput = " << typeInput << endl; … … 312 312 // and merge these histograms 313 313 314 M PadONOFF pad;315 pad.SetName("M PadONOFF");314 MCT1PadONOFF pad; 315 pad.SetName("MCT1PadONOFF"); 316 316 pad.SetPadFlag(1); 317 317 pad.SetDataType(typeInput); … … 334 334 MCT1ReadPreProc readON(fileON); 335 335 336 MFCT1SelBasic selthetaon; 337 selthetaon.SetCuts(-100.0, 29.5, 35.5); 338 MContinue contthetaon(&selthetaon); 339 336 340 MBlindPixelCalc blindon; 337 341 blindon.SetUseBlindPixels(); … … 361 365 362 366 tliston.AddToList(&readON); 367 //tliston.AddToList(&contthetaon); 363 368 364 369 tliston.AddToList(&blindon); … … 375 380 376 381 Int_t maxeventson = -1; 377 //Int_t maxeventson = 1000;382 //Int_t maxeventson = 20000; 378 383 if ( !evtloopon.Eventloop(maxeventson) ) 379 384 return; … … 403 408 404 409 MCT1ReadPreProc readOFF(fileOFF); 410 411 MFCT1SelBasic selthetaoff; 412 selthetaoff.SetCuts(-100.0, 29.5, 35.5); 413 MContinue contthetaoff(&selthetaoff); 405 414 406 415 MBlindPixelCalc blindoff; … … 434 443 435 444 tlistoff.AddToList(&readOFF); 445 //tlistoff.AddToList(&contthetaoff); 436 446 437 447 tlistoff.AddToList(&blindoff); … … 448 458 449 459 Int_t maxeventsoff = -1; 450 //Int_t maxeventsoff = 1000;460 //Int_t maxeventsoff = 20000; 451 461 if ( !evtloopoff.Eventloop(maxeventsoff) ) 452 462 return; … … 471 481 gLog << "=====================================================" << endl; 472 482 473 gLog << "Merge the ON and OFF histograms and define the histograms for the padding :" << endl;474 483 pad.MergeHistograms(sigthon, sigthoff, 475 484 sigpixthon, sigpixthoff, … … 477 486 blindidthon, blindidthoff, 478 487 blindnthon, blindnthoff); 479 gLog << "The histograms for the padding have been defined" << endl;480 gLog << "=====================================================" << endl;481 482 483 488 484 489 if (WPad) … … 520 525 MCT1ReadPreProc read(filenamein); 521 526 527 MFCT1SelBasic seltheta; 528 seltheta.SetCuts(-100.0, 29.5, 35.5); 529 MContinue conttheta(&seltheta); 530 522 531 if (typeInput == "ON") 523 532 { … … 526 535 } 527 536 537 MBlindPixelCalc blindbeforepad; 538 blindbeforepad.SetUseBlindPixels(); 539 blindbeforepad.SetName("BlindBeforePadding"); 540 528 541 MBlindPixelCalc blind; 529 542 blind.SetUseBlindPixels(); 543 blind.SetName("BlindAfterPadding"); 530 544 531 545 MFCT1SelBasic selbasic; … … 609 623 610 624 tliston.AddToList(&read); 625 //tliston.AddToList(&conttheta); 626 627 tliston.AddToList(&blindbeforepad); 611 628 tliston.AddToList(&pad); 612 629 if (typeInput == "ON") … … 644 661 // evtloop.Write(); 645 662 646 //Int_t maxevents = -1;647 Int_t maxevents = 10000;663 Int_t maxevents = -1; 664 //Int_t maxevents = 1000; 648 665 if ( !evtloop.Eventloop(maxevents) ) 649 666 return;
Note:
See TracChangeset
for help on using the changeset viewer.