Changeset 2173 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 06/13/03 16:42:37 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MCameraSmooth.cc
r1940 r2173 46 46 47 47 ClassImp(MCameraSmooth); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r2098 r2173 53 53 ClassImp(MHHillas); 54 54 55 using namespace std; 56 55 57 // -------------------------------------------------------------------------- 56 58 // -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r2084 r2173 52 52 ClassImp(MHHillasExt); 53 53 54 using namespace std; 55 54 56 // -------------------------------------------------------------------------- 55 57 // -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r2117 r2173 50 50 ClassImp(MHHillasSrc); 51 51 52 using namespace std; 53 52 54 // -------------------------------------------------------------------------- 53 55 // -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r2142 r2173 48 48 49 49 ClassImp(MHNewImagePar); 50 51 using namespace std; 50 52 51 53 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHillas.cc
r2026 r2173 60 60 #include "MHillas.h" 61 61 62 #include <fstream .h>62 #include <fstream> 63 63 64 64 #include <TArrayF.h> … … 75 75 76 76 ClassImp(MHillas); 77 78 using namespace std; 77 79 78 80 // -------------------------------------------------------------------------- … … 111 113 112 114 fSize = -1; 113 fMeanX = -1;114 fMeanY = -1;115 fMeanX = 0; 116 fMeanY = 0; 115 117 116 118 Clear(); -
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r2100 r2173 68 68 69 69 ClassImp(MHillasCalc); 70 71 using namespace std; 70 72 71 73 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r2092 r2173 59 59 #include "MHillasExt.h" 60 60 61 #include <fstream .h>61 #include <fstream> 62 62 #include <TArrayF.h> 63 63 … … 74 74 75 75 ClassImp(MHillasExt); 76 77 using namespace std; 76 78 77 79 // ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHillasSrc.cc
r2026 r2173 63 63 #include "MHillasSrc.h" 64 64 65 #include <fstream .h>65 #include <fstream> 66 66 #include <TArrayF.h> 67 67 … … 72 72 73 73 ClassImp(MHillasSrc); 74 75 using namespace std; 74 76 75 77 // -------------------------------------------------------------------------- … … 98 100 Bool_t MHillasSrc::Calc(const MHillas *hillas) 99 101 { 100 const Double_t mx = hillas->GetMeanX();// [mm]101 const Double_t my = hillas->GetMeanY();// [mm]102 const Double_t mx = hillas->GetMeanX(); // [mm] 103 const Double_t my = hillas->GetMeanY(); // [mm] 102 104 103 const Double_t sx = mx - fSrcPos->GetX();// [mm]104 const Double_t sy = my - fSrcPos->GetY();// [mm]105 const Double_t sx = mx - fSrcPos->GetX(); // [mm] 106 const Double_t sy = my - fSrcPos->GetY(); // [mm] 105 107 106 const Double_t sd = hillas->GetSinDelta();// [1]107 const Double_t cd = hillas->GetCosDelta();// [1]108 const Double_t sd = hillas->GetSinDelta(); // [1] 109 const Double_t cd = hillas->GetCosDelta(); // [1] 108 110 109 111 // … … 112 114 // The calculation has failed and returnes kFALSE. 113 115 // 114 const Double_t dist = sqrt(sx*sx + sy*sy); 116 const Double_t dist = sqrt(sx*sx + sy*sy); // [mm] 115 117 if (dist==0) 116 118 return kFALSE; … … 124 126 // *OLD* fAlpha = asin(arg)*kRad2Deg; 125 127 126 const Double_t arg1 = cd*sy-sd*sx; 127 const Double_t arg2 = cd*sx+sd*sy; 128 const Double_t arg1 = cd*sy-sd*sx; // [mm] 129 const Double_t arg2 = cd*sx+sd*sy; // [mm] 128 130 129 fAlpha = asin(arg1/dist)*kRad2Deg; 130 fCosDeltaAlpha = arg2/dist; 131 fDist = dist; 131 fAlpha = asin(arg1/dist)*kRad2Deg; // [deg] 132 fCosDeltaAlpha = arg2/dist; // [1] 133 fDist = dist; // [mm] 132 134 133 135 SetReadyToSave(); -
trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc
r2161 r2173 33 33 #include "MHillasSrcCalc.h" 34 34 35 #include <fstream .h>35 #include <fstream> 36 36 37 37 #include "MParList.h" … … 44 44 45 45 ClassImp(MHillasSrcCalc); 46 47 using namespace std; 46 48 47 49 static const TString gsDefName = "MHillasSrcCalc"; -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r2099 r2173 253 253 254 254 #include <stdlib.h> // atof 255 #include <fstream .h>// ofstream, SavePrimitive255 #include <fstream> // ofstream, SavePrimitive 256 256 257 257 #include <TGFrame.h> // TGFrame … … 272 272 273 273 ClassImp(MImgCleanStd); 274 275 using namespace std; 274 276 275 277 enum { -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r2092 r2173 35 35 #include "MNewImagePar.h" 36 36 37 #include <fstream .h>37 #include <fstream> 38 38 39 39 #include "MLog.h" … … 49 49 50 50 ClassImp(MNewImagePar); 51 52 using namespace std; 51 53 52 54 // --------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.