15 #include "tbb/concurrent_unordered_map.h" 31 typedef tbb::concurrent_unordered_map<edm::ParameterSetID, edm::TriggerNames, key_hash> TriggerNamesMap;
37 EventBase::EventBase() {}
39 EventBase::~EventBase() {}
48 TriggerNamesMap::const_iterator iter = triggerNamesMap.find(triggerResults.
parameterSetID());
49 if (iter != triggerNamesMap.end()) {
58 if (pset->
existsAs<std::vector<std::string> >(
"@trigger_paths",
true)) {
62 if (triggerNames.
size() != triggerResults.
size()) {
63 throw cms::Exception(
"LogicError") <<
"edm::EventBase::triggerNames_ Encountered vector\n" 64 "of trigger names and a TriggerResults object with\n" 65 "different sizes. This should be impossible.\n" 66 "Please send information to reproduce this problem to\n" 67 "the edm developers.\n";
70 std::pair<TriggerNamesMap::iterator, bool> ret = triggerNamesMap.insert(
71 std::pair<edm::ParameterSetID, edm::TriggerNames>(triggerResults.
parameterSetID(), triggerNames));
72 return &(ret.first->second);
83 if (triggerNames.
size() != triggerResults.
size()) {
84 throw cms::Exception(
"LogicError") <<
"edm::EventBase::triggerNames_ Encountered vector\n" 85 "of trigger names and a TriggerResults object with\n" 86 "different sizes. This should be impossible.\n" 87 "Please send information to reproduce this problem to\n" 88 "the edm developers (2).\n";
91 std::pair<TriggerNamesMap::iterator, bool> ret =
92 triggerNamesMap.insert(std::pair<edm::ParameterSetID, edm::TriggerNames>(fakePset.
id(), triggerNames));
93 return &(ret.first->second);
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
ParameterSetID id() const
Strings::size_type size() const
const std::vector< std::string > & getTriggerNames() const
Obsolete.
unsigned int size() const
Get number of paths stored.
void addParameter(std::string const &name, T const &value)
bool getMapped(key_type const &k, value_type &result) const
static std::string const triggerResults
size_t smallHash() const
returns a short hash which can be used with hashing containers
ParameterSet const & registerIt()
const ParameterSetID & parameterSetID() const
Get stored parameter set id.
static Registry * instance()