Changeset 5807


Ignore:
Timestamp:
01/12/05 13:33:46 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5804 r5807  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22 2005/01/12 Thomas Bretz
     23
     24   * manalysis/MMatrixLoop.cc:
     25     - changed name to MRead because it now derives from MRead
     26
     27   * mbase/MEvtLoop.[h,cc]:
     28     - implemented an option not to cascade the status display to the
     29       parameter list in PreProcess
     30
     31   * mhflux/MHAlpha.cc:
     32     - changed name of "Significance" to "MinimizationValue"
     33     - return -significance to have a value being minimized
     34
     35   * mhist/MHCamera.cc:
     36     - fixed output of text in legend
     37
     38   * mhist/MHEvent.[h,cc]:
     39     - implemented new options for calibrated pedestals
     40
     41   * mmain/MEventDisplay.cc:
     42     - fixed to support latest changes in MJCalibrateSignal
     43
     44   * mpedestal/MPedPhotCam.cc:
     45     - added new options in GetPixelContent (4 and 5) to support
     46       a correct camera display
     47
     48
     49
    2250 2005/01/11 Abelardo Moralejo
    2351
    2452   * mjobs/Makefile
    2553     - added missing include -I ../mtrigger
     54
     55
    2656
    2757 2005/01/11 Thomas Bretz
  • trunk/MagicSoft/Mars/manalysis/MMatrixLoop.cc

    r5803 r5807  
    3838ClassImp(MMatrixLoop);
    3939
    40 const TString MMatrixLoop::gsDefName  = "MMatrixLoop";
     40const TString MMatrixLoop::gsDefName  = "MRead";
    4141const TString MMatrixLoop::gsDefTitle = "Loop through a MHMatrix (instead of reading from a file)";
    4242
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r5382 r5807  
    244244        fDisplay->StartUpdate();
    245245        // Cascade display through childs
    246         fParList->SetDisplay(fDisplay);
     246        if (!TestBit(kPrivateDisplay))
     247            fParList->SetDisplay(fDisplay);
    247248    }
    248249#endif
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r4601 r5807  
    3232    ULong_t fNumEvents;        //!
    3333
    34     enum { kIsOwner = BIT(14) };
     34    enum { kIsOwner = BIT(14), kPrivateDisplay = BIT(15) };
    3535
    3636    Bool_t HasDuplicateNames(const TString txt) const;
     
    5454    MStatusDisplay *GetDisplay() { return fDisplay; }
    5555    void SetDisplay(MStatusDisplay *d);
     56    void SetPrivateDisplay(Bool_t b=kTRUE) { b ? SetBit(kPrivateDisplay) : ResetBit(kPrivateDisplay); }
    5657
    5758    void SetOwner(Bool_t enable=kTRUE);
  • trunk/MagicSoft/Mars/mhflux/MHAlpha.cc

    r5803 r5807  
    289289        *fLog << warn << "MTime not found... ignored." << endl;
    290290
    291     fResult = (MParameterD*)const_cast<MParList*>(pl)->FindCreateObj("MParameterD", "Significance");
     291    fResult = (MParameterD*)const_cast<MParList*>(pl)->FindCreateObj("MParameterD", "MinimizationValue");
    292292    if (!fResult)
    293293        return kFALSE;
     
    824824
    825825    if (fResult)
    826         fResult->SetVal(fFit.GetSignificance());
     826        fResult->SetVal(-fFit.GetSignificance());
    827827
    828828    if (!fSkipHistEnergy)
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r5307 r5807  
    14711471
    14721472    text = "";
    1473     text += (float)((int)(range*.3*fGeomCam->GetConvMm2Deg()*10))/10;
     1473    text += Form("%.2f", (float)((int)(range*.3*fGeomCam->GetConvMm2Deg()*10))/10);
    14741474    text += "\\circ";
    14751475    text = text.Strip(TString::kLeading);
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r5145 r5807  
    139139        fHist->SetYTitle("\\sigma_{P} [au]");
    140140        break;
     141    case kEvtPedPhot:
     142        fHist->SetName("Pedestal");
     143        fHist->SetYTitle("P [\\gamma]");
     144        break;
     145    case kEvtPedPhotRMS:
     146        fHist->SetName("Pedestal RMS");
     147        fHist->SetYTitle("\\sigma_{P} [\\gamma]");
     148        break;
    141149    case kEvtCleaningLevels:
    142150        if (!fImgCleanStd)
     
    208216    case kEvtPedestalRMS:
    209217        fHist->SetCamContent(*event, 1);
     218        break;
     219    case kEvtPedPhot:
     220        fHist->SetCamContent(*event, 4);
     221        break;
     222    case kEvtPedPhotRMS:
     223        fHist->SetCamContent(*event, 5);
    210224        break;
    211225    case kEvtCleaningLevels:
  • trunk/MagicSoft/Mars/mhist/MHEvent.h

    r5145 r5807  
    2020public:
    2121    enum EventType_t {
    22         kEvtSignalRaw, kEvtSignalDensity, kEvtPedestal,
    23         kEvtPedestalRMS, kEvtCleaningLevels,
    24         kEvtCleaningData,
     22        kEvtSignalRaw, kEvtSignalDensity,
     23        kEvtPedestal, kEvtPedestalRMS,
     24        kEvtPedPhot, kEvtPedPhotRMS,
     25        kEvtCleaningLevels, kEvtCleaningData,
    2526        kEvtIdxMax, kEvtArrTime, kEvtTrigPix, kEvtIslandIndex
    2627    };
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r5307 r5807  
    258258    MHEvent *evt01 = new MHEvent(MHEvent::kEvtSignalRaw);
    259259    MHEvent *evt02 = new MHEvent(MHEvent::kEvtSignalRaw);
    260     MHEvent *evt03 = new MHEvent(MHEvent::kEvtPedestal);
    261     MHEvent *evt04 = new MHEvent(MHEvent::kEvtPedestalRMS);
     260    MHEvent *evt03 = new MHEvent(type==1?MHEvent::kEvtPedPhot:MHEvent::kEvtPedestal);
     261    MHEvent *evt04 = new MHEvent(type==1?MHEvent::kEvtPedPhotRMS:MHEvent::kEvtPedestalRMS);
    262262    MHEvent *evt06a= new MHEvent(MHEvent::kEvtCleaningData);
    263263    MHEvent *evt06b= new MHEvent(MHEvent::kEvtCleaningLevels);
     
    294294    MImgCleanStd       *clean  = new MImgCleanStd;
    295295    MFillH             *fill02 = new MFillH(evt02, "MCerPhotEvt", "MFillH02");
    296     MFillH             *fill03 = new MFillH(evt03, "MPedPhotCam", "MFillH03");
    297     MFillH             *fill04 = new MFillH(evt04, "MPedPhotCam", "MFillH04");
     296    MFillH             *fill03 = new MFillH(evt03, type==1?"MPedPhotFundamental":"MPedPhotCam", "MFillH03");
     297    MFillH             *fill04 = new MFillH(evt04, type==1?"MPedPhotFromExtractorRndm":"MPedPhotCam", "MFillH04");
    298298    MFillH             *fill06a= new MFillH(evt06a, "MCameraData", "MFillH06a");
    299299    MFillH             *fill06b= new MFillH(evt06b, "MCameraData", "MFillH06b");
     
    303303    MFillH             *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09");
    304304    MFillH             *fill10 = new MFillH(evt10, "MCerPhotEvt",    "MFillH10");
     305
     306    if (type==1)
     307        clean->SetNamePedPhotCam("MPedPhotFromExtractorRndm");
    305308
    306309    // If no pedestal or no calibration file is availble
  • trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc

    r4752 r5807  
    321321        val = (*this)[idx].GetNumEvents()>0 ? (*this)[idx].GetRms()/TMath::Sqrt((Float_t)(*this)[idx].GetNumEvents())/2. : -1;
    322322        break;
     323    case 4:
     324        val = (*this)[idx].GetMean()*cam.GetPixRatio(idx);
     325        break;
     326    case 5:
     327        val = (*this)[idx].GetRms()*TMath::Sqrt(cam.GetPixRatio(idx));
     328        break;
    323329    default:
    324330        return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.