Changeset 7565 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/03/06 11:45:07 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7564 r7565  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2006/03/03 Thomas Bretz
     21
     22   * mjobs/MJCut.cc:
     23     - added RemoveFromList for srcposrndm in off-data loop
     24
     25   * mpointing/MSrcPosRndm.[h,cc]:
     26     - fixed the scaling. MSrcPosCam has to be in mm
     27
     28
     29
    2030 2006/03/03 Daniel Hoehne
    2131
  • trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.cc

    r7560 r7565  
    4141#include "MParList.h"
    4242
     43#include "MGeomCam.h"
    4344#include "MSrcPosCam.h"
    4445#include "MHSrcPosCam.h"
     
    5455Int_t MSrcPosRndm::PreProcess(MParList *plist)
    5556{
     57    MGeomCam *geom = (MGeomCam*)plist->FindObject("MGeomCam");
     58    if (!geom)
     59    {
     60        *fLog << err << "ERROR - MGeomCam not found... aborting." << endl;
     61        return kFALSE;
     62    }
     63
    5664    fSrcPos = (MSrcPosCam*)plist->FindCreateObj("MSrcPosCam");
    5765    if (!fSrcPos)
     
    6674
    6775    *fLog << inf << "MHSrcPosCam found... taken to produce a random distribution." << endl;
     76
     77    fConvMm2Deg = geom->GetConvMm2Deg();
    6878
    6979    return kTRUE;
     
    8090    fHist->GetHist().GetRandom2(x, y);
    8191
    82     fSrcPos->SetXY(x, y);
     92    fSrcPos->SetXY(x/fConvMm2Deg, y/fConvMm2Deg);
    8393
    8494    return kTRUE;
  • trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h

    r7560 r7565  
    1515    MHSrcPosCam  *fHist;   //!
    1616
     17    Double_t fConvMm2Deg;
     18
    1719    Int_t  PreProcess(MParList *plist);
    1820    Int_t  Process();
Note: See TracChangeset for help on using the changeset viewer.