Changeset 4237


Ignore:
Timestamp:
05/28/04 16:47:06 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4136 r4237  
    1616!
    1717!
    18 !   Author(s): Markus Gaug, 11/2003 <mailto:markus@ifae.es>
     18!   Author(s): Markus Gaug, 05/2004 <mailto:markus@ifae.es>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2004
     
    5151static const Bool_t debug = kFALSE;
    5252//
     53// Tell if you want to use the display:
     54//
     55static Bool_t useDisplay = kTRUE;
     56//
    5357void readCalibration(const Int_t prun=pedrun, const Int_t crun=calrun)
    5458{
     
    7680    }
    7781
    78   MStatusDisplay *display = new MStatusDisplay;
     82  MStatusDisplay = NULL;
     83 
     84  if (useDisplay)
     85    display = new MStatusDisplay;
     86
     87
    7988  MPedestalCam             pedcam;
    8089  MCalibrationChargeCam    chargecam; 
     
    94103    }
    95104 
    96   if (display->GetCanvas("Pedestals"))
    97     display->Read();
    98 
     105  if (useDisplay)
     106    {
     107      if (display->GetCanvas("Pedestals"))
     108        display->Read();
     109    }
     110 
    99111  cout << "Reading from file: " << calname << endl;
    100112
     
    129141      }
    130142
     143  if (useDisplay)
    131144    display->Read();
    132145   
     
    145158    }
    146159 
    147   display->Read();
    148 
    149   MCalibrationChargePix &pix = chargecam[100];
    150   cout << pix.GetPheFFactorMethod() << endl;
    151 
    152   MCalibrationChargePix &innpix = chargecam.GetAverageArea(0);
    153   cout << innpix.GetPheFFactorMethod() << endl;
     160  if (useDisplay)
     161    display->Read();
    154162
    155163  //
Note: See TracChangeset for help on using the changeset viewer.