Changeset 2512 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 11/13/03 21:19:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note:
See TracChangeset
for help on using the changeset viewer.