31 return &dummyHLTConfigData;
51 <<
"Called (R) with processName '" << processName <<
"' for " << iRun.
id() << endl;
78 if ((processPSet!=
nullptr) && (processPSet->
exists(
"hltTriggerSummaryAOD"))) {
85 <<
"Auto-discovery of processName failed!" << endl;
90 <<
"Auto-discovered processName: '" <<
processName_ <<
"'" << endl;
104 <<
" ProcessName '"<<
processName_ <<
" found " << n <<
" times in history!" << endl;
116 getDataFrom(processConfiguration.parameterSetID());
120 <<
"Falling back to ProcessName-only init using ProcessName '"<<
processName_<<
"' !";
140 edm::LogError(
"HLTConfigProvider") <<
"ProcessPSet found is empty!";
155 edm::LogError(
"HLTConfigProvider") <<
"ProcessPSet not found in regsistry!";
176 unsigned int nPSets(0);
181 if (
i->second.exists(
"@process_name")) {
182 const std::string pName(
i->second.getParameter<
string>(
"@process_name"));
184 if ( pName == processName ) {
189 }
else if (
nullptr != (pset = registry_->
getMapped(psetID))) {
190 if (pset->
exists(
"HLTConfigVersion")) {
192 if (HLTPSet.exists(
"tableName")) {
193 hNames += HLTPSet.
getParameter<
string>(
"tableName")+
" ";
202 <<
"Unordered list of all process names found: " << pNames <<
"." << endl;
205 <<
"HLT TableName of each selected process: " << hNames <<
"." << endl;
209 <<
" Process name '" << processName <<
"' not found in registry!" << endl;
215 <<
" Process name '" << processName <<
"' found but ParameterSetID invalid!" << endl;
221 <<
" Process name '" << processName <<
" found " << nPSets <<
" times in registry!" << endl;
247 std::vector<std::string>
matched;
249 const unsigned int n(inputs.size());
250 for (
unsigned int i=0;
i<
n; ++
i) {
252 if (std::regex_match(input,regexp)) matched.push_back(input);
258 const std::regex
regexp(
"_v[0-9]+$");
259 return std::regex_replace(trigger,regexp,
"");
263 return matched(inputs,trigger+
"_v[0-9]+$");
collection_type::const_iterator const_iterator
T getParameter(std::string const &) const
const_iterator begin() const
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 insertMapped(value_type const &v)
const_iterator end() const
static PFTauRenderPlugin instance
void getDataFrom(const edm::ParameterSetID &iID)
ParameterSetID id() const
std::string glob2reg(std::string const &pattern)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static const HLTConfigData * s_dummyHLTConfigData()
const std::string & tableName() const
HLT ConfDB table name.
std::string processName_
data members
bool changed() const
changed?
static const std::string removeVersion(const std::string &trigger)
static std::string const input
static ThreadSafeRegistry * instance()
const HLTConfigData * hltConfigData_
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
const edm::ParameterSet & processPSet() const
ParameterSet of process.
bool getMapped(key_type const &k, value_type &result) const
const_iterator begin() const
ProcessHistory const & processHistory() const
bool getMapped(key_type const &k, value_type &result) const
Hash< ParameterSetType > ParameterSetID
HLTConfigProvider()
c'tor
def getProcessName(pdgGen, requiredNumberOfGeneratedObjects)
const std::string & processName() const
process name
static const std::vector< std::string > restoreVersion(const std::vector< std::string > &inputs, const std::string &trigger)
ParameterSet const & getParameterSet(std::string const &) const
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
const_iterator end() const
edm::ParameterSetID id() const
technical: id() function needed for use with ThreadSafeRegistry
static Registry * instance()