Ignore:
Timestamp:
08/17/04 23:38:13 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r4668 r4670  
    119119#include "MCalibrationChargeBlindPix.h"
    120120#include "MCalibrationChargeBlindCam.h"
    121 #include "MCalibrationChargeBlindPix.h"
     121#include "MCalibrationChargeBlindCamOneOldStyle.h"
     122#include "MCalibrationChargeBlindCamTwoNewStyle.h"
    122123#include "MCalibrationChargeCalc.h"
    123124
     
    14391440  if (run < gkSecondBlindPixelInstallation)
    14401441    {
    1441       blindext.SetModified(kFALSE);
     1442
     1443      MCalibrationChargeBlindCamOneOldStyle blindresults;
     1444      blindresults.Copy(fCalibrationBlindCam);
     1445
    14421446      blindext.SetExtractionType(MExtractBlindPixel::kIntegral);
    14431447      blindext.SetExtractionType(MExtractBlindPixel::kFilter);
     
    14461450      blindcam.SetFitFunc( MHCalibrationChargeBlindPix::kEPoisson5 );
    14471451    }
    1448   else
    1449     {
    1450       blindext.SetModified(kTRUE);
     1452  else if (run < gkThirdBlindPixelInstallation)
     1453    {
     1454
     1455      MCalibrationChargeBlindCamTwoNewStyle blindresults;
     1456      blindresults.Copy(fCalibrationBlindCam);
     1457
     1458      blindext.SetNumBlindPixels(blindresults.GetNumBlindPixels());
     1459      for (UInt_t i=0;i<blindresults.GetNumBlindPixels();i++)
     1460        blindext.SetBlindPixelIdx(blindresults[i].GetPixId(),i);
     1461
    14511462      blindext.SetExtractionType(MExtractBlindPixel::kAmplitude);
    14521463      blindext.SetExtractionType(MExtractBlindPixel::kFilter);
     
    14541465      blindext.SetNSBFilterLimit(38);
    14551466     
    1456       if (run < gkThirdBlindPixelInstallation)
    1457         blindext.SetNumBlindPixels(2);
    1458       else
    1459         blindext.SetNumBlindPixels(3);
    1460     }
     1467    }
     1468  else
     1469    {
     1470      *fLog << err << "Third blind pixel installation not yet completed, check your run number!!! " << endl;
     1471    }
     1472 
    14611473}
    14621474
     
    15681580    MExtractPINDiode         pinext;
    15691581    MExtractBlindPixel       blindext;
     1582
    15701583    InitBlindPixel(blindext, blindcam);
     1584
    15711585    MExtractSlidingWindow    extract2;
    15721586    MExtractTimeFastSpline   timespline;
Note: See TracChangeset for help on using the changeset viewer.