Changeset 8679 for trunk/MagicSoft/Mars/mjoptim
- Timestamp:
- 08/19/07 22:40:04 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjoptim
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjoptim/MJOptimizeDisp.cc
r8671 r8679 178 178 179 179 MChisqEval eval; 180 eval.SetY1("sqrt(ThetaSquared.fVal)"); 180 eval.SetY1(fUseThetaSq?"ThetaSquared.fVal":"sqrt(ThetaSquared.fVal)"); 181 if (weights) 182 eval.SetNameWeight(); 181 183 182 184 MMatrixLoop loop(&m); -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeDisp.h
r7152 r8679 10 10 class MJOptimizeDisp : public MJOptimize 11 11 { 12 private: 13 Bool_t fUseThetaSq; 14 12 15 public: 13 MJOptimizeDisp() : MJOptimize() { } 16 MJOptimizeDisp() : MJOptimize(), fUseThetaSq(kFALSE) { } 17 18 void EnableThetaSq(Bool_t b=kTRUE) { fUseThetaSq=b; } 14 19 15 20 // Special optimizing routines -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeEnergy.cc
r8671 r8679 66 66 // histograms 67 67 #include "../mhflux/MHEnergyEst.h" 68 #include "../mtools/MChisqEval.h" 68 69 69 70 // tasks … … 108 109 MHMatrix m("M"); 109 110 AddRulesToMatrix(m); 111 const Int_t map = m.AddColumn("MMcEvt.fEnergy"); 110 112 parlist.AddToList(&m); 111 113 … … 136 138 fill.SetWeight(); 137 139 140 MChisqEval eval; 141 eval.SetY1(fOptimLog?Form("log10(MEnergyEst.fVal/M[%d])", map):Form("MEnergyEst.fVal-M[%d]", map)); 142 if (weights) 143 eval.SetNameWeight(); 144 138 145 MMatrixLoop loop(&m); 139 146 … … 143 150 tasklist.AddToList(weights); 144 151 tasklist.AddToList(&fill); 152 tasklist.AddToList(&eval); 145 153 146 154 // Optimize with the tasklist in this parameterlist -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeEnergy.h
r7152 r8679 10 10 class MJOptimizeEnergy : public MJOptimize 11 11 { 12 private: 13 Bool_t fOptimLog; 14 12 15 public: 13 MJOptimizeEnergy() : MJOptimize() { } 16 MJOptimizeEnergy() : MJOptimize(), fOptimLog(kFALSE) { } 17 18 void EnableOptimLog(Bool_t b=kTRUE) { fOptimLog=b; } 14 19 15 20 // Special optimizing routines
Note:
See TracChangeset
for help on using the changeset viewer.