test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HLTConfigProvider Class Reference

#include <HLTConfigProvider.h>

Public Member Functions

bool changed () const
 changed? More...
 
const std::vector< std::string > & datasetContent (unsigned int dataset) const
 names of trigger paths in dataset with index i More...
 
const std::vector< std::string > & datasetContent (const std::string &dataset) const
 names of trigger paths in dataset with name More...
 
const std::vector< std::vector
< std::string > > & 
datasetContents () const
 names of trigger paths for all datasets More...
 
unsigned int datasetIndex (const std::string &dataset) const
 index of dataset with name More...
 
const std::string & datasetName (unsigned int dataset) const
 name of dataset with index i More...
 
const std::vector< std::string > & datasetNames () const
 
void dump (const std::string &what) const
 Dumping config info to cout. More...
 
const std::string & globalTag () const
 global tag More...
 
 HLTConfigProvider ()
 c'tor More...
 
const std::vector< std::vector
< std::pair< bool, std::string > > > & 
hltL1GTSeeds () const
 
const std::vector< std::pair
< bool, std::string > > & 
hltL1GTSeeds (const std::string &trigger) const
 HLTLevel1GTSeed modules for trigger path with name. More...
 
const std::vector< std::pair
< bool, std::string > > & 
hltL1GTSeeds (unsigned int trigger) const
 HLTLevel1GTSeed modules for trigger path with index i. More...
 
const std::vector< std::vector
< std::string > > & 
hltL1TSeeds () const
 
const std::vector< std::string > & hltL1TSeeds (const std::string &trigger) const
 HLTL1TSeed modules for trigger path with name. More...
 
const std::vector< std::string > & hltL1TSeeds (unsigned int trigger) const
 HLTL1TSeed modules for trigger path with index i. More...
 
bool init (const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
 d'tor More...
 
bool inited () const
 Accessors (const methods) More...
 
unsigned int l1tType () const
 L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2) More...
 
const std::string moduleEDMType (const std::string &module) const
 C++ base class name of module. More...
 
unsigned int moduleIndex (unsigned int trigger, const std::string &module) const
 slot position of module on trigger path (0 to size-1) More...
 
unsigned int moduleIndex (const std::string &trigger, const std::string &module) const
 
const std::string & moduleLabel (unsigned int trigger, unsigned int module) const
 
const std::string & moduleLabel (const std::string &trigger, unsigned int module) const
 
const std::vector< std::string > & moduleLabels (unsigned int trigger) const
 label(s) of module(s) on a trigger path More...
 
const std::vector< std::string > & moduleLabels (const std::string &trigger) const
 
const edm::ParameterSetmodulePSet (const std::string &module) const
 ParameterSet of module. More...
 
const std::string moduleType (const std::string &module) const
 C++ class name of module. More...
 
const std::vector< std::string > & prescaleLabels () const
 low-level data member access More...
 
unsigned int prescaleSize () const
 
const std::map< std::string,
std::vector< unsigned int > > & 
prescaleTable () const
 
unsigned int prescaleValue (unsigned int set, const std::string &trigger) const
 HLT prescale value in specific prescale set for a specific trigger path. More...
 
const std::string & processName () const
 process name More...
 
const edm::ParameterSetprocessPSet () const
 ParameterSet of process. More...
 
bool saveTags (const std::string &module) const
 Is module an L3 filter (ie, tracked saveTags=true) More...
 
const std::vector< std::string > & saveTagsModules (unsigned int trigger) const
 
const std::vector< std::string > & saveTagsModules (const std::string &trigger) const
 
unsigned int size () const
 number of trigger paths in trigger table More...
 
unsigned int size (unsigned int trigger) const
 number of modules on a specific trigger path More...
 
unsigned int size (const std::string &trigger) const
 
const std::vector< std::string > & streamContent (unsigned int stream) const
 names of datasets in stream with index i More...
 
const std::vector< std::string > & streamContent (const std::string &stream) const
 names of datasets in stream with name More...
 
const std::vector< std::vector
< std::string > > & 
streamContents () const
 names of datasets for all streams More...
 
unsigned int streamIndex (const std::string &stream) const
 index of stream with name More...
 
const std::string & streamName (unsigned int stream) const
 name of stream with index i More...
 
const std::vector< std::string > & streamNames () const
 
const std::string & tableName () const
 HLT ConfDB table name. More...
 
unsigned int triggerIndex (const std::string &triggerName) const
 slot position of trigger path in trigger table (0 to size-1) More...
 
const std::string & triggerName (unsigned int triggerIndex) const
 
const std::vector< std::string > & triggerNames () const
 names of trigger paths More...
 

Static Public Member Functions

static const std::vector
< std::string > 
matched (const std::vector< std::string > &inputs, const std::string &pattern)
 regexp processing More...
 
static const std::string removeVersion (const std::string &trigger)
 
static const std::vector
< std::string > 
restoreVersion (const std::vector< std::string > &inputs, const std::string &trigger)
 

Private Member Functions

void clear ()
 
void getDataFrom (const edm::ParameterSetID &iID)
 
void init (const edm::ProcessHistory &iHistory, const std::string &processName)
 
void init (const std::string &processName)
 

Private Attributes

bool changed_
 
const HLTConfigDatahltConfigData_
 
bool inited_
 
std::string processName_
 data members More...
 

Detailed Description

This class provides access routines to get hold of the HLT Configuration

Author
Martin Grunewald

See header file for documentation

Author
Martin Grunewald

Definition at line 28 of file HLTConfigProvider.h.

Constructor & Destructor Documentation

HLTConfigProvider::HLTConfigProvider ( )

c'tor

Definition at line 30 of file HLTConfigProvider.cc.

30  :
31  processName_(""),
32  inited_(false),
33  changed_(true),
35 {
36 }
static const HLTConfigData * s_dummyHLTConfigData()
std::string processName_
data members
const HLTConfigData * hltConfigData_

Member Function Documentation

bool HLTConfigProvider::changed ( ) const
inline

changed?

Definition at line 56 of file HLTConfigProvider.h.

References changed_.

Referenced by EmDQM::dqmBeginRun().

56  {
57  return changed_;
58  }
void HLTConfigProvider::clear ( void  )
private

Definition at line 224 of file HLTConfigProvider.cc.

References changed_, hltConfigData_, inited_, processName_, and s_dummyHLTConfigData().

Referenced by getDataFrom(), and init().

225 {
226  // clear all data members
227 
228  processName_ = "";
229  inited_ = false;
230  changed_ = true;
232 
233  return;
234 }
static const HLTConfigData * s_dummyHLTConfigData()
std::string processName_
data members
const HLTConfigData * hltConfigData_
const std::vector<std::string>& HLTConfigProvider::datasetContent ( unsigned int  dataset) const
inline

names of trigger paths in dataset with index i

Definition at line 233 of file HLTConfigProvider.h.

References HLTConfigData::datasetContent(), and hltConfigData_.

Referenced by HLTOfflineReproducibility::beginRun(), GeneralHLTOffline::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), and HLTScalers::dqmBeginRun().

233  {
235  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
tuple dataset
Definition: dataset.py:861
const std::vector<std::string>& HLTConfigProvider::datasetContent ( const std::string &  dataset) const
inline

names of trigger paths in dataset with name

Definition at line 237 of file HLTConfigProvider.h.

References HLTConfigData::datasetContent(), and hltConfigData_.

237  {
239  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
tuple dataset
Definition: dataset.py:861
const std::vector<std::vector<std::string> >& HLTConfigProvider::datasetContents ( ) const
inline

names of trigger paths for all datasets

Definition at line 229 of file HLTConfigProvider.h.

References HLTConfigData::datasetContents(), and hltConfigData_.

Referenced by HLTrigReport::reset(), HLTriggerJSONMonitoring::resetRun(), and TriggerJSONMonitoring::resetRun().

229  {
231  }
const HLTConfigData * hltConfigData_
const std::vector< std::vector< std::string > > & datasetContents() const
names of trigger paths for all datasets
unsigned int HLTConfigProvider::datasetIndex ( const std::string &  dataset) const
inline

index of dataset with name

Definition at line 225 of file HLTConfigProvider.h.

References HLTConfigData::datasetIndex(), and hltConfigData_.

225  {
227  }
const HLTConfigData * hltConfigData_
tuple dataset
Definition: dataset.py:861
unsigned int datasetIndex(const std::string &dataset) const
index of dataset with name
const std::string& HLTConfigProvider::datasetName ( unsigned int  dataset) const
inline

name of dataset with index i

Definition at line 221 of file HLTConfigProvider.h.

References HLTConfigData::datasetName(), and hltConfigData_.

221  {
223  }
const std::string & datasetName(unsigned int dataset) const
name of dataset with index i
const HLTConfigData * hltConfigData_
tuple dataset
Definition: dataset.py:861
const std::vector<std::string>& HLTConfigProvider::datasetNames ( ) const
inline

Datasets list of names of all datasets

Definition at line 217 of file HLTConfigProvider.h.

References HLTConfigData::datasetNames(), and hltConfigData_.

Referenced by HLTOfflineReproducibility::beginRun(), TriggerRatesMonitor::bookHistograms(), TriggerRatesMonitor::dqmBeginRun(), HLTrigReport::reset(), HLTriggerJSONMonitoring::resetRun(), and TriggerJSONMonitoring::resetRun().

217  {
218  return hltConfigData_->datasetNames();
219  }
const std::vector< std::string > & datasetNames() const
Datasets.
const HLTConfigData * hltConfigData_
void HLTConfigProvider::dump ( const std::string &  what) const
inline

Dumping config info to cout.

Definition at line 45 of file HLTConfigProvider.h.

References HLTConfigData::dump(), and hltConfigData_.

Referenced by HLTPathSelector::beginRun(), HLTEventAnalyzerRAW::beginRun(), and HLTEventAnalyzerAOD::beginRun().

45  {
46  hltConfigData_->dump(what);
47  }
const HLTConfigData * hltConfigData_
void dump(const std::string &what) const
Dumping config info to cout.
void HLTConfigProvider::getDataFrom ( const edm::ParameterSetID iID)
private

Definition at line 118 of file HLTConfigProvider.cc.

References changed_, clear(), ztail::d, edm::detail::ThreadSafeRegistry< KEY, T >::getMapped(), hltConfigData_, edm::ParameterSet::id(), inited_, edm::detail::ThreadSafeRegistry< KEY, T >::insertMapped(), edm::pset::Registry::instance(), edm::detail::ThreadSafeRegistry< KEY, T >::instance(), edm::Hash< I >::isValid(), processPSet(), and s_dummyHLTConfigData().

Referenced by init().

119 {
120  //is it in our registry?
122  const HLTConfigData* d = reg->getMapped(iID);
123  if(0 != d) {
124  changed_ = true;
125  inited_ = true;
126  hltConfigData_ = d;
127  } else {
128  const edm::ParameterSet* processPSet = 0;
129  if ( 0 != (processPSet = edm::pset::Registry::instance()->getMapped(iID))) {
130  if (not processPSet->id().isValid()) {
131  clear();
132  edm::LogError("HLTConfigProvider") << "ProcessPSet found is empty!";
133  changed_ = true;
134  inited_ = false;
136  return;
137  } else {
138  clear();
139  reg->insertMapped( HLTConfigData(processPSet));
140  changed_ = true;
141  inited_ = true;
142  hltConfigData_ = reg->getMapped(processPSet->id());
143  return;
144  }
145  } else {
146  clear();
147  edm::LogError("HLTConfigProvider") << "ProcessPSet not found in regsistry!";
148  changed_ = true;
149  inited_ = false;
151  return;
152  }
153  }
154  return;
155 }
bool insertMapped(value_type const &v)
ParameterSetID id() const
static const HLTConfigData * s_dummyHLTConfigData()
const HLTConfigData * hltConfigData_
static ThreadSafeRegistry * instance()
tuple d
Definition: ztail.py:151
const edm::ParameterSet & processPSet() const
ParameterSet of process.
bool getMapped(key_type const &k, value_type &result) const
bool isValid() const
Definition: Hash.h:150
static Registry * instance()
Definition: Registry.cc:12
const std::string& HLTConfigProvider::globalTag ( ) const
inline

global tag

Definition at line 66 of file HLTConfigProvider.h.

References HLTConfigData::globalTag(), and hltConfigData_.

66  {
67  return hltConfigData_->globalTag();
68  }
const HLTConfigData * hltConfigData_
const std::string & globalTag() const
GlobalTag.globaltag.
const std::vector<std::vector<std::pair<bool,std::string> > >& HLTConfigProvider::hltL1GTSeeds ( ) const
inline
const std::vector<std::pair<bool,std::string> >& HLTConfigProvider::hltL1GTSeeds ( const std::string &  trigger) const
inline

HLTLevel1GTSeed modules for trigger path with name.

Definition at line 165 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

165  {
166  return hltConfigData_->hltL1GTSeeds(trigger);
167  }
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
const HLTConfigData * hltConfigData_
const std::vector<std::pair<bool,std::string> >& HLTConfigProvider::hltL1GTSeeds ( unsigned int  trigger) const
inline

HLTLevel1GTSeed modules for trigger path with index i.

Definition at line 169 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

169  {
170  return hltConfigData_->hltL1GTSeeds(trigger);
171  }
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
const HLTConfigData * hltConfigData_
const std::vector<std::vector<std::string> >& HLTConfigProvider::hltL1TSeeds ( ) const
inline

HLTL1TSeed module HLTL1TSeed modules for all trigger paths

Definition at line 175 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1TSeeds().

Referenced by HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().

175  {
176  return hltConfigData_->hltL1TSeeds();
177  }
const HLTConfigData * hltConfigData_
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
const std::vector<std::string>& HLTConfigProvider::hltL1TSeeds ( const std::string &  trigger) const
inline

HLTL1TSeed modules for trigger path with name.

Definition at line 179 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1TSeeds().

179  {
180  return hltConfigData_->hltL1TSeeds(trigger);
181  }
const HLTConfigData * hltConfigData_
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
const std::vector<std::string>& HLTConfigProvider::hltL1TSeeds ( unsigned int  trigger) const
inline

HLTL1TSeed modules for trigger path with index i.

Definition at line 183 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1TSeeds().

183  {
184  return hltConfigData_->hltL1TSeeds(trigger);
185  }
const HLTConfigData * hltConfigData_
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
bool HLTConfigProvider::init ( const edm::Run iRun,
const edm::EventSetup iSetup,
const std::string &  processName,
bool &  changed 
)

d'tor

Run-dependent initialisation (non-const method) "init" return value indicates whether intitialisation has succeeded "changed" parameter indicates whether the config has actually changed

Definition at line 38 of file HLTConfigProvider.cc.

References changed_, edm::RunBase::id(), inited_, edm::Run::processHistory(), processName(), and processName_.

Referenced by L1GtTriggerMenuTester::associateL1SeedsHltPath(), HLTPathSelector::beginRun(), HLTEventAnalyzerRAW::beginRun(), PixelVTXMonitor::beginRun(), LumiCalculator::beginRun(), StudyHLT::beginRun(), HLTrigReport::beginRun(), AlCaIsolatedBunchFilter::beginRun(), AlCaIsolatedBunchSelector::beginRun(), pat::PATTriggerEventProducer::beginRun(), AlCaHBHEMuonFilter::beginRun(), HcalRaddamMuon::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), HLTHiggsSubAnalysis::beginRun(), HLTOfflineReproducibility::beginRun(), HLTriggerJSONMonitoring::beginRun(), HLTExoticaSubAnalysis::beginRun(), HcalIsoTrkAnalyzer::beginRun(), AlCaIsoTracksFilter::beginRun(), EgHLTOfflineSummaryClient::beginRun(), IsoTrackCalibration::beginRun(), EgHLTOfflineClient::beginRun(), IsoTrackCalib::beginRun(), AlCaIsoTracksProducer::beginRun(), TriggerJSONMonitoring::beginRun(), L1MuonRecoTreeProducer::beginRun(), TrackerDpgAnalysis::beginRun(), EgHLTOfflineSource::bookHistograms(), DQMProvInfo::dqmBeginRun(), HLTTauDQMOfflineSource::dqmBeginRun(), SUSY_HLT_DoubleMuon_Hadronic::dqmBeginRun(), SUSY_HLT_Muon_BJet::dqmBeginRun(), SUSY_HLT_DoubleEle_Hadronic::dqmBeginRun(), SUSY_HLT_Electron_BJet::dqmBeginRun(), EwkMuLumiMonitorDQM::dqmBeginRun(), SUSY_HLT_alphaT::dqmBeginRun(), SUSY_HLT_ElecFakes::dqmBeginRun(), SUSY_HLT_DiJet_MET::dqmBeginRun(), SUSY_HLT_MuonFakes::dqmBeginRun(), SUSY_HLT_MuEle_Hadronic::dqmBeginRun(), SUSY_HLT_Muon_Hadronic::dqmBeginRun(), SUSY_HLT_VBF_Mu::dqmBeginRun(), HLTSeedL1LogicScalers::dqmBeginRun(), HLTMuonValidator::dqmBeginRun(), HLTMuonOfflineAnalyzer::dqmBeginRun(), HigPhotonJetHLTOfflineSource::dqmBeginRun(), SUSY_HLT_SingleLepton::dqmBeginRun(), QcdUeDQM::dqmBeginRun(), HeavyFlavorValidation::dqmBeginRun(), GeneralHLTOffline::dqmBeginRun(), TriggerBxMonitor::dqmBeginRun(), HLTJetMETValidation::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), FSQDiJetAve::dqmBeginRun(), HLTScalers::dqmBeginRun(), JetMETHLTOfflineSource::dqmBeginRun(), EmDQM::dqmBeginRun(), EmDQMReco::dqmBeginRun(), QcdLowPtDQM::dqmBeginRun(), TopSingleLeptonHLTOfflineDQM::dqmBeginRun(), TopDiLeptonHLTOfflineDQM::dqmBeginRun(), MuScleFit::duringLoop(), HLTPrescaleProvider::init(), init(), TriggerHelper::initRun(), and GenericTriggerEventFlag::initRun().

41  {
42 
43  using namespace std;
44  using namespace edm;
45 
46  LogInfo("HLTConfigProvider")
47  << "Called (R) with processName '" << processName << "' for " << iRun.id() << endl;
48 
50 
53  return inited_;
54 
55 }
RunID const & id() const
Definition: RunBase.h:39
std::string processName_
data members
bool changed() const
changed?
ProcessHistory const & processHistory() const
Definition: Run.cc:99
const std::string & processName() const
process name
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
void HLTConfigProvider::init ( const edm::ProcessHistory iHistory,
const std::string &  processName 
)
private

Check uniqueness (uniqueness should [soon] be enforced by Fw)

Definition at line 57 of file HLTConfigProvider.cc.

References edm::ProcessHistory::begin(), changed_, clear(), edm::ProcessHistory::end(), edm::ParameterSet::exists(), edm::ProcessHistory::getConfigurationForProcess(), getDataFrom(), edm::pset::Registry::getMapped(), hltConfigData_, HLTConfigData::id(), init(), inited_, edm::pset::Registry::instance(), gen::n, edm::processConfiguration, processName(), processName_, processPSet(), and s_dummyHLTConfigData().

57  {
58 
59  using namespace std;
60  using namespace edm;
61 
62  const ProcessHistory::const_iterator hb(iHistory.begin());
63  const ProcessHistory::const_iterator he(iHistory.end());
64 
67 
69  if (processName_=="*") {
70  // auto-discovery of process name
71  for (ProcessHistory::const_iterator hi=hb; hi!=he; ++hi) {
72  if (iHistory.getConfigurationForProcess(hi->processName(),processConfiguration)) {
74  if ((processPSet!=0) && (processPSet->exists("hltTriggerSummaryAOD"))) {
75  processName_=hi->processName();
76  }
77  }
78  }
79  LogInfo("HLTConfigProvider")
80  << "Auto-discovered processName: '" << processName_ << "'" << endl;
81  }
82  if (processName_=="*") {
83  LogError("HLTConfigProvider")
84  << "Auto-discovery of processName failed!" << endl;
85  clear();
86  return;
87  }
88 
90  unsigned int n(0);
91  for (ProcessHistory::const_iterator hi=hb; hi!=he; ++hi) {
92  if (hi->processName()==processName_) {n++;}
93  }
94  if (n>1) {
95  LogError("HLTConfigProvider")
96  << " ProcessName '"<< processName_ << " found " << n << " times in history!" << endl;
97  clear();
98  return;
99  }
100 
103  if ((hltConfigData_ !=s_dummyHLTConfigData()) && (processConfiguration.parameterSetID() == hltConfigData_->id())) {
104  changed_ = false;
105  inited_ = true;
106  return;
107  } else {
108  getDataFrom(processConfiguration.parameterSetID());
109  }
110  } else {
111  LogError("HLTConfigProvider")
112  << "Falling back to ProcessName-only init using ProcessName '"<<processName_<<"' !";
114  return;
115  }
116 }
collection_type::const_iterator const_iterator
const_iterator begin() const
void getDataFrom(const edm::ParameterSetID &iID)
bool exists(std::string const &parameterName) const
checks if a parameter exists
processConfiguration
Definition: Schedule.cc:374
static const HLTConfigData * s_dummyHLTConfigData()
std::string processName_
data members
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
Definition: Registry.cc:18
const std::string & processName() const
process name
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
const_iterator end() const
edm::ParameterSetID id() const
technical: id() function needed for use with ThreadSafeRegistry
static Registry * instance()
Definition: Registry.cc:12
void HLTConfigProvider::init ( const std::string &  processName)
private

Definition at line 157 of file HLTConfigProvider.cc.

References edm::pset::Registry::begin(), clear(), edm::pset::Registry::end(), getDataFrom(), edm::pset::Registry::getMapped(), edm::ParameterSet::getParameter(), hltConfigData_, i, HLTConfigData::id(), instance, TrackValidation_cff::pset, s_dummyHLTConfigData(), AlCaHLTBitMon_QueryRunRegistry::string, and tableName().

158 {
159  using namespace std;
160  using namespace edm;
161 
162  // Obtain ParameterSetID for requested process (with name
163  // processName) from pset registry
164  string pNames("");
165  string hNames("");
166  const ParameterSet* pset = 0;
167  ParameterSetID psetID;
168  unsigned int nPSets(0);
169  const edm::pset::Registry * registry_(pset::Registry::instance());
170  const edm::pset::Registry::const_iterator rb(registry_->begin());
171  const edm::pset::Registry::const_iterator re(registry_->end());
172  for (edm::pset::Registry::const_iterator i = rb; i != re; ++i) {
173  if (i->second.exists("@process_name")) {
174  const std::string pName(i->second.getParameter<string>("@process_name"));
175  pNames += pName+" ";
176  if ( pName == processName ) {
177  psetID = i->first;
178  nPSets++;
179  if ((hltConfigData_ != s_dummyHLTConfigData()) && (hltConfigData_->id()==psetID)) {
180  hNames += tableName();
181  } else if ( 0 != (pset = registry_->getMapped(psetID))) {
182  if (pset->exists("HLTConfigVersion")) {
183  const ParameterSet& HLTPSet(pset->getParameterSet("HLTConfigVersion"));
184  if (HLTPSet.exists("tableName")) {
185  hNames += HLTPSet.getParameter<string>("tableName")+" ";
186  }
187  }
188  }
189  }
190  }
191  }
192 
193  LogVerbatim("HLTConfigProvider")
194  << "Unordered list of all process names found: " << pNames << "." << endl;
195 
196  LogVerbatim("HLTConfigProvider")
197  << "HLT TableName of each selected process: " << hNames << "." << endl;
198 
199  if (nPSets==0) {
200  LogError("HLTConfigProvider")
201  << " Process name '" << processName << "' not found in registry!" << endl;
202  clear();
203  return;
204  }
205  if (psetID==ParameterSetID()) {
206  LogError("HLTConfigProvider")
207  << " Process name '" << processName << "' found but ParameterSetID invalid!" << endl;
208  clear();
209  return;
210  }
211  if (nPSets>1) {
212  LogError("HLTConfigProvider")
213  << " Process name '" << processName << " found " << nPSets << " times in registry!" << endl;
214  clear();
215  return;
216  }
217 
218  getDataFrom(psetID);
219 
220  return;
221 
222 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
map_type::const_iterator const_iterator
Definition: Registry.h:63
static PFTauRenderPlugin instance
void getDataFrom(const edm::ParameterSetID &iID)
static const HLTConfigData * s_dummyHLTConfigData()
const std::string & tableName() const
HLT ConfDB table name.
const HLTConfigData * hltConfigData_
Hash< ParameterSetType > ParameterSetID
const std::string & processName() const
process name
edm::ParameterSetID id() const
technical: id() function needed for use with ThreadSafeRegistry
bool HLTConfigProvider::inited ( ) const
inline

Accessors (const methods)

initialised?

Definition at line 52 of file HLTConfigProvider.h.

References inited_.

Referenced by TriggerBxMonitor::analyze(), TriggerRatesMonitor::analyze(), TriggerBxMonitor::bookHistograms(), TriggerRatesMonitor::bookHistograms(), and EmDQM::dqmBeginRun().

52  {
53  return inited_;
54  }
unsigned int HLTConfigProvider::l1tType ( ) const
inline

L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)

Definition at line 155 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::l1tType().

Referenced by HLTPrescaleProvider::init(), HLTPrescaleProvider::prescaleSet(), HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().

155  {
156  return hltConfigData_->l1tType();
157  }
const HLTConfigData * hltConfigData_
unsigned int l1tType() const
L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)
const std::vector< std::string > HLTConfigProvider::matched ( const std::vector< std::string > &  inputs,
const std::string &  pattern 
)
static

regexp processing

Definition at line 238 of file HLTConfigProvider.cc.

References edm::glob2reg(), i, input, gen::n, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by GenericTriggerEventFlag::expandLogicalExpression(), and restoreVersion().

238  {
239  std::vector<std::string> matched;
240  const boost::regex regexp(edm::glob2reg(pattern));
241  const unsigned int n(inputs.size());
242  for (unsigned int i=0; i<n; ++i) {
243  const std::string& input(inputs[i]);
244  if (boost::regex_match(input,regexp)) matched.push_back(input);
245  }
246  return matched;
247 }
int i
Definition: DBlmapReader.cc:9
static const std::vector< std::string > matched(const std::vector< std::string > &inputs, const std::string &pattern)
regexp processing
std::string glob2reg(std::string const &pattern)
Definition: RegexMatch.cc:22
static std::string const input
Definition: EdmProvDump.cc:44
const std::string HLTConfigProvider::moduleEDMType ( const std::string &  module) const
inline

C++ base class name of module.

Definition at line 134 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleEDMType().

Referenced by GeneralHLTOffline::dqmBeginRun(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::findPathAndFilter(), EmDQM::getFilterModules(), and pat::PATTriggerProducer::ModuleLabelToPathAndFlags::init().

134  {
136  }
const HLTConfigData * hltConfigData_
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
Definition: vlib.h:208
unsigned int HLTConfigProvider::moduleIndex ( unsigned int  trigger,
const std::string &  module 
) const
inline

slot position of module on trigger path (0 to size-1)

Definition at line 121 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleIndex().

Referenced by HLTOfflineReproducibility::analyze(), EmDQM::analyze(), and pat::PATTriggerProducer::produce().

121  {
122  return hltConfigData_->moduleIndex(trigger,module);
123  }
const HLTConfigData * hltConfigData_
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 - size-1)
Definition: vlib.h:208
unsigned int HLTConfigProvider::moduleIndex ( const std::string &  trigger,
const std::string &  module 
) const
inline

Definition at line 124 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleIndex().

124  {
125  return hltConfigData_->moduleIndex(trigger,module);
126  }
const HLTConfigData * hltConfigData_
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 - size-1)
Definition: vlib.h:208
const std::string& HLTConfigProvider::moduleLabel ( unsigned int  trigger,
unsigned int  module 
) const
inline

Definition at line 113 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleLabel().

Referenced by HLTOfflineReproducibility::beginRun(), TriggerRatesMonitor::bookHistograms(), EmDQM::getFilterModules(), and pat::PATTriggerProducer::produce().

113  {
114  return hltConfigData_->moduleLabel(trigger,module);
115  }
const HLTConfigData * hltConfigData_
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: vlib.h:208
const std::string& HLTConfigProvider::moduleLabel ( const std::string &  trigger,
unsigned int  module 
) const
inline

Definition at line 116 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleLabel().

116  {
117  return hltConfigData_->moduleLabel(trigger,module);
118  }
const HLTConfigData * hltConfigData_
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: vlib.h:208
const std::vector<std::string>& HLTConfigProvider::moduleLabels ( unsigned int  trigger) const
inline
const std::vector<std::string>& HLTConfigProvider::moduleLabels ( const std::string &  trigger) const
inline

Definition at line 104 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleLabels().

104  {
105  return hltConfigData_->moduleLabels(trigger);
106  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
const edm::ParameterSet& HLTConfigProvider::modulePSet ( const std::string &  module) const
inline
const std::string HLTConfigProvider::moduleType ( const std::string &  module) const
inline
const std::vector<std::string>& HLTConfigProvider::prescaleLabels ( ) const
inline

low-level data member access

Definition at line 253 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleLabels().

Referenced by pat::PATTriggerProducer::produce().

253  {
254  return hltConfigData_->prescaleLabels();
255  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & prescaleLabels() const
low-level data member access
unsigned int HLTConfigProvider::prescaleSize ( ) const
inline

HLT prescale info Number of HLT prescale sets

Definition at line 244 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleSize().

Referenced by EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), and pat::PATTriggerProducer::produce().

244  {
245  return hltConfigData_->prescaleSize();
246  }
const HLTConfigData * hltConfigData_
unsigned int prescaleSize() const
const std::map<std::string,std::vector<unsigned int> >& HLTConfigProvider::prescaleTable ( ) const
inline

Definition at line 256 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleTable().

Referenced by pat::PATTriggerProducer::produce().

256  {
257  return hltConfigData_->prescaleTable();
258  }
const HLTConfigData * hltConfigData_
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
unsigned int HLTConfigProvider::prescaleValue ( unsigned int  set,
const std::string &  trigger 
) const
inline

HLT prescale value in specific prescale set for a specific trigger path.

Definition at line 248 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleValue().

Referenced by EwkMuDQM::analyze(), EwkElecDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), HLTPrescaleProvider::prescaleValue(), HLTPrescaleProvider::prescaleValues(), HLTPrescaleProvider::prescaleValuesInDetail(), and pat::PATTriggerProducer::produce().

248  {
249  return hltConfigData_->prescaleValue(set,trigger);
250  }
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
const HLTConfigData * hltConfigData_
const std::string& HLTConfigProvider::processName ( ) const
inline

process name

Definition at line 61 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::processName().

Referenced by GeneralHLTOffline::dqmBeginRun(), EmDQM::dqmBeginRun(), TopSingleLeptonHLTOfflineDQM::dqmBeginRun(), TopDiLeptonHLTOfflineDQM::dqmBeginRun(), init(), and HLTPrescaleProvider::prescaleSet().

61  {
62  return hltConfigData_->processName();
63  }
const HLTConfigData * hltConfigData_
const std::string & processName() const
Accessors (const methods)
const edm::ParameterSet& HLTConfigProvider::processPSet ( ) const
inline

ParameterSet of process.

Definition at line 139 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::processPSet().

Referenced by getDataFrom(), and init().

139  {
140  return hltConfigData_->processPSet();
141  }
const HLTConfigData * hltConfigData_
const edm::ParameterSet & processPSet() const
ParameterSet of process.
const std::string HLTConfigProvider::removeVersion ( const std::string &  trigger)
static
const std::vector< std::string > HLTConfigProvider::restoreVersion ( const std::vector< std::string > &  inputs,
const std::string &  trigger 
)
static

Definition at line 254 of file HLTConfigProvider.cc.

References matched().

Referenced by GenericTriggerEventFlag::expandLogicalExpression().

254  {
255  return matched(inputs,trigger+"_v[0-9]+$");
256 }
static const std::vector< std::string > matched(const std::vector< std::string > &inputs, const std::string &pattern)
regexp processing
bool HLTConfigProvider::saveTags ( const std::string &  module) const
inline

Is module an L3 filter (ie, tracked saveTags=true)

Definition at line 149 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::saveTags().

Referenced by pat::PATTriggerProducer::ModuleLabelToPathAndFlags::init(), EmDQM::makePSetForEgammaGenericFilter(), EmDQM::makePSetForEgammaGenericQuadraticFilter(), and pat::PATTriggerProducer::produce().

149  {
150  return hltConfigData_->saveTags(module);
151  }
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
const HLTConfigData * hltConfigData_
Definition: vlib.h:208
const std::vector<std::string>& HLTConfigProvider::saveTagsModules ( unsigned int  trigger) const
inline

Definition at line 107 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::saveTagsModules().

Referenced by egHLT::trigTools::getActiveFilters(), and pat::PATTriggerProducer::produce().

107  {
108  return hltConfigData_->saveTagsModules(trigger);
109  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
const std::vector<std::string>& HLTConfigProvider::saveTagsModules ( const std::string &  trigger) const
inline

Definition at line 110 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::saveTagsModules().

110  {
111  return hltConfigData_->saveTagsModules(trigger);
112  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
unsigned int HLTConfigProvider::size ( void  ) const
inline

number of trigger paths in trigger table

Definition at line 76 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::size().

Referenced by TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), HLTEventAnalyzerRAW::analyze(), IsoTrig::analyze(), HLTEventAnalyzerRAW::analyzeTrigger(), L1GtTriggerMenuTester::associateL1SeedsHltPath(), HLTPathSelector::beginRun(), HLTEventAnalyzerAOD::beginRun(), HLTEventAnalyzerRAW::beginRun(), LumiCalculator::beginRun(), pat::PATTriggerEventProducer::beginRun(), HcalRaddamMuon::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), HLTOfflineReproducibility::beginRun(), HcalIsoTrkAnalyzer::beginRun(), IsoTrackCalibration::beginRun(), L1MuonRecoTreeProducer::beginRun(), HLTSeedL1LogicScalers::bookHistograms(), GeneralHLTOffline::bookHistograms(), TriggerBxMonitor::bookHistograms(), TriggerRatesMonitor::bookHistograms(), HLTScalers::bookHistograms(), DQMProvInfo::dqmBeginRun(), HLTSeedL1LogicScalers::dqmBeginRun(), QcdUeDQM::dqmBeginRun(), GeneralHLTOffline::dqmBeginRun(), TriggerBxMonitor::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), JetMETHLTOfflineSource::dqmBeginRun(), EmDQM::dqmBeginRun(), QcdLowPtDQM::dqmBeginRun(), JetMETHLTOfflineSource::fillMEforMonTriggerSummary(), HLTPathSelector::filter(), EmDQM::findEgammaPaths(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::findPathAndFilter(), egHLT::trigTools::getActiveFilters(), EmDQM::getFilterModules(), PrescaleWeightProvider::initRun(), TriggerHelper::initRun(), GenericTriggerEventFlag::initRun(), L1MuonRecoTreeProducer::match_trigger(), PrescaleWeightProvider::prescaleWeight(), pat::PATTriggerProducer::produce(), egHLT::trigTools::translateFiltersToPathNames(), and JetMETHLTOfflineSource::validPathHLT().

76  {
77  return hltConfigData_->size();
78  }
unsigned int size() const
number of trigger paths in trigger table
const HLTConfigData * hltConfigData_
unsigned int HLTConfigProvider::size ( unsigned int  trigger) const
inline

number of modules on a specific trigger path

Definition at line 80 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::size().

80  {
81  return hltConfigData_->size(trigger);
82  }
unsigned int size() const
number of trigger paths in trigger table
const HLTConfigData * hltConfigData_
unsigned int HLTConfigProvider::size ( const std::string &  trigger) const
inline

Definition at line 83 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::size().

83  {
84  return hltConfigData_->size(trigger);
85  }
unsigned int size() const
number of trigger paths in trigger table
const HLTConfigData * hltConfigData_
const std::vector<std::string>& HLTConfigProvider::streamContent ( unsigned int  stream) const
inline

names of datasets in stream with index i

Definition at line 206 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamContent().

Referenced by GeneralHLTOffline::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), and HLTScalers::dqmBeginRun().

206  {
207  return hltConfigData_->streamContent(stream);
208  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
const std::vector<std::string>& HLTConfigProvider::streamContent ( const std::string &  stream) const
inline

names of datasets in stream with name

Definition at line 210 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamContent().

210  {
211  return hltConfigData_->streamContent(stream);
212  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
const std::vector<std::vector<std::string> >& HLTConfigProvider::streamContents ( ) const
inline

names of datasets for all streams

Definition at line 202 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamContents().

Referenced by HLTrigReport::reset().

202  {
203  return hltConfigData_->streamContents();
204  }
const HLTConfigData * hltConfigData_
const std::vector< std::vector< std::string > > & streamContents() const
names of datasets for all streams
unsigned int HLTConfigProvider::streamIndex ( const std::string &  stream) const
inline

index of stream with name

Definition at line 198 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamIndex().

Referenced by HLTScalers::dqmBeginRun().

198  {
199  return hltConfigData_->streamIndex(stream);
200  }
const HLTConfigData * hltConfigData_
unsigned int streamIndex(const std::string &stream) const
index of stream with name
const std::string& HLTConfigProvider::streamName ( unsigned int  stream) const
inline

name of stream with index i

Definition at line 194 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamName().

194  {
195  return hltConfigData_->streamName(stream);
196  }
const std::string & streamName(unsigned int stream) const
name of stream with index i
const HLTConfigData * hltConfigData_
const std::vector<std::string>& HLTConfigProvider::streamNames ( ) const
inline

Streams list of names of all streams

Definition at line 190 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamNames().

Referenced by TriggerRatesMonitor::bookHistograms(), GeneralHLTOffline::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), HLTScalers::dqmBeginRun(), and HLTrigReport::reset().

190  {
191  return hltConfigData_->streamNames();
192  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & streamNames() const
Streams.
const std::string& HLTConfigProvider::tableName ( ) const
inline

HLT ConfDB table name.

Definition at line 71 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::tableName().

Referenced by L1GtTriggerMenuTester::associateL1SeedsHltPath(), LumiCalculator::beginRun(), DQMProvInfo::dqmBeginRun(), GeneralHLTOffline::dqmBeginRun(), EmDQM::dqmBeginRun(), init(), and pat::PATTriggerEventProducer::produce().

71  {
72  return hltConfigData_->tableName();
73  }
const HLTConfigData * hltConfigData_
const std::string & tableName() const
HLT ConfDB table name.
unsigned int HLTConfigProvider::triggerIndex ( const std::string &  triggerName) const
inline
const std::string& HLTConfigProvider::triggerName ( unsigned int  triggerIndex) const
inline
const std::vector<std::string>& HLTConfigProvider::triggerNames ( ) const
inline

names of trigger paths

Definition at line 88 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::triggerNames().

Referenced by EwkMuLumiMonitorDQM::analyze(), HLTPathSelector::beginRun(), HLTHiggsSubAnalysis::beginRun(), HLTOfflineReproducibility::beginRun(), HLTExoticaSubAnalysis::beginRun(), TrackerDpgAnalysis::beginRun(), PixelVTXMonitor::bookHistograms(), HLTTauDQMOfflineSource::dqmBeginRun(), SUSY_HLT_DoubleMuon_Hadronic::dqmBeginRun(), SUSY_HLT_Muon_BJet::dqmBeginRun(), SUSY_HLT_DoubleEle_Hadronic::dqmBeginRun(), SUSY_HLT_Electron_BJet::dqmBeginRun(), SUSY_HLT_alphaT::dqmBeginRun(), SUSY_HLT_MuonFakes::dqmBeginRun(), SUSY_HLT_DiJet_MET::dqmBeginRun(), SUSY_HLT_ElecFakes::dqmBeginRun(), SUSY_HLT_MuEle_Hadronic::dqmBeginRun(), SUSY_HLT_Muon_Hadronic::dqmBeginRun(), SUSY_HLT_VBF_Mu::dqmBeginRun(), HLTMuonValidator::dqmBeginRun(), HLTMuonOfflineAnalyzer::dqmBeginRun(), SUSY_HLT_SingleLepton::dqmBeginRun(), HeavyFlavorValidation::dqmBeginRun(), GeneralHLTOffline::dqmBeginRun(), HLTJetMETValidation::dqmBeginRun(), pat::PATTriggerProducer::ModuleLabelToPathAndFlags::init(), GenericTriggerEventFlag::initRun(), pat::PATTriggerProducer::produce(), HLTrigReport::reset(), HLTriggerJSONMonitoring::resetRun(), and TriggerJSONMonitoring::resetRun().

88  {
89  return hltConfigData_->triggerNames();
90  }
const std::vector< std::string > & triggerNames() const
names of trigger paths
const HLTConfigData * hltConfigData_

Member Data Documentation

bool HLTConfigProvider::changed_
private

Definition at line 275 of file HLTConfigProvider.h.

Referenced by changed(), clear(), getDataFrom(), and init().

const HLTConfigData* HLTConfigProvider::hltConfigData_
private
bool HLTConfigProvider::inited_
private

Definition at line 274 of file HLTConfigProvider.h.

Referenced by clear(), getDataFrom(), init(), and inited().

std::string HLTConfigProvider::processName_
private

data members

Definition at line 273 of file HLTConfigProvider.h.

Referenced by clear(), and init().