Changeset 7374


Ignore:
Timestamp:
09/30/05 10:42:20 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7373 r7374  
    4343   * mpointing/MPointingDevCalc.cc:
    4444     - reset counter in PreProcess
     45
     46   * resources/calibration.rc:
     47     - new file
    4548
    4649
  • trunk/MagicSoft/Mars/NEWS

    r7368 r7374  
    1313
    1414   - merpp: made aware of new format 20050829-0
     15
     16   - callisto: New scale factors from muon analysis, stored in new
     17     resource file resources/calibration.rc
    1518
    1619   - callisto: MBadPixelsCalc now raises an error instead of simply stopping
  • trunk/MagicSoft/Mars/callisto.rc

    r7251 r7374  
    399399#MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1
    400400#MJCalibrateSignal.MCalibrateData.PedestalFlag: Event
    401 MJCalibrateSignal.MCalibrateData.ScaleFactor: 0.9633911368
     401#MJCalibrateSignal.MCalibrateData.ScaleFactor: 1
     402MJCalibrateSignal.MCalibrateData.FileNameScale: resources/calibration.rc
    402403#MJCalibrateSignal.MCalibrateData.CalibrationMode: Default
    403404#MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01
  • trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc

    r7251 r7374  
    410410#MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1
    411411#MJCalibrateSignal.MCalibrateData.PedestalFlag: Event
    412 MJCalibrateSignal.MCalibrateData.ScaleFactor: 0.919117647
     412MJCalibrateSignal.MCalibrateData.ScaleFactor: 0.85182358
    413413#MJCalibrateSignal.MCalibrateData.CalibrationMode: Default
    414414#MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01
  • trunk/MagicSoft/Mars/callisto_MarApr05.rc

    r7251 r7374  
    399399#MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1
    400400#MJCalibrateSignal.MCalibrateData.PedestalFlag: Event
    401 MJCalibrateSignal.MCalibrateData.ScaleFactor: 1.01419878296146
     401#MJCalibrateSignal.MCalibrateData.ScaleFactor: 1
     402MJCalibrateSignal.MCalibrateData.FileNameScale: resources/calibration.rc
    402403#MJCalibrateSignal.MCalibrateData.CalibrationMode: Default
    403404#MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r7369 r7374  
    114114
    115115    Float_t mw    = hmuon->GetMeanWidth();
    116     Float_t psf   = -194.031674+404.077598*mw-192.532597*mw*mw;
     116    Float_t psf   = 51.505292 - 31.147126*mw;
    117117    psf = TMath::Nint(psf*10)/10.;
    118118    TString PSF = Form("%5.1f", psf);
  • trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc

    r7353 r7374  
    429429    // output information or warnings:
    430430    //
    431     switch(fSignalType)
     431    switch (fSignalType)
    432432    {
    433433    case kPhe:
    434       *fLog << inf << "Calibrating in units of equivalent (outer/inner=4) photo-electrons." << endl;
    435       break;
     434        *fLog << inf << "Calibrating in units of equivalent (outer/inner=4) photo-electrons." << endl;
     435        break;
    436436    case kPhot:
    437       *fLog << inf << "Calibrating in units of photons." << endl;
    438       break;
     437        *fLog << inf << "Calibrating in units of photons." << endl;
     438        break;
    439439    }
    440440
    441441    if (header->IsMonteCarloRun())
    442442    {
    443         *fLog << "Additional scale factor: 1 (MonteCarloRun)" << endl;
     443        *fLog << inf << "Additional scale factor forced to: 1 (MonteCarloRun)" << endl;
    444444        fScaleFactor = 1;
    445445    }
    446446    else
    447         *fLog << "Additional scale factor: " << fScaleFactor << endl;
     447    {
     448        if (!fFileNameScale.IsNull())
     449        {
     450            if (gSystem->AccessPathName(fFileNameScale, kFileExists))
     451            {
     452                *fLog << err << "ERROR - Configuration file '" << fFileNameScale << "' doesn't exist... abort." << endl;
     453                return kFALSE;
     454            }
     455
     456            const Int_t   p   = header->GetRunStart().GetMagicPeriod();
     457            const TString per = Form("%2d", p);
     458
     459            TEnv rc(fFileNameScale);
     460            const Double_t scale = rc.GetValue(per, -1.);
     461
     462            if (scale<=0)
     463            {
     464                *fLog << err << "ERROR - No valid entry for scale factor found for period " << p << " in " << fFileNameScale << "... abort." << endl;
     465                return kFALSE;
     466            }
     467
     468            *fLog << inf << "New additional scale factor for period " << p << ": " << scale << endl;
     469            fScaleFactor = scale;
     470        }
     471        else
     472            *fLog << inf << "Additional scale factor set to: " << fScaleFactor << endl;
     473    }
    448474
    449475    const Int_t npixels = fGeomCam->GetNumPixels();
     
    931957    }
    932958
     959    if (IsEnvDefined(env, prefix, "FileNameScale", print))
     960    {
     961        fFileNameScale = GetEnvValue(env, prefix, "FileNameScale", fFileNameScale);
     962        rc = kTRUE;
     963    }
     964
    933965    return rc;
    934966}
  • trunk/MagicSoft/Mars/mcalib/MCalibrateData.h

    r7189 r7374  
    7979  Float_t  fRenormFactor;                // Possible renormalization factor for signals (-> phes)
    8080  Float_t  fScaleFactor;                 // Possible scale factor for signals
    81  
     81
     82  TString  fFileNameScale;               // File name for list of scale factors
     83
    8284  TList   fNamesPedestal;                // Names of input and output pedestal conatainer
    8385  TList   fPedestalCams;                 //! List of pointers to input MPedestalCam
     
    106108  void   EnablePedestalType(PedestalType_t i)     { fPedestalFlag |=  i;      }
    107109
    108   Int_t  GetSize() const { return fCalibConsts.GetSize(); }
     110  //Int_t  GetSize() const { return fCalibConsts.GetSize(); }
    109111
    110112  void   Print(Option_t *o="") const;
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r7257 r7374  
    399399    histdc.SetTitle("Mean of all DC Currents;;<I> [nA]");
    400400    histdc.SetMinimum(0);
    401     histdc.SetMaximum(3);
     401    histdc.SetMaximum(10);
    402402    histrms.SetNameTime("MTimeCurrents");
    403403    histrms.SetTitle("Mean pedestal rms of all pixels;;<\\sigma_{p}> [phe]");
     404    histrms.SetType(5);
    404405    histrms.SetMinimum(0);
    405     histrms.SetMaximum(0.2);
     406    histrms.SetMaximum(10);
    406407
    407408    /*
     
    413414    MFillH filldc(&histdc,   "MCameraDC",                 "FillDC");
    414415    MFillH fillrms(&histrms, "MPedPhotFromExtractorRndm", "FillPedRms");
     416    //MFillH filltst("MHTest", "MTime", "FillTest");
    415417    filldc.SetNameTab("Currents");
    416418    fillrms.SetNameTab("MeanRms");
     419    //filltst.SetNameTab("Test");
    417420
    418421    MFillH fillw("MHWeather", "MTimeCC", "FillWeather");
     
    424427    tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal);
    425428    tlist.AddToList(&pcalc,  ismc ? "Events" : "Drive");
     429    //tlist.AddToList(&filltst, "Events");
    426430    tlist.AddToList(&tlist2, "Events");
    427431    if (!ismc)
     
    432436        tlist.AddToList(&filldc,  "Currents");
    433437        tlist.AddToList(&fillrms, "Currents");
    434     }
     438   }
    435439    tlist.AddToList(&write);
    436440
  • trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc

    r7369 r7374  
    214214    txt.SetTextColor(kBlue);
    215215
    216     TF1 ref("RefShape100%", "-254+1640*x-565*x*x", fgIntegralLoLim, fgIntegralUpLim);
     216    TF1 ref("RefShape100%", "-131+1333*x-385*x*x", fgIntegralLoLim, fgIntegralUpLim);
    217217    // old: 573*x + 430
    218218    ref.SetLineColor(kBlue);
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r7220 r7374  
    128128    fRunType  = MRawRunHeader::kRTNone;
    129129
     130    fSkip.Reset();
     131
    130132    return fDeviation ? kTRUE : kFALSE;
    131133}
Note: See TracChangeset for help on using the changeset viewer.