Changeset 8307 for trunk/MagicSoft


Ignore:
Timestamp:
02/06/07 09:02:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8306 r8307  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/02/06 Thomas Bretz
     22
     23   * mpointing/MPointingDevCalc.cc:
     24     - included check for monitoring flag
     25
     26
     27
    2128 2007/02/04 Daniela Dorner
    2229
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r7744 r8307  
    138138// Increase fSkip[i] by one. If the data in fDeviation is outdated (older
    139139// than fMaxAge) and the current report should be skipped reset DevZdAz and
    140 // DevXY and fSkip[5] is increased by one.
     140// DevXY and fSkip[6] is increased by one.
    141141//
    142142void MPointingDevCalc::Skip(Int_t i)
     
    150150    fDeviation->SetDevZdAz(0, 0);
    151151    fDeviation->SetDevXY(0, 0);
    152     fSkip[5]++;
     152    fSkip[6]++;
    153153}
    154154
    155155Int_t MPointingDevCalc::ProcessStarguiderReport()
    156156{
     157    /************* CHECK STATUS!!! ******************/
     158
    157159    Double_t devzd = fReport->GetDevZd(); // [deg]
    158160    Double_t devaz = fReport->GetDevAz(); // [deg]
    159161    if (devzd==0 && devaz==0)
    160162    {
    161         fDeviation->SetDevZdAz(0, 0);
    162         fDeviation->SetDevXY(0, 0);   //?!?
    163         fSkip[1]++;
    164         fLastMjd = fReport->GetMjd();
     163        Skip(1);
     164        return kTRUE;
     165    }
     166
     167    if (!fReport->IsMonitoring())
     168    {
     169        Skip(2);
    165170        return kTRUE;
    166171    }
     
    188193            if (nsb<sum-rms || nsb>sum+rms)
    189194            {
    190                 Skip(2);
     195                Skip(3);
    191196                return kTRUE;
    192197            }
     
    195200        if (fReport->GetNumIdentifiedStars()<fNumMinStars)
    196201        {
    197             Skip(3);
     202            Skip(4);
    198203            return kTRUE;
    199204        }
     
    206211    if (dev*60>fMaxAbsDev)
    207212    {
    208         Skip(4);
     213        Skip(5);
    209214        return kTRUE;
    210215    }
     
    257262    *fLog << GetDescriptor() << " execution statistics:" << endl;
    258263    PrintSkipped(fSkip[1], "Starguider deviation not set, is exactly 0/0");
    259     PrintSkipped(fSkip[2], Form("NSB out of %.1f sigma range", fNsbLevel));
    260     PrintSkipped(fSkip[3], Form("Number of identified stars < %d", fNumMinStars));
    261     PrintSkipped(fSkip[4], Form("Absolute deviation > %.1farcmin", fMaxAbsDev));
    262     PrintSkipped(fSkip[5], Form("Events set to 0 because older than %.1fmin", fMaxAge));
     264    PrintSkipped(fSkip[2], "Starguider was not monitoring (eg. LEDs off)");
     265    PrintSkipped(fSkip[3], Form("NSB out of %.1f sigma range", fNsbLevel));
     266    PrintSkipped(fSkip[4], Form("Number of identified stars < %d", fNumMinStars));
     267    PrintSkipped(fSkip[5], Form("Absolute deviation > %.1farcmin", fMaxAbsDev));
     268    PrintSkipped(fSkip[6], Form("Events set to 0 because older than %.1fmin", fMaxAge));
    263269    *fLog << " " << (int)fSkip[0] << " (" << Form("%5.1f", 100.*fSkip[0]/GetNumExecutions()) << "%) Evts survived calculation!" << endl;
    264270    *fLog << endl;
Note: See TracChangeset for help on using the changeset viewer.