1 #ifndef Utilities_PdtEntry_h
2 #define Utilities_PdtEntry_h
62 Entry const *
e = getEntryPointerOrThrow_(
name);
68 PdtEntry const &defaultValue)
const {
76 inline PdtEntry ParameterSet::getParameter<PdtEntry>(
char const *
name)
const {
82 inline PdtEntry ParameterSet::getUntrackedParameter<PdtEntry>(
char const *
name)
const {
83 Entry const *
e = getEntryPointerOrThrow_(
name);
88 inline PdtEntry ParameterSet::getUntrackedParameter<PdtEntry>(
char const *
name,
PdtEntry const &defaultValue)
const {
96 inline std::vector<PdtEntry> ParameterSet::getParameter<std::vector<PdtEntry>>(
std::string const &
name)
const {
102 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
104 Entry const *
e = getEntryPointerOrThrow_(
name);
109 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
110 std::string const &
name, std::vector<PdtEntry>
const &defaultValue)
const {
118 inline std::vector<PdtEntry> ParameterSet::getParameter<std::vector<PdtEntry>>(
char const *
name)
const {
124 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
char const *
name)
const {
125 Entry const *
e = getEntryPointerOrThrow_(
name);
130 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
131 char const *
name, std::vector<PdtEntry>
const &defaultValue)
const {
139 inline std::vector<std::string> ParameterSet::getParameterNamesForType<PdtEntry>(
bool trackiness)
const {
140 std::vector<std::string> ints = getParameterNamesForType<int>(trackiness);
141 std::vector<std::string> strings = getParameterNamesForType<std::string>(trackiness);
142 std::copy(strings.begin(), strings.end(), std::back_insert_iterator<std::vector<std::string>>(ints));
147 inline std::vector<std::string> ParameterSet::getParameterNamesForType<std::vector<PdtEntry>>(
bool trackiness)
const {
148 std::vector<std::string> ints = getParameterNamesForType<std::vector<int>>(trackiness);
149 std::vector<std::string> strings = getParameterNamesForType<std::vector<std::string>>(trackiness);
150 std::copy(strings.begin(), strings.end(), std::back_insert_iterator<std::vector<std::string>>(ints));
PdtEntry getPdtEntry(Entry const &e, char const *name)
PdtEntry(int pdgId)
construct from PDG id
void setup(const HepPDT::ParticleDataTable &)
fill data from Event Setup
HepPDT::ParticleDataTable ParticleDataTable
std::string name_
particle name
std::vector< PdtEntry > getPdtEntryVector(Entry const &e, char const *name)
HepPDT::ParticleData ParticleData
const HepPDT::ParticleData * data_
particle data
const std::string & name() const
particle name
PdtEntry()
default construct
int pdgId() const
PDG id.
PdtEntry(const std::string &name)
construct from particle name
const HepPDT::ParticleData & data() const
particle data