13 #include "PhysicsTools/MVAComputer/interface/ProcessRegistry.icc"
16 "PhysicsToolsMVATrainer");
18 namespace PhysicsTools {
23 Source(*id), name(name), trainer(trainer), monitoring(0), monModule(0)
34 unsigned int nBins = 50;
52 for(std::vector<SourceVariable*>::const_iterator iter =
53 inputs.begin(); iter != inputs.end(); ++iter) {
64 (name +
"_bkg").c_str(),
65 (name +
" background").c_str(), nBins, 0, 0);
67 (name +
"_sig").c_str(),
68 (name +
" signal").c_str(), nBins, 0, 0);
90 bool train,
bool test)
93 for(std::vector<SigBkg>::iterator iter =
monHistos.begin();
95 const std::vector<double> &
vals =
97 for(std::vector<double>::const_iterator
value =
102 if (*value <= iter->
min) {
105 }
else if (*
value >= iter->max) {
112 if (iter->sameBinning)
121 testData(values, target, weight, train);
129 for(std::vector<SigBkg>::const_iterator iter =
132 for(
unsigned int i = 0;
i < 2;
i++) {
133 Int_t oBin = iter->histo[
i]->GetNbinsX() + 1;
134 iter->histo[
i]->SetBinContent(0,
135 iter->histo[
i]->GetBinContent(0) +
137 iter->histo[
i]->SetBinContent(oBin,
138 iter->histo[
i]->GetBinContent(oBin) +
140 iter->histo[
i]->SetEntries(iter->entries[
i]);
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
static std::string const source
T get(const Candidate &c)