Changeset 3456


Ignore:
Timestamp:
03/10/04 17:07:23 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3455 r3456  
    2727       of photo-electrons from inner and outer pixels, respectively
    2828
     29   * mjobs/MJPedestal.cc
     30   * mjobs/MJCalibration.cc
     31   * macros/calibration.C
     32     - fixed the projections (did only display inner pixels up to now)
     33 
    2934
    3035 2004/03/10: Thomas Bretz
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3445 r3456  
    4646
    4747#include "MHCamera.h"
     48#include "MGeomCam.h"
    4849
    4950#include "MPedestalCam.h"
     
    8384  obj2->Draw();
    8485  obj2->SetBit(kCanDelete);
     86 
     87  if (obj1->GetGeomCam().InheritsFrom("MGeomCamMagic"))
     88    {
     89      TArrayI s0(3);
     90      s0[0] = 6;
     91      s0[1] = 1;
     92      s0[2] = 2;
     93     
     94      TArrayI s1(3);
     95      s1[0] = 3;
     96      s1[1] = 4;
     97      s1[2] = 5;
     98     
     99      TArrayI inner(1);
     100      inner[0] = 0;
     101     
     102      TArrayI outer(1);
     103      outer[0] = 1;
     104     
     105      // Just to get the right (maximum) binning
     106      TH1D *half[4];
     107      half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2 Inner");
     108      half[1] = obj1->ProjectionS(s1, inner, "Sector 3-4-5 Inner");
     109      half[2] = obj1->ProjectionS(s0, outer, "Sector 6-1-2 Outer");
     110      half[3] = obj1->ProjectionS(s1, outer, "Sector 3-4-5 Outer");
     111     
     112      for (int i=0; i<4; i++)
     113        {
     114          half[i]->SetLineColor(kRed+i);
     115          half[i]->SetDirectory(0);
     116          half[i]->SetBit(kCanDelete);
     117          half[i]->Draw("same");
     118        }
     119    }
    85120 
    86121  const Double_t min   = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst());
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r3400 r3456  
    132132        inner[0] = 0;
    133133
     134        TArrayI outer(1);
     135        outer[0] = 1;
     136
    134137        // Just to get the right (maximum) binning
    135         TH1D *half[2];
    136         half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2");
    137         half[1] = obj1->ProjectionS(s0, inner, "Sector 3-4-5");
     138        TH1D *half[4];
     139        half[0] = obj1->ProjectionS(s0, inner, "Sector 6-1-2 Inner");
     140        half[1] = obj1->ProjectionS(s1, inner, "Sector 3-4-5 Inner");
     141        half[2] = obj1->ProjectionS(s0, outer, "Sector 6-1-2 Outer");
     142        half[3] = obj1->ProjectionS(s1, outer, "Sector 3-4-5 Outer");
    138143        /*
    139144         half[0]->Reset();
     
    145150         half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy"));
    146151         */
    147         for (int i=0; i<2; i++)
     152        for (int i=0; i<4; i++)
    148153        {
    149154            half[i]->SetLineColor(kRed+i);
Note: See TracChangeset for help on using the changeset viewer.