Changeset 7176 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 07/08/05 11:46:47 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r6869 r7176 64 64 65 65 #include <TArrayF.h> 66 #include <TMarker.h> 67 #include <TVirtualPad.h> 66 68 67 69 #include "MGeomPix.h" … … 218 220 *fLog << all; 219 221 *fLog << GetDescriptor() << endl; 220 *fLog << " - Asymmetry 222 *fLog << " - Asymmetry [mm] = " << fAsym << endl; 221 223 *fLog << " - 3.Moment Long [mm] = " << fM3Long << endl; 222 224 *fLog << " - 3.Moment Trans [mm] = " << fM3Trans << endl; … … 233 235 *fLog << all; 234 236 *fLog << GetDescriptor() << endl; 235 *fLog << " - Asymmetry 237 *fLog << " - Asymmetry [deg] = " << fAsym *geom.GetConvMm2Deg() << endl; 236 238 *fLog << " - 3.Moment Long [deg] = " << fM3Long *geom.GetConvMm2Deg() << endl; 237 239 *fLog << " - 3.Moment Trans [deg] = " << fM3Trans*geom.GetConvMm2Deg() << endl; 238 240 *fLog << " - Max.Dist [deg] = " << fMaxDist*geom.GetConvMm2Deg() << endl; 239 241 } 242 243 // ------------------------------------------------------------------------- 244 // 245 // Paint the 3rd moment on top of the shower. Therefor "MHillas" is needed. 246 // it is searched via gPad->FindObject. If opt is not IsNull an object with 247 // the name opt is searched. 248 // 249 void MHillasExt::Paint(Option_t *opt) 250 { 251 const TString name(opt); 252 253 const MHillas *hil = dynamic_cast<const MHillas*>(gPad->FindObject(name.IsNull() ? "MHillas" : name)); 254 if (!hil) 255 return; 256 257 TVector2 v(fM3Long, fM3Trans); 258 v = v.Rotate(hil->GetDelta()+TMath::Pi()); 259 v += hil->GetMean(); 260 261 TMarker m; 262 m.SetMarkerColor(15); 263 m.SetMarkerStyle(kFullDotLarge); 264 m.PaintMarker(v.X(), v.Y()); 265 } -
trunk/MagicSoft/Mars/mimage/MHillasExt.h
r6855 r7176 39 39 void Print(const MGeomCam &geom) const; 40 40 41 void Paint(Option_t *o=""); 42 41 43 void Set(const TArrayF &arr); 42 44 -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r6869 r7176 228 228 *fLog << all; 229 229 *fLog << GetDescriptor() << endl; 230 *fLog << " - Leakage1 [1] = " << fLeakage1<< endl;231 *fLog << " - Leakage2 [1] = " << fLeakage2<< endl;232 *fLog << " - InnerLeakage1 [1] = " << fInnerLeakage1<< endl;233 *fLog << " - InnerLeakage2 [1] = " << fInnerLeakage2<< endl;234 *fLog << " - InnerSize [ #] = " << fInnerSize << " CerPhot"<< endl;235 *fLog << " - Conc [1] = " << fConc << " (ratio)"<< endl;236 *fLog << " - Conc1 [1] = " << fConc1 << " (ratio)"<< endl;237 *fLog << " - Used Pixels [#] = " << fNumUsedPixels << " Pixels"<< endl;238 *fLog << " - Core Pixels [#] = " << fNumCorePixels << " Pixels"<< endl;239 *fLog << " - Used Area [mm^2] = " << fUsedArea 240 *fLog << " - Core Area [mm^2] = " << fCoreArea 230 *fLog << " - Leakage1 [1] = " << fLeakage1 << endl; 231 *fLog << " - Leakage2 [1] = " << fLeakage2 << endl; 232 *fLog << " - InnerLeakage1 [1] = " << fInnerLeakage1 << endl; 233 *fLog << " - InnerLeakage2 [1] = " << fInnerLeakage2 << endl; 234 *fLog << " - InnerSize [phe] = " << fInnerSize << endl; 235 *fLog << " - Conc [1] = " << fConc << endl; 236 *fLog << " - Conc1 [1] = " << fConc1 << endl; 237 *fLog << " - Num Used Pixels [#] = " << fNumUsedPixels << endl; 238 *fLog << " - Num Core Pixels [#] = " << fNumCorePixels << endl; 239 *fLog << " - Used Area [mm^2] = " << fUsedArea << endl; 240 *fLog << " - Core Area [mm^2] = " << fCoreArea << endl; 241 241 } 242 242 … … 250 250 *fLog << all; 251 251 *fLog << GetDescriptor() << endl; 252 *fLog << " - Leakage1 [1] = " << fLeakage1<< endl;253 *fLog << " - Leakage2 [1] = " << fLeakage2<< endl;254 *fLog << " - InnerLeakage1 [1] = " << fInnerLeakage1<< endl;255 *fLog << " - InnerLeakage2 [1] = " << fInnerLeakage2<< endl;256 *fLog << " - InnerSize [ #] = " << fInnerSize << " CerPhot"<< endl;257 *fLog << " - Conc [1] = " << fConc << " (ratio)"<< endl;258 *fLog << " - Conc1 [1] = " << fConc1 << " (ratio)"<< endl;259 *fLog << " - Used Pixels [#] = " << fNumUsedPixels << " Pixels"<< endl;260 *fLog << " - Core Pixels [#] = " << fNumCorePixels << " Pixels"<< endl;252 *fLog << " - Leakage1 [1] = " << fLeakage1 << endl; 253 *fLog << " - Leakage2 [1] = " << fLeakage2 << endl; 254 *fLog << " - InnerLeakage1 [1] = " << fInnerLeakage1 << endl; 255 *fLog << " - InnerLeakage2 [1] = " << fInnerLeakage2 << endl; 256 *fLog << " - InnerSize [phe] = " << fInnerSize << endl; 257 *fLog << " - Conc [1] = " << fConc << endl; 258 *fLog << " - Conc1 [1] = " << fConc1 << endl; 259 *fLog << " - Num Used Pixels [#] = " << fNumUsedPixels << endl; 260 *fLog << " - Num Core Pixels [#] = " << fNumCorePixels << endl; 261 261 *fLog << " - Used Area [deg^2] = " << fUsedArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl; 262 262 *fLog << " - Core Area [deg^2] = " << fCoreArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl;
Note:
See TracChangeset
for help on using the changeset viewer.