Changeset 1599 for trunk/MagicSoft
- Timestamp:
- 11/11/02 10:21:55 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1597 r1599 1 1 -*-*- END -*-*- 2 3 2002/11/11: Thomas Bretz 4 5 * manalysis/MHillas.cc: 6 - moved division by size before test of number of used pixels 7 8 * mfileio/MCT1ReadPreProc.cc: 9 - added a eof-conditional 10 11 * mhist/MH3.cc: 12 - added a 'nonew' option to DrawClone 13 14 * mhist/MHHadronness.cc: 15 - check for NaN in Fill 16 17 18 2 19 2002/11/08: Oscar Blanch 3 20 4 21 * mgeom/MGeomPMT.[h,cc]: 5 22 - added 6 - Inf romation about simulated QE7 8 * mgeom/MGeomMirror.[h,cc] ;23 - Information about simulated QE 24 25 * mgeom/MGeomMirror.[h,cc]: 9 26 - added 10 27 - Mirrors properties … … 13 30 - modified to compile new classes 14 31 15 * mmc/MMcConfigRunHeader.[h,cc] 16 -added 17 18 *mmc/Makefile 19 -modified to compile new classes 32 * mmc/MMcConfigRunHeader.[h,cc]: 33 - added 34 35 * mmc/Makefile: 36 - modified to compile new classes 37 38 20 39 21 40 2002/11/08: Thomas Bretz -
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r1540 r1599 289 289 } 290 290 291 fMeanX /= fSize; // [mm] 292 fMeanY /= fSize; // [mm] 293 291 294 if (fNumUsedPixels<3) 292 295 { … … 294 297 return 3; 295 298 } 296 297 fMeanX /= fSize; // [mm]298 fMeanY /= fSize; // [mm]299 299 300 300 // -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1584 r1599 732 732 fIn->read((Byte_t*)&event, size1+size2); 733 733 734 if (fIn->eof()) 735 return kFALSE; 736 734 737 ProcessEvent(event); 735 738 -
trunk/MagicSoft/Mars/mhist/MH3.cc
r1574 r1599 420 420 TObject *MH3::DrawClone(Option_t *opt) const 421 421 { 422 TCanvas &c = *MH::MakeDefCanvas(fHist);423 424 //425 // This is necessary to get the expected bahviour of DrawClone426 //427 gROOT->SetSelectedPad(NULL);428 429 422 TString str(opt); 423 424 TVirtualPad *c = gPad; 425 if (!str.Contains("nonew", TString::kIgnoreCase)) 426 { 427 c = MH::MakeDefCanvas(fHist); 428 429 // 430 // This is necessary to get the expected bahviour of DrawClone 431 // 432 gROOT->SetSelectedPad(NULL); 433 } 430 434 431 435 if (str.Contains("COL", TString::kIgnoreCase)) … … 439 443 { 440 444 TProfile *p = ((TH2*)fHist)->ProfileX("_pfx", -1, 9999, "s"); 445 p->SetLineColor(kBlue); 441 446 p->Draw(only?"":"same"); 442 447 p->SetBit(kCanDelete); … … 446 451 { 447 452 TProfile *p = ((TH2*)fHist)->ProfileY("_pfy", -1, 9999, "s"); 453 p->SetLineColor(kBlue); 448 454 p->Draw(only?"":"same"); 449 455 p->SetBit(kCanDelete); … … 451 457 } 452 458 453 if (fHist->TestBit(kIsLogx)) c .SetLogx();454 if (fHist->TestBit(kIsLogy)) c .SetLogy();455 if (fHist->TestBit(kIsLogz)) c .SetLogz();456 457 c .Modified();458 c .Update();459 460 return &c;459 if (fHist->TestBit(kIsLogx)) c->SetLogx(); 460 if (fHist->TestBit(kIsLogy)) c->SetLogy(); 461 if (fHist->TestBit(kIsLogz)) c->SetLogz(); 462 463 c->Modified(); 464 c->Update(); 465 466 return c; 461 467 } 462 468 … … 493 499 { 494 500 TProfile *p = ((TH2*)fHist)->ProfileX("_pfx", -1, 9999, "s"); 501 p->SetLineColor(kBlue); 495 502 p->Draw(only?"":"same"); 496 503 p->SetBit(kCanDelete); … … 500 507 { 501 508 TProfile *p = ((TH2*)fHist)->ProfileY("_pfy", -1, 9999, "s"); 509 p->SetLineColor(kBlue); 502 510 p->Draw(only?"":"same"); 503 511 p->SetBit(kCanDelete); -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r1574 r1599 182 182 // histogram dependant on the particle id. 183 183 // 184 // Sometimes a distance is calculated as NaN (not a number). Such events 185 // are skipped at the moment. 186 // 184 187 Bool_t MHHadronness::Fill(const MParContainer *par) 185 188 { 189 // Preliminary Workaround: FIXME! 190 191 const Double_t h = fHadronness->GetHadronness(); 192 193 if (TMath::IsNaN(h)) 194 return kCONTINUE; 195 186 196 if (fMcEvt->GetPartId()==kGAMMA) 187 fGhness->Fill( fHadronness->GetHadronness());197 fGhness->Fill(h); 188 198 else 189 fPhness->Fill( fHadronness->GetHadronness());199 fPhness->Fill(h); 190 200 191 201 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.