CMS 3D CMS Logo

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 (const std::string &dataset) const
 names of trigger paths in dataset with name 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::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 (const std::string &trigger, const std::string &module) const
 
unsigned int moduleIndex (unsigned int trigger, const std::string &module) const
 slot position of module on trigger path (0 to size-1) More...
 
const std::string & moduleLabel (const std::string &trigger, unsigned int module) const
 
const std::string & moduleLabel (unsigned int trigger, unsigned int module) const
 
const std::vector< std::string > & moduleLabels (const std::string &trigger) const
 
const std::vector< std::string > & moduleLabels (unsigned int trigger) const
 label(s) of module(s) on a trigger path More...
 
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
 
template<typename T = unsigned int>
T 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 (const std::string &trigger) const
 
const std::vector< std::string > & saveTagsModules (unsigned int trigger) const
 
unsigned int size () const
 number of trigger paths in trigger table More...
 
unsigned int size (const std::string &trigger) const
 
unsigned int size (unsigned int trigger) const
 number of modules on a specific trigger path More...
 
const std::vector< std::string > & streamContent (const std::string &stream) const
 names of datasets in stream with name More...
 
const std::vector< std::string > & streamContent (unsigned int stream) const
 names of datasets in stream with index i 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 29 of file HLTConfigProvider.h.

Constructor & Destructor Documentation

◆ HLTConfigProvider()

HLTConfigProvider::HLTConfigProvider ( )

c'tor

Definition at line 33 of file HLTConfigProvider.cc.

Member Function Documentation

◆ changed()

bool HLTConfigProvider::changed ( ) const
inline

changed?

Definition at line 51 of file HLTConfigProvider.h.

51 { return changed_; }

References changed_.

Referenced by EmDQM::dqmBeginRun(), and init().

◆ clear()

void HLTConfigProvider::clear ( void  )
private

Definition at line 214 of file HLTConfigProvider.cc.

214  {
215  // clear all data members
216 
217  processName_ = "";
218  inited_ = false;
219  changed_ = true;
221 
222  return;
223 }

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

Referenced by getDataFrom(), and init().

◆ datasetContent() [1/2]

const std::vector<std::string>& HLTConfigProvider::datasetContent ( const std::string &  dataset) const
inline

names of trigger paths in dataset with name

Definition at line 179 of file HLTConfigProvider.h.

179  {
181  }

References HLTConfigData::datasetContent(), and hltConfigData_.

◆ datasetContent() [2/2]

const std::vector<std::string>& HLTConfigProvider::datasetContent ( unsigned int  dataset) const
inline

names of trigger paths in dataset with index i

Definition at line 175 of file HLTConfigProvider.h.

175  {
177  }

References HLTConfigData::datasetContent(), and hltConfigData_.

Referenced by HLTFiltersDQMonitor::analyze(), HLTFiltersDQMonitor::bookHistograms(), and HLTScalers::dqmBeginRun().

◆ datasetContents()

const std::vector<std::vector<std::string> >& HLTConfigProvider::datasetContents ( ) const
inline

names of trigger paths for all datasets

Definition at line 173 of file HLTConfigProvider.h.

173 { return hltConfigData_->datasetContents(); }

References HLTConfigData::datasetContents(), and hltConfigData_.

Referenced by HLTrigReport::updateConfigCache().

◆ datasetIndex()

unsigned int HLTConfigProvider::datasetIndex ( const std::string &  dataset) const
inline

index of dataset with name

Definition at line 171 of file HLTConfigProvider.h.

171 { return hltConfigData_->datasetIndex(dataset); }

References HLTConfigData::datasetIndex(), and hltConfigData_.

◆ datasetName()

const std::string& HLTConfigProvider::datasetName ( unsigned int  dataset) const
inline

name of dataset with index i

Definition at line 169 of file HLTConfigProvider.h.

169 { return hltConfigData_->datasetName(dataset); }

References HLTConfigData::datasetName(), and hltConfigData_.

◆ datasetNames()

const std::vector<std::string>& HLTConfigProvider::datasetNames ( ) const
inline

Datasets list of names of all datasets

Definition at line 167 of file HLTConfigProvider.h.

167 { return hltConfigData_->datasetNames(); }

References HLTConfigData::datasetNames(), and hltConfigData_.

Referenced by HLTrigReport::updateConfigCache(), and HLTriggerJSONMonitoring::writeIniFile().

◆ dump()

void HLTConfigProvider::dump ( const std::string &  what) const
inline

Dumping config info to cout.

Definition at line 44 of file HLTConfigProvider.h.

44 { hltConfigData_->dump(what); }

References HLTConfigData::dump(), and hltConfigData_.

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

◆ getDataFrom()

void HLTConfigProvider::getDataFrom ( const edm::ParameterSetID iID)
private

Definition at line 115 of file HLTConfigProvider.cc.

115  {
116  //is it in our registry?
118  const HLTConfigData* d = reg->getMapped(iID);
119  if (nullptr != d) {
120  changed_ = true;
121  inited_ = true;
122  hltConfigData_ = d;
123  } else {
124  const edm::ParameterSet* processPSet = nullptr;
125  if (nullptr != (processPSet = edm::pset::Registry::instance()->getMapped(iID))) {
126  if (not processPSet->id().isValid()) {
127  clear();
128  edm::LogError("HLTConfigProvider") << "ProcessPSet found is empty!";
129  changed_ = true;
130  inited_ = false;
132  return;
133  } else {
134  clear();
136  changed_ = true;
137  inited_ = true;
139  return;
140  }
141  } else {
142  clear();
143  edm::LogError("HLTConfigProvider") << "ProcessPSet not found in regsistry!";
144  changed_ = true;
145  inited_ = false;
147  return;
148  }
149  }
150  return;
151 }

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().

◆ globalTag()

const std::string& HLTConfigProvider::globalTag ( ) const
inline

global tag

Definition at line 57 of file HLTConfigProvider.h.

57 { return hltConfigData_->globalTag(); }

References HLTConfigData::globalTag(), and hltConfigData_.

◆ hltL1GTSeeds() [1/3]

const std::vector<std::vector<std::pair<bool, std::string> > >& HLTConfigProvider::hltL1GTSeeds ( ) const
inline

◆ hltL1GTSeeds() [2/3]

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 127 of file HLTConfigProvider.h.

127  {
129  }

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

◆ hltL1GTSeeds() [3/3]

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 131 of file HLTConfigProvider.h.

131  {
133  }

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

◆ hltL1TSeeds() [1/3]

const std::vector<std::vector<std::string> >& HLTConfigProvider::hltL1TSeeds ( ) const
inline

HLTL1TSeed module HLTL1TSeed modules for all trigger paths

Definition at line 137 of file HLTConfigProvider.h.

137 { return hltConfigData_->hltL1TSeeds(); }

References hltConfigData_, and HLTConfigData::hltL1TSeeds().

Referenced by HLTPrescaleProvider::getL1PrescaleValue(), and HLTPrescaleProvider::getL1PrescaleValueInDetail().

◆ hltL1TSeeds() [2/3]

const std::vector<std::string>& HLTConfigProvider::hltL1TSeeds ( const std::string &  trigger) const
inline

HLTL1TSeed modules for trigger path with name.

Definition at line 139 of file HLTConfigProvider.h.

139  {
141  }

References hltConfigData_, and HLTConfigData::hltL1TSeeds().

◆ hltL1TSeeds() [3/3]

const std::vector<std::string>& HLTConfigProvider::hltL1TSeeds ( unsigned int  trigger) const
inline

HLTL1TSeed modules for trigger path with index i.

Definition at line 143 of file HLTConfigProvider.h.

143  {
145  }

References hltConfigData_, and HLTConfigData::hltL1TSeeds().

◆ init() [1/3]

void HLTConfigProvider::init ( const edm::ProcessHistory iHistory,
const std::string &  processName 
)
private

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

Definition at line 52 of file HLTConfigProvider.cc.

52  {
53  using namespace std;
54  using namespace edm;
55 
56  const ProcessHistory::const_iterator hb(iHistory.begin());
57  const ProcessHistory::const_iterator he(iHistory.end());
58 
59  ProcessConfiguration processConfiguration;
60  const edm::ParameterSet* processPSet(nullptr);
61 
63  if (processName_ == "*") {
64  // auto-discovery of process name
65  for (ProcessHistory::const_iterator hi = hb; hi != he; ++hi) {
66  if (iHistory.getConfigurationForProcess(hi->processName(), processConfiguration)) {
67  processPSet = edm::pset::Registry::instance()->getMapped(processConfiguration.parameterSetID());
68  if ((processPSet != nullptr) && (processPSet->exists("hltTriggerSummaryAOD"))) {
69  processName_ = hi->processName();
70  }
71  }
72  }
73  if (processName_ == "*") {
74  LogError("HLTConfigProvider") << "Auto-discovery of processName failed!" << endl;
75  clear();
76  return;
77  } else {
78  LogInfo("HLTConfigProvider") << "Auto-discovered processName: '" << processName_ << "'" << endl;
79  }
80  }
81  if (processName_ == "@currentProcess") {
83  }
84 
86  unsigned int n(0);
87  for (ProcessHistory::const_iterator hi = hb; hi != he; ++hi) {
88  if (hi->processName() == processName_) {
89  n++;
90  }
91  }
92  if (n > 1) {
93  LogError("HLTConfigProvider") << " ProcessName '" << processName_ << " found " << n << " times in history!" << endl;
94  clear();
95  return;
96  }
97 
99  if (iHistory.getConfigurationForProcess(processName_, processConfiguration)) {
100  if ((hltConfigData_ != s_dummyHLTConfigData()) && (processConfiguration.parameterSetID() == hltConfigData_->id())) {
101  changed_ = false;
102  inited_ = true;
103  return;
104  } else {
105  getDataFrom(processConfiguration.parameterSetID());
106  }
107  } else {
108  LogError("HLTConfigProvider") << "Falling back to ProcessName-only init using ProcessName '" << processName_
109  << "' !";
111  return;
112  }
113 }

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

◆ init() [2/3]

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 36 of file HLTConfigProvider.cc.

39  {
40  using namespace std;
41  using namespace edm;
42 
43  LogInfo("HLTConfigProvider") << "Called (R) with processName '" << processName << "' for " << iRun.id() << endl;
44 
46 
48  changed = changed_;
49  return inited_;
50 }

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

Referenced by L1GtTriggerMenuTester::associateL1SeedsHltPath(), HLTPathSelector::beginRun(), HLTEventAnalyzerRAW::beginRun(), PixelVTXMonitor::beginRun(), LumiCalculator::beginRun(), AlCaIsolatedBunchFilter::beginRun(), AlCaIsolatedBunchSelector::beginRun(), AlCaIsoTracksProducerFilter::beginRun(), pat::PATTriggerEventProducer::beginRun(), AlCaHEMuonFilter::beginRun(), AlCaHBHEMuonFilter::beginRun(), AlCaLowPUHBHEMuonFilter::beginRun(), HcalRaddamMuon::beginRun(), StudyTriggerHLT::beginRun(), HLTHiggsSubAnalysis::beginRun(), HLTExoticaSubAnalysis::beginRun(), HLTrigReport::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), AlCaIsoTracksFilter::beginRun(), IsoTrackCalibration::beginRun(), IsoTrackCalib::beginRun(), StudyCaloResponse::beginRun(), HcalIsoTrkAnalyzer::beginRun(), AlCaIsoTracksProducer::beginRun(), L1MuonRecoTreeProducer::beginRun(), TrackerDpgAnalysis::beginRun(), HLTFiltersDQMonitor::dqmBeginRun(), SUSY_HLT_DoubleMuon_Hadronic::dqmBeginRun(), SUSY_HLT_Muon_BJet::dqmBeginRun(), HLTTauDQMOfflineSource::dqmBeginRun(), SUSY_HLT_DoubleEle_Hadronic::dqmBeginRun(), SUSY_HLT_Electron_BJet::dqmBeginRun(), SUSY_HLT_DiJet_MET::dqmBeginRun(), SUSY_HLT_MuonFakes::dqmBeginRun(), SUSY_HLT_Muon_Hadronic::dqmBeginRun(), SUSY_HLT_ElecFakes::dqmBeginRun(), SUSY_HLT_VBF_Mu::dqmBeginRun(), SUSY_HLT_MuEle_Hadronic::dqmBeginRun(), SUSY_HLT_alphaT::dqmBeginRun(), EwkMuLumiMonitorDQM::dqmBeginRun(), HLTMuonValidator::dqmBeginRun(), HLTMuonOfflineAnalyzer::dqmBeginRun(), L1TEGammaOffline::dqmBeginRun(), SUSY_HLT_SingleLepton::dqmBeginRun(), QcdUeDQM::dqmBeginRun(), HLTJetMETValidation::dqmBeginRun(), FSQDiJetAve::dqmBeginRun(), HLTScalers::dqmBeginRun(), BTVHLTOfflineSource::dqmBeginRun(), JetMETHLTOfflineSource::dqmBeginRun(), EmDQM::dqmBeginRun(), L1TStage2CaloLayer2Offline::dqmBeginRun(), L1TMuonDQMOffline::dqmBeginRun(), L1TTauOffline::dqmBeginRun(), EmDQMReco::dqmBeginRun(), HLTObjectsMonitor::dqmBeginRun(), QcdLowPtDQM::dqmBeginRun(), HLTPrescaleProvider::init(), init(), TriggerHelper::initRun(), and GenericTriggerEventFlag::initRun().

◆ init() [3/3]

void HLTConfigProvider::init ( const std::string &  processName)
private

Definition at line 153 of file HLTConfigProvider.cc.

153  {
154  using namespace std;
155  using namespace edm;
156 
157  // Obtain ParameterSetID for requested process (with name
158  // processName) from pset registry
159  string pNames("");
160  string hNames("");
161  const ParameterSet* pset = nullptr;
162  ParameterSetID psetID;
163  unsigned int nPSets(0);
164  const edm::pset::Registry* registry_(pset::Registry::instance());
165  const edm::pset::Registry::const_iterator rb(registry_->begin());
166  const edm::pset::Registry::const_iterator re(registry_->end());
167  for (edm::pset::Registry::const_iterator i = rb; i != re; ++i) {
168  if (i->second.existsAs<string>("@process_name", true) and i->second.existsAs<vector<string>>("@paths", true)) {
169  const std::string pName(i->second.getParameter<string>("@process_name"));
170  pNames += pName + " ";
171  if (pName == processName) {
172  psetID = i->first;
173  nPSets++;
174  if ((hltConfigData_ != s_dummyHLTConfigData()) && (hltConfigData_->id() == psetID)) {
175  hNames += tableName();
176  } else if (nullptr != (pset = registry_->getMapped(psetID))) {
177  if (pset->exists("HLTConfigVersion")) {
178  const ParameterSet& HLTPSet(pset->getParameterSet("HLTConfigVersion"));
179  if (HLTPSet.exists("tableName")) {
180  hNames += HLTPSet.getParameter<string>("tableName") + " ";
181  }
182  }
183  }
184  }
185  }
186  }
187 
188  LogVerbatim("HLTConfigProvider") << "Unordered list of all process names found: " << pNames << "." << endl;
189 
190  LogVerbatim("HLTConfigProvider") << "HLT TableName of each selected process: " << hNames << "." << endl;
191 
192  if (nPSets == 0) {
193  LogError("HLTConfigProvider") << " Process name '" << processName << "' not found in registry!" << endl;
194  clear();
195  return;
196  }
197  if (psetID == ParameterSetID()) {
198  LogError("HLTConfigProvider") << " Process name '" << processName << "' found but ParameterSetID invalid!" << endl;
199  clear();
200  return;
201  }
202  if (nPSets > 1) {
203  LogError("HLTConfigProvider") << " Process name '" << processName << " found " << nPSets << " times in registry!"
204  << endl;
205  clear();
206  return;
207  }
208 
209  getDataFrom(psetID);
210 
211  return;
212 }

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

◆ inited()

bool HLTConfigProvider::inited ( ) const
inline

Accessors (const methods)

initialised?

Definition at line 49 of file HLTConfigProvider.h.

49 { return inited_; }

References inited_.

Referenced by EmDQM::dqmBeginRun(), and BPHMonitor::matchToTrigger().

◆ l1tType()

unsigned int HLTConfigProvider::l1tType ( ) const
inline

◆ matched()

const std::vector< std::string > HLTConfigProvider::matched ( const std::vector< std::string > &  inputs,
const std::string &  pattern 
)
static

regexp processing

Definition at line 225 of file HLTConfigProvider.cc.

226  {
227  std::vector<std::string> matched;
228  const std::regex regexp(edm::glob2reg(pattern));
229  const unsigned int n(inputs.size());
230  for (unsigned int i = 0; i < n; ++i) {
231  const std::string& input(inputs[i]);
232  if (std::regex_match(input, regexp))
233  matched.push_back(input);
234  }
235  return matched;
236 }

References edm::glob2reg(), mps_fire::i, input, PixelMapPlotter::inputs, dqmiodumpmetadata::n, topSingleLeptonDQM_PU_cfi::pattern, fetchall_from_DQM_v2::regexp, and AlCaHLTBitMon_QueryRunRegistry::string.

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

◆ moduleEDMType()

const std::string HLTConfigProvider::moduleEDMType ( const std::string &  module) const
inline

C++ base class name of module.

Definition at line 107 of file HLTConfigProvider.h.

107 { return hltConfigData_->moduleEDMType(module); }

References hltConfigData_, and HLTConfigData::moduleEDMType().

Referenced by HLTFiltersDQMonitor::analyze(), HLTFiltersDQMonitor::bookHistograms(), and EmDQM::getFilterModules().

◆ moduleIndex() [1/2]

unsigned int HLTConfigProvider::moduleIndex ( const std::string &  trigger,
const std::string &  module 
) const
inline

Definition at line 99 of file HLTConfigProvider.h.

99  {
100  return hltConfigData_->moduleIndex(trigger, module);
101  }

References hltConfigData_, and HLTConfigData::moduleIndex().

◆ moduleIndex() [2/2]

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 96 of file HLTConfigProvider.h.

96  {
97  return hltConfigData_->moduleIndex(trigger, module);
98  }

References hltConfigData_, and HLTConfigData::moduleIndex().

Referenced by HLTFiltersDQMonitor::analyze(), and EmDQM::analyze().

◆ moduleLabel() [1/2]

const std::string& HLTConfigProvider::moduleLabel ( const std::string &  trigger,
unsigned int  module 
) const
inline

Definition at line 91 of file HLTConfigProvider.h.

91  {
92  return hltConfigData_->moduleLabel(trigger, module);
93  }

References hltConfigData_, and HLTConfigData::moduleLabel().

◆ moduleLabel() [2/2]

const std::string& HLTConfigProvider::moduleLabel ( unsigned int  trigger,
unsigned int  module 
) const
inline

◆ moduleLabels() [1/2]

const std::vector<std::string>& HLTConfigProvider::moduleLabels ( const std::string &  trigger) const
inline

Definition at line 79 of file HLTConfigProvider.h.

79  {
81  }

References hltConfigData_, and HLTConfigData::moduleLabels().

◆ moduleLabels() [2/2]

const std::vector<std::string>& HLTConfigProvider::moduleLabels ( unsigned int  trigger) const
inline

◆ modulePSet()

const edm::ParameterSet& HLTConfigProvider::modulePSet ( const std::string &  module) const
inline

◆ moduleType()

const std::string HLTConfigProvider::moduleType ( const std::string &  module) const
inline

◆ prescaleLabels()

const std::vector<std::string>& HLTConfigProvider::prescaleLabels ( ) const
inline

low-level data member access

Definition at line 198 of file HLTConfigProvider.h.

198 { return hltConfigData_->prescaleLabels(); }

References hltConfigData_, and HLTConfigData::prescaleLabels().

◆ prescaleSize()

unsigned int HLTConfigProvider::prescaleSize ( ) const
inline

HLT prescale info Number of HLT prescale sets

Definition at line 185 of file HLTConfigProvider.h.

185 { return hltConfigData_->prescaleSize(); }

References hltConfigData_, and HLTConfigData::prescaleSize().

Referenced by EwkMuLumiMonitorDQM::analyze().

◆ prescaleTable()

const std::map<std::string, std::vector<unsigned int> >& HLTConfigProvider::prescaleTable ( ) const
inline

Definition at line 199 of file HLTConfigProvider.h.

199  {
200  return hltConfigData_->prescaleTable();
201  }

References hltConfigData_, and HLTConfigData::prescaleTable().

◆ prescaleValue()

template<typename T = unsigned int>
T 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 188 of file HLTConfigProvider.h.

188  {
189  //limit to only 4 allowed types
190  static_assert(std::is_same_v<T, unsigned int> or std::is_same_v<T, FractionalPrescale> or std::is_same_v<T, int> or
191  std::is_same_v<T, double>,
192  "Please use prescaleValue<unsigned int>, prescaleValue<int>, prescaleValue<double>, or "
193  "prescaleValue<FractionalPrescale>,\n note int and unsigned int will be depreated soon");
194  return hltConfigData_->prescaleValue(set, trigger);
195  }

References hltConfigData_, or, and HLTConfigData::prescaleValue().

Referenced by EwkMuLumiMonitorDQM::analyze(), and HLTPrescaleProvider::prescaleValue().

◆ processName()

const std::string& HLTConfigProvider::processName ( ) const
inline

◆ processPSet()

const edm::ParameterSet& HLTConfigProvider::processPSet ( ) const
inline

ParameterSet of process.

Definition at line 110 of file HLTConfigProvider.h.

110 { return hltConfigData_->processPSet(); }

References hltConfigData_, and HLTConfigData::processPSet().

Referenced by getDataFrom(), and init().

◆ removeVersion()

const std::string HLTConfigProvider::removeVersion ( const std::string &  trigger)
static

Definition at line 238 of file HLTConfigProvider.cc.

238  {
239  const std::regex regexp("_v[0-9]+$");
240  return std::regex_replace(trigger, regexp, "");
241 }

References fetchall_from_DQM_v2::regexp.

Referenced by HLTJetMETValidation::bookHistograms(), BTVHLTOfflineSource::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), EmDQM::dqmBeginRun(), and HLTObjectsMonitor::dqmBeginRun().

◆ restoreVersion()

const std::vector< std::string > HLTConfigProvider::restoreVersion ( const std::vector< std::string > &  inputs,
const std::string &  trigger 
)
static

Definition at line 243 of file HLTConfigProvider.cc.

244  {
245  return matched(inputs, trigger + "_v[0-9]+$");
246 }

References PixelMapPlotter::inputs, and matched().

Referenced by GenericTriggerEventFlag::expandLogicalExpression().

◆ saveTags()

bool HLTConfigProvider::saveTags ( const std::string &  module) const
inline

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

Definition at line 116 of file HLTConfigProvider.h.

116 { return hltConfigData_->saveTags(module); }

References hltConfigData_, and HLTConfigData::saveTags().

Referenced by HLTObjectsMonitor::analyze(), EmDQM::makePSetForEgammaGenericFilter(), and EmDQM::makePSetForEgammaGenericQuadraticFilter().

◆ saveTagsModules() [1/2]

const std::vector<std::string>& HLTConfigProvider::saveTagsModules ( const std::string &  trigger) const
inline

Definition at line 85 of file HLTConfigProvider.h.

85  {
87  }

References hltConfigData_, and HLTConfigData::saveTagsModules().

◆ saveTagsModules() [2/2]

const std::vector<std::string>& HLTConfigProvider::saveTagsModules ( unsigned int  trigger) const
inline

Definition at line 82 of file HLTConfigProvider.h.

82  {
84  }

References hltConfigData_, and HLTConfigData::saveTagsModules().

◆ size() [1/3]

unsigned int HLTConfigProvider::size ( void  ) const
inline

number of trigger paths in trigger table

Definition at line 63 of file HLTConfigProvider.h.

63 { return hltConfigData_->size(); }

References hltConfigData_, and HLTConfigData::size().

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), GenericTriggerEventFlag::allHLTPathsAreValid(), HLTFiltersDQMonitor::analyze(), HLTEventAnalyzerRAW::analyze(), HLTEventAnalyzerRAW::analyzeTrigger(), L1GtTriggerMenuTester::associateL1SeedsHltPath(), HLTPathSelector::beginRun(), HLTEventAnalyzerRAW::beginRun(), LumiCalculator::beginRun(), pat::PATTriggerEventProducer::beginRun(), HcalRaddamMuon::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), IsoTrackCalibration::beginRun(), HcalIsoTrkAnalyzer::beginRun(), L1MuonRecoTreeProducer::beginRun(), HLTFiltersDQMonitor::bookHistograms(), HLTScalers::bookHistograms(), L1TMuonDQMOffline::bookHistograms(), L1TTauOffline::bookHistograms(), HLTFiltersDQMonitor::dqmBeginRun(), QcdUeDQM::dqmBeginRun(), BTVHLTOfflineSource::dqmBeginRun(), JetMETHLTOfflineSource::dqmBeginRun(), EmDQM::dqmBeginRun(), QcdLowPtDQM::dqmBeginRun(), JetMETHLTOfflineSource::fillMEforMonTriggerSummary(), HLTPathSelector::filter(), EmDQM::findEgammaPaths(), EmDQM::getFilterModules(), BPHMonitor::getTriggerName(), TriggerHelper::initRun(), GenericTriggerEventFlag::initRun(), L1MuonRecoTreeProducer::match_trigger(), L1TTauOffline::matchHlt(), L1TMuonDQMOffline::matchHlt(), BPHMonitor::matchToTrigger(), and JetMETHLTOfflineSource::validPathHLT().

◆ size() [2/3]

unsigned int HLTConfigProvider::size ( const std::string &  trigger) const
inline

◆ size() [3/3]

unsigned int HLTConfigProvider::size ( unsigned int  trigger) const
inline

number of modules on a specific trigger path

Definition at line 65 of file HLTConfigProvider.h.

65 { return hltConfigData_->size(trigger); }

References hltConfigData_, and HLTConfigData::size().

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

◆ streamContent() [1/2]

const std::vector<std::string>& HLTConfigProvider::streamContent ( const std::string &  stream) const
inline

names of datasets in stream with name

Definition at line 161 of file HLTConfigProvider.h.

161  {
163  }

References hltConfigData_, cms::cuda::stream, and HLTConfigData::streamContent().

◆ streamContent() [2/2]

const std::vector<std::string>& HLTConfigProvider::streamContent ( unsigned int  stream) const
inline

names of datasets in stream with index i

Definition at line 157 of file HLTConfigProvider.h.

157  {
159  }

References hltConfigData_, cms::cuda::stream, and HLTConfigData::streamContent().

Referenced by HLTFiltersDQMonitor::analyze(), HLTFiltersDQMonitor::bookHistograms(), and HLTScalers::dqmBeginRun().

◆ streamContents()

const std::vector<std::vector<std::string> >& HLTConfigProvider::streamContents ( ) const
inline

names of datasets for all streams

Definition at line 155 of file HLTConfigProvider.h.

155 { return hltConfigData_->streamContents(); }

References hltConfigData_, and HLTConfigData::streamContents().

Referenced by HLTrigReport::updateConfigCache().

◆ streamIndex()

unsigned int HLTConfigProvider::streamIndex ( const std::string &  stream) const
inline

index of stream with name

Definition at line 153 of file HLTConfigProvider.h.

153 { return hltConfigData_->streamIndex(stream); }

References hltConfigData_, cms::cuda::stream, and HLTConfigData::streamIndex().

Referenced by HLTScalers::dqmBeginRun().

◆ streamName()

const std::string& HLTConfigProvider::streamName ( unsigned int  stream) const
inline

name of stream with index i

Definition at line 151 of file HLTConfigProvider.h.

151 { return hltConfigData_->streamName(stream); }

References hltConfigData_, cms::cuda::stream, and HLTConfigData::streamName().

◆ streamNames()

const std::vector<std::string>& HLTConfigProvider::streamNames ( ) const
inline

◆ tableName()

const std::string& HLTConfigProvider::tableName ( ) const
inline

◆ triggerIndex()

unsigned int HLTConfigProvider::triggerIndex ( const std::string &  triggerName) const
inline

◆ triggerName()

const std::string& HLTConfigProvider::triggerName ( unsigned int  triggerIndex) const
inline

◆ triggerNames()

const std::vector<std::string>& HLTConfigProvider::triggerNames ( ) const
inline

Member Data Documentation

◆ changed_

bool HLTConfigProvider::changed_
private

Definition at line 218 of file HLTConfigProvider.h.

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

◆ hltConfigData_

const HLTConfigData* HLTConfigProvider::hltConfigData_
private

◆ inited_

bool HLTConfigProvider::inited_
private

Definition at line 217 of file HLTConfigProvider.h.

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

◆ processName_

std::string HLTConfigProvider::processName_
private

data members

Definition at line 216 of file HLTConfigProvider.h.

Referenced by clear(), and init().

edm::ParameterSetID
Hash< ParameterSetType > ParameterSetID
Definition: ParameterSetID.h:21
edm::pset::Registry::instance
static Registry * instance()
Definition: Registry.cc:12
HLTConfigData::modulePSet
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
Definition: HLTConfigData.cc:500
HLTConfigData::l1tType
unsigned int l1tType() const
L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)
Definition: HLTConfigData.cc:521
HLTConfigProvider::matched
static const std::vector< std::string > matched(const std::vector< std::string > &inputs, const std::string &pattern)
regexp processing
Definition: HLTConfigProvider.cc:225
mps_fire.i
i
Definition: mps_fire.py:428
HLTConfigData::moduleType
const std::string moduleType(const std::string &module) const
C++ class name of module.
Definition: HLTConfigData.cc:480
input
static const std::string input
Definition: EdmProvDump.cc:48
edm::detail::ThreadSafeRegistry::insertMapped
bool insertMapped(value_type const &v)
HLTConfigData::streamIndex
unsigned int streamIndex(const std::string &stream) const
index of stream with name
Definition: HLTConfigData.cc:550
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
HLTConfigProvider::getDataFrom
void getDataFrom(const edm::ParameterSetID &iID)
Definition: HLTConfigProvider.cc:115
HLTConfigData::prescaleTable
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
Definition: HLTConfigData.cc:599
HLTConfigData
Definition: HLTConfigData.h:25
HLTConfigData::triggerNames
const std::vector< std::string > & triggerNames() const
names of trigger paths
Definition: HLTConfigData.cc:436
edm
HLT enums.
Definition: AlignableModifier.h:19
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
HLTConfigData::moduleLabels
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
Definition: HLTConfigData.cc:447
HLTConfigData::processName
const std::string & processName() const
Accessors (const methods)
Definition: HLTConfigData.cc:427
edm::ProcessHistory::getConfigurationForProcess
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
Definition: ProcessHistory.cc:34
edm::detail::ThreadSafeRegistry::getMapped
bool getMapped(key_type const &k, value_type &result) const
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:189
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
HLTConfigData::prescaleValue
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
Definition: HLTConfigData.cc:594
s_dummyHLTConfigData
static const HLTConfigData * s_dummyHLTConfigData()
Definition: HLTConfigProvider.cc:28
edm::detail::ThreadSafeRegistry
Definition: ThreadSafeRegistry.h:34
fetchall_from_DQM_v2.regexp
regexp
Definition: fetchall_from_DQM_v2.py:93
HLTConfigProvider::hltConfigData_
const HLTConfigData * hltConfigData_
Definition: HLTConfigProvider.h:219
edm::detail::ThreadSafeRegistry::instance
static ThreadSafeRegistry * instance()
HLTConfigProvider::processPSet
const edm::ParameterSet & processPSet() const
ParameterSet of process.
Definition: HLTConfigProvider.h:110
HLTConfigData::datasetNames
const std::vector< std::string > & datasetNames() const
Datasets.
Definition: HLTConfigData.cc:570
edm::Hash::isValid
bool isValid() const
Definition: Hash.h:141
HLTConfigData::saveTagsModules
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
Definition: HLTConfigData.cc:454
HLTConfigData::datasetName
const std::string & datasetName(unsigned int dataset) const
name of dataset with index i
Definition: HLTConfigData.cc:572
HLTConfigData::streamName
const std::string & streamName(unsigned int stream) const
name of stream with index i
Definition: HLTConfigData.cc:548
edm::glob2reg
std::string glob2reg(std::string const &pattern)
Definition: RegexMatch.cc:19
HLTConfigProvider::processName_
std::string processName_
data members
Definition: HLTConfigProvider.h:216
edm::Hash< ParameterSetType >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTConfigProvider::inited_
bool inited_
Definition: HLTConfigProvider.h:217
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
edm::ParameterSet
Definition: ParameterSet.h:47
HLTConfigData::moduleIndex
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 - size-1)
Definition: HLTConfigData.cc:468
HLTConfigData::moduleEDMType
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
Definition: HLTConfigData.cc:489
edm::ProcessHistory::const_iterator
collection_type::const_iterator const_iterator
Definition: ProcessHistory.h:19
HLTConfigData::datasetContent
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
Definition: HLTConfigData.cc:585
HLTConfigData::streamContent
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
Definition: HLTConfigData.cc:561
edm::Service
Definition: Service.h:30
edm::ProcessHistory::end
const_iterator end() const
Definition: ProcessHistory.h:63
HLTConfigData::datasetContents
const std::vector< std::vector< std::string > > & datasetContents() const
names of trigger paths for all datasets
Definition: HLTConfigData.cc:583
HLTConfigData::prescaleLabels
const std::vector< std::string > & prescaleLabels() const
low-level data member access
Definition: HLTConfigData.cc:598
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition: topSingleLeptonDQM_PU_cfi.py:39
PixelMapPlotter.inputs
inputs
Definition: PixelMapPlotter.py:490
HLTConfigProvider::tableName
const std::string & tableName() const
HLT ConfDB table name.
Definition: HLTConfigProvider.h:60
HLTConfigData::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigData.cc:431
HLTConfigProvider::processName
const std::string & processName() const
process name
Definition: HLTConfigProvider.h:54
HLTConfigData::hltL1TSeeds
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
Definition: HLTConfigData.cc:535
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
hcalSimParameters_cfi.hb
hb
Definition: hcalSimParameters_cfi.py:60
HLTConfigData::saveTags
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
Definition: HLTConfigData.cc:512
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
HLTConfigData::tableName
const std::string & tableName() const
HLT ConfDB table name.
Definition: HLTConfigData.cc:435
HLTConfigProvider::triggerIndex
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
Definition: HLTConfigProvider.h:73
hi
Definition: EPCuts.h:4
HLTConfigData::streamContents
const std::vector< std::vector< std::string > > & streamContents() const
names of datasets for all streams
Definition: HLTConfigData.cc:559
HLTConfigProvider::clear
void clear()
Definition: HLTConfigProvider.cc:214
HLTConfigData::dump
void dump(const std::string &what) const
Dumping config info to cout.
Definition: HLTConfigData.cc:304
std
Definition: JetResolutionObject.h:76
HLTConfigProvider::init
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Definition: HLTConfigProvider.cc:36
hcalSimParameters_cfi.he
he
Definition: hcalSimParameters_cfi.py:79
HLTConfigData::globalTag
const std::string & globalTag() const
GlobalTag.globaltag.
Definition: HLTConfigData.cc:429
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
HLTConfigData::datasetIndex
unsigned int datasetIndex(const std::string &dataset) const
index of dataset with name
Definition: HLTConfigData.cc:574
HLTConfigData::moduleLabel
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: HLTConfigData.cc:461
HLTConfigProvider::changed
bool changed() const
changed?
Definition: HLTConfigProvider.h:51
HLTConfigData::triggerIndex
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 - size-1)
Definition: HLTConfigData.cc:438
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HLTConfigData::hltL1GTSeeds
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
Definition: HLTConfigData.cc:523
HLTConfigData::streamNames
const std::vector< std::string > & streamNames() const
Streams.
Definition: HLTConfigData.cc:546
HLTConfigData::id
edm::ParameterSetID id() const
technical: id() function needed for use with ThreadSafeRegistry
Definition: HLTConfigData.cc:603
HLTConfigData::processPSet
const edm::ParameterSet & processPSet() const
ParameterSet of process.
Definition: HLTConfigData.cc:498
trigger
Definition: HLTPrescaleTableCond.h:8
dataset
Definition: dataset.py:1
HLTConfigProvider::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigProvider.h:70
ztail.d
d
Definition: ztail.py:151
edm::ProcessHistory::begin
const_iterator begin() const
Definition: ProcessHistory.h:62
edm::pset::Registry::const_iterator
map_type::const_iterator const_iterator
Definition: Registry.h:61
HLTConfigData::prescaleSize
unsigned int prescaleSize() const
Definition: HLTConfigData.cc:593
HLTConfigData::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigData.cc:437
edm::RunBase::id
RunID const & id() const
Definition: RunBase.h:39
HLTConfigProvider::changed_
bool changed_
Definition: HLTConfigProvider.h:218
edm::pset::Registry::getMapped
bool getMapped(key_type const &k, value_type &result) const
Definition: Registry.cc:17
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::pset::Registry
Definition: Registry.h:26
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::Run::processHistory
ProcessHistory const & processHistory() const
Definition: Run.cc:110