21 using namespace PhysicsTools;
30 ProcSplitter(
const char *
name,
33 virtual ~ProcSplitter() {}
35 virtual void configure(ConfIterator iter,
unsigned int n);
36 virtual void eval(ValueIterator iter,
unsigned int n)
const;
37 virtual std::vector<double> deriv(
38 ValueIterator iter,
unsigned int n)
const;
46 ProcSplitter::ProcSplitter(
const char *
name,
54 void ProcSplitter::configure(ConfIterator iter,
unsigned int n)
57 for(
unsigned int i = 0;
i <
count;
i++)
58 iter << Variable::FLAG_OPTIONAL;
59 iter << iter++(Variable::FLAG_ALL);
63 void ProcSplitter::eval(ValueIterator iter,
unsigned int n)
const
67 while(i < iter.size()) {
79 std::vector<double> ProcSplitter::deriv(
80 ValueIterator iter,
unsigned int n)
const
82 unsigned int size = 0;
83 for(ValueIterator iter2 = iter; iter2; ++iter2)
86 std::vector<double>
result(size * size);
87 for(
unsigned int i = 0; i <
size; i++)
88 result[i * size + i] = 1.0;
detail::ThreadSafeRegistry< ParameterSetID, ParameterSet, ProcessParameterSetIDCache > Registry
MVATrainerComputer * calib
tuple size
Write out results.