Changeset 3416 for trunk/MagicSoft


Ignore:
Timestamp:
03/07/04 12:04:14 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/calibration.C

    r3361 r3416  
    149149    //
    150150    MFCosmics            cosmics;
    151     cosmics.SetMaxEmptyPixels(0.4);
    152151    MContinue            cont(&cosmics);
    153152
     
    570569        }
    571570     
     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
    572584        // Just to get the right (maximum) binning
    573585        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");
    584588
    585589        for (int i=0; i<2; i++)
     
    591595        }
    592596
    593         delete dummy;
    594 
    595597      gPad->Modified();
    596598      gPad->Update();
Note: See TracChangeset for help on using the changeset viewer.