27 replace.insert(std::make_pair(fromPrefix+from+fromPostfix, toPrefix+to+toPostfix));
33 parameterSet_(psetString),
34 paths_(parameterSet_.getParameter<
StringVector>(
"@paths")),
40 for (StringVector::const_iterator
i =
paths_.begin(),
e =
paths_.end();
i !=
e; ++
i) {
51 tPaths_(parameterSet_.getParameter<
StringVector>(
"@trigger_paths")),
64 bool alreadyByReference) :
69 parameterSetIdConverter_(idConverter)
71 for (ParameterSetMap::const_iterator
i = psetMap.begin(), iEnd = psetMap.end();
i != iEnd; ++
i) {
74 if (alreadyByReference) {
82 if (
i->triggerPaths_ ==
j->triggerPaths_) {
83 j->parameterSet_.addParameter(
"@trigger_paths",
i->parameterSet_);
103 if (
i->first.find(
"@all_sources") != std::string::npos) {
109 if (
i->first.find(
"@trigger_paths") != std::string::npos) {
125 bool doItAgain =
false;
129 i->first.replace(it,
j->first.size(),
j->second);
135 if (
i->first.find(
"+P") == std::string::npos &&
i->first.find(
"+p") == std::string::npos) {
136 if (
i->first.find(
"@all_sources") != std::string::npos) {
145 insertIntoReplace(
replace_, loldparam, from, rparam, lparam, to, rparam);
146 insertIntoReplace(
replace_, comma, from, comma, comma, to, comma);
147 insertIntoReplace(
replace_, comma, from, rvparam, comma, to, rvparam);
148 insertIntoReplace(
replace_, loldvparam, from, comma, lvparam, to, comma);
149 insertIntoReplace(
replace_, loldvparam, from, rvparam, lvparam, to, rvparam);
153 if (
i->first.find(
"@trigger_paths") != std::string::npos) {
157 StringWithIDList::iterator icopy =
i;
166 std::list<std::string>
pieces;
167 split(std::back_inserter(pieces),
i->first,
'<',
';',
'>');
168 for (std::list<std::string>::iterator
i= pieces.begin(),
e = pieces.end();
i !=
e; ++
i) {
170 if (removeName.size() >= 4) {
171 if (removeName[1] ==
'P') {
172 std::string psetString(removeName.begin()+3, removeName.end()-1);
175 }
else if (removeName[1] ==
'p') {
178 split(std::back_inserter(temp), pvec,
'{',
',',
'}');
179 for (StringList::const_iterator
j = temp.begin(),
f = temp.end();
j !=
f; ++
j) {
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
const_iterator end() const
ParameterSetID id() const
static ThreadSafeRegistry * instance()
TriggerPath(ParameterSet const &pset)
std::vector< std::string > StringVector
StringWithIDList parameterSets_
const_iterator begin() const
ParameterSetIdConverter & parameterSetIdConverter_
bool insertMapped(value_type const &v)
void setID(ParameterSetID const &id) const
ParameterSetConverter(ParameterSetMap const &psetMap, ParameterSetIdConverter &idConverter, bool alreadyByReference)
std::vector< MainParameterSet > mainParameterSets_
std::vector< TriggerPath > triggerPaths_
ParameterSet parameterSet_
vector_type::const_iterator const_iterator
void convertParameterSets()
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
std::map< std::string, std::string > StringMap
bool split(OutIter result, std::string const &string_to_split, char first, char sep, char last)
Hash< ParameterSetType > ParameterSetID
bool search_all(ForwardSequence const &s, Datum const &d)
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
void noConvertParameterSets()
std::set< std::string > triggerPaths_
void toString(std::string &result) const
std::list< std::string > StringList
MainParameterSet(ParameterSetID const &oldID, std::string const &psetString)
ParameterSet const & registerIt()
std::set< std::string > triggerPaths_