Changeset 2512
- Timestamp:
- 11/13/03 21:19:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2510 r2512 1 1 -*-*- END OF LINE -*-*- 2 2003/11/13: Thomas Bretz 3 4 * macros/readCT1.C: 5 - fixed to work with the new MHCamera::Draw (see Mantis) 6 - changed to display event and cleaned event 7 8 * macros/readMagic.C: 9 - fixed to work with the new MHCamera::Draw (see Mantis) 10 11 * mhist/MHEvent.cc: 12 - fixed display of the energy (see Mantis) 13 14 * mmain/MEventDisplay.cc: 15 - fixed usage of small canvas with new MHCamera::Draw 16 17 18 2 19 2003/11/11: Rudy Bock 3 20 4 * mfilter/MFGeomag. cc and ...h:21 * mfilter/MFGeomag.[h,cc]: 5 22 - added a new class which reads two ASCII files (for +ve and -ve 6 particles) from the mfilter directory, and filters out 7 low-energy charged Monte Carlo particles which do not reach the 8 earth's surface. Tables are from Adrian Biland. A method is included which 9 allows treating gammas as electrons (i.e. rejects low energy particles). 10 11 23 particles) from the mfilter directory, and filters out 24 low-energy charged Monte Carlo particles which do not reach the 25 earth's surface. Tables are from Adrian Biland. A method is 26 included which allows treating gammas as electrons (i.e. rejects 27 low energy particles). 28 29 30 12 31 2003/11/11: Nicola Galante 13 32 … … 15 34 - Removed 'const' qualifier for the returned object of the 16 35 method (TH1 *)MHMcTriggerLvl2::GetHistByName(const TString name) 17 36 37 18 38 19 39 2003/11/10: Nicola Galante -
trunk/MagicSoft/Mars/macros/readCT1.C
r2438 r2512 82 82 83 83 Int_t icount = 0; 84 MHCamera display(geomcam); 85 display.Draw(); 84 MHCamera display1(*geomcam); 85 MHCamera display2(*geomcam); 86 87 TCanvas c("Events", "Real Events", 300, 600); 88 c.SetBorderMode(0); 89 c.Divide(1,2); 90 c.cd(1); 91 display1.Draw(); 92 gPad->cd(1); 93 hillas.Draw(); 94 c.cd(2); 95 display2.Draw(); 96 gPad->cd(1); 97 hillas.Draw(); 86 98 87 99 while ((rc=tlist.Process())) … … 93 105 continue; 94 106 95 display .SetCamContent(*evt);96 display .Update();107 display1.SetCamContent(*(MCerPhotEvt*)clone.GetClone()); 108 display2.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 97 109 98 if (!HandleInput()) 99 break; 110 c->GetPad(1)->GetPad(1)->Modified(); 111 c->GetPad(1)->GetPad(1)->Update(); 112 c->GetPad(2)->GetPad(1)->Modified(); 113 c->GetPad(2)->GetPad(1)->Update(); 100 114 101 hillas.Draw();102 115 hillas.Print(); 103 116 hillasext.Print(); 104 117 newimgpar.Print(); 105 106 display.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));107 display.Update();108 118 109 119 if (!HandleInput()) -
trunk/MagicSoft/Mars/macros/readMagic.C
r2438 r2512 46 46 } 47 47 48 void readMagic(const char *fname=" ~/Proton_zbin0_0_7_11650to11659_w0.root")48 void readMagic(const char *fname="../Proton*.root") 49 49 { 50 50 MParList plist; … … 105 105 c.Divide(1,2); 106 106 c.cd(1); 107 gPad->SetBorderMode(0); 108 gPad->Divide(1,1); 107 display1.Draw(); 109 108 gPad->cd(1); 110 gPad->SetBorderMode(0); 111 display1.Draw(); 109 hillas.Draw(); 112 110 c.cd(2); 113 gPad->SetBorderMode(0); 114 gPad->Divide(1,1); 111 display2.Draw(); 115 112 gPad->cd(1); 116 gPad->SetBorderMode(0); 117 display2.Draw(); 113 hillas.Draw(); 118 114 119 115 // Use this if you don't want the event to be autoscaled … … 128 124 display2.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 129 125 130 c->cd(1); 131 gPad->cd(1); 132 gPad->Modified(); 133 gPad->Update(); 134 c->cd(2); 135 gPad->cd(1); 136 hillas.Draw(); 137 gPad->Modified(); 138 gPad->Update(); 126 c->GetPad(1)->GetPad(1)->Modified(); 127 c->GetPad(1)->GetPad(1)->Update(); 128 c->GetPad(2)->GetPad(1)->Modified(); 129 c->GetPad(2)->GetPad(1)->Update(); 139 130 140 131 hillas.Print(); -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r2490 r2512 229 229 s += " E="; 230 230 if (fMcEvt->GetEnergy()>1000) 231 txt+= Form("%.1fTeV", fMcEvt->GetEnergy()/1000);231 s += Form("%.1fTeV", fMcEvt->GetEnergy()/1000); 232 232 else 233 txt+= Form("%dGeV", fMcEvt->GetEnergy()+.5);233 s += Form("%dGeV", fMcEvt->GetEnergy()+.5); 234 234 s += " r="; 235 235 s += (int)(fMcEvt->GetImpact()/100+.5); -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r2488 r2512 454 454 ReadinEvent(); 455 455 456 TGString *txt = new TGString(Form("of %d .", GetReader()->GetEntries()));456 TGString *txt = new TGString(Form("of %d", GetReader()->GetEntries())); 457 457 fNumOfEvts->SetText(txt); 458 458 … … 463 463 MHEvent *o = (MHEvent*)plist->FindObject("Signal"); 464 464 fCanvas->SetName(Form("%p;%p;PixelContent", o->GetHist(), 465 GetCanvas(1)->GetPad(1) ->GetPad(1)));465 GetCanvas(1)->GetPad(1))); 466 466 467 467 //
Note:
See TracChangeset
for help on using the changeset viewer.