- Timestamp:
- 03/01/04 10:59:46 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3364 r3365 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/03/01: Wolfgang Wittek 7 8 * mhist/MHStarMap.[h,cc] 9 - remove bugs 10 - change GetRotationAngle() such that it can be called from outside 11 12 6 13 2004/03/01: Thomas Bretz 7 14 -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r3340 r3365 54 54 #include "MParList.h" 55 55 56 #include "MAstro.h" 56 57 #include "MGeomCam.h" 57 58 #include "MHillas.h" … … 187 188 fCosLat = TMath::Cos(obs->GetPhi()); 188 189 190 *fLog << "fSinLat, fCosLat = " << fSinLat << ", " 191 << fCosLat << endl; 192 189 193 return kTRUE; 190 194 } … … 200 204 // (see TDAS 00-11, eqs. (18) and (20)) 201 205 // 202 void MHStarMap::GetRotationAngle(Double_t &cosal, Double_t &sinal) 203 { 204 const Double_t theta = fMcEvt->GetTelescopeTheta(); 205 const Double_t phi = fMcEvt->GetTelescopePhi(); 206 void MHStarMap::GetRotationAngle(const Double_t &theta, const Double_t &phi, 207 Double_t &cosal, Double_t &sinal) 208 { 206 209 207 210 const Double_t sint = TMath::Sin(theta); … … 216 219 const Double_t denom = 1./ TMath::Sqrt(v1*v1 + v2*v2); 217 220 218 cosal = (fSinLat * sint) + fCosLat * cost * cosp* denom;219 sinal = (fCosLat * sinp)* denom;221 cosal = (fSinLat * sint - fCosLat * cost * cosp) * denom; 222 sinal = fCosLat * sinp * denom; 220 223 } 221 224 … … 261 264 // - and perform a rotation to compensate the rotation of the 262 265 // sky image in the camera 266 267 const Double_t theta = fMcEvt->GetTelescopeTheta(); 268 const Double_t phi = fMcEvt->GetTelescopePhi(); 269 263 270 Double_t cosal; 264 271 Double_t sinal; 265 GetRotationAngle( cosal, sinal);272 GetRotationAngle(theta, phi, cosal, sinal); 266 273 267 274 if (m>-1 && m<1) -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r3340 r3365 30 30 void Paint(Option_t *opt=""); 31 31 32 void GetRotationAngle(Double_t &cosangle, Double_t &sinangle);33 32 34 33 Bool_t SetupFill(const MParList *pList); … … 47 46 TH2F *GetHist() { return fStarMap; } 48 47 48 void GetRotationAngle(const Double_t &thetatel, const Double_t &phitel, 49 Double_t &cosangle, Double_t &sinangle); 50 49 51 void Draw(Option_t *opt=NULL); 50 52 TObject *DrawClone(Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.