Changeset 2026 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/28/03 15:39:40 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/MagicHillas.C
r1646 r2026 36 36 // 37 37 MParList plist; 38 39 38 40 39 MTaskList tlist; … … 112 111 MHillasSrcCalc csrc1; 113 112 114 //115 // To use MHillasExt instead of MHillas116 //117 MHillasExt hext;118 plist.AddToList(&hext);119 120 113 MFillH hfill1("MHHillas", "MHillas"); 121 114 MFillH hfill2("MHHillasExt"); … … 123 116 MFillH hfill4("HistExtSource [MHHillasExt]", "MHillasSrc"); 124 117 MFillH hfill5("HistSource [MHHillasSrc]", "MHillasSrc"); 118 MFillH hfill6("MHNewImagePar"); 125 119 126 120 MWriteRootFile write("hillas.root"); … … 130 124 write.AddContainer("HistSource"); 131 125 write.AddContainer("HistExtSource"); 126 write.AddContainer("MHNewImagePar"); 132 127 133 128 tlist.AddToList(&read); … … 146 141 tlist.AddToList(&hfill4); 147 142 tlist.AddToList(&hfill5); 143 tlist.AddToList(&hfill6); 148 144 tlist.AddToList(&write); 149 145 … … 172 168 plist.FindObject("HistSource")->DrawClone(); 173 169 plist.FindObject("HistExtSource")->DrawClone(); 170 plist.FindObject("MHNewImagePar")->DrawClone(); 174 171 } 175 172 -
trunk/MagicSoft/Mars/macros/readCT1.C
r1325 r2026 49 49 MParList plist; 50 50 51 MGeomCamCT1 geomcam; 52 MHillas hillas; 53 MTaskList tlist; 51 MGeomCamCT1 geomcam; 52 MHillas hillas; 53 MHillasExt hillasext; 54 MNewImagePar newimgpar; 55 MTaskList tlist; 54 56 55 57 plist.AddToList(&geomcam); 56 58 plist.AddToList(&hillas); 59 plist.AddToList(&hillasext); 60 plist.AddToList(&newimagepar); 57 61 plist.AddToList(&tlist); 58 62 … … 77 81 display.Draw(); 78 82 79 while ( tlist.Process())83 while ((rc=tlist.Process())) 80 84 { 81 85 cout << "Event #" << icount++ << endl; 82 86 83 87 MCerPhotEvt *evt = (MCerPhotEvt*)clone.GetClone(); 84 85 if (!evt) 88 if (!evt) // If skipped due to MInputStreamId 86 89 continue; 87 90 88 display.DrawPhotNum(evt); 91 display.FillPhotNum(*evt); 92 display.Update(); 89 93 90 94 if (!HandleInput()) 91 95 break; 92 96 97 hillas.Draw(); 93 98 hillas.Print(); 94 hillas.Draw(); 95 display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 99 hillasext.Print(); 100 newimgpar.Print(); 101 102 display.FillPhotNum(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 103 display.Update(); 96 104 97 105 if (!HandleInput()) -
trunk/MagicSoft/Mars/macros/readMagic.C
r1965 r2026 51 51 52 52 MGeomCamMagic geomcam; 53 MHillasExt hillas; 53 MHillas hillas; 54 MHillasExt hillasext; 55 MNewImagePar newimgpar; 54 56 MTaskList tlist; 55 57 56 58 plist.AddToList(&geomcam); 57 59 plist.AddToList(&hillas); 60 plist.AddToList(&hillasext); 61 plist.AddToList(&newimgpar); 58 62 plist.AddToList(&tlist); 59 63 … … 107 111 break; 108 112 113 hillas.Draw(); 109 114 hillas.Print(); 110 hillas.Draw(); 115 hillasext.Print(); 116 newimgpar.Print(); 111 117 112 118 display.FillPhotNum(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); -
trunk/MagicSoft/Mars/macros/star.C
r1847 r2026 52 52 53 53 // 54 // Uncomment this two line if you want to use MHillasExt instead55 // of MHillas56 //57 MHillasExt hext;58 plist.AddToList(&hext);59 60 //61 54 // The geometry container must be created by yourself to make sure 62 55 // that you don't choose a wrong geometry by mistake … … 73 66 74 67 // ------------- user change ----------------- 75 read.AddFile(" Pro*.root");68 read.AddFile("data/Gamma_z*.root"); 76 69 //read.AddFile("Gam*.root"); 77 70 … … 90 83 MWriteRootFile write("data/star_protons.root"); 91 84 write.AddContainer("MHillas", "Events"); 85 write.AddContainer("MHillasExt", "Events"); 86 write.AddContainer("MNewImagePar", "Events"); 92 87 write.AddContainer("MMcEvt", "Events"); 93 88 write.AddContainer("MHillasSrc", "Events");
Note:
See TracChangeset
for help on using the changeset viewer.