Changeset 9261 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 01/25/09 14:32:11 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r9181 r9261 49 49 50 50 #include "MMath.h" 51 #include "MString.h" 51 52 #include "MDirIter.h" 52 53 … … 891 892 const Double_t exp = TMath::Power(10, i); 892 893 893 TString str = Form("(%s #pm %s)·10^{%d} ",894 FormFloat(p1/exp).Data(), FormFloat(e1/exp).Data(), i);895 896 str += Form("#left(#frac{E}{%s}#right)^{-%s #pm %s}", unit,897 FormFloat(p0).Data(), FormFloat(e0).Data());894 TString str = MString::Format("(%s #pm %s)·10^{%d} ", 895 FormFloat(p1/exp).Data(), FormFloat(e1/exp).Data(), i); 896 897 str += MString::Format("#left(#frac{E}{%s}#right)^{-%s #pm %s}", unit, 898 FormFloat(p0).Data(), FormFloat(e0).Data()); 898 899 899 900 str += " TeV^{-1} m^{-2} s^{-1}"; … … 909 910 return FormFlux(f, "500GeV"); 910 911 case 1: 911 return Form("\\chi^{2}/NDF=%.2f/%d", f.GetChisquare(),f.GetNDF());912 return MString::Format("\\chi^{2}/NDF=%.2f/%d", f.GetChisquare(),f.GetNDF()); 912 913 case 2: 913 return Form("P=%.0f%%", 100*TMath::Prob(f.GetChisquare(), f.GetNDF()));914 return MString::Format("P=%.0f%%", 100*TMath::Prob(f.GetChisquare(), f.GetNDF())); 914 915 } 915 916 return ""; … … 1492 1493 return kFALSE; 1493 1494 1494 CheckEnv(); 1495 if (!CheckEnv()) 1496 return kFALSE; 1495 1497 1496 1498 // -------------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r9230 r9261 140 140 } 141 141 142 //if (!CheckEnv())143 // return kFALSE;144 145 CheckEnv();146 147 142 // -------------------------------------------------------------------------------- 148 143 … … 152 147 *fLog << fSequence.GetFileName() << endl; 153 148 *fLog << endl; 149 150 if (!CheckEnv()) 151 return kFALSE; 154 152 155 153 // -------------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r9257 r9261 277 277 // For exmaple: 278 278 // RandomNumberGenerator: TRandom3 279 // RandomNumberSee Value: 0279 // RandomNumberSeedValue: 0 280 280 // 281 281 Bool_t MJob::InitRandomNumberGenerator() const … … 301 301 302 302 // Nothing: Keep seed value, 0 set time as seed value, val set seed 303 const TString seed = GetEnv("RandomNumberSeed Number", "");303 const TString seed = GetEnv("RandomNumberSeedValue", ""); 304 304 if (!seed.IsNull()) 305 305 {
Note:
See TracChangeset
for help on using the changeset viewer.