Changeset 7349 for trunk


Ignore:
Timestamp:
09/12/05 16:35:04 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tpoint/tpoint0508.txt

    r7312 r7349  
    110110-158.9329 59.25593 343.5209 50.3878 22.09639 -0.3197222 -0.02317719 -0.02940316 53605.07934 225.9 3.172
    11111147.22569 36.54395 189.7476 27.57011 3.405278 49.86111 0.003862221 -0.01007162 53605.086996 226.7 2.778
    112 47.2862 19.15062 189.8253 10.21207 5.278056 45.99806 0.0391389 -0.01657546 53605.094364 237.2 2.561
     112##47.2862 19.15062 189.8253 10.21207 5.278056 45.99806 0.0391389 -0.01657546 53605.094364 237.2 2.561
    11311379.92895 16.68103 222.4622 7.706874 4.598611 16.50917 0.006277146 -0.01605437 53605.099187 230.2 2.585
    11411411.01569 58.63599 153.4992 49.66254 0.1530556 59.14972 -6.578275e-05 -0.01359514 53605.10435 223.9 2.947
     
    155155161.8803 89.35793 299.7242 80.34576 23.06278 28.08278 -0.03738417 -0.6555016 53606.086711 215.8 2.898
    156156163.6731 89.36407 301.0457 80.35055 23.06278 28.08278 -0.03805907 -0.4174269 53606.086771 214.9 2.896
    157 170.8408 89.39057 308.8955 80.37092 23.06278 28.08278 -0.04531978 -1.103237 53606.087063 228.1 2.895
    158 -121.2917 88.79779 18.18017 79.92512 23.06278 28.08278 -0.031293 0.1311272 53606.090658 221.6 2.902
    159 -112.6175 88.38288 27.57605 79.51355 23.06278 28.08278 -0.02953879 0.156851 53606.092121 221.5 2.902
     157##170.8408 89.39057 308.8955 80.37092 23.06278 28.08278 -0.04531978 -1.103237 53606.087063 228.1 2.895
     158##-121.2917 88.79779 18.18017 79.92512 23.06278 28.08278 -0.031293 0.1311272 53606.090658 221.6 2.902
     159##-112.6175 88.38288 27.57605 79.51355 23.06278 28.08278 -0.02953879 0.156851 53606.092121 221.5 2.902
    160160-103.036 87.27255 38.36263 78.4079 23.06278 28.08278 -0.02274183 -0.1285554 53606.095774 213.3 2.923
    161161-92.98912 82.61974 49.06547 73.75633 23.06278 28.08278 -0.0221741 0.02493934 53606.110593 224.7 2.903
     
    170170##*7.06407 89.70317 142.6589 80.73923 0.1397222 29.09056 -0.06803369 -2.191836 53606.131926 220 2.919
    171171##*-1.52248 89.78481 133.9971 80.7929 0.1397222 29.09056 -0.1449181 -1.988184 53606.132103 225.2 2.841
    172 
    173 -70.9905 88.95418 69.08482 80.07318 0.1397222 29.09056 -0.0393356 -0.6531291 53606.135354 219.2 2.819
     172##*-70.9905 88.95418 69.08482 80.07318 0.1397222 29.09056 -0.0393356 -0.6531291 53606.135354 219.2 2.819
    174173-80.35903 87.83797 60.95691 78.94047 0.1397222 29.09056 -0.05321397 -0.3171041 53606.139033 217.9 2.857
    175174-84.43938 85.18967 57.44097 76.32055 0.1397222 29.09056 -0.0288866 -0.0387353 53606.147394 216.6 2.818
     
    179178-167.0579 42.31837 335.4432 33.45653 0.7263889 -17.98667 -0.01660967 -0.03691953 53606.184352 234.8 2.789
    180179-158.024 40.35643 344.4685 31.50261 0.7263889 -17.98667 -0.009747074 -0.02461631 53606.204881 233.7 2.818
     180
     181# --- 24.08.2005 --- 23:41:30.939
     182-88.52282 74.10703 53.84712 65.24541 19.51194 27.95972 -0.02750961 -0.03491044 53606.987164 213.8 3.427
     18379.64065 66.37057 222.1052 57.38383 22.71667 30.22139 -0.01569475 -0.03328937 53606.99492 215.1 3.497
     184108.8526 58.61587 251.3392 49.62471 23.07944 15.20528 -0.01559677 -0.03124082 53607.000179 223.8 3.241
     185-146.2146 26.10693 356.2921 17.24867 18.92111 -26.29667 -0.01329312 -0.02184206 53607.006437 223.2 2.767
     18679.03573 53.83671 221.5285 44.84998 0.1397222 29.09056 -0.01088316 -0.01395283 53607.014225 212.1 2.952
     187129.5383 70.16923 271.9313 61.15977 23.07944 15.20528 -0.03507286 -0.007031984 53607.041652 219.1 3.171
     188138.9459 72.75265 281.3576 63.73993 23.07944 15.20528 -0.03690827 -0.05554516 53607.053024 218.6 3.189
     189149.0339 74.53999 291.4158 65.53781 23.07944 15.20528 -0.02730475 -0.0541191 53607.062671 213.9 3.206
     190158.7699 75.62856 301.1194 66.63109 23.07944 15.20528 -0.02360277 -0.0386339 53607.07051 207.6 3.243
     191168.9346 76.287 311.2789 67.27668 23.07944 15.20528 -0.03681018 -0.04302131 53607.077839 229.3 3.207
     192175.1255 76.47321 317.4505 67.46098 23.07944 15.20528 -0.03834842 -0.03953659 53607.082066 230.8 3.233
     193178.0896 76.50303 320.4081 67.49782 23.07944 15.20528 -0.03119906 -0.04128377 53607.084064 216 3.236
     194-137.2408 46.33325 5.238231 37.47317 21.52583 -5.571111 -0.01792448 -0.02143795 53607.098696 210.6 3.541
     195-120.8641 58.21629 21.58423 49.35524 21.73639 9.875 -0.01912545 -0.01850997 53607.105274 219.9 3.151
     196-135.0097 51.84021 7.463116 42.96863 22.09639 -0.3197222 -0.0268074 -0.02402511 53607.116329 225.7 3.499
     197-128.5283 40.99052 13.95289 32.14789 21.52583 -5.571111 -0.0002818328 -0.01540228 53607.121639 215.2 3.475
     198-162.2549 29.26456 340.2528 20.39384 22.96083 -29.62222 -0.02528453 -0.02697356 53607.129839 217.6 2.774
     199106.8439 12.75349 249.3786 3.778848 5.242222 -8.201667 0.001284024 -0.02305091 53607.145795 225.9 2.752
     20089.60168 35.56171 232.1273 26.58736 4.598611 16.50917 0.003685579 -0.02187178 53607.153803 228.6 2.591
     201
     202# --- 26.08.2005 --- 00:45:50.900
     20332.79023 42.52508 175.3046 33.56231 1.430278 60.23528 0.01006835 -0.008733998 53608.031839 212.9 3.49
     20432.2829 43.65327 174.8099 34.67476 1.430278 60.23528 -0.003129167 -0.02000797 53608.03839 219.2 3.508
     205173.1806 31.3109 315.6816 22.35161 22.96083 -29.62222 0.01467388 -0.02192207 53608.059185 225.3 2.748
     206143.9767 34.81 286.488 25.8176 0.7263889 -17.98667 -0.01653577 -0.03336686 53608.066557 212.9 3.62
     207120.7174 66.50854 263.1535 57.51825 0.2205556 15.18361 -0.01252493 -0.02600608 53608.072355 216.5 3.431
     20814.98074 57.76191 157.4607 48.78977 0.1530556 59.14972 0.001612599 -0.006773034 53608.083932 223 3.107
     20947.28834 39.15133 189.8232 30.1962 3.405278 49.86111 0.02284424 -0.02540887 53608.09011 214 2.836
     210
     211# --- 26.08.2005 --- 02:25:29.032
     212-79.00837 79.39428 63.24001 70.52811 22.71667 30.22139 -0.0237752 -0.016141 53608.10103 211.6 3.493
     213##-0.2182925 41.17548 142.2996 32.2714 23.65583 77.6325 -0.05855314 -0.01400654 53608.108525 214.1 3.688
     214##-27.29195 15.54849 115.2259 6.607565 16.39972 61.51417 -0.0961527 -0.003416656 53608.115434 222.7 4.936
     215-11.24401 16.81794 131.2871 7.944027 14.845 74.15556 -0.04142678 -0.005003276 53608.119542 229 3.481
     216
     217# --- 29.08.2005 --- 04:02:47.274
     218133.9884 79.0162 276.2545 69.99347 1.910556 20.80806 -0.04442089 -0.03447289 53611.168603 211 3.469
     219##-7.227646 39.66832 135.2945 30.74782 23.65583 77.6325 -0.07557766 -0.01717359 53611.172917 222.9 4.587
     220-15.7744 59.06227 126.6965 50.20527 0.8183333 57.81583 -0.01223994 -0.007022888 53611.18887 206.3 3.915
     221-111.3784 60.62536 31.06256 51.76868 0.2205556 15.18361 -0.01512168 -0.01669907 53611.200159 220.2 3.583
     22275.35055 69.13086 217.7907 60.14197 3.902222 31.88361 -0.01222134 -0.02654317 53611.208418 209.7 3.52
  • trunk/MagicSoft/Mars/NEWS

    r7342 r7349  
    88   * general: added a new game. Start it from the interpreter with
    99        MagicJam j;
     10
     11   * callisto: MBadPixelsCalc now raises an error instead of simply stopping
     12     the eventloop if something went wrong. This is necessary for the
     13     automatic processing
     14
     15   * callisto: Fixed a bug in the treatment of times in the bad pixel
     16     treatment. No neighbors have been taken into account, the new
     17     arrival time was always calculated by the pixels 0 to 5.
     18
     19   * callisto: Fixed a bug which caused the random and peak-search pedestal
     20     extracted with an extractor to be exchanged for the first (roughly)
     21     500 events. (The were simple exchanged in callisto.cc) This bug might
     22     have been introduced in Mars 0.9.4 when the order of calculation of the
     23     two types of pedestal in callisto got exchanged. The bug only effects
     24     the first seconds of data of each sequence.
    1025
    1126
  • trunk/MagicSoft/Mars/callisto.cc

    r7189 r7349  
    598598
    599599        // Where to search for calibration files
    600         if (!job4.Process(job1.GetPedestalCam(), job2.GetPedestalCam(), job3.GetPedestalCam()))
     600        if (!job4.Process(job1.GetPedestalCam(), job3.GetPedestalCam(), job2.GetPedestalCam()))
    601601            return 2;
    602602
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc

    r7130 r7349  
    137137// too high pedestal Rms with respect to the mean.
    138138//
    139 Bool_t MBadPixelsCalc::CheckPedestalRms(MBadPixelsPix::UnsuitableType_t type) const
     139Int_t MBadPixelsCalc::CheckPedestalRms(MBadPixelsPix::UnsuitableType_t type) const
    140140{
    141141    const Bool_t checklo = fPedestalLevelVarianceLo>0;
     
    310310Int_t MBadPixelsCalc::Process()
    311311{
    312     return fCheckInProcess ? CheckPedestalRms(MBadPixelsPix::kUnsuitableEvt) : kTRUE;
     312    if (!fCheckInProcess)
     313        return kTRUE;
     314
     315    return CheckPedestalRms(MBadPixelsPix::kUnsuitableEvt) ? kTRUE : kERROR;
    313316}
    314317
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r7117 r7349  
    441441        for (unsigned int j=0; j<time.GetSize(); j++)
    442442        {
    443             const Double_t t = (*fEvt)[j].GetArrivalTime();
    444             if (t>=0)
     443            const Int_t nn = gpix.GetNeighbor(j);
     444
     445            const Double_t t = (*fEvt)[nn].GetArrivalTime();
     446            if (t>=0 && !IsPixelBad(nn))
    445447                time[n0++] = t;
    446448        }
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r7178 r7349  
    20452045        //if (!GetCanvas(c->GetName()))
    20462046        if (!tab || c->GetName()==(TString)tab)
    2047             DrawClonePad(AddTab(c->GetName()), *c);
     2047            DrawClonePad(c->GetName(), *c);
    20482048
    20492049    return kTRUE;
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.h

    r7001 r7349  
    204204     void   Update() { HandleTimer(&fTimer); HandleTimer(&fLogTimer); }
    205205
     206     void DrawClonePad(const char *tab, TCanvas &oldc)
     207     {
     208         DrawClonePad(AddTab(tab), oldc);
     209     }
     210
    206211     void SetNoContextMenu(Bool_t flag=kTRUE);
    207212
  • trunk/MagicSoft/Mars/mgui/MCamEvent.cc

    r4577 r7349  
    5555    InitSize(geom.GetNumPixels());
    5656}
     57
     58// --------------------------------------------------------------------------
     59//
     60// Return the mean of all corresponding GetPixelContent
     61//
     62Double_t MCamEvent::GetCameraMean(const MGeomCam &cam, Int_t type) const
     63{
     64    Int_t    num  = 0;
     65    Double_t mean = 0;
     66    for (unsigned int i=0; i<cam.GetNumPixels(); i++)
     67    {
     68        Double_t val;
     69        if (!GetPixelContent(val, i, cam, type))
     70            continue;
     71
     72        mean += val;
     73        num ++;
     74    }
     75    return num == 0 ? 0 : mean/num;
     76}
  • trunk/MagicSoft/Mars/mgui/MCamEvent.h

    r4577 r7349  
    1717    virtual void   InitSize(const UInt_t i) { } // Used by MGeomApply see Init()
    1818
     19    virtual Double_t GetCameraMean(const MGeomCam &cam, Int_t type=0) const;
     20
    1921    ClassDef(MCamEvent, 0) // A camera event
    2022};
  • trunk/MagicSoft/Mars/mhflux/MHThreshold.h

    r7170 r7349  
    1515{
    1616private:
    17     const MMcEvt *fMcEvt; //! POinter to MC energy
     17    const MMcEvt *fMcEvt; //! Pointer to MC energy
    1818
    1919    TH1D fHEnergy;
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc

    r7223 r7349  
    8686using namespace std;
    8787
    88 const TString MHSectorVsTime::gsDefName  = "MSectorHVsTime";
     88const TString MHSectorVsTime::gsDefName  = "MHSectorVsTime";
    8989const TString MHSectorVsTime::gsDefTitle = "Graph of sector mean vs. time";
    9090
  • trunk/MagicSoft/Mars/mjobs/MDataSet.cc

    r7286 r7349  
    110110    while (!runs.IsNull())
    111111    {
    112         TString num = runs(regexp);
     112        const TString num = runs(regexp);
     113
     114        if (num.IsNull())
     115        {
     116            *fLog << warn << "WARNING - Sequence is NaN (not a number): " << runs << endl;
     117            break;
     118        }
    113119
    114120        const Int_t seq = atoi(num.Data());
     
    122128
    123129        if (i<n)
    124             *fLog << warn << "WARNING - Sequence #" << seq << " alraedy in list... skipped." << endl;
     130            *fLog << warn << "WARNING - Sequence #" << seq << " already in list... skipped." << endl;
    125131        else
    126132        {
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r7287 r7349  
    171171    p += "/";
    172172    p += fNameOutput.IsNull() ? Form("ganymed%08d.root", num) : fNameOutput.Data();
     173    gSystem->ExpandPathName(p);
    173174    return p;
    174175}
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r7220 r7349  
    166166    while (!runs.IsNull())
    167167    {
    168         TString num = runs(regexp);
     168        const TString num = runs(regexp);
     169
     170        if (num.IsNull())
     171        {
     172            *fLog << warn << "WARNING - Run is NaN (not a number): " << runs << endl;
     173            break;
     174        }
    169175
    170176        const Int_t run = atoi(num.Data());
     
    178184
    179185        if (i<n)
    180             *fLog << warn << "WARNING - Run #" << run << " alraedy in list... skipped." << endl;
     186            *fLog << warn << "WARNING - Run #" << run << " already in list... skipped." << endl;
    181187        else
    182188        {
  • trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc

    r7223 r7349  
    357357        break;
    358358    case 5:
    359         val = (*this)[idx].GetRms()*TMath::Sqrt(cam.GetPixRatio(idx));
     359        val = (*this)[idx].GetRms()*cam.GetPixRatioSqrt(idx);
    360360        break;
    361361    default:
  • trunk/MagicSoft/Mars/msignal/MSignalCam.cc

    r7297 r7349  
    252252        Float_t testval = pix.GetNumPhotons()/pix.GetErrorPhot();
    253253        if (geom)
    254             testval *= TMath::Sqrt(geom->GetPixRatio(i/*pix.GetPixId()*/));
     254            testval *= geom->GetPixRatioSqrt(i/*pix.GetPixId()*/);
    255255
    256256        if (testval < minval)
     
    280280        Float_t testval = pix.GetNumPhotons()/pix.GetErrorPhot();
    281281        if (geom)
    282             testval *= TMath::Sqrt(geom->GetPixRatio(i/*pix.GetPixId()*/));
     282            testval *= geom->GetPixRatioSqrt(i/*pix.GetPixId()*/);
    283283
    284284        if (testval > maxval)
  • trunk/MagicSoft/Mars/msignal/MSignalCam.h

    r6856 r7349  
    4646    }
    4747
     48    // Setter functions for use in image cleaning classes only
     49    void SetSinglePixels(Short_t num, Float_t size)  { fNumSinglePixels=num; fSizeSinglePixels=size; }
     50    void SetNumPixelsSaturated(UInt_t hi, UInt_t lo) { fNumPixelsSaturatedHiGain=hi;fNumPixelsSaturatedLoGain=lo; }
     51
    4852    // Getter functions
    4953    UInt_t  GetNumPixels() const { return fPixels->GetEntriesFast(); }
     
    5559    Int_t   GetNumPixelsSaturatedHiGain() const { return fNumPixelsSaturatedHiGain; }
    5660    Int_t   GetNumPixelsSaturatedLoGain() const { return fNumPixelsSaturatedLoGain; }
    57 
    58     // Setter functions for use in image cleaning classes only
    59     void SetSinglePixels(Short_t num, Float_t size)  { fNumSinglePixels=num; fSizeSinglePixels=size; }
    60     void SetNumPixelsSaturated(UInt_t hi, UInt_t lo) { fNumPixelsSaturatedHiGain=hi;fNumPixelsSaturatedLoGain=lo; }
    6161
    6262    Bool_t  IsPixelExisting(Int_t id) const;
Note: See TracChangeset for help on using the changeset viewer.