Changeset 2317 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 08/26/03 13:41:20 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CT1Analysis.C
r2315 r2317 235 235 // - update the input files with the hadroness (ON1.root or MC1.root) 236 236 237 Bool_t JobB_SC_UP = k FALSE;237 Bool_t JobB_SC_UP = kTRUE; 238 238 Bool_t RMatrix = kFALSE; // read matrices from file 239 Bool_t WParSC = k FALSE; // do optimization and write supercuts239 Bool_t WParSC = kTRUE; // do optimization and write supercuts 240 240 // parameter values onto a file 241 241 Bool_t WSC = kFALSE; // update input root file ? … … 299 299 // - write root file for ON data after final cuts 300 300 301 Bool_t JobF_XX = k TRUE;302 Bool_t WFX = k TRUE; // write out root file ?301 Bool_t JobF_XX = kFALSE; 302 Bool_t WFX = kFALSE; // write out root file ? 303 303 304 304 … … 1413 1413 1414 1414 gLog << "" << endl; 1415 gLog << "Macro CT1Analysis : JobB_SC_UP, WParSC, WSC = " 1416 << JobB_SC_UP << ", " << WParSC << ", " << WSC << endl; 1417 1415 //gLog << "Macro CT1Analysis : JobB_SC_UP, WParSC, WSC = " 1416 // << JobB_SC_UP << ", " << WParSC << ", " << WSC << endl; 1418 1417 1419 1418 … … 1509 1508 if (filenameTrain == filenameTest) 1510 1509 { 1511 findsuper.DefineTrainTestMatrix(filenameTrain, 1512 howManyTrain, mh3, 1513 howManyTest, mh3); 1510 if ( !findsuper.DefineTrainTestMatrix(filenameTrain, 1511 howManyTrain, mh3, 1512 howManyTest, mh3) ) 1513 { 1514 *fLog << "CT1Analysis.C : DefineTrainTestMatrix failed" << endl; 1515 return; 1516 } 1517 1514 1518 } 1515 1519 else 1516 1520 { 1517 findsuper.DefineTrainMatrix(filenameTrain, howManyTrain, mh3); 1518 findsuper.DefineTestMatrix( filenameTest, howManyTest, mh3); 1521 if ( !findsuper.DefineTrainMatrix(filenameTrain, howManyTrain, mh3) ) 1522 { 1523 *fLog << "CT1Analysis.C : DefineTrainMatrix failed" << endl; 1524 return; 1525 } 1526 1527 if ( !findsuper.DefineTestMatrix( filenameTest, howManyTest, mh3) ) 1528 { 1529 *fLog << "CT1Analysis.C : DefineTestMatrix failed" << endl; 1530 return; 1531 } 1519 1532 } 1520 1533 … … 1570 1583 << parSCfile << "'" << endl; 1571 1584 1572 TArrayD supercutsPar (72);1573 s cin.GetParams(72, supercutsPar);1585 TArrayD supercutsPar; 1586 supercutsPar = scin.GetParameters(); 1574 1587 1575 1588 gLog << "Optimum parameter values for supercuts : " << endl; … … 1587 1600 // set the parameters of the supercuts 1588 1601 MCT1Supercuts supercuts; 1589 supercuts.SetParam s(72,supercutsPar);1602 supercuts.SetParameters(supercutsPar); 1590 1603 gLog << "parameter values for the supercuts used for updating the input file ' " 1591 1604 << filenameData << "'" << endl; 1592 supercuts .GetParams(72, supercutsPar);1605 supercutsPar = supercuts.GetParameters(); 1593 1606 for (Int_t i=0; i<72; i++) 1594 1607 { … … 1767 1780 Double_t alphamin = 30.0; 1768 1781 Double_t alphamax = 90.0; 1769 Int_t degree = 2;1782 Int_t degree = 4; 1770 1783 Double_t significance = -99.0; 1771 1784 Bool_t drawpoly = kTRUE; … … 1775 1788 MHFindSignificance findsig; 1776 1789 findsig.SetRebin(kTRUE); 1777 findsig.SetReduceDegree(k FALSE);1790 findsig.SetReduceDegree(kTRUE); 1778 1791 1779 1792 findsig.FindSigma(&alphaHist, alphamin, alphamax, degree,
Note:
See TracChangeset
for help on using the changeset viewer.