Changeset 6992 for trunk/MagicSoft


Ignore:
Timestamp:
05/03/05 13:50:24 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6989 r6992  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23
     24 2005/05/03 Thomas Bretz
     25
     26   * mjobs/MJCut.cc:
     27     - added histogram <Fake->'OnTime' for MC
     28
     29   * mpointing/MSrcPosCalc.cc:
     30     - removed dependancy on MTime for MC
     31
     32
    2333
    2434 2005/05/02 Thomas Bretz
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r6988 r6992  
    651651    hvs.SetTitle("Effective On-Time vs. Zenith Angle;\\Theta [\\circ];T_{on} [s]");
    652652    MFillH fillvs(&hvs, "", "FillOnTime");
    653     fillvs.SetWeight("MEffectiveOnTime");
     653    if (!fIsMonteCarlo)
     654        fillvs.SetWeight("MEffectiveOnTime");
    654655    fillvs.SetNameTab("OnTime");
    655656
     
    703704        if (!fIsMonteCarlo)
    704705            tlist.AddToList(&fillvs, "EffectiveOnTime");
     706        else
     707            tlist2.AddToListBefore(&fillvs, &scalc);
    705708    }
    706709
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r6914 r6992  
    188188    }
    189189
    190     fObservatory = (MObservatory*)pList->FindObject("MObservatory");
    191     if (!fObservatory)
    192     {
    193         *fLog << err << "MObservatory not found... aborting." << endl;
    194         return kFALSE;
    195     }
    196 
    197     fTime = (MTime*)pList->FindObject("MTime");
    198     if (!fTime)
    199     {
    200         *fLog << err << "MTime not found... aborting." << endl;
    201         return kFALSE;
    202     }
    203 
    204190    *fLog << inf;
    205191    //*fLog << "Pointing Position: " << GetRaDec(*fPointPos)  << endl;
     
    247233
    248234    if (fRunType!=MRawRunHeader::kRTMonteCarlo)
     235    {
     236        fObservatory = (MObservatory*)plist->FindObject("MObservatory");
     237        if (!fObservatory)
     238        {
     239            *fLog << err << "MObservatory not found... aborting." << endl;
     240            return kFALSE;
     241        }
     242        fTime = (MTime*)plist->FindObject("MTime");
     243        if (!fTime)
     244        {
     245            *fLog << err << "MTime not found... aborting." << endl;
     246            return kFALSE;
     247        }
    249248        return kTRUE;
     249    }
    250250
    251251    MMcCorsikaRunHeader *h = (MMcCorsikaRunHeader*)plist->FindObject("MMcCorsikaRunHeader");
Note: See TracChangeset for help on using the changeset viewer.