12 triggerResults_(triggerResults),
13 triggerNames_(triggerNames) {
22 <<
"TriggerResultsByName::TriggerResultsByName, Trigger names vector and TriggerResults\n"
23 "have different ParameterSetID's. This should be impossible when the object is obtained\n"
24 "from the function named triggerResultsByName in the Event class, which is the way\n"
25 "TriggerResultsByName should always be created. If this is the case, please send\n"
26 "information to reproduce this problem to the edm developers. Otherwise, you are\n"
27 "using this class incorrectly and in a way that is not supported.\n";
32 <<
"TriggerResultsByName::TriggerResultsByName, Trigger names vector\n"
33 "and TriggerResults have different sizes. This should be impossible,\n"
34 "please send information to reproduce this problem to the edm developers.\n";
83 at(
unsigned i)
const {
178 std::vector<std::string>
const&
216 <<
"TriggerResultsByName::getAndCheckIndex\n"
217 <<
"Requested trigger name \""
218 << pathName <<
"\" does not match any known trigger.\n";
227 <<
"TriggerResultsByName has a null pointer to TriggerResults.\n"
228 <<
"This probably means TriggerResults was not found in the Event\n"
229 <<
"because the product was dropped or never created. It could also\n"
230 <<
"mean it was requested for a process that does not exist or was\n"
238 <<
"TriggerResultsByName has a null pointer to TriggerNames.\n"
239 <<
"This should never happen. It could indicate the ParameterSet\n"
240 <<
"containing the names is missing from the ParameterSet registry.\n"
241 <<
"Please report this to the edm developers along with instructions\n"
242 <<
"to reproduce the problem\n";
bool wasrun() const
Was at least one path run?
ParameterSetID const & parameterSetID() const
TriggerNames const * triggerNames_
std::vector< std::string >::size_type size() const
unsigned getAndCheckIndex(std::string const &pathName) const
HLTState
status of a trigger path
bool accept() const
Has at least one path accepted the event?
HLTPathStatus const & at(std::string const &pathName) const
unsigned triggerIndex(std::string const &pathName) const
std::string const & triggerName(unsigned i) const
Strings::size_type size() const
Strings const & triggerNames() const
ParameterSetID const & parameterSetID() const
std::vector< std::string > const & triggerNames() const
unsigned index(std::string const &pathName) const
unsigned int triggerIndex(std::string const &name) const
void throwTriggerResultsMissing() const
unsigned int size() const
Get number of paths stored.
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
bool error() const
Has any path encountered an error (exception)
const HLTPathStatus & at(const unsigned int i) const
std::string const & triggerName(unsigned int index) const
static std::string const triggerResults("TriggerResults")
hlt::HLTState state(std::string const &pathName) const
TriggerResultsByName(TriggerResults const *triggerResults, TriggerNames const *triggerNames)
HLTPathStatus const & operator[](std::string const &pathName) const
TriggerResults const * triggerResults_
const ParameterSetID & parameterSetID() const
Get stored parameter set id.
void throwTriggerNamesMissing() const
hlt::HLTState state(const unsigned int i) const
Get status of ith path.