Changeset 7033


Ignore:
Timestamp:
05/13/05 19:26:28 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7031 r7033  
    5151     - integration ranges were shifted by 0.2 FADC slices to the right.
    5252       Fixed in the new algorithm according to Markus' change.
     53
     54   * mcalib/MCalibrationChargeCalc.h:
     55     - Incremented ClassVersion number by 1
     56   
     57   * mhcalib/MHCalibrationPulseTimeCam.cc:
     58     - removed a commented debug output
     59
     60   * mjobs/MJCalibration.cc
     61     - new undocumented adjust of "Unsuitable"- and "Unreliable"-displays
     62       for new exclusion criteria taken from bcn
     63
     64   * manalysis/MEventRateCalc.cc:
     65     - some fixes. In some cases the event rate wasn't calculated
     66       anymore
     67
     68   * mbadpixels/MBadPixelsCalc.cc:
     69     - fixed a bug when checking whether the check should be done
     70       or not (>0 was missing)
     71
     72   * mhist/Makefile:
     73     - added MHWeather
     74
     75   * mhvstime/MHVsTime.[h,cc]:
     76     - implemented new function the set minimum
     77
     78   * mjobs/MJStar.cc:
     79     - read weather data (CC tree)
     80     - set minimum of rate-display to 0
     81     - display weather data for non-MC files
     82
     83   * mmuon/MHSingleMuon.cc:
     84     - slight change to a comment
     85
     86
     87
     88 2005/05/13 Markus Gaug (2005/05/12)
     89
     90   * msignal/MExtractTimeAndChargeDigitalFilter.cc
     91     - set default extraction range in the high gain to 4.
     92     - set default weights file to cosmics_weights46.dat
     93
     94   * mhcalib/MHCalibrationHiLoCam.cc
     95     - set Oscillations to kFALSE
     96
     97   * mhcalib/MHCalibrationChargeCam.cc
     98     - set default for fNumHiGainSaturationLimit to 0.15
     99
     100   * mjobs/MJCalibrateSignal.[h,cc]
     101     - put MHCalibrationHiLoCam and MHCalibrationPulseTimeCam directly
     102       into tasklist if needed. Otherwise, it does not read the
     103       resources from the config. file.
     104
     105
     106 2005/05/11 Markus Gaug (2005/05/11)
     107
     108   * mjobs/MJPedestal.cc
     109     - adjust the fit ranges for the histogramming with moon data slightly.
     110
     111   * mcalib/MCalibrationChargeCam.cc, mcalib/MCalibrationChargeCalc.cc
     112     - make a distinction between newly excluded pixels (by calibration)
     113       and previously excluded pixels in the displays and print-functions
     114
     115   * mcalib/MCalibrationChargeCalc.cc
     116     - introduce the check for fluctuating arrival times.
     117     - set charge limit to from 2.5 to 4.5
     118     - introduce asymmetric exclusion due to "deviating number of phes":
     119       Default: -9.0 +4.5
     120     - make deviating number of phes unsuitable (see David's findings).
     121   
     122   * mbadpixels/MBadPixelsPix.h
     123     - add kDeviatingNumPhes to function GetUnsuitableCalLevel()
    53124
    54125
  • trunk/MagicSoft/Mars/NEWS

    r7029 r7033  
    108108       Default: -9.0 +4.5
    109109     + make deviating number of phes unsuitable (see David's findings).
     110
     111   - The weather data is now displayed in star
    110112
    111113
  • trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc

    r6985 r7033  
    172172    const UInt_t cnt = n1<n2 ? n : n1-n2;
    173173
    174     if (cnt<n/10)
    175         return kTRUE;
    176 
    177 
    178     // Calculate the rate
    179     const Double_t rate = (Double_t)cnt/(fTimes[n1%n]-fTimes[n2%n]);
    180 
    181174    // Store the time difference between two consecutive events
    182175    fTimeDiff->SetVal(exec==0 ? -1 : fTimes[n1%n] - fTimes[(n1+n-1)%n]);
     
    185178    // Make sure, that the beginning of data-takeing (open
    186179    // a new file) doesn't effect the rate too much
    187     if (exec<fNumFirstEvent+n)
    188     {
    189         fRate->SetRate(-1, 0);
     180    if (cnt<n/10)
    190181        return kTRUE;
    191     }
     182
     183    // Calculate the rate
     184    const Double_t rate = (Double_t)cnt/(fTimes[n1%n]-fTimes[n2%n]);
    192185
    193186    // Store the rate
     
    195188    fRate->SetReadyToSave();
    196189
    197     Double_t diff = fTimes[n1%n]- fTimes[n2%n];
    198     Double_t time = fTimes[n2%n]+ (cnt-n/10.)/(n-n/10.)*diff/2;
     190    // Calculate and store the corresponding time
     191    const Double_t diff = fTimes[n1%n] - fTimes[n2%n];
     192    const Double_t time = fTimes[n2%n] + (cnt-n/10.)/(n-n/10.)*diff/2;
    199193
    200194    fTimeRate->SetMean(time, time);
    201 
    202     //if (cnt>1000)
    203     //*fLog << all << *fTimeRate << " " << *fTime << " " << diff << " " << cnt << " " << n << " " << (float)(cnt-n/2)/n << endl;
    204 
     195    fTimeRate->SetReadyToSave();
     196
     197   /*
    205198    // Store the corresponding time
    206199    if (exec==fNumFirstEvent+n)
     
    208201    else
    209202        fTimeRate->SetMean(fTimes[n1%n], fTimes[n2%n]);
     203        */
    210204
    211205    return kTRUE;
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc

    r6948 r7033  
    208208
    209209        //Calculate the corrected means:
    210 
    211210        if (rms<=0.5*meanrms[aidx] || rms>=1.5*meanrms[aidx])
    212211            continue;
     
    254253        const Byte_t  aidx = (*fGeomCam)[i].GetAidx();
    255254
    256         if ((fPedestalLevel<0         || (rms>lolim1[aidx] && rms<=uplim1[aidx])) &&
    257             (fPedestalLevelVariance<0 || (rms>lolim2[aidx] && rms<=uplim2[aidx])))
     255        if ((fPedestalLevel<=0         || (rms>lolim1[aidx] && rms<=uplim1[aidx])) &&
     256            (fPedestalLevelVariance<=0 || (rms>lolim2[aidx] && rms<=uplim2[aidx])))
    258257            continue;
    259258
     
    261260        bads++;
    262261    }
    263 
    264262
    265263    // Check if the number of pixels to blind is > 60% of total number of pixels
     
    280278Int_t MBadPixelsCalc::Process()
    281279{
    282     if (fPedestalLevel>0 || fPedestalLevelVariance)
    283     {
     280    if (fPedestalLevel>0 || fPedestalLevelVariance>0)
    284281        CheckPedestalRms();
    285         //fPedPhotCam->ReCalc(*fGeomCam, fBadPixels);
    286     }
    287282
    288283    return kTRUE;
  • trunk/MagicSoft/Mars/mhist/HistLinkDef.h

    r6881 r7033  
    1010#pragma link C++ class MHEvent+;
    1111#pragma link C++ class MHCamEvent+;
     12#pragma link C++ class MHCamEventRot+;
    1213#pragma link C++ class MHTriggerLvl0+;
    1314
     
    1920#pragma link C++ class MHCamera+;
    2021
    21 #pragma link C++ class MHCamEventRot+;
     22#pragma link C++ class MHWeather+;
    2223
    2324#endif
  • trunk/MagicSoft/Mars/mhist/Makefile

    r6884 r7033  
    2121INCLUDES = -I. -I../mbase -I../mhbase -I../mraw -I../manalysis      \
    2222           -I../mgui -I../mgeom -I../mdata -I../mfilter -I../mimage \
    23            -I../mmain -I../mmc -I../mreflector -I../mpointing       \
    24            -I../mastro -I../mpedestal -I../msignal -I../mbadpixels  \
    25            -I../mcalib
     23           -I../mpointing -I../mmc  -I../mastro -I../msignal        \
     24           -I../mbadpixels -I../mcalib -I../mreport
    2625
    2726SRCFILES = MHEvent.cc \
     
    3433           MHHadronness.cc \
    3534           MHTriggerLvl0.cc \
    36            MHCamera.cc
     35           MHCamera.cc \
     36           MHWeather.cc
    3737
    3838############################################################
  • trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc

    r5756 r7033  
    121121// --------------------------------------------------------------------------
    122122//
     123// Call SetMinimum of fGraph
     124//
     125void MHVsTime::SetMinimum(Double_t min)
     126{
     127    if (fGraph)
     128        fGraph->SetMinimum(0);
     129}
     130
     131// --------------------------------------------------------------------------
     132//
    123133// Return the data members used by the data chain to be used in
    124134// MTask::AddBranchToList
     
    151161    fGraph->SetPoint(0, 0, 0); // Dummy point!
    152162    fGraph->SetEditable();     // Used as flag: First point? yes/no
    153 
    154163
    155164    TString title(fData ? GetRule() : (TString)"Graph");
  • trunk/MagicSoft/Mars/mhvstime/MHVsTime.h

    r4891 r7033  
    4545
    4646    void SetScale(Double_t scale) { fScale = scale; }
     47    void SetMinimum(Double_t min=-1111);
    4748
    4849    Int_t GetNbins() const;
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r7018 r7033  
    193193    readreal.AddTree("Events", "MTime.", kTRUE);
    194194    readreal.AddTree("Drive");
     195    readreal.AddTree("CC");
    195196    //read.AddTree("Trigger");
    196197    //read.AddTree("Camera");
    197     //read.AddTree("CC");
    198198    //read.AddTree("Currents");
    199199    readreal.AddFiles(iter);
     
    260260    hvs.SetTitle("Rate per 500 events;;R [Hz]");
    261261    hvs.SetNumEvents(500);
     262    hvs.SetMinimum(0);
    262263
    263264    //MContinue cont1("MEventRate2.fRate/MEventRate.fRate>1.1");
     
    423424    // ------------------------------------------------------------
    424425
     426    MFillH fillw("MHWeather", "MTimeCC", "FillWeather");
    425427    //tlist2.AddToList(&fill6);
    426428    //tlist2.AddToList(&fill7);
     
    432434    tlist.AddToList(&pcalc,  ismc ? "Events" : "Drive");
    433435    tlist.AddToList(&tlist2, "Events");
     436    if (!ismc)
     437        tlist.AddToList(&fillw,  "CC");
    434438    tlist.AddToList(&write);
    435439
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r7009 r7033  
    204204            fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons());
    205205
    206         // use only the inner pixles. This is geometry dependent. This has to
    207         // be fixed!
     206        // use only the inner pixles. FIXME: This is geometry dependent
    208207        if(i>397)
    209208            continue;
Note: See TracChangeset for help on using the changeset viewer.