- Timestamp:
- 03/07/04 12:04:14 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3361 r3416 149 149 // 150 150 MFCosmics cosmics; 151 cosmics.SetMaxEmptyPixels(0.4);152 151 MContinue cont(&cosmics); 153 152 … … 570 569 } 571 570 571 TArrayI s0(3); 572 s0[0] = 6; 573 s0[1] = 1; 574 s0[2] = 2; 575 576 TArrayI s1(3); 577 s1[0] = 3; 578 s1[1] = 4; 579 s1[2] = 5; 580 581 TArrayI inner(1); 582 inner[0] = 0; 583 572 584 // Just to get the right (maximum) binning 573 585 TH1D *half[2]; 574 half[0] = obj1->Projection("Sector 6-1-2"); 575 half[1] = obj1->Projection("Sector 3-4-5"); 576 577 half[0]->Reset(); 578 half[1]->Reset(); 579 580 TH1D *dummy = obj1->Projection("Dummy"); 581 582 for (int i=1; i<7/*obj1->GetGeomCam().GetNumSectors()*/; i++) 583 half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy")); 586 half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2"); 587 half[1] = obj1->ProjectionS(s0, inner, "Sector 3-4-5"); 584 588 585 589 for (int i=0; i<2; i++) … … 591 595 } 592 596 593 delete dummy;594 595 597 gPad->Modified(); 596 598 gPad->Update();
Note:
See TracChangeset
for help on using the changeset viewer.