#include <SourceVariableSet.h>
Classes | |
struct | PosVar |
Public Types | |
enum | Magic { kRegular = 0, kTarget, kWeight } |
typedef std::size_t | size_type |
Public Member Functions | |
bool | append (SourceVariable *var, Magic magic=kRegular, int offset=-1) |
SourceVariable * | find (AtomicId name) const |
SourceVariable * | find (Magic magic) const |
std::vector< SourceVariable * > | get (bool withMagic=false) const |
size_type | size (bool withMagic=false) const |
SourceVariableSet () | |
~SourceVariableSet () | |
Private Attributes | |
std::vector< PosVar > | vars |
Definition at line 14 of file SourceVariableSet.h.
typedef std::size_t PhysicsTools::SourceVariableSet::size_type |
Definition at line 16 of file SourceVariableSet.h.
|
inline |
Definition at line 18 of file SourceVariableSet.h.
|
inline |
Definition at line 19 of file SourceVariableSet.h.
bool PhysicsTools::SourceVariableSet::append | ( | SourceVariable * | var, |
Magic | magic = kRegular , |
||
int | offset = -1 |
||
) |
Definition at line 12 of file SourceVariableSet.cc.
References PhysicsTools::Source::getName(), PhysicsTools::Variable::getName(), PhysicsTools::SourceVariable::getSource(), PhysicsTools::SourceVariableSet::PosVar::magic, PFRecoTauDiscriminationByIsolation_cfi::offset, PhysicsTools::SourceVariableSet::PosVar::pos, JetChargeProducer_cfi::var, PhysicsTools::SourceVariableSet::PosVar::var, PhysicsTools::SourceVariableSet::PosVar::VarNameLess(), and vars.
Referenced by diclist.diclist::add(), PhysicsTools::MVATrainer::fillInputVars(), and PhysicsTools::MVATrainer::fillOutputVars().
SourceVariable * PhysicsTools::SourceVariableSet::find | ( | AtomicId | name | ) | const |
Definition at line 33 of file SourceVariableSet.cc.
References dataset::name, PhysicsTools::SourceVariableSet::PosVar::VarNameLess(), and vars.
Referenced by PhysicsTools::Source::getOutput(), and PhysicsTools::stdStringPrintf().
SourceVariable * PhysicsTools::SourceVariableSet::find | ( | Magic | magic | ) | const |
Definition at line 45 of file SourceVariableSet.cc.
References vars.
std::vector< SourceVariable * > PhysicsTools::SourceVariableSet::get | ( | bool | withMagic = false | ) | const |
Definition at line 55 of file SourceVariableSet.cc.
References reco::if(), kRegular, mps_fire::result, and vars.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), PhysicsTools::MVATrainer::connectProcessors(), PhysicsTools::TrainProcessor::doTrainBegin(), PhysicsTools::MVATrainer::findFinalProcessors(), PhysicsTools::MVATrainer::findUntrainedComputers(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and PhysicsTools::stdStringPrintf().
|
inline |
Definition at line 33 of file SourceVariableSet.h.
References PhysicsTools::SourceVariableSet::PosVar::noMagic(), and vars.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and PhysicsTools::MVATrainer::connectProcessors().