Changeset 2631 for trunk/MagicSoft


Ignore:
Timestamp:
12/10/03 11:54:33 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

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

    r2629 r2631  
    174174    MHCamera disp14  (geomcam, "MCalibrationCam;photons", "Nr. of Photons (Blind Pixel Method)");
    175175    MHCamera disp15  (geomcam, "MCalibrationCam;convphot", "Conversion Factor (Blind Pixel Method)");
     176    MHCamera disp16  (geomcam, "MCalibrationCam;sigma/charge", "Sigma per Charge");
    176177
    177178    disp1.SetCamContent(*cam, 0);
     
    199200    disp14.SetCamContent(*cam, 13);
    200201    disp15.SetCamContent(*cam, 14);
    201     //    disp16.SetCamError(*cam, 16);
     202    disp16.SetCamContent(*cam, 15);
    202203
    203204
     
    217218    disp14.SetYTitle("Nr Photons");
    218219    disp15.SetYTitle("Conversion Factor [Ph/FADC count]");
     220    disp16.SetYTitle("Sigma per Charge [1]");
    219221
    220222    disp1.SetPrettyPalette();
     
    231233    disp14.SetPrettyPalette();
    232234    disp15.SetPrettyPalette();
     235    disp16.SetPrettyPalette();
    233236
    234237
     
    322325
    323326    TCanvas *c4 = &d2->AddTab("Reduced Charges");
    324     c4->Divide(2,1);
     327    c4->Divide(2,2);
    325328
    326329    c4->cd(1);
     
    330333
    331334    c4->cd(3);
     335    obj->Draw();
     336
     337    c4->cd(2);
     338    gStyle->SetOptStat(1111);
     339    obj=disp16.DrawCopy("hist");
     340    ((MHCamera*)obj)->AddNotify(*cam);
     341
     342    c4->cd(4);
    332343    obj->Draw();
    333344
  • trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.cc

    r2628 r2631  
    313313        else
    314314            mid  = pixel.GetIdxMaxHiGainSample();
    315 
    316315
    317316        MCalibrationPix &pix = (*fCalibrations)[pixid];
     
    391390{
    392391
     392
    393393  *fLog << inf << endl;
    394394  *fLog << GetDescriptor() << " Cut Histogram Edges" << endl;
  • trunk/MagicSoft/Mars/manalysis/MCalibrationCam.cc

    r2627 r2631  
    439439      val = (*this)[idx].GetRSigma();
    440440      break;
     441    case 15:
     442      val = (*this)[idx].GetSigmaCharge()/(*this)[idx].GetCharge();
     443      break;
    441444    case 11:
    442445      val = (*this)[idx].GetPheFFactorMethod();
  • trunk/MagicSoft/Mars/manalysis/MCalibrationPix.cc

    r2629 r2631  
    6060      fPheFFactorMethod(-1.),
    6161      fConversionFFactorMethod(-1.),
    62       fHiGainSaturation(kFALSE)
     62      fHiGainSaturation(kFALSE),
     63      fLoGainPedRms(4.)
    6364{
    6465
     
    137138  if ((fPed > 0.)  && (fPedRms > 0.))
    138139    {
    139      
    140     fRSigma       = (fSigmaCharge*fSigmaCharge) - (fPedRms*fPedRms);
     140
     141      if (fHiGainSaturation)
     142        fRSigma = (fSigmaCharge*fSigmaCharge) - (fLoGainPedRms*fLoGainPedRms);
     143      else
     144        fRSigma = (fSigmaCharge*fSigmaCharge) - (fPedRms*fPedRms);
    141145
    142146    if (fRSigma > 0. )
  • trunk/MagicSoft/Mars/manalysis/MCalibrationPix.h

    r2627 r2631  
    3333
    3434  Bool_t fHiGainSaturation;     // Is Lo-Gain used at all?
     35
     36  Float_t fLoGainPedRms;
    3537
    3638  MHCalibrationPixel *fHist;    //! Pointer to the histograms performing the fits, etc. 
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc

    r2627 r2631  
    5757//
    5858MExtractSignal::MExtractSignal(const char *name, const char *title)
    59   : fSaturationLimit(250),
     59  : fSaturationLimit(255),
    6060    fConversionHiLo(10.)
    6161{
     
    173173        UInt_t max  = pixel.GetMaxHiGainSample();
    174174
    175         if (max < fSaturationLimit)  // take Hi Gain, no saturation
     175        if (max <= fSaturationLimit)  // take Hi Gain, no saturation
    176176          {
    177177            sum = (float)pixel.GetSumHiGainSamples() - pedes*fNumHiGainSamples; 
Note: See TracChangeset for help on using the changeset viewer.