Main Page
Namespaces
Classes
Package Documentation
DataFormats
PatCandidates
src
throwMissingLabel.cc
Go to the documentation of this file.
1
#include "
DataFormats/PatCandidates/interface/throwMissingLabel.h
"
2
3
#include "
FWCore/Utilities/interface/Exception.h
"
4
#include <iostream>
5
6
namespace
pat
{
7
void
throwMissingLabel
(
const
std::string
& what,
const
std::string
& bad_label,
8
const
std::vector<std::string>& available) {
9
cms::Exception
ex(
std::string
(
"Unknown"
)+what);
10
ex <<
"Requested "
<< what <<
" "
<< bad_label
11
<<
" is not available! Possible "
<< what <<
"s are: "
<< std::endl;
12
for
(
const
auto
&
name
: available ) {
13
ex <<
name
<<
' '
;
14
}
15
throw
ex;
16
}
17
}
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
throwMissingLabel.h
pat
Definition:
HeavyIon.h:7
pat::throwMissingLabel
void throwMissingLabel(const std::string &what, const std::string &bad_label, const std::vector< std::string > &available)
Definition:
throwMissingLabel.cc:7
Exception.h
cms::Exception
Definition:
Exception.h:68
dataset.name
name
Definition:
dataset.py:45
Generated for CMSSW Reference Manual by
1.8.11