Changeset 3693 for trunk


Ignore:
Timestamp:
04/09/04 13:03:03 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r3692 r3693  
    2727//   MCalibrationChargeCalc
    2828//
    29 //   Task to calculate the calibration conversion factors from the FADC
    30 //   time slices. The integrated time slices have to be delivered by an
    31 //   MExtractedSignalCam. The pedestals by an MPedestalCam.
     29//   Task to calculate the calibration conversion factors and quantum efficiencies
     30//   from the FADC time slices. The integrated time slices have to be delivered by an
     31//   MExtractedSignalCam, pedestals by an MPedestalCam.
    3232//
    3333//   The output container MCalibrationCam holds one entry of type MCalibrationChargePix
    3434//   for every pixel. It is filled in the following way:
    3535//
    36 //   ProProcess: Initialize MCalibrationCam
    37 //               Initialize pulser light wavelength
     36//   PreProcess(): Initialize MCalibrationCam
     37//                 Initialize pulser light wavelength
    3838//               
    39 //   ReInit:     MCalibrationCam::InitSize(NumPixels) is called from MGeomApply (which allocates
    40 //               memory in a TClonesArray of type MCalibrationChargePix)
    41 //               Initializes pointer to MBadPixelsCam
    42 //
    43 //   Process:    Nothing done by this class, histograms are filled by
    44 //               MHCalibrationChargeCam
    45 //
    46 //   PostProcess:  Fit results from MHCalibrationChargeCam are retrieved
    47 //                and used for the calculation of the reduced sigma,
    48 //                the F-Factor method, the blind pixel method (photon flux
    49 //                                     inside plexiglass) and
    50 //                                     the PINDiode method (photon flux
    51 //                                     outside plexiglass)
    52 //
    53 //                Hi-Gain vs. Lo-Gain Calibration (very memory-intensive)
    54 //                can be skipped with the command:
    55 //                MalibrationCam::SkipHiLoGainCalibration()
     39//   ReInit():     MCalibrationCam::InitSize(NumPixels) is called from MGeomApply (which allocates
     40//                 memory in a TClonesArray of type MCalibrationChargePix)
     41//                 Initializes pointer to MBadPixelsCam
     42//
     43//   Process():    Nothing to be done, histograms getting filled by MHCalibrationChargeCam
     44//
     45//   PostProcess(): - FinalizePedestals()
     46//                  - FinalizeAvPedestals()
     47//                  - FinalizeCharges()
     48//                  - FinalizeFFactorMethod()
     49//                  - FinalizeBadPixels()
     50//                  - FinalizeBlindPixel()
     51//                  - FinalizePINDiode()
     52//                  - FinalizeFFactorQECam()
     53//                  - FinalizeBlindPixelQECam()
     54//                  - FinalizePINDiodeQECam()
    5655//
    5756//  Input Containers:
    58 //   MRawEvtData
     57//   MCalibrationChargeCam
     58//   MCalibrationChargeBlindPix
     59//   MCalibrationChargePINDiode
     60//   MCalibrationQECam
     61//   MExtractedSignalCam
     62//   MExtractedSignalBlindPixel
     63//   MExtractedSignalPINDiode
    5964//   MPedestalCam
    6065//   MBadPixelsCam
     66//   MGeomCam
     67//   MTime
    6168//
    6269//  Output Containers:
    63 //   MCalibrationCam
     70//   MCalibrationChargeCam
     71//   MCalibrationChargeBlindPix
     72//   MCalibrationChargePINDiode
    6473//   MCalibrationQECam
    6574//   MBadPixelsCam
     
    253262    : fBadPixels(NULL), fCam(NULL), fBlindPixel(NULL), fPINDiode(NULL),
    254263      fQECam(NULL), fSignals(NULL), fSigBlind(NULL), fSigPIN(NULL),
    255       fGeom(NULL), fPedestals(NULL), fRawEvt(NULL), fRunHeader(NULL),
    256       fEvtTime(NULL)
     264      fGeom(NULL), fPedestals(NULL), fEvtTime(NULL)
    257265      {
    258266
     
    318326{
    319327 
    320   fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData");
    321   if (!fRawEvt)
    322     {
    323       *fLog << err << "MRawEvtData not found... aborting." << endl;
    324       return kFALSE;
    325     }
    326  
    327328  fPedestals = (MPedestalCam*)pList->FindObject("MPedestalCam");
    328329  if (!fPedestals)
     
    411412Bool_t MCalibrationChargeCalc::ReInit(MParList *pList )
    412413{
    413 
    414   fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    415   if (!fRunHeader)
    416     {
    417       *fLog << err << "MRawRunHeader not found... aborting." << endl;
    418       return kFALSE;
    419     }
    420414
    421415  fGeom = (MGeomCam*)pList->FindObject("MGeomCam");
     
    690684    {
    691685      *fLog << warn << GetDescriptor() << ": Sigma of Fitted Charge smaller than Pedestal RMS in PINDiode " << endl;
    692       return kFALSE;
    693     }
     686    }
     687      return kFALSE;
    694688
    695689  const Byte_t  loweredge  = fSigPIN->GetFirstUsedSlice();
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h

    r3692 r3693  
    7979  MGeomCam                   *fGeom;           //! Camera geometry
    8080  MPedestalCam               *fPedestals;      //! Pedestals all pixels (calculated previously from ped.file)
    81   MRawEvtData                *fRawEvt;         //! Raw calibration event data
    82   MRawRunHeader              *fRunHeader;      //! RunHeader information
    8381  MTime                      *fEvtTime;        //! Time of the event
    8482
Note: See TracChangeset for help on using the changeset viewer.