Changeset 1237 for trunk/MagicSoft
- Timestamp:
- 03/08/02 15:35:50 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1235 r1237 1 1 -*-*- END -*-*- 2 3 2002/03/07: Thomas Bretz 4 5 * manalysis/MHillasSrc.[h,cc]: 6 - added fHeadTail 7 - changed version number to 2. 8 9 2 10 3 11 2002/03/07: Thomas Bretz -
trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc
r1218 r1237 69 69 const Double_t sy = my - fSrcPos->GetY(); // [mm] 70 70 71 const Double_t tand = tan(hillas->GetDelta()); // [1] 71 const Double_t sd = sin(hillas->GetDelta()); // [1] 72 const Double_t cd = cos(hillas->GetDelta()); // [1] 72 73 73 fDist = sqrt(sx*sx + sy*sy); // [mm]74 fAlpha = atan2(sy - tand*sx, sx + tand*sy); // [rad]75 fAlpha *= kRad2Deg; // [deg]76 74 77 fHillas = hillas; 75 fHeadTail = cd*sx + sd*sy; // [mm] 76 fDist = sqrt(sx*sx + sy*sy); // [mm] 77 fAlpha = atan2(cd*sy - sd*sx, fHeadTail); // [rad] 78 fAlpha *= kRad2Deg; // [deg] 79 80 fHillas = hillas; 78 81 79 82 SetReadyToSave(); … … 84 87 *fLog << all; 85 88 *fLog << "Source dependant Image Parameters (" << GetName() << ")" << endl; 86 *fLog << " - Dist = " << fDist << " mm" << endl; 87 *fLog << " - Alpha = " << fAlpha << " deg" << endl; 89 *fLog << " - Dist = " << fDist << " mm" << endl; 90 *fLog << " - Alpha = " << fAlpha << " deg" << endl; 91 *fLog << " - HeadTail = " << fHeadTail << " mm" << endl; 88 92 } 89 93 … … 96 100 fin >> fAlpha; 97 101 fin >> fDist; 102 fin >> fHeadTail; 98 103 } 99 104 -
trunk/MagicSoft/Mars/manalysis/MHillasSrc.h
r1218 r1237 14 14 const MSrcPosCam *fSrcPos; //! Source position in the camere 15 15 16 Float_t fAlpha; // [deg] angle of major axis with vector to src 17 Float_t fDist; // [mm] distance from src to center of ellipse 16 Float_t fAlpha; // [deg] angle of major axis with vector to src 17 Float_t fDist; // [mm] distance from src to center of ellipse 18 Float_t fHeadTail; // [mm] 18 19 19 20 public: … … 23 24 const MSrcPosCam *GetSrcPos() const { return fSrcPos; } 24 25 25 Float_t GetLength() const { return fHillas->GetLength(); } 26 Float_t GetWidth() const { return fHillas->GetWidth(); } 27 Float_t GetDelta() const { return fHillas->GetDelta(); } 28 Float_t GetSize() const { return fHillas->GetSize(); } 29 Float_t GetMeanX() const { return fHillas->GetMeanX(); } 30 Float_t GetMeanY() const { return fHillas->GetMeanY(); } 31 Float_t GetAlpha() const { return fAlpha; } 32 Float_t GetDist() const { return fDist; } 26 Float_t GetLength() const { return fHillas->GetLength(); } 27 Float_t GetWidth() const { return fHillas->GetWidth(); } 28 Float_t GetDelta() const { return fHillas->GetDelta(); } 29 Float_t GetSize() const { return fHillas->GetSize(); } 30 Float_t GetMeanX() const { return fHillas->GetMeanX(); } 31 Float_t GetMeanY() const { return fHillas->GetMeanY(); } 32 Float_t GetAlpha() const { return fAlpha; } 33 Float_t GetDist() const { return fDist; } 34 Float_t GetHeadTail() const { return fHeadTail; } 33 35 34 36 void Print(Option_t *opt=NULL) const; … … 39 41 //virtual void AsciiWrite(ofstream &fout) const; 40 42 41 ClassDef(MHillasSrc, 1) // Container to hold source position dependant parameters43 ClassDef(MHillasSrc, 2) // Container to hold source position dependant parameters 42 44 }; 43 45 46 /* 47 Version 1: fAlpha, fDist 48 Version 2: fAlpha, fDist, fSign 49 */ 50 44 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.