Changeset 8676 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 08/18/07 15:10:25 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8674 r8676 299 299 fDisplay->SetStatusLine1("Getting maximum impact..."); 300 300 301 // Create chain301 // ----- Create chain ----- 302 302 *fLog << "Getting files... " << flush; 303 303 TChain chain("RunHeaders"); … … 397 397 // Fill histogram from tree 398 398 hfill->SetDirectory(&file); 399 t->Draw(cont, weights, "goff"); 399 if (t->Draw(cont, weights, "goff")<0) 400 { 401 *fLog << err << "ERROR - Reading OriginalMC failed." << endl; 402 return kFALSE; 403 } 400 404 hfill->SetDirectory(0); 401 405 h.Add(hfill); … … 1215 1219 plist.AddToList(&bins2); 1216 1220 1217 // Initialize weighting to a new spectru 1218 // mas defined in the resource file1221 // Initialize weighting to a new spectrum 1222 // as defined in the resource file 1219 1223 MMcSpectrumWeight weight; 1220 1224 if (!InitWeighting(set, weight)) … … 1345 1349 fill5.SetNameTab("Threshold"); 1346 1350 1351 MH3 henergy("MMcEvt.fEnergy"); 1352 henergy.SetName("EventDist;EnergyEst"); 1353 henergy.SetTitle("Unweighted event distribution (Real statistics);E [GeV];Counts;"); 1354 henergy.Sumw2(); 1355 1347 1356 MH3 hsize("MHillas.fSize"); 1348 1357 hsize.SetName("ExcessMC"); … … 1353 1362 plist.AddToList(&bins); 1354 1363 1364 MFillH fill0a(&henergy, "", "FillEventDist"); 1355 1365 MFillH fill1a("MHHillasMCPre [MHHillas]", "MHillas", "FillHillasPre"); 1356 1366 MFillH fill2a("MHHillasMCPost [MHHillas]", "MHillas", "FillHillasPost"); … … 1408 1418 tlist2.AddToList(&fill4); 1409 1419 tlist2.AddToList(&fill5); 1420 tlist2.AddToList(&fill0a); 1410 1421 tlist2.AddToList(&fill2a); 1411 1422 tlist2.AddToList(&fill3a); … … 1485 1496 cont.Add(&area1); 1486 1497 cont.Add(&hest); 1487 cont.Add(const_cast<TEnv*>(GetEnv()));1488 1498 1489 1499 if (fDisplay) -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.h
r8655 r8676 34 34 35 35 Bool_t fRefill; 36 Bool_t fSimpleMode; 36 //Bool_t fSimpleMode; 37 Bool_t fForceTheta; 37 38 Bool_t fRawMc; 38 39 Bool_t fNoThetaWeights; … … 63 64 64 65 void EnableRefilling(Bool_t b=kTRUE) { fRefill=b; } 65 void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }66 //void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; } 66 67 void EnableRawMc(Bool_t b=kTRUE) { fRawMc=b; } 68 void ForceTheta(Bool_t b=kTRUE) { fForceTheta=b; } 67 69 68 70 void SetEnergyEstimator(const MTask *task);
Note:
See TracChangeset
for help on using the changeset viewer.