Changeset 2831 for trunk/MagicSoft


Ignore:
Timestamp:
01/16/04 14:27:54 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2830 r2831  
    1111
    1212   * mcalib/MHCalibrationBlindPixel.[h,cc]
     13   * mcalib/MHCalibrationConfig.h
    1314   * mcalib/MCalibrationBlindPix.h,
    1415     - incorporate Fit functions
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc

    r2809 r2831  
    7070//                                                                         
    7171//////////////////////////////////////////////////////////////////////////////
    72 
    7372#include "MCalibrationCalc.h"
    7473#include "MCalibrationConfig.h"
    75 #include "MCalibrationFits.h"
    7674
    7775#include "MCalibrationCam.h"
     
    149147    if (!fRawEvt)
    150148    {
    151         *fLog << dbginf << "MRawEvtData not found... aborting." << endl;
    152         return kFALSE;
     149      *fLog << err << dbginf << "MRawEvtData not found... aborting." << endl;
     150      return kFALSE;
    153151    }
    154152
    155153    const MRawRunHeader *runheader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    156154    if (!runheader)
    157         *fLog << warn << dbginf << "Warning - cannot check file type, MRawRunHeader not found." << endl;
     155      *fLog << warn << dbginf << "Warning - cannot check file type, MRawRunHeader not found." << endl;
    158156    else
    159         if (runheader->GetRunType() == kRTMonteCarlo)
     157      if (runheader->GetRunType() == kRTMonteCarlo)
    160158        {
    161             return kTRUE;
     159          return kTRUE;
    162160        }
    163 
     161   
    164162    fCalibrations = (MCalibrationCam*)pList->FindCreateObj("MCalibrationCam");
    165163    if (!fCalibrations)
     
    218216    if (!fRunHeader)
    219217    {
    220         *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
    221         return kFALSE;
     218      *fLog << err << dbginf << ": MRawRunHeader not found... aborting." << endl;
     219      return kFALSE;
    222220    }
    223221
     
    226224    if (!cam)
    227225    {
    228         *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl;
    229         return kFALSE;
     226      *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl;
     227      return kFALSE;
    230228    }
    231229
     
    340338
    341339            if (!blindpixel.FillCharge(sumhi))
    342               *fLog << err <<
     340              *fLog << warn <<
    343341                "Overflow or Underflow occurred filling Blind Pixel sum = " << sumhi << endl;
    344342
    345343            if (!blindpixel.FillTime((int)mtime))
    346               *fLog << err <<
     344              *fLog << warn <<
    347345                "Overflow or Underflow occurred filling Blind Pixel time = " << mtime << endl;
    348346           
     
    411409{
    412410
    413 
    414411  *fLog << inf << endl;
    415412
     
    427424
    428425
    429   *fLog << GetDescriptor() << " Cut Histogram Edges" << endl;
     426  *fLog << GetDescriptor() << ": Cut Histogram Edges" << endl;
    430427
    431428  //
     
    439436  MCalibrationBlindPix &blindpixel = *(fCalibrations->GetBlindPixel());
    440437
    441   *fLog << GetDescriptor() << " Fitting the Blind Pixel" << endl;
     438  *fLog << GetDescriptor() << ": Fitting the Blind Pixel" << endl;
    442439
    443440  //
     
    448445
    449446      if (!blindpixel.FitCharge())
    450         *fLog << err << dbginf << "Could not fit the blind pixel " << endl;
     447        {
     448          *fLog << err << dbginf << "Could not fit the blind pixel! " << endl;
     449          blindpixel.DrawClone();
     450          return kFALSE;
     451        }
    451452
    452453      blindpixel.DrawClone();
    453454    }
    454455 
    455   *fLog << GetDescriptor() << " Fitting the Normal Pixels" << endl;
     456  *fLog << GetDescriptor() << ": Fitting the Normal Pixels" << endl;
    456457
    457458  //
     
    488489
    489490  if (!fCalibrations->CalcNumPhotInsidePlexiglass())
    490     *fLog << err << dbginf << "Could not calculate the number of photons from the blind pixel " << endl;
    491 
     491    {
     492      *fLog << err << GetDescriptor()
     493            << ": Could not calculate the number of photons from the blind pixel " << endl;
     494      return kFALSE;
     495    }
     496 
    492497  fCalibrations->SetReadyToSave();
    493498 
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationConfig.h

    r2734 r2831  
    1111
    1212
    13 // Global rejection criteria for the acceptance of a fit: Prob=0.01 == 99% Probability
     13// Global rejection criteria for the acceptance of a fit: Prob=0.001 == 99.7% Probability
    1414const Float_t gkProbLimit = 0.001;
    1515
     
    2323const Float_t gkSq2Pi = 2.506628274631;
    2424
    25 // typedef to the fitting functions for the blind pixel
    26 typedef Double_t (*BlindPixelFitFunc)(Double_t *, Double_t *);
    27 
    2825#endif /* MARS_MHCalibrationBlindPixelConfig */
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc

    r2791 r2831  
    3131//                                                                          //
    3232//////////////////////////////////////////////////////////////////////////////
    33 
    3433#include "MHCalibrationPixel.h"
    3534#include "MHCalibrationConfig.h"
    36 #include "MCalibrationFits.h"
    3735
    3836#include <TStyle.h>
Note: See TracChangeset for help on using the changeset viewer.