Changeset 8709 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 08/25/07 16:30:26 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8706 r8709 697 697 SetupWriter(write1, "WriteAfterCut3"); 698 698 699 MTaskEnv taskenv 2("CalcHadronness");700 taskenv 2.SetDefault(fCalcHadronness);701 702 MTaskEnv taskenv 3("CalcDisp");703 taskenv 3.SetDefault(fCalcDisp);704 705 MTaskEnv taskenv 4("EstimateEnergy");706 taskenv 4.SetDefault(fEstimateEnergy);699 MTaskEnv taskenv0("CalcDisp"); 700 taskenv0.SetDefault(fCalcDisp); 701 702 MTaskEnv taskenv1("CalcHadronness"); 703 taskenv1.SetDefault(fCalcHadronness); 704 705 MTaskEnv taskenv2("EstimateEnergy"); 706 taskenv2.SetDefault(fEstimateEnergy); 707 707 708 708 MParameterCalc setevtnum("MRawEvtHeader.fDAQEvtNumber", "SetEvtNumber"); … … 788 788 if (set.IsWobbleMode()) 789 789 tlist2.AddToList(&hcalc2); 790 //tlist2.AddToList(&taskenv1);791 790 tlist2.AddToList(&cont0); 792 tlist2.AddToList(&taskenv 2);793 tlist2.AddToList(&taskenv 3);791 tlist2.AddToList(&taskenv0); 792 tlist2.AddToList(&taskenv1); 794 793 tlist2.AddToList(&setrunnum); 795 794 tlist2.AddToList(&setevtnum); … … 824 823 } 825 824 tlist2.AddToList(&cont3); 826 tlist2.AddToList(&taskenv 4);825 tlist2.AddToList(&taskenv2); 827 826 828 827 if (write1) … … 863 862 //if (taskenv1.GetTask()) 864 863 // cont.Add(taskenv1.GetTask()); 864 if (taskenv0.GetTask()) 865 cont.Add(taskenv0.GetTask()); 866 if (taskenv1.GetTask()) 867 cont.Add(taskenv1.GetTask()); 865 868 if (taskenv2.GetTask()) 866 869 cont.Add(taskenv2.GetTask()); 867 if (taskenv3.GetTask())868 cont.Add(taskenv3.GetTask());869 870 870 871 if (!WriteTasks(set.GetNumAnalysis(), cont)) -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8703 r8709 86 86 MJSpectrum::MJSpectrum(const char *name, const char *title) 87 87 : fCutQ(0), fCut0(0),fCut1(0), fCut2(0), fCut3(0), fCutS(0), 88 fEstimateEnergy(0), fCalcHadronness(0), f ForceTheta(kFALSE)88 fEstimateEnergy(0), fCalcHadronness(0), fCalcDisp(0), fForceTheta(kFALSE) 89 89 { 90 90 fName = name ? name : "MJSpectrum"; … … 118 118 if (fCalcHadronness) 119 119 delete fCalcHadronness; 120 if (fCalcDisp) 121 delete fCalcDisp; 120 122 } 121 123 … … 261 263 return -1; 262 264 if (!ReadTask(fCalcHadronness, "CalcHadronness", kFALSE)) 265 return -1; 266 if (!ReadTask(fCalcDisp, "CalcDisp", kFALSE)) 263 267 return -1; 264 268 … … 664 668 read.DisableAutoScheme(); 665 669 read.AddFile(fPathIn); 666 667 MTaskEnv taskenv0("CalcHadronness"); 668 taskenv0.SetDefault(fCalcHadronness); 669 670 /* 671 MTaskEnv taskenv0("CalcDisp"); 672 taskenv0.SetDefault(fCalcDisp); 673 674 MTaskEnv taskenv1("CalcHadronness"); 675 taskenv1.SetDefault(fCalcHadronness); 676 */ 670 677 MEnergyEstimate est; 671 MTaskEnv taskenv 1("EstimateEnergy");672 taskenv 1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est);678 MTaskEnv taskenv2("EstimateEnergy"); 679 taskenv2.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est); 673 680 674 681 MContinue *cont = new MContinue("", "CutS"); … … 693 700 tlist.AddToList(&read); 694 701 //tlist.AddToList(&taskenv0); // not necessary, stored in file! 702 //tlist.AddToList(&taskenv1); // not necessary, stored in file! 695 703 tlist.AddToList(fCutS); 696 tlist.AddToList(&taskenv 1);704 tlist.AddToList(&taskenv2); 697 705 tlist.AddToList(&f0); 698 706 tlist.AddToList(&f1); … … 1560 1568 // energy limit! 1561 1569 1562 MTaskEnv taskenv0("CalcHadronness"); 1563 taskenv0.SetDefault(fCalcHadronness); 1570 MTaskEnv taskenv0("CalcDisp"); 1571 taskenv0.SetDefault(fCalcDisp); 1572 1573 MTaskEnv taskenv1("CalcHadronness"); 1574 taskenv1.SetDefault(fCalcHadronness); 1564 1575 1565 1576 MEnergyEstimate est; 1566 MTaskEnv taskenv 1("EstimateEnergy");1567 taskenv 1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est);1577 MTaskEnv taskenv2("EstimateEnergy"); 1578 taskenv2.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est); 1568 1579 1569 1580 tlist2.AddToList(&read); … … 1582 1593 tlist2.AddToList(fCut0); 1583 1594 tlist2.AddToList(&taskenv0); 1595 tlist2.AddToList(&taskenv1); 1584 1596 tlist2.AddToList(fCut1); 1585 1597 tlist2.AddToList(fCutS); 1586 1598 tlist2.AddToList(fCut2); 1587 1599 tlist2.AddToList(fCut3); 1588 tlist2.AddToList(&taskenv 1);1600 tlist2.AddToList(&taskenv2); 1589 1601 tlist2.AddToList(&fill31); 1590 1602 tlist2.AddToList(&fill4); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.h
r8706 r8709 33 33 MTask *fEstimateEnergy; 34 34 MTask *fCalcHadronness; 35 MTask *fCalcDisp; 35 36 36 37 Bool_t fForceTheta;
Note:
See TracChangeset
for help on using the changeset viewer.