Changeset 2377 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 10/04/03 12:47:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/MagicHillas.C
r2359 r2377 41 41 42 42 // 43 // The geometry container must be created by yourself to make sure44 // that you don't choos a wrong geometry by chance45 //46 MGeomCamMagic geomcam;47 plist.AddToList(&geomcam);48 49 //50 43 // Use this if you want to change the binning of one of 51 44 // the histograms. You can use: … … 86 79 MReadMarsFile read("Events", filename); 87 80 read.DisableAutoScheme(); 81 82 MGeomApply geomapl; 88 83 89 84 MMcPedestalCopy pcopy; … … 127 122 128 123 tlist.AddToList(&read); 124 tlist.AddToList(&geomapl); 129 125 tlist.AddToList(&pcopy); 130 126 tlist.AddToList(&pnsb); -
trunk/MagicSoft/Mars/macros/pedestalvstime.C
r2252 r2377 39 39 // 40 40 41 MGeomCamMagic geom;42 plist.AddToList(&geom);43 44 41 // First Task: Read file with image parameters 45 42 // (created with the star.C macro) … … 48 45 read.DisableAutoScheme(); 49 46 47 MGeomApply geomapl; 48 50 49 MCerPhotAnal2 ncalc; 51 50 52 51 tlist.AddToList(&read); 52 tlist.AddToList(&geomapl); 53 53 tlist.AddToList(&ncalc); 54 54 -
trunk/MagicSoft/Mars/macros/pixfirerate.C
r2251 r2377 61 61 plist.AddToList(&tlist); 62 62 63 // The geometry container must be created by yourself to make sure64 // that you don't choose a wrong geometry by mistake65 //66 MGeomCamMagic geomcam;67 plist.AddToList(&geomcam);68 69 63 // 70 64 // Now setup the tasks and tasklist: … … 75 69 read.AddFile(filename); 76 70 tlist.AddToList(&read); 71 72 MGeomApply geomapl; 73 tlist.AddToList(&geomapl); 77 74 78 75 Double_t threshold[] = { 10, 20, 100, 200, -1 }; -
trunk/MagicSoft/Mars/macros/pixsatrate.C
r2265 r2377 61 61 plist.AddToList(&tlist); 62 62 63 // The geometry container must be created by yourself to make sure64 // that you don't choose a wrong geometry by mistake65 //66 MGeomCamMagic geomcam;67 plist.AddToList(&geomcam);68 69 63 // 70 64 // Now setup the tasks and tasklist: … … 75 69 read.AddFile(filename); 76 70 tlist.AddToList(&read); 71 72 MGeomApply geomapl; 73 tlist.AddToList(&geomapl); 77 74 78 75 MHTriggerLvl0 trighi(254, "SaturationHi", "Saturation Rate of Hi Gains"); -
trunk/MagicSoft/Mars/macros/plot.C
r1966 r2377 23 23 ! 24 24 \* ======================================================================== */ 25 #include <MH.h> 25 26 26 // ------------------------------------------------------------------------- 27 27 // -
trunk/MagicSoft/Mars/macros/readCT1.C
r2220 r2377 62 62 63 63 MCT1ReadAscii read(fname); 64 MGeomApply geomapl; 64 65 MClone clone("MCerPhotEvt"); 65 66 MImgCleanStd clean; -
trunk/MagicSoft/Mars/macros/readMagic.C
r2221 r2377 50 50 MParList plist; 51 51 52 MGeomCamMagic geomcam;53 52 MHillas hillas; 54 53 MHillasExt hillasext; … … 56 55 MTaskList tlist; 57 56 58 plist.AddToList(&geomcam);59 57 plist.AddToList(&hillas); 60 58 plist.AddToList(&hillasext); … … 65 63 read.DisableAutoScheme(); 66 64 65 MGeomApply geomapl; 67 66 MPrint print1("MMcEvt"); 68 67 MPrint print2("MRawEvtHeader"); … … 80 79 81 80 tlist.AddToList(&read); 81 tlist.AddToList(&geomapl); 82 82 tlist.AddToList(&print1); 83 83 tlist.AddToList(&print2); -
trunk/MagicSoft/Mars/macros/starplot.C
r1633 r2377 42 42 43 43 // 44 // The geometry container must be created by yourself to make sure45 // that you don't choos a wrong geometry by chance46 //47 MGeomCamMagic geomcam;48 plist.AddToList(&geomcam);49 50 //51 44 // Use this if you want to change the binning of one of 52 45 // the histograms. You can use: … … 79 72 read.DisableAutoScheme(); 80 73 74 MGeomApply geomapl; 75 81 76 MFillH hfill1("MHHillas", "MHillas"); 82 77 MFillH hfill2("MHHillasExt"); … … 86 81 87 82 tlist.AddToList(&read); 83 tlist.AddToList(&geomapl); 88 84 tlist.AddToList(&hfill1); 89 85 tlist.AddToList(&hfill2); -
trunk/MagicSoft/Mars/macros/status.C
r2274 r2377 57 57 plist.AddToList(&tlist); 58 58 59 //60 // The geometry container must be created by yourself to make sure61 // that you don't choose a wrong geometry by mistake62 //63 MGeomCamMagic geomcam;64 plist.AddToList(&geomcam);65 66 59 /* 67 60 MSrcPosCam src; … … 79 72 // ------------- user change ----------------- 80 73 read.AddFile(fname); 74 75 MGeomApply geomapl; 81 76 82 77 MMcPedestalCopy pcopy; … … 117 112 118 113 tlist.AddToList(&read); 114 tlist.AddToList(&geomapl); 119 115 tlist.AddToList(&pcopy); 120 116 tlist.AddToList(&pnsb); -
trunk/MagicSoft/Mars/macros/sumevents.C
r2274 r2377 39 39 // 40 40 41 MGeomCamMagic geom;42 plist.AddToList(&geom);43 44 41 // First Task: Read file with image parameters 45 42 // (created with the star.C macro) … … 48 45 read.DisableAutoScheme(); 49 46 47 MGeomApply geomapl; 50 48 MCerPhotAnal2 ncalc; 51 49 52 50 tlist.AddToList(&read); 51 tlist.AddToList(&geomapl); 53 52 tlist.AddToList(&ncalc); 54 53 -
trunk/MagicSoft/Mars/macros/sumeventserr.C
r2274 r2377 39 39 // 40 40 41 MGeomCamMagic geom;42 plist.AddToList(&geom);43 44 41 // First Task: Read file with image parameters 45 42 // (created with the star.C macro) … … 51 48 //MCerPhotCalc ncalc; 52 49 //MCerPhotAnal ncalc; 50 MGeomApply geomapl; 53 51 MCerPhotAnal2 ncalc; 54 52 55 53 tlist.AddToList(&read); 54 tlist.AddToList(&geomapl); 56 55 tlist.AddToList(&ncalc); 57 56 -
trunk/MagicSoft/Mars/macros/sumeventsrms.C
r2274 r2377 39 39 // 40 40 41 MGeomCamMagic geom;42 plist.AddToList(&geom);43 44 41 // First Task: Read file with image parameters 45 42 // (created with the star.C macro) … … 48 45 read.DisableAutoScheme(); 49 46 47 MGeomApply geomapl; 50 48 MPedestalSum ncalc; 51 49 //MCerPhotCalc ncalc; … … 54 52 55 53 tlist.AddToList(&read); 54 tlist.AddToList(&geomapl); 56 55 tlist.AddToList(&ncalc); 57 56 -
trunk/MagicSoft/Mars/macros/sumpedestalrms.C
r2274 r2377 39 39 // 40 40 41 MGeomCamMagic geom;42 plist.AddToList(&geom);43 44 41 // First Task: Read file with image parameters 45 42 // (created with the star.C macro) … … 48 45 read.DisableAutoScheme(); 49 46 47 MGeomApply geomapl; 50 48 MCerPhotAnal2 ncalc; 51 49 52 50 tlist.AddToList(&read); 51 tlist.AddToList(&geomapl); 53 52 tlist.AddToList(&ncalc); 54 53 -
trunk/MagicSoft/Mars/macros/sumpedestals.C
r2274 r2377 39 39 // 40 40 41 MGeomCamMagic geom;42 plist.AddToList(&geom);43 44 41 // First Task: Read file with image parameters 45 42 // (created with the star.C macro) … … 48 45 read.DisableAutoScheme(); 49 46 47 MGeomApply geomapl; 50 48 MCerPhotAnal2 ncalc; 51 49 52 50 tlist.AddToList(&read); 51 tlist.AddToList(&geomapl); 53 52 tlist.AddToList(&ncalc); 54 53 -
trunk/MagicSoft/Mars/macros/threshold.C
r1666 r2377 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/macros/trigrate.C
r1800 r2377 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 21 21 ! 22 ! Modified 4/7/2002, Abelardo Moralejo:23 ! Added one optional input parameter: a camera .root file containing24 ! pure NSB events. One such file is generated running the camera over an25 ! "empty" reflector file, with the NSB option on, and asking the camera26 ! program (see camera program manual) to do the simulation even if no27 ! photoelectron from the shower arrives at the camera. One also needs to28 ! write to the output file all the events, both triggered and untriggered29 ! (see again camera manual). These nsb camera files must contain the same30 ! trigger conditions as the proton file.31 !32 ! If no nsb file is supplied, the macro will assume no triggers from33 ! pure NSB fluctuations.34 !35 22 \* ======================================================================== */ 36 23 37 24 /* 25 ! Modified 4/7/2002, Abelardo Moralejo: 26 ! Added one optional input parameter: a camera .root file containing 27 ! pure NSB events. One such file is generated running the camera over an 28 ! "empty" reflector file, with the NSB option on, and asking the camera 29 ! program (see camera program manual) to do the simulation even if no 30 ! photoelectron from the shower arrives at the camera. One also needs to 31 ! write to the output file all the events, both triggered and untriggered 32 ! (see again camera manual). These nsb camera files must contain the same 33 ! trigger conditions as the proton file. 34 ! 35 ! If no nsb file is supplied, the macro will assume no triggers from 36 ! pure NSB fluctuations. 37 */ 38 38 39 39 Float_t GetNSBEvents(TString name, Float_t *BgR, int dim) … … 138 138 if (dim < 0) 139 139 ((MHMcRate*)(hists[0]))->SetTriggerCondNum((Short_t)(-dim)); 140 elseif (dim > 0)140 if (dim > 0) 141 141 for (Short_t i = from ; i <= to; i++) 142 142 ((MHMcRate*)(hists[i-1]))->SetTriggerCondNum(i);
Note:
See TracChangeset
for help on using the changeset viewer.