Changeset 10281
- Timestamp:
- 04/04/11 10:08:59 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r10235 r10281 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2011/04/04 Thomas Bretz 22 23 * mreport/MReportFileRead.cc: 24 - added a missing delete 25 26 * mhflux/MHEnergyEst.cc, mhist/MHCamera.cc: 27 - fixed some crashes with newer root versiony in which 28 GetFunction("gaus") after an unsuccessfull fit might return 29 NULL 30 31 * mastro/MAstroCatalog.cc: 32 - added the missing marker color for the dot 33 34 * mpointing/MPointingDevCalc.cc: 35 - added some comments 36 37 * mmain/MEventDisplay.cc: 38 - renamed some local variables to avoid using the same name twice 39 40 * mgeom/MGeomCam.cc: 41 - for convenience a margin of 0 in HitFrame is allowed to 42 switch off the detection also with 0 43 44 * mbase/MThread.h: 45 - added missing argument to call of fThread.Run() 46 47 20 48 21 49 2011/03/10 Thomas Bretz … … 44 72 45 73 46 2011/02/21 Daniela Dorner74 2011/02/21 Thomas Bretz 47 75 48 76 * mcalib/MCalibrateData.cc mcalib/MCalibrationBlindPix.cc -
trunk/Mars/mastro/MAstroCatalog.cc
r9518 r10281 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.34 2009-10-26 14:31:17 tbretz Exp $3 ! --------------------------------------------------------------------------4 2 ! 5 3 ! * … … 865 863 // draw star on the camera display 866 864 TMarker *tip=new TMarker(x, y, kDot); 865 tip->SetMarkerColor(col); 866 867 867 TAttMarker::Copy(*tip); 868 868 … … 1471 1471 // Handle keyboard events. 1472 1472 // 1473 void MAstroCatalog::ExecuteEventKbd(Int_t keycode, Int_t keysym)1473 void MAstroCatalog::ExecuteEventKbd(Int_t /*keycode*/, Int_t keysym) 1474 1474 { 1475 1475 Double_t dra =0; -
trunk/Mars/mgeom/MGeomCam.cc
r10090 r10281 432 432 Bool_t MGeomCam::HitFrame(MQuaternion p, const MQuaternion &u, Double_t margin) const 433 433 { 434 if (margin< =0)434 if (margin<0) 435 435 return HitFrame(p, u); 436 436 -
trunk/Mars/mhflux/MHEnergyEst.cc
r9851 r10281 254 254 *fLog << " RMS of Delta E/E: " << Form("%4.2f%%", 100*h->GetRMS()) << endl; 255 255 *fLog << "Results from Histogram-Fit:" << endl; 256 *fLog << " Bias of Delta E/E: " << Form("%+4.2f%%", 100*f->GetParameter(1)) << endl; 257 *fLog << " Sigma of Delta E/E: " << Form("%4.2f%%", 100*f->GetParameter(2)) << endl; 258 *fLog << " Res of Delta E/E: " << Form("%4.2f%%", 100*TMath::Hypot(f->GetParameter(1), f->GetParameter(2))) << endl; 256 if (!f) 257 *fLog << " <fit did not succeed>" << endl; 258 else 259 { 260 *fLog << " Bias of Delta E/E: " << Form("%+4.2f%%", 100*f->GetParameter(1)) << endl; 261 *fLog << " Sigma of Delta E/E: " << Form("%4.2f%%", 100*f->GetParameter(2)) << endl; 262 *fLog << " Res of Delta E/E: " << Form("%4.2f%%", 100*TMath::Hypot(f->GetParameter(1), f->GetParameter(2))) << endl; 263 } 259 264 260 265 delete h; … … 341 346 } 342 347 343 hx->Fit("gaus", "Q", "", -0.25, 1.0); 344 hx->GetFunction("gaus")->SetLineColor(kBlue); 345 hx->GetFunction("gaus")->SetLineWidth(2); 346 gPad=NULL; 347 gStyle->SetOptFit(101); 348 if (hx->GetEntries()>0) 349 { 350 hx->Fit("gaus", "Q", "", -0.25, 1.0); 351 if (hx->GetFunction("gaus")) 352 { 353 hx->GetFunction("gaus")->SetLineColor(kBlue); 354 hx->GetFunction("gaus")->SetLineWidth(2); 355 gPad=NULL; 356 gStyle->SetOptFit(101); 357 } 358 } 348 359 } 349 360 } -
trunk/Mars/mhist/MHCamera.cc
r10166 r10281 2323 2323 case 4: 2324 2324 obj2->Fit("pol0", "Q"); 2325 obj2->GetFunction("pol0")->SetLineColor(kBlue); 2325 if (obj2->GetFunction("pol0")) 2326 obj2->GetFunction("pol0")->SetLineColor(kBlue); 2326 2327 break; 2327 2328 … … 2331 2332 default: 2332 2333 obj2->Fit("gaus", "Q"); 2333 obj2->GetFunction("gaus")->SetLineColor(kBlue); 2334 if (obj2->GetFunction("gaus")) 2335 obj2->GetFunction("gaus")->SetLineColor(kBlue); 2334 2336 break; 2335 2337 } … … 2402 2404 obj2->SetBit(kCanDelete); 2403 2405 obj2->Fit("pol0","Q",""); 2404 obj2->GetFunction("pol0")->SetLineWidth(1); 2406 if (obj2->GetFunction("pol0")) 2407 obj2->GetFunction("pol0")->SetLineWidth(1); 2405 2408 /* 2406 2409 if (GetGeomCam().InheritsFrom("MGeomCamMagic")) -
trunk/Mars/mmain/MEventDisplay.cc
r9347 r10281 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.70 2009-02-18 12:06:39 tbretz Exp $3 ! --------------------------------------------------------------------------4 2 ! 5 3 ! * … … 361 359 MMcPedestalNSBAdd *pdnsb = new MMcPedestalNSBAdd; 362 360 363 MCalibrationPatternDecode * decode = new MCalibrationPatternDecode;361 MCalibrationPatternDecode *patdecode = new MCalibrationPatternDecode; 364 362 365 363 MPedestalSubtract *pedsub1 = new MPedestalSubtract("PedSubstract1"); … … 385 383 tlist->AddToList(pdnsb); 386 384 387 tlist->AddToList( decode);385 tlist->AddToList(patdecode); 388 386 389 387 tlist->AddToList(pedsub1); // Produce arrays -
trunk/Mars/mpointing/MPointingDevCalc.cc
r10091 r10281 301 301 // model. However, M2 shows a slight offset. 302 302 // 303 // [2010-11-11 M. Garcz.] 304 // 305 // Last night, TPoints for M2 taken without target 306 // 303 307 // [2010-11-18 M. Garcz.] 304 308 // -
trunk/Mars/mreport/MReportFileRead.cc
r8963 r10281 114 114 // -------------------------------------------------------------------------- 115 115 // 116 // Add a new MReport* to the list (eg 'Drive' will addMReportDrive)116 // Add a new MReport* to the list. The name is the class name (eg MReportDrive) 117 117 // For convinience the object is created as a MReportHelp object. 118 118 // … … 122 122 123 123 if (!help->GetReport()) 124 { 125 delete help; 124 126 return kFALSE; 127 } 125 128 126 129 if (GetReport(help->GetName())) … … 203 206 continue; 204 207 208 // Check for MReport{str(0,pos)} 205 209 rep = GetReportHelp(str(0,pos)); 210 211 // Remove this part from the string 206 212 if (GetReport(rep)) 207 213 str.Remove(0, pos);
Note:
See TracChangeset
for help on using the changeset viewer.