Changeset 1609 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 11/14/02 12:15:13 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/comprob.C
r1557 r1609 57 57 compprob.Add("MHillas.fLength", 500, 0, 300); 58 58 compprob.Add("abs(MHillas.fAsym)", 500, 0, 400); 59 compprob.Add(" HillasSource.fDist",500, 0, 400);60 compprob.Add("abs( HillasSource.fHeadTail)",500, 0, 400);59 compprob.Add("MHillasSrc.fDist", 500, 0, 400); 60 compprob.Add("abs(MHillasSrc.fHeadTail)", 500, 0, 400); 61 61 compprob.Add("abs(MHillas.fM3Long)", 500, 0, 300); 62 62 compprob.Add("abs(MHillas.fM3Trans)", 500, 0, 150); -
trunk/MagicSoft/Mars/macros/multidimdist.C
r1557 r1609 40 40 41 41 // 42 // Now setup the tasks and tasklist: 43 // --------------------------------- 42 // This is an example program which reads image parameters for gammas 43 // and hadrons, builds a 'matrix' of look-alike events, 44 // and then finds quality numbers and acceptances for the same sample 45 46 // Create an empty Parameter List and an empty Task List 47 // The tasklist is identified in the eventloop by its name 44 48 // 45 // The first argument is the tree you want to read.46 // Events: Cosmic ray events47 // PedEvents: Pedestal Events48 // CalEvents: Calibration Events 49 MParList plist; 50 MTaskList tlistg; 51 plist.AddToList(&tlistg); 52 49 53 // 50 MReadMarsFile read("Events", "~/Mars/star.root"); 54 // ------------- user attention ----------------- 55 // 56 57 // cut used both for the matrices and the sample 58 // for more information see the documentation of MF and MDataChain 59 MF filterenergy("MMcEvt.fEnergy > 0"); 60 61 // matrix limitation for look-alike events (approximate number) 62 MFEventSelector selector; 63 selector.SetNumSelectEvts(2000); 64 65 // setup an AND-Filterlist from the two filters to be used 66 // in the event selection for the filling of the matrices 67 MFilterList flist; 68 flist.AddToList(&filterenergy); 69 flist.AddToList(&selector); 70 71 // 72 // --------------------------------------------------------------- 73 // Now set up the tasks and tasklist (first event loop, gammas) 74 // --------------------------------------------------------------- 75 // 76 77 // --------------- user change ----------------- 78 // Give the names of the star-files to be read 79 // Here you give the trainings sample(s) for 80 // the hadrons 81 // --------------------------------------------- 82 MReadMarsFile read("Events"); 83 read.AddFile("star_gammas.root"); 84 read.AddFile("star_protons.root"); 51 85 read.DisableAutoScheme(); 52 tlist .AddToList(&read);86 tlistg.AddToList(&read); 53 87 54 88 MFParticleId fgamma("MMcEvt", '=', kGAMMA); … … 65 99 matrix.AddColumn("abs(MHillas.fM3Long)"); 66 100 matrix.AddColumn("abs(MHillas.fM3Trans)"); 67 matrix.AddColumn("abs( HillasSource.fHeadTail)");101 matrix.AddColumn("abs(MHillasSrc.fHeadTail)"); 68 102 matrix.AddColumn("MHillas.fConc"); 69 103 matrix.AddColumn("MHillas.fConc1"); 70 matrix.AddColumn(" HillasSource.fDist");104 matrix.AddColumn("MHillasSrc.fDist"); 71 105 matrix.AddColumn("log10(MHillas.fSize)"); 72 106 plist.AddToList(&matrix); … … 107 141 plist.Replace(&tlist2); 108 142 109 MReadMarsFile read2("Events", "~/Mars/star.root"); 110 // read2.AddFile("~/Mars/star2.root"); 143 MReadMarsFile read2("Events"); 144 read2.("gammas2.root"); 145 read2.AddFile("hadrons2.root"); 111 146 read2.DisableAutoScheme(); 112 147 tlist2.AddToList(&read2); 113 148 114 149 MMultiDimDistCalc calc; 115 calc.SetUseNumRows( 15);116 //calc.SetUseKernelMethod(kTRUE);150 calc.SetUseNumRows(0); 151 calc.SetUseKernelMethod(kTRUE); 117 152 tlist2.AddToList(&calc); 118 153
Note:
See TracChangeset
for help on using the changeset viewer.