Changeset 8312 for trunk


Ignore:
Timestamp:
02/09/07 12:40:24 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8310 r8312  
    3636     - replaced all MF by MFDataPhrase
    3737
     38   * mjobs/MJCalibrateSignal.cc:
     39     - changed the extraction range used in the lo-gains from the
     40       hi-gain range to the lo-gain range
     41
     42   * datacenter/macros/fillstar.C:
     43     - added filling the spark rate into the database
     44
    3845
    3946
  • trunk/MagicSoft/Mars/NEWS

    r8310 r8312  
    44
    55   - database: Website to plot values from the database has been added.
     6
     7   - database: The rate of spark events as found by star is now kept
     8     and the rate after cleaning is now with spark events subtracted
    69
    710   - general: The changes to the interpretation of phrases lead to
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r8203 r8312  
    125125    }
    126126
     127    MHCamera *hsparks = (MHCamera*)arr.FindObjectInCanvas("Sparks;avg", "MHCamera", "Sparks");
     128    if (!hsparks)
     129    {
     130        cout << "WARNING - Reading of Sparks failed." << endl;
     131        return 2;
     132    }
     133
    127134    TH2F *hcog = (TH2F*)arr.FindObjectInCanvas("Center", "TH2F", "MHHillas");
    128135    if (!hcog)
     
    197204    }
    198205
    199     Int_t numevents = (int)h->GetEntries();
     206    Int_t numsparks = (int)hsparks->GetEntries()
     207    Int_t numevents = (int)h->GetEntries() - numsparks;
    200208    Int_t datarate  = (int)(numevents/effon);
     209
     210    TString sparksrate = Form("%5.2f", numsparks/effon);
    201211
    202212    TGraph *g = (TGraph*)arr.FindObjectInCanvas("Humidity", "TGraph", "MHWeather");
     
    258268
    259269    cout << "Sequence #" << seq << endl;
    260     cout << "  Inhomogeneity         " << inhomogen << endl;
    261     cout << "  PSF [mm]              " << PSF       << endl;
    262     cout << "  Island Quality        " << islands   << endl;
    263     cout << "  Ratio [%]             " << ratio     << endl;
    264     cout << "  Muon Number           " << num       << endl;
    265     cout << "  EffOnTime [s]         " << effontime << endl;
    266     cout << "  Muon Rate [Hz]        " << muonrate  << endl;
    267     cout << "  # of Events           " << numevents << endl;
    268     cout << "  Rate after ImgCl [Hz] " << datarate  << endl;
    269     cout << "  Maximum Humidity [%]  " << maxhum    << endl;
    270     cout << "  Number of Stars       " << numstarsmed      << " +/- " << numstarsrms       << endl;
    271     cout << "  Number of cor. Stars  " << numcormed        << " +/- " << numcorrms         << endl;
    272     cout << "  Skybrightness         " << skybrightnessmed << " +/- " << skybrightnessrms  << endl;
     270    cout << "  Inhomogeneity            " << inhomogen << endl;
     271    cout << "  PSF [mm]                 " << PSF       << endl;
     272    cout << "  Island Quality           " << islands   << endl;
     273    cout << "  Ratio [%]                " << ratio     << endl;
     274    cout << "  Muon Number              " << num       << endl;
     275    cout << "  EffOnTime [s]            " << effontime << endl;
     276    cout << "  Muon Rate [Hz]           " << muonrate  << endl;
     277    cout << "  # of Events (w/o sparks) " << numevents << endl;
     278    cout << "  # of Sparks              " << numsparks << endl;
     279    cout << "  Rate after ImgCl [Hz]    " << datarate  << endl;
     280    cout << "  Rate of sparks [Hz]      " << sparkrate << endl;
     281    cout << "  Maximum Humidity [%]     " << maxhum    << endl;
     282    cout << "  Number of Stars          " << numstarsmed      << " +/- " << numstarsrms       << endl;
     283    cout << "  Number of cor. Stars     " << numcormed        << " +/- " << numcorrms         << endl;
     284    cout << "  Skybrightness            " << skybrightnessmed << " +/- " << skybrightnessrms  << endl;
    273285
    274286    TString query;
     
    284296                     " fPSF=%s, "
    285297                     " fDataRate=%d, "
     298                     " fSparkRate=%s, "
    286299                     " fMaxHumidity=%s ,"
    287300                     " fNumStarsMed=%s ,"
     
    295308                     num, effontime,
    296309                     muonrate.Data(), PSF.Data(),
    297                      datarate, maxhum.Data(),
     310                     datarate, sparkrate.Data(), maxhum.Data(),
    298311                     numstarsmed.Data(), numstarsrms.Data(),
    299312                     numcorsmed.Data(), numcorsrms.Data(),
     
    311324                     " fPSF=%s, "
    312325                     " fDataRate=%d, "
     326                     " fSparkRate=%s, "
    313327                     " fMaxHumidity=%s, "
    314328                     " fNumStarsMed=%s ,"
     
    323337                     num, effontime,
    324338                     muonrate.Data(), PSF.Data(),
    325                      datarate, maxhum.Data(),
     339                     datarate, sparkrate.Data(), maxhum.Data(),
    326340                     numstarsmed.Data(), numstarsrms.Data(),
    327341                     numcorsmed.Data(), numcorsrms.Data(),
Note: See TracChangeset for help on using the changeset viewer.