Changeset 9369 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 03/01/09 21:54:27 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillas.cc
r8911 r9369 291 291 continue; 292 292 293 const MGeom Pix&gpix = geom[i];293 const MGeom &gpix = geom[i]; 294 294 295 295 const Float_t nphot = pix.GetNumPhotons(); … … 339 339 continue; 340 340 341 const MGeom Pix&gpix = geom[i];341 const MGeom &gpix = geom[i]; 342 342 343 343 const Float_t dx = gpix.GetX() - fMeanX; // [mm] -
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r8619 r9369 161 161 continue; 162 162 163 const MGeom Pix&gpix = geom[i];163 const MGeom &gpix = geom[i]; 164 164 165 165 const Double_t x = gpix.GetX(); … … 238 238 // Asymmetry 239 239 // 240 const MGeom Pix&maxp = geom[maxpixid];240 const MGeom &maxp = geom[maxpixid]; 241 241 fAsym = (hil.GetMeanX()-maxp.GetX())*c + (hil.GetMeanY()-maxp.GetY())*s; // [mm] 242 242 -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r9352 r9369 395 395 // 396 396 // 397 Bool_t MImgCleanStd::HasCoreNeighbors(const MGeom Pix&gpix) const397 Bool_t MImgCleanStd::HasCoreNeighbors(const MGeom &gpix) const 398 398 { 399 399 // if (fKeepIsolatedPixels) … … 428 428 } 429 429 430 Bool_t MImgCleanStd::HasUsedNeighbors(const MGeom Pix&gpix) const430 Bool_t MImgCleanStd::HasUsedNeighbors(const MGeom &gpix) const 431 431 { 432 432 //loop on the neighbors to check if they are used … … 448 448 449 449 450 void MImgCleanStd::SetUsedNeighbors(const MGeom Pix&gpix, Int_t r) const450 void MImgCleanStd::SetUsedNeighbors(const MGeom &gpix, Int_t r) const 451 451 { 452 452 if (r>fCleanRings) … … 527 527 continue; 528 528 529 const MGeom Pix&gpix = (*fCam)[idx];529 const MGeom &gpix = (*fCam)[idx]; 530 530 531 531 // Check if the pixel is an isolated core pixel … … 556 556 557 557 /* 558 Float_t MImgCleanStd::GetArrivalTimeNeighbor(const MGeom Pix&gpix) const558 Float_t MImgCleanStd::GetArrivalTimeNeighbor(const MGeom &gpix) const 559 559 { 560 560 Float_t min = FLT_MAX; … … 595 595 continue; 596 596 597 const MGeom Pix&gpix = (*fCam)[idx];597 const MGeom &gpix = (*fCam)[idx]; 598 598 599 599 // If isolated possible-corepixel doesn't have used … … 638 638 continue; 639 639 640 const MGeom Pix&gpix = (*fCam)[idx];640 const MGeom &gpix = (*fCam)[idx]; 641 641 642 642 // If isolated possible-corepixel doesn't have used … … 676 676 677 677 // loop over its neighbpors 678 const MGeom Pix&gpix = (*fCam)[idx];678 const MGeom &gpix = (*fCam)[idx]; 679 679 680 680 Int_t cnt = 0; -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.h
r8765 r9369 7 7 8 8 class MGeomCam; 9 class MGeom Pix;9 class MGeom; 10 10 class MSignalCam; 11 11 class MPedPhotCam; … … 58 58 59 59 // MImgCleanStd 60 Bool_t HasCoreNeighbors(const MGeom Pix&gpix) const;61 Bool_t HasUsedNeighbors(const MGeom Pix&gpix) const;62 void SetUsedNeighbors(const MGeom Pix&gpix, Int_t r=1) const;60 Bool_t HasCoreNeighbors(const MGeom &gpix) const; 61 Bool_t HasUsedNeighbors(const MGeom &gpix) const; 62 void SetUsedNeighbors(const MGeom &gpix, Int_t r=1) const; 63 63 Int_t DoCleaning(Float_t &size) const; 64 64 void ResetCleaning() const; -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r8958 r9369 160 160 161 161 // Get geometry of pixel 162 const MGeom Pix&gpix = geom[i];162 const MGeom &gpix = geom[i]; 163 163 164 164 // Find the three pixels which are next to the COG … … 220 220 const Double_t dzx = hillas.GetCosDelta()*dx + hillas.GetSinDelta()*dy; // [mm] 221 221 const Double_t dzy = -hillas.GetSinDelta()*dx + hillas.GetCosDelta()*dy; // [mm] 222 const Double_t dz = gpix.Get D()*gpix.GetD()/4;222 const Double_t dz = gpix.GetT()*gpix.GetT()/4; 223 223 const Double_t tana = dzy*dzy/(dzx*dzx); 224 224 const Double_t distr = (1+tana)/(rl + tana*rw); -
trunk/MagicSoft/Mars/mimage/MNewImagePar2.cc
r8106 r9369 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MNewImagePar2.cc,v 1. 2 2006-10-17 17:16:00tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MNewImagePar2.cc,v 1.3 2009-03-01 21:48:14 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 91 91 Int_t used=0; 92 92 93 const MGeom Pix&gpix = geom[i];93 const MGeom &gpix = geom[i]; 94 94 const Int_t nn = gpix.GetNumNeighbors(); 95 95 for (int j=0; j<nn; j++) … … 108 108 evt[i].ResetBit(BIT(14)); 109 109 110 fBorderLinePixel += (nn-used)*gpix.GetL(); 110 // FIXME: GetT is not the correct value 111 fBorderLinePixel += (nn-used)*gpix.GetT(); 111 112 } 112 113 … … 115 116 const Int_t l = idx[m]; 116 117 117 const MGeom Pix&gpix = geom[l];118 const MGeom &gpix = geom[l]; 118 119 119 120 const Int_t nn = gpix.GetNumNeighbors();
Note:
See TracChangeset
for help on using the changeset viewer.