Changeset 1608 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 11/14/02 12:07:41 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/star.C
r1543 r1608 35 35 { 36 36 // 37 // This is a demonstration program which calculates the Hillas38 // parameter out of a Magicroot file.37 // This is a demonstration program which calculates the image 38 // parameters from a Magic raw data root file. 39 39 40 40 // … … 47 47 plist.AddToList(&tlist); 48 48 49 MSrcPosCam src; 50 plist.AddToList(&src); 51 49 52 // 50 53 // Uncomment this two line if you want to use MHillasExt instead … … 56 59 // 57 60 // The geometry container must be created by yourself to make sure 58 // that you don't choos a wrong geometry by chance61 // that you don't choose a wrong geometry by mistake 59 62 // 60 63 MGeomCamMagic geomcam; 61 64 plist.AddToList(&geomcam); 62 63 //64 // Craete the object which hlods the source positions in the camera65 // plain in respect to which the image parameters will be calculated.66 // For real data the containers will be filled by a task.67 //68 MSrcPosCam source("Source")69 source.SetXY(0, 0);70 71 MSrcPosCam antisrc("AntiSrc");72 antisrc.SetXY(240, 0);73 74 plist.AddToList(&source);75 plist.AddToList(&antisrc);76 65 77 66 // … … 80 69 // 81 70 MReadMarsFile read("Events"); 82 read.AddFile("Gammas*.root");83 71 read.DisableAutoScheme(); 72 73 // ------------- user change ----------------- 74 read.AddFile("Pro*.root"); 75 //read.AddFile("Gam*.root"); 84 76 85 77 MMcPedestalCopy pcopy; … … 92 84 MImgCleanStd clean; 93 85 MHillasCalc hcalc; 94 MHillasSrcCalc csrc1("Source", "HillasSource"); 95 MHillasSrcCalc csrc2("AntiSrc", "HillasAntiSrc"); 86 MHillasSrcCalc scalc; // !!Preliminary!! Will be removed later! 96 87 97 MWriteRootFile write("star.root"); 88 // ------------- user change ----------------- 89 MWriteRootFile write("data/star_protons.root"); 98 90 write.AddContainer("MHillas", "Events"); 99 91 write.AddContainer("HillasSource", "Events"); 100 write.AddContainer("HillasAntiSrc", "Events");101 92 write.AddContainer("MMcEvt", "Events"); 93 write.AddContainer("MHillasSrc", "Events"); 102 94 write.AddContainer("MRawRunHeader", "RunHeaders"); 103 95 write.AddContainer("MMcRunHeader", "RunHeaders"); 104 write.AddContainer("Source", "RunHeaders");105 write.AddContainer("AntiSource", "RunHeaders");106 96 107 97 tlist.AddToList(&read); … … 112 102 tlist.AddToList(&clean); 113 103 tlist.AddToList(&hcalc); 114 tlist.AddToList(&csrc1); 115 tlist.AddToList(&csrc2); 104 tlist.AddToList(&scalc); 116 105 tlist.AddToList(&write); 117 106 118 107 // 119 // Create and set up the eventloop108 // Create and set up the eventloop 120 109 // 121 110 MProgressBar bar;
Note:
See TracChangeset
for help on using the changeset viewer.