Ignore:
Timestamp:
04/27/04 11:17:16 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc

    r3599 r3847  
     1
    12/* ======================================================================== *\
    23!
     
    5455#include "MGeomCam.h"
    5556#include "MSrcPosCam.h"
    56 #include "MMcEvt.hxx"
     57#include "MPointingPos.h"
    5758
    5859#include "MLog.h"
     
    246247
    247248
    248    fMcEvt = (MMcEvt*)pList->FindCreateObj("MMcEvt");
    249    if (!fMcEvt)
     249
     250   fPointPos = (MPointingPos*)pList->FindCreateObj("MPointingPos");
     251   if (!fPointPos)
    250252   {
    251        *fLog << err << "MSourcePosfromStarPos::PreProcess; MMcEvt not found... aborting." << endl;
     253       *fLog << err << "MSourcePosfromStarPos::PreProcess; MPointingPos not found... aborting." << endl;
    252254       return kFALSE;
    253255   }
     
    502504    {
    503505      //-----------------------------------------
    504       // put the zenith angle into MMcEvt
     506      // put the zenith angle into MPointingPos
    505507
    506508      Double_t thetarad = fThetaTel[i];
     
    516518        fPhiradold = phirad;
    517519
    518       fMcEvt->SetTelescopeTheta(thetarad);
    519       fMcEvt->SetTelescopePhi(phirad);
    520       fMcEvt->SetReadyToSave();
     520      fPointPos->SetLocalPosition(thetarad*kRad2Deg, phirad*kRad2Deg);
     521      fPointPos->SetReadyToSave();
    521522
    522523      *fLog << all << "theta, phi = " << thetarad*kRad2Deg << ",  "
     
    588589
    589590    Double_t thetarad = fThetaradold;
    590     fMcEvt->SetTelescopeTheta(thetarad);
    591 
    592591    Double_t phirad = fPhiradold;
    593     fMcEvt->SetTelescopePhi(phirad);
    594     fMcEvt->SetReadyToSave();
     592    fPointPos->SetLocalPosition(thetarad*kRad2Deg, phirad*kRad2Deg);
     593    fPointPos->SetReadyToSave();
     594
    595595
    596596    *fLog << warn << "MSourcePosfromStarPos::ReInit;  no information on theta, phi and source position for run number = "
  • trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.h

    r3598 r3847  
    2929class TList;
    3030class MRawRunHeader;
    31 class MMcEvt;
     31class MPointingPos;
    3232class MGeomCam;
    3333class MSrcPosCam;
     
    4040    const MRawRunHeader *fRun;      //!
    4141    const MGeomCam      *fGeomCam;  //! Camera Geometry used to calculate Hillas
    42     MMcEvt              *fMcEvt;    //!
     42    MPointingPos        *fPointPos;       //!
    4343    MSrcPosCam          *fSrcPos;         //!
    4444    MObservatory        *fObservatory;    //!
Note: See TracChangeset for help on using the changeset viewer.