Changeset 6870 for trunk/MagicSoft


Ignore:
Timestamp:
03/21/05 13:32:33 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6869 r6870  
    5656   * mjobs/MJStar.cc:
    5757     - replaced MCerPhotEvt by MSignalCam
     58
     59   * msignal/cosmics_weights46.dat, msignal/calibration_weightsUV46.dat,
     60     mjobs/hilocalib_df46.root:
     61     - added
     62
     63  * mbase/MLogHtml.cc:
     64     - fixed a bug in Underline which cause a crash if fOut==NULL
     65     - output a message if file cannot be opened
     66
     67   * mhcalib/MHCalibrationPulseTimeCam.cc:
     68     - for some output there was a replacement of pix.GetPixId()
     69       by hist.GetName() <undocumented>
    5870
    5971
     
    178190     - removed MFSelStandard
    179191     - removed MFSelFinal
     192
     193
     194
     195 2005/03/19 Markus Gaug
     196 
     197   * mjobs/hilocalib_df46.root
     198     - added new intercalibration file for digital filter 4sl higain
     199       and 6 slices logain
     200
     201   * mjobs/MJCalibration.cc
     202      - exchanged intercalibration file from hilocalib_df_4.root to 
     203        hilocalib_df46.root
     204
     205   * mjobs/MJPedestal.cc
     206     - exchanged two (Int_t)'s by TMath::Nint().
     207     - undocumented(!) change to the calculation of the extraction
     208       range (PulsePosCheck)
     209
     210   * callisto.rc
     211     - exchanged default weights file for Digital filter from
     212       cosmics_weights4.dat to cosmics_weights46.dat and from
     213       calibration_weights_UV4.dat to calibration_weights_UV46.dat!
     214       This change is absolutely necessary, given the new results from
     215       Nuria about the signal resolution in the low gain which gets worse
     216       than the intrinsic Poisson jitter above 350 phes. Also the time
     217       resolution is too bad. This was not known before we had the 
     218       correct low-gain MC pulse.
    180219
    181220
  • trunk/MagicSoft/Mars/callisto.rc

    r6828 r6870  
    100100# weights file depending on what you are extracting
    101101# -------------------------------------------------------------------------
    102 MJPedestalC2.ExtractSignal.WeightsFile:          msignal/calibration_weights_UV4.dat
    103 MJPedestalY2.ExtractSignal.WeightsFile:          msignal/cosmics_weights4.dat
    104 MJPedestalY3.ExtractSignal.WeightsFile:          msignal/cosmics_weights4.dat
    105 MJCalibration.ExtractSignal.WeightsFile:         msignal/calibration_weights_UV4.dat
    106 MJCalibrateSignal.ExtractSignal.WeightsFile:     msignal/cosmics_weights4.dat
    107 MJCalibrateSignal.ExtractInterlaced.WeightsFile: msignal/calibration_weights_UV4.dat
     102MJPedestalC2.ExtractSignal.WeightsFile:          msignal/calibration_weights_UV46.dat
     103MJPedestalY2.ExtractSignal.WeightsFile:          msignal/cosmics_weights46.dat
     104MJPedestalY3.ExtractSignal.WeightsFile:          msignal/cosmics_weights46.dat
     105MJCalibration.ExtractSignal.WeightsFile:         msignal/calibration_weights_UV46.dat
     106MJCalibrateSignal.ExtractSignal.WeightsFile:     msignal/cosmics_weights46.dat
     107MJCalibrateSignal.ExtractInterlaced.WeightsFile: msignal/calibration_weights_UV46.dat
    108108#MJCalibrateSignal.ExtractSignal.LoGainStretch:     1.5
    109109#MJCalibrateSignal.ExtractInterlaced.LoGainStretch: 1.5
     
    203203# Use this if you want to change the higain-vs. logain intercalibration
    204204# -------------------------------------------------------------------------
    205 #MJCalibration.HiLoCalibFile:    mjobs/hilocalib_df4.root
     205#MJCalibration.HiLoCalibFile:    mjobs/hilocalib_df46.root
    206206#MJCalibration.HiLoCalibration:  yes
    207207
     
    309309#MJPedestalY2.PulsePosCheck: yes
    310310#MJPedestalY2.ExtractWinLeft:  2.5
    311 #MJPedestalY2.ExtractWinRight: 5.0
     311#MJPedestalY2.ExtractWinRight: 4.5
    312312
    313313# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mbase/MLogHtml.cc

    r2784 r6870  
    4747        delete fOut;
    4848        fOut = NULL;
     49
     50        cerr << "Cannot open file " << name << ": " << strerror(errno) << endl;
    4951        return;
    5052    }
     
    8183void MLogHtml::Underline()
    8284{
     85    if (!fOut)
     86        return;
     87
    8388    *fOut << "<u>";
    8489    fUnderline = kTRUE;
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r6774 r6870  
    547547    {
    548548      *fLog << warn << GetDescriptor()
    549             << ": Only overflow or underflow in hi-gain pixel: " << pix.GetPixId() << endl;
     549            << ": Only overflow or underflow in hi-gain pixel: " << hist.GetName() << endl;
    550550      return;
    551551    } 
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r6858 r6870  
    178178const Int_t MJCalibration::gkThirdBlindPixelInstallation   = 43308;
    179179const TString MJCalibration::fgReferenceFile = "mjobs/calibrationref.rc";
    180 const TString MJCalibration::fgHiLoCalibFile = "mjobs/hilocalib_df4.root";
     180const TString MJCalibration::fgHiLoCalibFile = "mjobs/hilocalib_df46.root";
    181181
    182182// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r6858 r6870  
    3333#include "MJPedestal.h"
    3434
     35// C/C++ includes
     36#include <fstream>
     37
    3538// root classes
    3639#include <TF1.h>
     
    8689#include "MFTriggerPattern.h"
    8790
    88 #include <fstream>
    89 
    9091ClassImp(MJPedestal);
    9192
     
    9495const TString  MJPedestal::fgReferenceFile   = "mjobs/pedestalref.rc";
    9596const TString  MJPedestal::fgBadPixelsFile   = "mjobs/badpixels_0_559.rc";
    96 const Float_t  MJPedestal::fgExtractWinLeft  = 2.5;
    97 const Float_t  MJPedestal::fgExtractWinRight = 5.0;
     97const Float_t  MJPedestal::fgExtractWinLeft  = 3.5;
     98const Float_t  MJPedestal::fgExtractWinRight = 4.5;
     99
    98100// --------------------------------------------------------------------------
    99101//
     
    12911293        // Get the ranges for the new extractor setting
    12921294        //
    1293         const Int_t newfirst = (Int_t)(meanpulsetime-fExtractWinLeft);
     1295        const Int_t newfirst = TMath::Nint(meanpulsetime-fExtractWinLeft);
    12941296        Int_t wshigain = fExtractor->InheritsFrom("MExtractTimeAndCharge")
    12951297          ?  ((MExtractTimeAndCharge*)fExtractor)->GetWindowSizeHiGain()
     
    13021304          ? ((MExtractTimeAndCharge*)fExtractor)->GetWindowSizeLoGain()
    13031305          : 6;
    1304         if (wslogain > 6)
    1305           wslogain = 6;
    1306 
    1307         const Int_t newlast  = (Int_t)(meanpulsetime+fExtractWinRight);
     1306        if (wslogain > 4)
     1307          wslogain = 4;
     1308
     1309        const Int_t newlast  = TMath::Nint(meanpulsetime+fExtractWinRight);
    13081310
    13091311        *fLog << all << underline
     
    13311333            *fLog << "Try to use a different extractor (e.g. with a window size of only 4 sl.) or:" << endl;
    13321334            *fLog << "Set the limit to a lower value (callisto.rc: line 329): " << endl;
    1333             *fLog << "    MJPedestalY2:ExtractWinRight: 5.0           " << endl;
     1335            *fLog << "    MJPedestalY2:ExtractWinRight: 4.5           " << endl;
    13341336            *fLog << "(ATTENTION, you will lose late cosmics pulses!)" << endl;
    13351337            *fLog << endl;
Note: See TracChangeset for help on using the changeset viewer.