19 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); ++it)
26 std::vector<std::string>::const_iterator
begin,
27 std::vector<std::string>::const_iterator
end,
30 : collector_(collector),
dump_(dump), special_(special) {
38 if (++iter_.back().first == iter_.back().second)
53 bool special = special_ && iter_.size() == 1;
54 if ((!line.empty() && line[0] ==
'+') || special) {
55 if (++iter_.back().first == iter_.back().second) {
63 std::map<std::string, std::vector<std::string> >
::const_iterator pos = collector_->contents_.find(block);
64 if (pos == collector_->contents_.end())
67 << block <<
"\", included via plus sign.";
70 *
dump_ <<
"\n####### " << block <<
" #######" << std::endl;
72 if (!pos->second.empty())
73 iter_.push_back(
IterPair(pos->second.begin(), pos->second.end()));
75 cache_ = collector_->resolve(line);
77 *
dump_ << cache_ << std::endl;
88 return const_iterator(
this, pos->second.begin(), pos->second.end(),
true);
104 return const_iterator(
this, pos->second.begin(), pos->second.end());
112 dump <<
"\n####### " << block <<
" #######" << std::endl;
122 if (pos == std::string::npos)
126 if (endpos == std::string::npos)
132 const char *
path = std::getenv(var.c_str());
134 result.replace(pos, endpos - pos, path ? path :
"");
static std::string resolve(const std::string &line)
const std::string names[nVars_]
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
std::pair< std::vector< std::string >::const_iterator, std::vector< std::string >::const_iterator > IterPair
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.0)
friend class const_iterator
T getParameter(std::string const &) const
std::map< std::string, std::vector< std::string > > contents_
std::vector< IterPair > iter_
const_iterator begin() const
tuple dump
OutputFilePath = cms.string('/tmp/zhokin/'), OutputFileExt = cms.string(''),.