Changeset 3544 for trunk/MagicSoft/Mars
- Timestamp:
- 03/18/04 13:45:41 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3543 r3544 19 19 -*-*- END OF LINE -*-*- 20 20 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 21 40 2004/03/18: Markus Gaug 22 41 23 42 * mimage/MConcentration.cc 24 43 - fixed on flog to fLog in order to compile 44 45 25 46 26 47 2004/03/17: Thomas Bretz -
trunk/MagicSoft/Mars/manalysis/AnalysisIncl.h
r715 r3544 1 1 #ifndef __CINT__ 2 2 3 #include <TVector2.h> 4 3 5 #endif // __CINT__ -
trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc
r2173 r3544 36 36 #include <fstream> 37 37 38 #include <TVector2.h> 39 38 40 #include "MLog.h" 39 41 #include "MLogManip.h" … … 64 66 *fLog << " - x [mm] = " << fX << endl; 65 67 *fLog << " - y [mm] = " << fY << endl; 68 } 69 70 void MSrcPosCam::SetXY(const TVector2 &v) 71 { 72 fX = v.X(); 73 fY = v.Y(); 74 } 75 76 TVector2 MSrcPosCam::GetXY() const 77 { 78 return TVector2(fX, fY); 66 79 } 67 80 -
trunk/MagicSoft/Mars/manalysis/MSrcPosCam.h
r1477 r3544 5 5 #include "MParContainer.h" 6 6 #endif 7 8 class TVector2; 7 9 8 10 class MSrcPosCam : public MParContainer … … 22 24 void SetY(Float_t y) { fY = y; } 23 25 void SetXY(Float_t x, Float_t y) { fX = x; fY = y; } 26 void SetXY(const TVector2 &v); 24 27 25 28 Float_t GetX() const { return fX; } 26 29 Float_t GetY() const { return fY; } 30 TVector2 GetXY() const; 27 31 28 32 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mhbase/MH.cc
r3156 r3544 573 573 Double_t min = FLT_MAX; 574 574 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 } 583 587 return min; 584 588 } -
trunk/MagicSoft/Mars/mpointing/MPointingPos.h
r2601 r3544 12 12 Double_t fAz; // [deg] Azimuth 13 13 14 Double_t fRa; // [ deg] Right ascension15 Double_t fHa; // [ deg] Houreangle16 Double_t fDec; // [ deg] Declination14 Double_t fRa; // [rad] Right ascension 15 Double_t fHa; // [rad] Hour angle 16 Double_t fDec; // [rad] Declination 17 17 18 18 public: … … 26 26 void SetSkyPosition(Double_t ra, Double_t dec, Double_t ha=0) { fRa=ra; fDec=dec; fHa=ha; } 27 27 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; } 30 33 31 34 ClassDef(MPointingPos, 1) //Container storing the (corrected) telescope pointing position -
trunk/MagicSoft/Mars/mpointing/MPointingPosCalc.cc
r3374 r3544 134 134 case MRawRunHeader::kRTData: 135 135 fPosition->SetLocalPosition(fReport->GetNominalZd(), fReport->GetNominalAz()); 136 fPosition->SetSkyPosition(fReport->GetRa()*TMath::DegToRad()/15, fReport->GetDec()*TMath::DegToRad()); 136 137 return kTRUE; 137 138
Note:
See TracChangeset
for help on using the changeset viewer.