Changeset 3531


Ignore:
Timestamp:
03/17/04 13:19:12 (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

    r3517 r3531  
    9999    fRaSource  = 0.0;
    100100
     101    // these are the default values when starting the excution;
     102    // later these locations contain the values of the last event
    101103    fxSourceold  =  25.0;
    102104    fySourceold  = -40.0;
     
    292294    if (fDecSource == 0.0  ||  fRaSource == 0.0  ||  fStars == 0)
    293295    {
    294       *fLog << err << "MSourcePosfromStarPos::PreProcess; there are no sky coordinates defined for the source or from stars; fStars = " << fStars
     296      *fLog << warn << "MSourcePosfromStarPos::PreProcess; there are no sky coordinates defined for the source or from stars; fStars = " << fStars
    295297            << endl;
    296298    }
     
    531533        }
    532534
    533         MSourcePosfromStarPos::SourcefromStar( fDistCameraReflector,
    534                       fDecStar, fRaStar, fDecSource, fRaSource,
    535                       fThetaTel[i],   fPhiTel[i],   
    536                       xStar,          yStar,
    537                       dxStar,         dyStar,
    538                       fxSource,       fySource,
    539                       fdxSource,      fdySource);
     535        SourcefromStar( fDistCameraReflector,
     536                        fDecStar, fRaStar, fDecSource, fRaSource,
     537                        fThetaTel[i],   fPhiTel[i],   
     538                        xStar,          yStar,
     539                        dxStar,         dyStar,
     540                        fxSource,       fySource,
     541                        fdxSource,      fdySource);
    540542     
    541543        fSrcPos->SetXY(fxSource, fySource);
     
    637639
    638640    Int_t fRows = fxStar.GetNrows();
     641    if (fRows <= 0)
     642      fRows = 1;
    639643    fxStar.ResizeTo(fRows, fSize);
    640644    fyStar.ResizeTo(fRows, fSize);
     
    665669   
    666670    Int_t fRows = fxStar.GetNrows();
     671    if (fRows <= 0)
     672      fRows = 1;
    667673    fxStar.ResizeTo(fRows, fSize);
    668674    fyStar.ResizeTo(fRows, fSize);
     
    690696
    691697
     698  while(1)
     699  {
     700    *fIn >> ival;
     701
     702    // run number must be greater than 10000
     703    if (fabs(ival) < 10000)
     704    {
     705      *fLog << err << "===========> Error when reading file with theta and phi <========="
     706            << "             ival = " << ival << endl;
     707    }         
     708    else
     709      break;
     710  } 
     711
    692712  fRuns += 1;
    693 
    694   *fIn >> ival;
    695 
    696 
    697  
    698713  //*fLog << fRuns <<"th run : " << ival << endl; 
    699714
  • trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.h

    r3517 r3531  
    5555
    5656
    57     Double_t fDecSource;
     57    Double_t fDecSource;  // sky coordinates of source
    5858    Double_t fRaSource;
    59     Double_t fxSource;
     59    Double_t fxSource;    // estimated position of source in camera
    6060    Double_t fySource;
    6161    Double_t fdxSource;
    6262    Double_t fdySource;
    6363
    64     TArrayI fRunNr;
    65     TArrayD fThetaTel;
     64    TArrayI fRunNr;       // list of run numbers
     65    TArrayD fThetaTel;    // for each run : theta, phi, ...
    6666    TArrayD fPhiTel;
    6767    TArrayD fdThetaTel;
    6868    TArrayD fdPhiTel;
    6969
    70     TArrayD  fDecStar;
     70    TArrayD  fDecStar;   // sky coordinates of stars
    7171    TArrayD  fRaStar;
    72     TMatrixD fxStar;
     72    TMatrixD fxStar;     // for each run : positions of stars in camera (from DC currents)
    7373    TMatrixD fyStar;
    7474    TMatrixD fdxStar;
    7575    TMatrixD fdyStar;
    7676
    77     Double_t fxSourceold;
     77    Double_t fxSourceold; 
    7878    Double_t fySourceold;
    7979    Double_t fThetaradold;
Note: See TracChangeset for help on using the changeset viewer.