Changeset 3500


Ignore:
Timestamp:
03/15/04 13:59:40 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3498 r3500  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
    21 
    22 
    2321 2004/03/15: Wolfgang Wittek
    2422
    2523   * mastro/MObservatory.[h,cc]
    2624     - remove bugs in RotationAngle(theta, phi, sin, cos)
     25
    2726
    2827
     
    4746     - added fLut.Set to FixSize and resize fLut by a factor of 2
    4847       instead of +1 which acelerates creation of all pixels a lot
     48
     49   * mbadpixels/MBadPixelsPix.cc:
     50     - fixed a typo
     51
     52   * mfilter/MFSoftwareTrigger.cc:
     53     - made statistics output meaning independant of usage of filter!
     54
     55   * mhbase/MFill.[h,cc]:
     56     - added possibility to give tab a different name
     57
     58   * mhist/MHCamera.cc:
     59     - fixed a bug when determin scale for same-option
     60
     61   * mjobs/MJCalibration.cc:
     62     - changed tab names for MFillH
    4963
    5064
  • trunk/MagicSoft/Mars/mastro/MAstroCamera.cc

    r3499 r3500  
    129129        */
    130130
    131     v.Set(spot(1), -spot(0));
     131    v.Set(spot(0), spot(1));
    132132
    133133    const Float_t max = fGeom->GetMaxRadius()*0.70;
     
    235235    rot.RotateZ(-zdaz0.Phi());
    236236    rot.RotateY(-zdaz0.Theta());
     237    rot.RotateZ(-TMath::Pi()/2); // align coordinate system
    237238
    238239    DrawNet(rot);
     
    267268            if (hasdot)
    268269            {
    269                 TMarker *m=new TMarker(spot(1), -spot(0), 1);
     270                TMarker *m=new TMarker(spot(0), spot(1), 1);
    270271                m->SetBit(kCannotPick);
    271272                m->SetBit(kCanDelete);
     
    275276            }
    276277            if (h)
    277                 h->Fill(spot(1), -spot(0), pow(10, -mag/2.5));
     278                h->Fill(spot(0), spot(1), pow(10, -mag/2.5));
    278279
    279280            if (usecam)
    280                 camera->Fill(spot(1), -spot(0), pow(10, -mag/2.5));
     281                camera->Fill(spot(0), spot(1), pow(10, -mag/2.5));
    281282
    282283            num++;
     
    286287        mean *= 1./num;
    287288
    288         DrawStar(mean(1), -mean(0), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(1), -mean(0)));
     289        DrawStar(mean(0), mean(1), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(0), mean(1)));
    289290    }
    290291}
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc

    r3472 r3500  
    4949{
    5050    fName  = name  ? name  : "MBadPixelsPix";
    51     fTitle = title ? title : "Container storeing bad pixel information for a single pixel";
     51    fTitle = title ? title : "Container storing bad pixel information for a single pixel";
    5252
    5353    fInfo[1] = 0;
  • trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.cc

    r3454 r3500  
    162162    *fLog << dec << setfill(' ');
    163163
     164    *fLog << " " << setw(7) << fCut[0] << " (" << setw(3) ;
     165    *fLog << (int)(fCut[0]*100/GetNumExecutions());
     166    *fLog << "%) Evts fullfilled software trigger";
     167    *fLog << " (NumPhotons>=" << fNumMinPhotons << ", NumNeighbors>=";
     168    *fLog << (int)fNumNeighbors << ")" << endl;
    164169    *fLog << " " << setw(7) << fCut[1] << " (" << setw(3) ;
    165     *fLog << (int)(fCut[1]*100/GetNumExecutions()) ;
    166     *fLog << "%) Evts skipped due to: Software trigger not fullfilled" ;
    167     *fLog << " (NumPhotons>=" << fNumMinPhotons << ", NumNeighbors>=";
    168     *fLog << fNumNeighbors << ")" << endl;
    169 
    170     *fLog << " " << fCut[0] << " (" << (int)(fCut[0]*100/GetNumExecutions()) ;
    171     *fLog << "%) Evts survived software trigger!" << endl;
    172     *fLog << endl;
     170    *fLog << (int)(fCut[1]*100/GetNumExecutions());
     171    *fLog << "%) Evts didn't fullfill software trigger."  << endl;
    173172
    174173    return kTRUE;
  • trunk/MagicSoft/Mars/mhbase/MFillH.cc

    r3226 r3500  
    356356        return kTRUE;
    357357
    358     fCanvas = &fDisplay->AddTab(fH->GetName());
     358    fCanvas = &fDisplay->AddTab(fNameTab.IsNull() ? fH->GetName() : fNameTab.Data());
    359359    fH->Draw();
    360360
  • trunk/MagicSoft/Mars/mhbase/MFillH.h

    r3144 r3500  
    2828    MH* fH;                       // Pointer to the MH container to get filled
    2929    TString fHName;               // Name to a MH container to get filled
     30    TString fNameTab;
    3031
    3132    MWeight *fWeight;             // Pointer to the container storing a weight
     
    5455    ~MFillH();
    5556
     57    void SetNameTab(const char *n="") { fNameTab = n; }
     58
    5659    void SetRuleForIdx(const TString rule);
    5760    void SetRuleForIdx(MData *rule);
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r3471 r3500  
    626626    // necessary for 'same' option and allows distorted images of the camera!
    627627    const Float_t maxr = (1-fGeomCam->GetConvMm2Deg())*fGeomCam->GetMaxRadius()/2;
    628     const Float_t conv = issame ||
     628    const Float_t conv = !issame ||
    629629        gPad->GetX1()<-maxr || gPad->GetY1()<-maxr ||
    630630        gPad->GetX2()> maxr || gPad->GetY2()>maxr ? 1 : fGeomCam->GetConvMm2Deg();
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3485 r3500  
    543543    MCalibrationChargeCalc   calcalc;
    544544
    545     MFillH fillpin  ("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
    546     MFillH fillblind("MHCalibrationChargeBlindPix", "MExtractedSignalBlindPixel");
    547     MFillH fillcam  ("MHCalibrationChargeCam",      "MExtractedSignalCam");
     545    MFillH fillpin("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
     546    MFillH fillbnd("MHCalibrationChargeBlindPix", "MExtractedSignalBlindPixel");
     547    MFillH fillcam("MHCalibrationChargeCam",      "MExtractedSignalCam");
     548    fillpin.SetNameTab("PINDiode");
     549    fillbnd.SetNameTab("BlindPix");
     550    fillcam.SetNameTab("Charge");
     551
    548552    //
    549553    // Apply a filter against cosmics
     
    565569    tlist.AddToList(&fillcam);
    566570    tlist.AddToList(&fillpin);
    567     tlist.AddToList(&fillblind);
     571    tlist.AddToList(&fillbnd);
    568572    tlist.AddToList(&calcalc);
    569573
Note: See TracChangeset for help on using the changeset viewer.