31 return &dummyHLTConfigData;
72 LogError(
"HLTConfigProvider") <<
"Auto-discovery of processName failed!";
91 LogError(
"HLTConfigProvider") <<
" ProcessName '" <<
processName_ <<
" found " <<
n <<
" times in history!";
103 getDataFrom(processConfiguration.parameterSetID());
106 LogError(
"HLTConfigProvider") <<
"Falling back to ProcessName-only init using ProcessName '" <<
processName_ 126 edm::LogError(
"HLTConfigProvider") <<
"ProcessPSet found is empty!";
141 edm::LogError(
"HLTConfigProvider") <<
"ProcessPSet not found in regsistry!";
160 unsigned int nPSets(0);
166 i->second.existsAs<std::vector<std::string>>(
"@paths",
true)) {
168 pNames += pName +
" ";
174 }
else if (
nullptr != (
pset = registry_->
getMapped(psetID))) {
178 hNames += HLTPSet.getParameter<
std::string>(
"tableName") +
" ";
186 LogVerbatim(
"HLTConfigProvider") <<
"Unordered list of all process names found: " << pNames <<
".";
188 LogVerbatim(
"HLTConfigProvider") <<
"HLT TableName of each selected process: " << hNames <<
".";
191 LogError(
"HLTConfigProvider") <<
" Process name '" <<
processName <<
"' not found in registry!";
196 LogError(
"HLTConfigProvider") <<
" Process name '" <<
processName <<
"' found but ParameterSetID invalid!";
201 LogError(
"HLTConfigProvider") <<
" Process name '" <<
processName <<
" found " << nPSets <<
" times in registry!";
224 std::vector<std::string>
matched;
226 const unsigned int n(
inputs.size());
227 for (
unsigned int i = 0;
i <
n; ++
i) {
236 const std::regex
regexp(
"_v[0-9]+$");
collection_type::const_iterator const_iterator
Log< level::Info, true > LogVerbatim
map_type::const_iterator const_iterator
static const std::vector< std::string > matched(const std::vector< std::string > &inputs, const std::string &pattern)
regexp processing
bool getMapped(key_type const &k, value_type &result) const
bool insertMapped(value_type const &v)
static PFTauRenderPlugin instance
void getDataFrom(const edm::ParameterSetID &iID)
bool getMapped(key_type const &k, value_type &result) const
edm::ParameterSetID id() const
technical: id() function needed for use with ThreadSafeRegistry
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::string glob2reg(std::string const &pattern)
static const HLTConfigData * s_dummyHLTConfigData()
std::string processName_
data members
Log< level::Error, false > LogError
const_iterator end() const
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
static const std::string removeVersion(const std::string &trigger)
static std::string const input
const_iterator end() const
static ThreadSafeRegistry * instance()
const HLTConfigData * hltConfigData_
ParameterSetID id() const
const edm::ParameterSet & processPSet() const
ParameterSet of process.
ProcessHistory const & processHistory() const
Hash< ParameterSetType > ParameterSetID
HLTConfigProvider()
c'tor
def getProcessName(pdgGen, requiredNumberOfGeneratedObjects)
Log< level::Info, false > LogInfo
bool changed() const
changed?
static const std::vector< std::string > restoreVersion(const std::vector< std::string > &inputs, const std::string &trigger)
const std::string & processName() const
process name
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
const std::string & tableName() const
HLT ConfDB table name.
const_iterator begin() const
static Registry * instance()
const_iterator begin() const