7 return std::make_pair(
false, 0);
12 return std::make_pair(
true, 0);
14 return std::make_pair(
false, 0);
18 return std::make_pair(
true, (
double)
maxIndex());
20 return std::make_pair(
false, 0);
28 return std::make_pair(
true, (
double)
i);
31 return std::make_pair(
true, (
double)
i - 1);
37 return std::make_pair(
false, 0);
41 return std::make_pair(
true,
p);
63 arg_.
m.insert(std::make_pair(aName, newVar));
66 std::map<std::string, const ComputedVariable*>::const_iterator
it =
iCompute_.find(
var);
69 ss <<
"cannot assign: " <<
var <<
". List of variable declared:\n";
70 for (std::map<std::string, const ComputedVariable*>::const_iterator
it =
iCompute_.begin();
it !=
iCompute_.end();
72 ss <<
it->first << std::endl;
79 for (std::map<std::string, const ComputedVariable*>::const_iterator
it =
iCompute_.begin();
it !=
iCompute_.end();
81 it->second->setNotCompute();
84 std::map<std::string, const ComputedVariable*>::const_iterator
it =
iCompute_.find(
var);
87 ss <<
"cannot act on: " <<
var <<
". List of variable declared:\n";
88 for (std::map<std::string, const ComputedVariable*>::const_iterator
it =
iCompute_.begin();
it !=
iCompute_.end();
90 ss <<
it->first << std::endl;
93 it->second->setNotCompute();
T getParameter(std::string const &) const
ComputedVariable(const CachingVariableFactoryArg &arg, edm::ConsumesCollector &iC)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
VariableComputer(const CachingVariable::CachingVariableFactoryArg &arg, edm::ConsumesCollector &iC)
unsigned int maxIndex() const
Log< level::Error, false > LogError
void assign(std::string var, double &value) const
const CachingVariable::CachingVariableFactoryArg & arg_
std::vector< double > slots_
edm::ParameterSet & iConfig
std::map< std::string, const ComputedVariable * > iCompute_
void compute(const edm::Event &iEvent) const override
VariableComputerTest(const CachingVariable::CachingVariableFactoryArg &arg, edm::ConsumesCollector &iC)
void doesNotCompute() const
CachingVariable::evalType eval(const edm::Event &iEvent) const override
CachingVariable::vMap & m
CachingVariable::evalType eval(const edm::Event &iEvent) const override
void declare(std::string var, edm::ConsumesCollector &iC)
std::pair< bool, valueType > evalType