20 struct deleter :
public std::unary_function<T*, void> {
21 inline void operator() (
T *ptr)
const {
delete ptr; }
33 <<
"The required parameter 'trainDescription' " 34 "was not specified." << std::endl;;
46 trainer.reset(
new MVATrainer(trainDescription, useXSLT));
51 trainer->setAutoSave(doSave);
52 trainer->setCleanup(!doSave);
53 trainer->setMonitoring(doMonitoring);
65 std::for_each(
begin(),
end(), deleter<Trainer>());
72 dataProcessedInLoop(
false)
104 if ((*iter)->getCalibration())
116 ex <<
"No data processed during loop\n";
117 ex.
addContext(
"Calling MVATrainerLooper::endOfLoop()");
129 trainer->
trainer->doneTraining(
T getUntrackedParameter(std::string const &, T const &) const
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
FileInPath getFileInPath() const
void addContext(std::string const &context)
Entry const * retrieveUntracked(char const *) const
std::string fullPath() const
std::string getString() const