Changeset 1218 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 02/21/02 12:08:03 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r1211 r1218 36 36 // fDelta angle of major axis wrt x-axis 37 37 // fSize total sum of pixels 38 // fMean xx of center of ellipse39 // fMean yy of center of ellipse38 // fMeanX x of center of ellipse 39 // fMeanY y of center of ellipse 40 40 // 41 41 ///////////////////////////////////////////////////////////////////////////// … … 89 89 fDelta = 0; 90 90 fSize = 0; 91 fMean x= 0;92 fMean y= 0;91 fMeanX = 0; 92 fMeanY = 0; 93 93 94 94 Clear(); … … 101 101 void MHillas::Print(Option_t *) const 102 102 { 103 Double_t atg = atan2(fMean y, fMeanx)*kRad2Deg;103 Double_t atg = atan2(fMeanY, fMeanX)*kRad2Deg; 104 104 105 105 if (atg<0) … … 110 110 *fLog << " - Length [mm] = " << fLength << endl; 111 111 *fLog << " - Width [mm] = " << fWidth << endl; 112 *fLog << " - Meanx [mm] = " << fMean x<< endl;113 *fLog << " - Meany [mm] = " << fMean y<< endl;112 *fLog << " - Meanx [mm] = " << fMeanX << endl; 113 *fLog << " - Meany [mm] = " << fMeanY << endl; 114 114 *fLog << " - Delta [deg] = " << fDelta*kRad2Deg << endl; 115 115 *fLog << " - atg(y/x) [deg] = " << atg << endl; … … 125 125 { 126 126 fEllipse->SetLineWidth(2); 127 fEllipse->PaintEllipse(fMean x, fMeany, fLength, fWidth,127 fEllipse->PaintEllipse(fMeanX, fMeanY, fLength, fWidth, 128 128 0, 360, fDelta*kRad2Deg+180); 129 129 } … … 143 143 Clear(); 144 144 145 fEllipse = new TEllipse(fMean x, fMeany, fLength, fWidth,145 fEllipse = new TEllipse(fMeanX, fMeanY, fLength, fWidth, 146 146 0, 360, fDelta*kRad2Deg+180); 147 147 … … 155 155 fEllipse->SetR2(fWidth); 156 156 fEllipse->SetTheta(fDelta*kRad2Deg+180); 157 fEllipse->SetX1(fMean x);158 fEllipse->SetY1(fMean y);157 fEllipse->SetX1(fMeanX); 158 fEllipse->SetY1(fMeanY); 159 159 160 160 fEllipse->SetLineWidth(2); 161 fEllipse->PaintEllipse(fMean x, fMeany, fLength, fWidth,161 fEllipse->PaintEllipse(fMeanX, fMeanY, fLength, fWidth, 162 162 0, 360, fDelta*kRad2Deg+180); 163 163 … … 216 216 // ----------------------------------------------------- 217 217 // 218 fMean x= 0;219 fMean y= 0;218 fMeanX = 0; 219 fMeanY = 0; 220 220 fSize = 0; 221 221 … … 236 236 237 237 fSize += nphot; // [counter] 238 fMean x+= nphot * gpix.GetX(); // [mm]239 fMean y+= nphot * gpix.GetY(); // [mm]238 fMeanX += nphot * gpix.GetX(); // [mm] 239 fMeanY += nphot * gpix.GetY(); // [mm] 240 240 241 241 npix++; … … 248 248 return kFALSE; 249 249 250 fMean x/= fSize; // [mm]251 fMean y/= fSize; // [mm]250 fMeanX /= fSize; // [mm] 251 fMeanY /= fSize; // [mm] 252 252 253 253 // … … 267 267 268 268 const MGeomPix &gpix = geom[pix.GetPixId()]; 269 const float dx = gpix.GetX() - fMean x; // [mm]270 const float dy = gpix.GetY() - fMean y; // [mm]269 const float dx = gpix.GetX() - fMeanX; // [mm] 270 const float dy = gpix.GetY() - fMeanY; // [mm] 271 271 272 272 const float nphot = pix.GetNumPhotons(); // [#phot] … … 311 311 fin >> fDelta; 312 312 fin >> fSize; 313 fin >> fMean x;314 fin >> fMean y;315 } 316 317 // -------------------------------------------------------------------------- 318 / /313 fin >> fMeanX; 314 fin >> fMeanY; 315 } 316 317 // -------------------------------------------------------------------------- 318 /* 319 319 void MHillas::AsciiWrite(ofstream &fout) const 320 320 { … … 323 323 fout << fDelta << " "; 324 324 fout << fSize << " "; 325 fout << fMeanx << " "; 326 fout << fMeany; 327 } 325 fout << fMeanX << " "; 326 fout << fMeanY; 327 } 328 */ -
trunk/MagicSoft/Mars/manalysis/MHillas.h
r1203 r1218 19 19 Float_t fDelta; // [rad] angle of major axis with x-axis 20 20 Float_t fSize; // [#CerPhot] sum of content of all pixels (number of Cherenkov photons) 21 Float_t fMean x; // [mm] x-coordinate of center of ellipse22 Float_t fMean y; // [mm] y-coordinate of center of ellipse21 Float_t fMeanX; // [mm] x-coordinate of center of ellipse 22 Float_t fMeanY; // [mm] y-coordinate of center of ellipse 23 23 24 24 Float_t fSinDelta; //! [1] sin of Delta (to be used in derived classes) … … 53 53 Float_t GetDelta() const { return fDelta; } 54 54 Float_t GetSize() const { return fSize; } 55 Float_t GetMeanX() const { return fMean x; }56 Float_t GetMeanY() const { return fMean y; }55 Float_t GetMeanX() const { return fMeanX; } 56 Float_t GetMeanY() const { return fMeanY; } 57 57 58 58 virtual void AsciiRead(ifstream &fin); 59 virtual void AsciiWrite(ofstream &fout) const;59 //virtual void AsciiWrite(ofstream &fout) const; 60 60 61 61 ClassDef(MHillas, 1) // Storage Container for Hillas Parameter -
trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc
r1211 r1218 101 101 // 102 102 // overloaded MParContainer to write MHillasSrc to an ascii file 103 / /103 /* 104 104 void MHillasSrc::AsciiWrite(ofstream &fout) const 105 105 { 106 106 fout << fAlpha << " " << fDist; 107 107 } 108 */ -
trunk/MagicSoft/Mars/manalysis/MHillasSrc.h
r1203 r1218 37 37 38 38 virtual void AsciiRead(ifstream &fin); 39 virtual void AsciiWrite(ofstream &fout) const;39 //virtual void AsciiWrite(ofstream &fout) const; 40 40 41 41 ClassDef(MHillasSrc, 1) // Container to hold source position dependant parameters
Note:
See TracChangeset
for help on using the changeset viewer.