Changeset 2098 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 05/08/03 18:00:03 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r2062 r2098 242 242 Bool_t MHHillas::Fill(const MParContainer *par, const Stat_t w) 243 243 { 244 if (!par) 245 { 246 *fLog << err << "MHHillas::Fill: Pointer (!=NULL) expected." << endl; 247 return kFALSE; 248 } 249 244 250 const MHillas &h = *(MHillas*)par; 245 251 … … 247 253 const Double_t scale = fUseMmScale ? 1 : fMm2Deg; 248 254 249 fLength 250 fWidth 251 fDistC 252 fCenter 253 fDelta 254 fSize 255 fLength->Fill(scale*h.GetLength(), w); 256 fWidth ->Fill(scale*h.GetWidth(), w); 257 fDistC ->Fill(scale*d, w); 258 fCenter->Fill(scale*h.GetMeanX(), scale*h.GetMeanY(), w); 259 fDelta ->Fill(kRad2Deg*h.GetDelta(), w); 260 fSize ->Fill(h.GetSize(), w); 255 261 256 262 return kTRUE; -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r2043 r2098 130 130 Bool_t MHHillasSrc::Fill(const MParContainer *par, const Stat_t w) 131 131 { 132 if (!par) 133 { 134 *fLog << err << "MHHillasSrc::Fill: Pointer (!=NULL) expected." << endl; 135 return kFALSE; 136 } 137 132 138 const MHillasSrc &h = *(MHillasSrc*)par; 133 139 … … 211 217 pad->cd(4); 212 218 gPad->SetBorderMode(0); 213 gPad->SetLogy();219 //gPad->SetLogy(); 214 220 fCosDA->Draw(); 215 221 216 222 pad->Modified(); 217 223 pad->Update(); 224 } 225 226 void MHHillasSrc::Paint(Option_t *opt) 227 { 228 if (fCosDA->GetEntries()==0) 229 return; 230 231 TVirtualPad *savepad = gPad; 232 gPad->cd(4); 233 gPad->SetLogy(); 234 gPad = savepad; 218 235 } 219 236
Note:
See TracChangeset
for help on using the changeset viewer.