Changeset 5114
- Timestamp:
- 09/17/04 18:51:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5111 r5114 27 27 28 28 29 29 30 2004/09/17: Thomas Bretz 30 31 … … 57 58 * mhflux/MHAlpha.[h,cc]: 58 59 - added some fFit.Print to keep track of what's going on 60 - give a name to the function, no name results in weired 61 behaviour of the whole system. root people were already informed 59 62 60 63 * mhflux/MHFalseSource.cc: … … 63 66 * star.cc: 64 67 - fixed handling of commandline arguments in batch mode 68 69 * mhist/MHEvent.[h,cc], mmain/MEventDisplay.cc: 70 - remove non working signal/ped rms 65 71 66 72 -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r5100 r5114 217 217 f.fFunc = new TF1(*fFunc); 218 218 gROOT->GetListOfFunctions()->Remove(f.fFunc); 219 f.fFunc->SetName("Dummy"); 219 220 delete fcn; 220 221 } -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r5100 r5114 46 46 47 47 gROOT->GetListOfFunctions()->Remove(fFunc); 48 fFunc->SetName("Dummy"); 48 49 } 49 50 … … 59 60 void Print(Option_t *o=0) const; 60 61 void Copy(TObject &o) const; 62 /* 63 TObject *Clone(const char *name) const 64 { 65 return new MAlphaFitter(*this); 66 } 67 */ 61 68 62 69 void SetSignalIntegralMax(Float_t s) { fSigInt = s; } … … 66 73 void SetPolynomOrder(Int_t s) { fPolynomOrder = s; delete fFunc; fFunc=new TF1 ("", Form("gaus(0) + pol%d(3)", s)); 67 74 gROOT->GetListOfFunctions()->Remove(fFunc); 75 fFunc->SetName("Dummy"); 68 76 fCoefficients.Set(3+s+1); fCoefficients.Reset(); } 69 77 -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r4716 r5114 139 139 fHist->SetYTitle("\\sigma_{P} [au]"); 140 140 break; 141 case kEvtRelativeSignal:142 fHist->SetName("Signal/PedRMS");143 fHist->SetYTitle("S/P_{rms}");144 break;145 141 case kEvtCleaningLevels: 146 142 if (!fImgCleanStd) … … 212 208 case kEvtPedestalRMS: 213 209 fHist->SetCamContent(*event, 1); 214 break;215 case kEvtRelativeSignal:216 fHist->SetCamContent(*event, 0);217 210 break; 218 211 case kEvtCleaningLevels: -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r4716 r5114 21 21 enum EventType_t { 22 22 kEvtSignalRaw, kEvtSignalDensity, kEvtPedestal, 23 kEvtPedestalRMS, kEvt RelativeSignal, kEvtCleaningLevels,23 kEvtPedestalRMS, kEvtCleaningLevels, 24 24 kEvtCleaningData, 25 25 kEvtIdxMax, kEvtArrTime, kEvtTrigPix, kEvtIslandIndex -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r4828 r5114 253 253 MHEvent *evt03 = new MHEvent(MHEvent::kEvtPedestal); 254 254 MHEvent *evt04 = new MHEvent(MHEvent::kEvtPedestalRMS); 255 MHEvent *evt05 = new MHEvent(MHEvent::kEvtRelativeSignal);256 255 MHEvent *evt06a= new MHEvent(MHEvent::kEvtCleaningData); 257 256 MHEvent *evt06b= new MHEvent(MHEvent::kEvtCleaningLevels); … … 265 264 evt03->SetName("Pedestal"); 266 265 evt04->SetName("PedRMS"); 267 evt05->SetName("Signal/PedRMS");268 266 evt06a->SetName("CleanData"); 269 267 evt06b->SetName("CleanLevels"); … … 278 276 plist->AddToList(evt03); 279 277 plist->AddToList(evt04); 280 plist->AddToList(evt05);281 278 plist->AddToList(evt06a); 282 279 plist->AddToList(evt06b); … … 292 289 MFillH *fill03 = new MFillH(evt03, "MPedPhotCam", "MFillH03"); 293 290 MFillH *fill04 = new MFillH(evt04, "MPedPhotCam", "MFillH04"); 294 MFillH *fill05 = new MFillH(evt05, "MCameraData", "MFillH05");295 291 MFillH *fill06a= new MFillH(evt06a, "MCameraData", "MFillH06a"); 296 292 MFillH *fill06b= new MFillH(evt06b, "MCameraData", "MFillH06b"); … … 359 355 tlist->AddToList(fill03); 360 356 tlist->AddToList(fill04); 361 tlist->AddToList(fill05);362 357 tlist->AddToList(fill06a); 363 358 tlist->AddToList(fill06b); … … 629 624 // Draw ellipse on top of all pads 630 625 // 631 TObject *hillas = plist->FindObject("MHillas"); 626 TObject *hillas1 = plist->FindObject("MHillas"); 627 TObject *hillas2 = plist->FindObject("MHillasSrc"); 632 628 for (int i=1; i<7;i++) 633 629 { 634 630 TCanvas *c = GetCanvas(i); 635 631 c->cd(1); 636 hillas->Draw(); 632 hillas1->Draw(); 633 hillas2->Draw(); 637 634 } 638 635 }
Note:
See TracChangeset
for help on using the changeset viewer.