Changeset 6932 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 04/12/05 17:05:49 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJOptimize.cc
r6924 r6932 109 109 #include "MFilterList.h" 110 110 #include "../mfilter/MFMagicCuts.h" 111 #include "../mfilter/MFMagicCuts2.h" 111 112 #include "MContinue.h" 112 113 #include "MGeomCamMagic.h" … … 333 334 void MJOptimize::AddPreCut(const char *rule) 334 335 { 335 fPreCuts.Add(new MF(rule)); 336 MFilter *f = new MF(rule); 337 f->SetBit(kCanDelete); 338 AddPreCut(f); 339 } 340 341 //------------------------------------------------------------------------ 342 // 343 // Add a cut which is used to fill the matrix. If kCanDelete is set 344 // MJOptimize takes the ownership. 345 // 346 void MJOptimize::AddPreCut(MFilter *f) 347 { 348 fPreCuts.Add(f); 336 349 } 337 350 … … 823 836 if (filter && filter->InheritsFrom(MFMagicCuts::Class())) 824 837 ((MFMagicCuts*)filter)->InitMapping(&m); 838 if (filter && filter->InheritsFrom(MFMagicCuts2::Class())) 839 ((MFMagicCuts2*)filter)->InitMapping(&m); 825 840 826 841 MReadTree read("Events"); … … 898 913 if (filter && filter->InheritsFrom(MFMagicCuts::Class())) 899 914 ((MFMagicCuts*)filter)->InitMapping(&m); 915 if (filter && filter->InheritsFrom(MFMagicCuts2::Class())) 916 ((MFMagicCuts2*)filter)->InitMapping(&m); 900 917 901 918 parlist.AddToList(&histon); … … 1025 1042 return kFALSE; 1026 1043 1044 hist.Print(); 1045 1027 1046 TObjArray cont; 1028 1047 cont.Add(&est); -
trunk/MagicSoft/Mars/mjobs/MJOptimize.h
r6924 r6932 101 101 void AddFilter(const char *rule); 102 102 void AddPreCut(const char *rule); 103 void AddPreCut(MFilter *f); 103 104 104 105 // Steering of optimization
Note:
See TracChangeset
for help on using the changeset viewer.