Ignore:
Timestamp:
08/16/05 15:38:01 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpointing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r7220 r7287  
    168168        if (!fSourcePos)
    169169        {
    170             *fLog << warn;
     170            *fLog << inf;
    171171            *fLog << "MSourcePos [MPointPos] not found... The source position" << endl;
    172             *fLog << "set in MSrcPosCam (camera center if not set explicitely)" << endl;
    173             *fLog << "will be left unchanged if not wobble mode Monte Carlo." << endl;
     172            *fLog << "set in MSrcPosCam will be set to  (0/0)  or in the case" << endl;
     173            *fLog << "of  Monte Carlo set to the appropriate wobble position." << endl;
    174174            return kTRUE;
    175175        }
     
    278278        v.Set(-120., 0.);
    279279
    280 
    281280    SetSrcPos(v);
    282281
     
    338337{
    339338    if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory || fMode==kOffData)
    340         return kTRUE;
     339    {
     340        // If this is MC data do not change source position
     341        if (fRunType==MRawRunHeader::kRTMonteCarlo)
     342            return kTRUE;
     343
     344        // For real data reset source position to 0/0
     345        SetSrcPos();
     346        return kTRUE;
     347    }
    341348
    342349    // Set Sky coordinates of source, taken from container "MSourcePos"
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h

    r7214 r7287  
    4545
    4646    // MSrcPosCalc
    47     void     SetSrcPos(TVector2 v) const;
     47    void     SetSrcPos(TVector2 v=TVector2()) const;
    4848    TVector2 CalcXYinCamera(const MVector3 &pos0, const MVector3 &pos) const;
    4949    TString  GetRaDec(const MPointingPos &pos) const;
Note: See TracChangeset for help on using the changeset viewer.