#include <PdgEntryReplacer.h>
Definition at line 9 of file PdgEntryReplacer.h.
string PdgEntryReplacer::replace |
( |
const std::string & |
| ) |
const |
Definition at line 6 of file PdgEntryReplacer.cc.
References recoMuon::in, n, AlCaRecoCosmics_cfg::name, connectstrParser::o, dbtoconf::out, p1, p2, PdtEntry::pdgId(), asciidump::s, and PdtEntry::setup().
Referenced by GenParticlePruner::produce().
9 size_t p1 = out.find_first_of(
'{');
10 if(p1 == string::npos)
break;
11 size_t p2 = out.find_first_of(
'}', p1 + 1);
12 if(p2 == string::npos)
break;
13 size_t n = p2 - p1 - 1;
14 string name(out, p1 + 1, n);
18 o << particle.pdgId();
20 out.replace(p1, n + 2, s);
const edm::EventSetup * es_