Changeset 3544 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/18/04 13:45:41 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3543 r3544  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2004/03/18: Thomas Bretz
     22 
     23   * manalysis/AnalysisIncl.h:
     24     - added TVector2
     25
     26   * manalysis/MSrcPosCam.[h,cc]:
     27     - added Getter/Setter using TVector2
     28
     29   * mhbase/MH.cc:
     30     - fixed GetMinimumGT for TH2 and TH3
     31
     32   * mpointing/MPointingPos.h:
     33     - added Getter/Setter for Ra/Dec
     34
     35   * mpointing/MPointingPosCalc.cc:
     36     - fill Ra/Dec into MPointingPos
     37
     38
     39
    2140 2004/03/18: Markus Gaug
    2241
    2342   * mimage/MConcentration.cc
    2443     - fixed on flog to fLog in order to compile
     44
     45
    2546
    2647 2004/03/17: Thomas Bretz
  • trunk/MagicSoft/Mars/manalysis/AnalysisIncl.h

    r715 r3544  
    11#ifndef __CINT__
    22
     3#include <TVector2.h>
     4
    35#endif // __CINT__
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc

    r2173 r3544  
    3636#include <fstream>
    3737
     38#include <TVector2.h>
     39
    3840#include "MLog.h"
    3941#include "MLogManip.h"
     
    6466    *fLog << " - x [mm] = " << fX << endl;
    6567    *fLog << " - y [mm] = " << fY << endl;
     68}
     69
     70void MSrcPosCam::SetXY(const TVector2 &v)
     71{
     72    fX = v.X();
     73    fY = v.Y();
     74}
     75
     76TVector2 MSrcPosCam::GetXY() const
     77{
     78    return TVector2(fX, fY);
    6679}
    6780
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.h

    r1477 r3544  
    55#include "MParContainer.h"
    66#endif
     7
     8class TVector2;
    79
    810class MSrcPosCam : public MParContainer
     
    2224    void SetY(Float_t y)             { fY = y; }
    2325    void SetXY(Float_t x, Float_t y) { fX = x; fY = y; }
     26    void SetXY(const TVector2 &v);
    2427
    2528    Float_t GetX() const             { return fX; }
    2629    Float_t GetY() const             { return fY; }
     30    TVector2 GetXY() const;
    2731
    2832    void Print(Option_t *opt=NULL) const;
  • trunk/MagicSoft/Mars/mhbase/MH.cc

    r3156 r3544  
    573573    Double_t min = FLT_MAX;
    574574
    575     const TAxis &axe = *((TH1&)h).GetXaxis();
    576 
    577     for (int i=1; i<=axe.GetNbins(); i++)
    578     {
    579         Double_t x = h.GetBinContent(i);
    580         if (gt<x && x<min)
    581             min = x;
    582     }
     575    const TAxis &axex = *((TH1&)h).GetXaxis();
     576    const TAxis &axey = *((TH1&)h).GetYaxis();
     577    const TAxis &axez = *((TH1&)h).GetZaxis();
     578
     579    for (int iz=1; iz<=axez.GetNbins(); iz++)
     580        for (int iy=1; iy<=axey.GetNbins(); iy++)
     581            for (int ix=1; ix<=axex.GetNbins(); ix++)
     582            {
     583                const Double_t v = h.GetBinContent(h.GetBin(ix, iy, iz));
     584                if (gt<v && v<min)
     585                    min = v;
     586            }
    583587    return min;
    584588}
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.h

    r2601 r3544  
    1212    Double_t fAz;  // [deg] Azimuth
    1313
    14     Double_t fRa;  // [deg] Right ascension
    15     Double_t fHa;  // [deg] Houre angle
    16     Double_t fDec; // [deg] Declination
     14    Double_t fRa;  // [rad] Right ascension
     15    Double_t fHa;  // [rad] Hour angle
     16    Double_t fDec; // [rad] Declination
    1717
    1818public:
     
    2626    void SetSkyPosition(Double_t ra, Double_t dec, Double_t ha=0) { fRa=ra; fDec=dec; fHa=ha; }
    2727
    28     Double_t GetZd() const { return fZd; }
    29     Double_t GetAz() const { return fAz; }
     28    Double_t GetZd() const  { return fZd; }
     29    Double_t GetAz() const  { return fAz; }
     30
     31    Double_t GetRa() const  { return fRa; }
     32    Double_t GetDec() const { return fDec; }
    3033
    3134    ClassDef(MPointingPos, 1) //Container storing the (corrected) telescope pointing position
  • trunk/MagicSoft/Mars/mpointing/MPointingPosCalc.cc

    r3374 r3544  
    134134    case MRawRunHeader::kRTData:
    135135        fPosition->SetLocalPosition(fReport->GetNominalZd(), fReport->GetNominalAz());
     136        fPosition->SetSkyPosition(fReport->GetRa()*TMath::DegToRad()/15, fReport->GetDec()*TMath::DegToRad());
    136137        return kTRUE;
    137138
Note: See TracChangeset for help on using the changeset viewer.