![]() |
|
|||
File indexing completed on 2023-10-25 09:58:01
0001 void testFWLiteRead() 0002 { 0003 using namespace PhysicsTools; 0004 0005 MVAComputer mva("test.mva"); 0006 0007 // note that there is also a TTree interface which can read entries 0008 // directly from a ROOT tree. This interface is found in the 0009 // class "TreeReader" in this package. 0010 // 0011 // Note that the TreeReader can also be used for ROOT-like 0012 // interfacing of the MVAComputer::eval method, like the 0013 // TTree::Fill() method. This might come in handy and might be 0014 // simpler to use than the ValueList interface. 0015 // 0016 // See "MVATrainer/test/testFWLiteEvaluation.C" for an example. 0017 0018 Variable::ValueList vars; 0019 vars.add("toast", 4.4); 0020 vars.add("toast", 4.5); 0021 vars.add("test", 4.6); 0022 vars.add("toast", 4.7); 0023 vars.add("test", 4.8); 0024 vars.add("normal", 4.9); 0025 0026 cout << "This is expected to give 0.955976:" << endl; 0027 0028 cout << mva.eval(vars) << endl; 0029 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |