1 #ifndef Utilities_PdtEntry_h 2 #define Utilities_PdtEntry_h 61 Entry const *
e = getEntryPointerOrThrow_(
name);
67 PdtEntry const &defaultValue)
const {
68 Entry const *
e = retrieveUntracked(name);
75 inline PdtEntry ParameterSet::getParameter<PdtEntry>(
char const *
name)
const {
76 Entry const &
e = retrieve(name);
81 inline PdtEntry ParameterSet::getUntrackedParameter<PdtEntry>(
char const *
name)
const {
82 Entry const *
e = getEntryPointerOrThrow_(name);
87 inline PdtEntry ParameterSet::getUntrackedParameter<PdtEntry>(
char const *
name,
PdtEntry const &defaultValue)
const {
88 Entry const *
e = retrieveUntracked(name);
95 inline std::vector<PdtEntry> ParameterSet::getParameter<std::vector<PdtEntry>>(
std::string const &
name)
const {
96 Entry const &
e = retrieve(name);
101 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
103 Entry const *
e = getEntryPointerOrThrow_(name);
108 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
109 std::string const &
name, std::vector<PdtEntry>
const &defaultValue)
const {
110 Entry const *
e = retrieveUntracked(name);
117 inline std::vector<PdtEntry> ParameterSet::getParameter<std::vector<PdtEntry>>(
char const *
name)
const {
118 Entry const &
e = retrieve(name);
123 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
char const *
name)
const {
124 Entry const *
e = getEntryPointerOrThrow_(name);
129 inline std::vector<PdtEntry> ParameterSet::getUntrackedParameter<std::vector<PdtEntry>>(
130 char const *
name, std::vector<PdtEntry>
const &defaultValue)
const {
131 Entry const *
e = retrieveUntracked(name);
138 inline std::vector<std::string> ParameterSet::getParameterNamesForType<PdtEntry>(
bool trackiness)
const {
139 std::vector<std::string> ints = getParameterNamesForType<int>(trackiness);
140 std::vector<std::string>
strings = getParameterNamesForType<std::string>(trackiness);
141 std::copy(strings.begin(), strings.end(), std::back_insert_iterator<std::vector<std::string>>(ints));
146 inline std::vector<std::string> ParameterSet::getParameterNamesForType<std::vector<PdtEntry>>(
bool trackiness)
const {
147 std::vector<std::string> ints = getParameterNamesForType<std::vector<int>>(trackiness);
148 std::vector<std::string>
strings = getParameterNamesForType<std::vector<std::string>>(trackiness);
149 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
std::string name_
particle name
std::vector< PdtEntry > getPdtEntryVector(Entry const &e, char const *name)
HepPDT::ParticleData ParticleData
const HepPDT::ParticleData * data_
particle data
PdtEntry()
default construct
char data[epos_bytes_allocation]
PdtEntry(const std::string &name)
construct from particle name