Changeset 8552 for trunk/MagicSoft


Ignore:
Timestamp:
06/12/07 21:50:30 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r8519 r8552  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.59 2007-05-16 13:56:17 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.60 2007-06-12 20:50:30 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    303303
    304304  for (int i=0; i<navhi; i++)
    305     cam->fAverageHiGainAreas->AddAt(GetAverageHiGainArea(i).Clone(),i);
     305      cam->fAverageHiGainAreas->AddAt(GetAverageHiGainArea(i).Clone(),i);
    306306
    307307  if (IsLoGain())
     
    12121212  // 
    12131213  for (Int_t i=0; i<nareas;i++)
    1214      {
    1215        
     1214  {
    12161215       pad->cd(i+1);
    1217        
     1216
    12181217       MHCalibrationChargePix &hipix = (MHCalibrationChargePix&)GetAverageHiGainArea(i);
     1218
    12191219       //
    12201220       // Ask for Hi-Gain saturation
    12211221       //
    12221222       if (hipix.GetSaturated() > fNumHiGainSaturationLimit*hipix.GetHGausHist()->GetEntries() && IsLoGain())
    1223          {
     1223       {
     1224           if (i>=fAverageLoGainAreas->GetSize())
     1225               continue;
     1226
    12241227           MHCalibrationChargePix &lopix = (MHCalibrationChargePix&)GetAverageLoGainArea(i);
    12251228           DrawDataCheckPixel(lopix,i ? fOuterRefCharge : fInnerRefCharge);
    1226          }
     1229       }
    12271230       else
    1228          DrawDataCheckPixel(hipix,i ? fOuterRefCharge : fInnerRefCharge);
    1229 
    1230     }     
     1231           DrawDataCheckPixel(hipix,i ? fOuterRefCharge : fInnerRefCharge);
     1232  }
    12311233}
    12321234
     
    13261328        xaxe2->SetRangeUser(0, pix.GetEvents()->GetSize()/pix.GetEventFrequency());
    13271329    }
    1328 
    13291330    pix.DrawEvents();
    13301331
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r8519 r8552  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.39 2007-05-16 13:56:17 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.40 2007-06-12 20:49:55 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    101101// sigmas in the camera.
    102102//
     103//
     104// ClassVersion 2:
     105// ---------------
     106//   - Byte_t fSaturationLimit
     107//   - Byte_t fLowerSignalLimit
     108//   + UInt_t fSaturationLimit
     109//   + UInt_t fLowerSignalLimit
     110//
    103111/////////////////////////////////////////////////////////////////////////////
    104112#include "MHCalibrationPulseTimeCam.h"
     
    133141using namespace std;
    134142
    135 const Byte_t  MHCalibrationPulseTimeCam::fgSaturationLimit   = 245;
    136 const Byte_t  MHCalibrationPulseTimeCam::fgLowerSignalLimit  =  85;
     143const UInt_t  MHCalibrationPulseTimeCam::fgSaturationLimit   = 245;
     144const UInt_t  MHCalibrationPulseTimeCam::fgLowerSignalLimit  =  85;
    137145const Int_t   MHCalibrationPulseTimeCam::fgNumPixelsRequired = 2;
    138146const Int_t   MHCalibrationPulseTimeCam::fgHiGainNbins =  20;
     
    172180  fName  = name  ? name  : "MHCalibrationPulseTimeCam";
    173181  fTitle = title ? title : "Class to fill the extracted pulse times for cosmics ";
    174  
     182
    175183  SetBinning(fgHiGainNbins, fgHiGainFirst, fgHiGainLast);
    176184
     
    389397            continue;
    390398
    391         // Get position of maximum
     399        // Get position of maximum (FIXME: Extraction range?)
    392400        Float_t max;
    393         const Int_t pos = evt->GetMax(idx, max);
     401        const Int_t pos = evt->GetMaxPos(idx, max);
    394402
    395403        // check if maximum is high enough
     
    634642  if (IsEnvDefined(env, prefix, "SaturationLimit", print))
    635643    {
    636       SetSaturationLimit(GetEnvValue(env, prefix, "SaturationLimit", fSaturationLimit));
     644      SetSaturationLimit(GetEnvValue(env, prefix, "SaturationLimit", (Int_t)fSaturationLimit));
    637645      rc = kTRUE;
    638646    }
     
    640648  if (IsEnvDefined(env, prefix, "LowerSignalLimit", print))
    641649    {
    642       SetLowerSignalLimit(GetEnvValue(env,prefix,"LowerSignalLimit",fLowerSignalLimit));
     650      SetLowerSignalLimit(GetEnvValue(env, prefix, "LowerSignalLimit", (Int_t)fLowerSignalLimit));
    643651      rc = kTRUE;
    644652    }
Note: See TracChangeset for help on using the changeset viewer.