Changeset 7413 for trunk/MagicSoft/Mars/mjoptim
- Timestamp:
- 11/21/05 11:09:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjoptim/MJOptimizeDisp.cc
r7169 r7413 71 71 72 72 // histograms 73 #include "MH3.h" 74 #include "MBinning.h" 73 75 #include "../mhflux/MAlphaFitter.h" 74 76 #include "../mhflux/MHThetaSq.h" … … 91 93 // 92 94 // Read all events from file which do match rules and optimize 93 // energyestimator.95 // disp estimator. 94 96 // 95 97 Bool_t MJOptimizeDisp::RunDisp(const char *fname, const char *rule, MTask *weights) 96 98 { 97 fLog->Separator("Preparing Energyoptimization");99 fLog->Separator("Preparing Disp optimization"); 98 100 99 101 MParList parlist; … … 124 126 const Int_t num1 = m.AddColumn("MHillasSrc.fDist*MGeomCam.fConvMm2Deg"); 125 127 const Int_t num2 = m.AddColumn("MHillasSrc.fAlpha*kDegToRad"); 128 const Int_t num3 = m.AddColumn("MHillas.fSize"); 126 129 127 130 MHThetaSq hist; 128 131 hist.SkipHistTime(); 129 132 hist.SkipHistTheta(); 130 hist.SkipHistEnergy(); 131 hist.InitMapping(&m); 133 //hist.SkipHistEnergy(); 134 //hist.ForceUsingSize(); 135 hist.InitMapping(&m, 1); 132 136 133 137 MFDataMember filter("DataType.fVal", '>', 0.5); … … 171 175 MMatrixLoop loop(&m); 172 176 177 const char *n3 = Form("M[%d]", num3); 178 MH3 hdisp(n3, "sqrt(ThetaSquared.fVal)"); 179 hdisp.SetTitle("\\vartheta^{2} distribution vs. Size:Size [phe]:\\vartheta^{2} [\\circ^{2}]"); 180 181 MBinning binsx(100, 10, 100000, "BinningMH3X", "log"); 182 MBinning binsy(100, 0, 2, "BinningMH3Y", "lin"); 183 184 parlist.AddToList(&binsx); 185 parlist.AddToList(&binsy); 186 187 MFillH fillh2(&hdisp); 188 fillh2.SetDrawOption("blue profx"); 189 173 190 tasklist.AddToList(&loop); 174 191 tasklist.AddToList(&calc1); … … 177 194 tasklist.AddToList(weights); 178 195 tasklist.AddToList(&fill); 196 tasklist.AddToList(&fillh2); 179 197 tasklist.AddToList(&eval); 180 198
Note:
See TracChangeset
for help on using the changeset viewer.