Changeset 3651 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/05/04 16:48:56 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3638 r3651 59 59 if (!pedloop.Process()) 60 60 return; 61 62 // 63 // Create a empty Parameter List and an empty Task List 64 // The tasklist is identified in the eventloop by its name 65 // 66 MParList plist0; 67 MTaskList tlist0; 68 plist0.AddToList(&tlist0); 69 70 // 71 // Now setup the tasks and tasklist for the pedestals: 72 // --------------------------------------------------- 73 // 74 MReadMarsFile read("Events"); 75 read.DisableAutoScheme(); 76 static_cast<MRead&>(read).AddFiles(pruns); 77 78 MGeomApply geomapl; 79 MExtractSignal sigcalc; 80 81 // 82 // Additionally to calculating the pedestals, 83 // you can fill histograms and look at them 84 // 85 MFillH fill("MHPedestalCam", "MExtractedSignalCam"); 86 87 tlist0.AddToList(&read); 88 tlist0.AddToList(&geomapl); 89 tlist0.AddToList(&sigcalc); 90 tlist0.AddToList(&fill); 91 92 MGeomCamMagic geomcam; 93 MHPedestalCam hpedcam; 94 plist0.AddToList(&geomcam); 95 plist0.AddToList(&pedloop.GetPedestalCam()); 96 plist0.AddToList(&badcam); 97 plist0.AddToList(&hpedcam); 98 99 // 100 // Create and setup the eventloop 101 // 102 MEvtLoop evtloop0; 103 104 evtloop0.SetParList(&plist0); 105 evtloop0.SetDisplay(display); 106 107 // 108 // Execute first analysis 109 // 110 if (!evtloop0.Eventloop()) 111 return; 112 113 tlist0.PrintStatistics(); 114 115 for (Int_t aidx=0;aidx<2;aidx++) 116 { 117 hpedcam.GetAverageHiGainArea(aidx).DrawClone("fourierevents"); 118 hpedcam.GetAverageLoGainArea(aidx).DrawClone("fourierevents"); 119 } 120 121 for (Int_t sector=1;sector<7;sector++) 122 { 123 hpedcam.GetAverageHiGainSector(sector).DrawClone("fourierevents"); 124 hpedcam.GetAverageLoGainSector(sector).DrawClone("fourierevents"); 125 } 126 61 127 62 128 //
Note:
See TracChangeset
for help on using the changeset viewer.