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...
 
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...
 
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...
 
int prescaleSet (const edm::Event &iEvent, const edm::EventSetup &iSetup) const
 
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...
 
unsigned int prescaleValue (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) const
 combining the two methods above More...
 
std::pair< int, int > prescaleValues (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) const
 Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path. More...
 
std::pair< std::vector
< std::pair< std::string, int >
>, int > 
prescaleValuesInDetail (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger) const
 
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_
 
boost::shared_ptr< L1GtUtilsl1GtUtils_
 
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 32 of file HLTConfigProvider.h.

Constructor & Destructor Documentation

HLTConfigProvider::HLTConfigProvider ( )

c'tor

Definition at line 33 of file HLTConfigProvider.cc.

33  :
34  processName_(""),
35  inited_(false),
36  changed_(true),
38  l1GtUtils_(new L1GtUtils())
39 {
40 }
static const HLTConfigData * s_dummyHLTConfigData()
std::string processName_
data members
const HLTConfigData * hltConfigData_
boost::shared_ptr< L1GtUtils > l1GtUtils_

Member Function Documentation

bool HLTConfigProvider::changed ( ) const
inline

changed?

Definition at line 60 of file HLTConfigProvider.h.

References changed_.

Referenced by EmDQM::dqmBeginRun().

60  {
61  return changed_;
62  }
void HLTConfigProvider::clear ( void  )
private

Definition at line 238 of file HLTConfigProvider.cc.

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

Referenced by getDataFrom(), and init().

239 {
240  // clear all data members
241 
242  processName_ = "";
243  inited_ = false;
244  changed_ = true;
246  *l1GtUtils_ = L1GtUtils();
247 
248  return;
249 }
static const HLTConfigData * s_dummyHLTConfigData()
std::string processName_
data members
const HLTConfigData * hltConfigData_
boost::shared_ptr< L1GtUtils > l1GtUtils_
const std::vector<std::string>& HLTConfigProvider::datasetContent ( unsigned int  dataset) const
inline

names of trigger paths in dataset with index i

Definition at line 217 of file HLTConfigProvider.h.

References HLTConfigData::datasetContent(), and hltConfigData_.

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

217  {
219  }
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:840
const std::vector<std::string>& HLTConfigProvider::datasetContent ( const std::string &  dataset) const
inline

names of trigger paths in dataset with name

Definition at line 221 of file HLTConfigProvider.h.

References HLTConfigData::datasetContent(), and hltConfigData_.

221  {
223  }
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:840
const std::vector<std::vector<std::string> >& HLTConfigProvider::datasetContents ( ) const
inline

names of trigger paths for all datasets

Definition at line 213 of file HLTConfigProvider.h.

References HLTConfigData::datasetContents(), and hltConfigData_.

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

213  {
215  }
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 209 of file HLTConfigProvider.h.

References HLTConfigData::datasetIndex(), and hltConfigData_.

209  {
211  }
const HLTConfigData * hltConfigData_
tuple dataset
Definition: dataset.py:840
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 205 of file HLTConfigProvider.h.

References HLTConfigData::datasetName(), and hltConfigData_.

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

Datasets list of names of all datasets

Definition at line 201 of file HLTConfigProvider.h.

References HLTConfigData::datasetNames(), and hltConfigData_.

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

201  {
202  return hltConfigData_->datasetNames();
203  }
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 49 of file HLTConfigProvider.h.

References HLTConfigData::dump(), and hltConfigData_.

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

49  {
50  hltConfigData_->dump(what);
51  }
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 127 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().

128 {
129  //is it in our registry?
131  const HLTConfigData* d = reg->getMapped(iID);
132  if(0 != d) {
133  changed_ = true;
134  inited_ = true;
135  hltConfigData_ = d;
136  } else {
137  const edm::ParameterSet* processPSet = 0;
138  if ( 0 != (processPSet = edm::pset::Registry::instance()->getMapped(iID))) {
139  if (not processPSet->id().isValid()) {
140  clear();
141  edm::LogError("HLTConfigProvider") << "ProcessPSet found is empty!";
142  changed_ = true;
143  inited_ = false;
145  return;
146  } else {
147  clear();
148  reg->insertMapped( HLTConfigData(processPSet));
149  changed_ = true;
150  inited_ = true;
151  hltConfigData_ = reg->getMapped(processPSet->id());
152  return;
153  }
154  } else {
155  clear();
156  edm::LogError("HLTConfigProvider") << "ProcessPSet not found in regsistry!";
157  changed_ = true;
158  inited_ = false;
160  return;
161  }
162  }
163  return;
164 }
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:16
const std::string& HLTConfigProvider::globalTag ( ) const
inline

global tag

Definition at line 70 of file HLTConfigProvider.h.

References HLTConfigData::globalTag(), and hltConfigData_.

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

HLTLevel1GTSeed module HLTLevel1GTSeed modules for all trigger paths

Definition at line 159 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

Referenced by L1GtTriggerMenuTester::associateL1SeedsHltPath(), prescaleValues(), prescaleValuesInDetail(), PrescaleWeightProvider::prescaleWeight(), and pat::PATTriggerProducer::produce().

159  {
160  return hltConfigData_->hltL1GTSeeds();
161  }
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 ( const std::string &  trigger) const
inline

HLTLevel1GTSeed modules for trigger path with name.

Definition at line 163 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

163  {
164  return hltConfigData_->hltL1GTSeeds(trigger);
165  }
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 167 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::hltL1GTSeeds().

167  {
168  return hltConfigData_->hltL1GTSeeds(trigger);
169  }
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
const HLTConfigData * hltConfigData_
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

L1 GTA V3: https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideL1TriggerL1GtUtils#Version_3

Definition at line 42 of file HLTConfigProvider.cc.

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

Referenced by L1GtTriggerMenuTester::associateL1SeedsHltPath(), HLTPathSelector::beginRun(), CandidateTriggerObjectProducer::beginRun(), HLTEventAnalyzerAOD::beginRun(), HLTEventAnalyzerRAW::beginRun(), PixelVTXMonitor::beginRun(), LumiCalculator::beginRun(), StudyHLT::beginRun(), AlCaHBHEMuonFilter::beginRun(), HLTrigReport::beginRun(), pat::PATTriggerEventProducer::beginRun(), pat::PATTriggerProducer::beginRun(), AlCaIsoTracksFilter::beginRun(), HLTInfo::beginRun(), TriggerValidator::beginRun(), HLTHiggsSubAnalysis::beginRun(), HLTOfflineReproducibility::beginRun(), HcalIsoTrkAnalyzer::beginRun(), HLTExoticaSubAnalysis::beginRun(), IsoTrig::beginRun(), IsoTrackCalib::beginRun(), EgHLTOfflineSummaryClient::beginRun(), IsoTrackCalibration::beginRun(), EgHLTOfflineClient::beginRun(), AlCaIsoTracksProducer::beginRun(), TriggerJSONMonitoring::beginRun(), TrackerDpgAnalysis::beginRun(), GammaJetAnalysis::beginRun(), HcalRaddamMuon::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), GeneralHLTOffline::bookHistograms(), EgHLTOfflineSource::bookHistograms(), HLTTauDQMOfflineSource::dqmBeginRun(), EwkElecDQM::dqmBeginRun(), EwkMuDQM::dqmBeginRun(), SUSY_HLT_Muon_BJet::dqmBeginRun(), HLTVertexPerformanceAnalyzer::dqmBeginRun(), SUSY_HLT_DoubleMuon_Hadronic::dqmBeginRun(), SUSY_HLT_DoubleEle_Hadronic::dqmBeginRun(), SUSY_HLT_Electron_BJet::dqmBeginRun(), EwkMuLumiMonitorDQM::dqmBeginRun(), SUSY_HLT_alphaT::dqmBeginRun(), SUSY_HLT_Muon_Hadronic::dqmBeginRun(), SUSY_HLT_MuEle_Hadronic::dqmBeginRun(), SUSY_HLT_DiJet_MET::dqmBeginRun(), HLTBTagPerformanceAnalyzer::dqmBeginRun(), HLTMuonValidator::dqmBeginRun(), HLTMuonOfflineAnalyzer::dqmBeginRun(), HigPhotonJetHLTOfflineSource::dqmBeginRun(), SUSY_HLT_SingleLepton::dqmBeginRun(), HeavyFlavorValidation::dqmBeginRun(), QcdUeDQM::dqmBeginRun(), HLTScalers::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), FSQDiJetAve::dqmBeginRun(), HLTJetMETValidation::dqmBeginRun(), JetMETHLTOfflineSource::dqmBeginRun(), EmDQM::dqmBeginRun(), EmDQMReco::dqmBeginRun(), QcdLowPtDQM::dqmBeginRun(), TopSingleLeptonHLTOfflineDQM::dqmBeginRun(), TopDiLeptonHLTOfflineDQM::dqmBeginRun(), MuScleFit::duringLoop(), init(), PrescaleWeightProvider::initRun(), TriggerHelper::initRun(), GenericTriggerEventFlag::initRun(), and DQMProvInfo::makeHLTKeyInfo().

45  {
46 
47  using namespace std;
48  using namespace edm;
49 
50  LogInfo("HLTConfigData") << "Called (R) with processName '"
51  << processName
52  << "' for " << iRun.id() << endl;
53 
55 
57  l1GtUtils_->getL1GtRunCache(iRun,iSetup,useL1EventSetup,useL1GtTriggerMenuLite);
58 
61  return inited_;
62 
63 }
RunID const & id() const
Definition: RunBase.h:41
std::string processName_
data members
bool changed() const
changed?
boost::shared_ptr< L1GtUtils > l1GtUtils_
ProcessHistory const & processHistory() const
Definition: Run.cc:103
static const bool useL1GtTriggerMenuLite(false)
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
static const bool useL1EventSetup(true)
void HLTConfigProvider::init ( const edm::ProcessHistory iHistory,
const std::string &  processName 
)
private

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

Definition at line 65 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().

65  {
66 
67  using namespace std;
68  using namespace edm;
69 
70  const ProcessHistory::const_iterator hb(iHistory.begin());
71  const ProcessHistory::const_iterator he(iHistory.end());
72 
75 
77  if (processName_=="*") {
78  // auto-discovery of process name
79  for (ProcessHistory::const_iterator hi=hb; hi!=he; ++hi) {
80  if (iHistory.getConfigurationForProcess(hi->processName(),processConfiguration)) {
82  if ((processPSet!=0) && (processPSet->exists("hltTriggerSummaryAOD"))) {
83  processName_=hi->processName();
84  }
85  }
86  }
87  LogInfo("HLTConfigData") << "Auto-discovered processName: '"
88  << processName_ << "'"
89  << endl;
90  }
91  if (processName_=="*") {
92  LogError("HLTConfigData") << "Auto-discovery of processName failed!"
93  << endl;
94  clear();
95  return;
96  }
97 
99  unsigned int n(0);
100  for (ProcessHistory::const_iterator hi=hb; hi!=he; ++hi) {
101  if (hi->processName()==processName_) {n++;}
102  }
103  if (n>1) {
104  LogError("HLTConfigProvider") << " ProcessName '"<< processName_
105  << " found " << n
106  << " times in history!" << endl;
107  clear();
108  return;
109  }
110 
113  if ((hltConfigData_ !=s_dummyHLTConfigData()) && (processConfiguration.parameterSetID() == hltConfigData_->id())) {
114  changed_ = false;
115  inited_ = true;
116  return;
117  } else {
118  getDataFrom(processConfiguration.parameterSetID());
119  }
120  } else {
121  LogError("HLTConfigProvider") << "Falling back to ProcessName-only init using ProcessName '"<<processName_<<"' !";
123  return;
124  }
125 }
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:370
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:22
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:16
void HLTConfigProvider::init ( const std::string &  processName)
private

Definition at line 166 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, s_dummyHLTConfigData(), AlCaHLTBitMon_QueryRunRegistry::string, and tableName().

167 {
168  using namespace std;
169  using namespace edm;
170 
171  // Obtain ParameterSetID for requested process (with name
172  // processName) from pset registry
173  string pNames("");
174  string hNames("");
175  const ParameterSet* pset = 0;
176  ParameterSetID psetID;
177  unsigned int nPSets(0);
178  const edm::pset::Registry * registry_(pset::Registry::instance());
179  const edm::pset::Registry::const_iterator rb(registry_->begin());
180  const edm::pset::Registry::const_iterator re(registry_->end());
181  for (edm::pset::Registry::const_iterator i = rb; i != re; ++i) {
182  if (i->second.exists("@process_name")) {
183  const std::string pName(i->second.getParameter<string>("@process_name"));
184  pNames += pName+" ";
185  if ( pName == processName ) {
186  psetID = i->first;
187  nPSets++;
188  if ((hltConfigData_ != s_dummyHLTConfigData()) && (hltConfigData_->id()==psetID)) {
189  hNames += tableName();
190  } else if ( 0 != (pset = registry_->getMapped(psetID))) {
191  if (pset->exists("HLTConfigVersion")) {
192  const ParameterSet& HLTPSet(pset->getParameterSet("HLTConfigVersion"));
193  if (HLTPSet.exists("tableName")) {
194  hNames += HLTPSet.getParameter<string>("tableName")+" ";
195  }
196  }
197  }
198  }
199  }
200  }
201 
202  LogVerbatim("HLTConfigProvider") << "Unordered list of all process names found: "
203  << pNames << "." << endl;
204 
205  LogVerbatim("HLTConfigProvider") << "HLT TableName of each selected process: "
206  << hNames << "." << endl;
207 
208  if (nPSets==0) {
209  LogError("HLTConfigProvider") << " Process name '"
210  << processName
211  << "' not found in registry!" << endl;
212  clear();
213  return;
214  }
215  if (psetID==ParameterSetID()) {
216  LogError("HLTConfigProvider") << " Process name '"
217  << processName
218  << "' found but ParameterSetID invalid!"
219  << endl;
220  clear();
221  return;
222  }
223  if (nPSets>1) {
224  LogError("HLTConfigProvider") << " Process name '"
225  << processName
226  << " found " << nPSets
227  << " times in registry!" << endl;
228  clear();
229  return;
230  }
231 
232  getDataFrom(psetID);
233 
234  return;
235 
236 }
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 56 of file HLTConfigProvider.h.

References inited_.

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

56  {
57  return inited_;
58  }
const std::vector< std::string > HLTConfigProvider::matched ( const std::vector< std::string > &  inputs,
const std::string &  pattern 
)
static

regexp processing

Definition at line 395 of file HLTConfigProvider.cc.

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

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

395  {
396  std::vector<std::string> matched;
397  const boost::regex regexp(edm::glob2reg(pattern));
398  const unsigned int n(inputs.size());
399  for (unsigned int i=0; i<n; ++i) {
400  const std::string& input(inputs[i]);
401  if (boost::regex_match(input,regexp)) matched.push_back(input);
402  }
403  return matched;
404 }
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:43
const std::string HLTConfigProvider::moduleEDMType ( const std::string &  module) const
inline

C++ base class name of module.

Definition at line 138 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleEDMType().

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

138  {
140  }
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 125 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleIndex().

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

125  {
126  return hltConfigData_->moduleIndex(trigger,module);
127  }
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 128 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleIndex().

128  {
129  return hltConfigData_->moduleIndex(trigger,module);
130  }
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 117 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleLabel().

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

117  {
118  return hltConfigData_->moduleLabel(trigger,module);
119  }
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 120 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleLabel().

120  {
121  return hltConfigData_->moduleLabel(trigger,module);
122  }
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 108 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::moduleLabels().

108  {
109  return hltConfigData_->moduleLabels(trigger);
110  }
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 252 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleLabels().

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

252  {
253  return hltConfigData_->prescaleLabels();
254  }
const HLTConfigData * hltConfigData_
const std::vector< std::string > & prescaleLabels() const
low-level data member access
int HLTConfigProvider::prescaleSet ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) const

HLT prescale values via (L1) EventSetup current (default) prescale set index - to be taken from L1GtUtil via Event

error - notify user!

Definition at line 252 of file HLTConfigProvider.cc.

References L1GtUtils::AlgorithmTrigger, assert(), l1GtUtils_, L1GtUtils::TechnicalTrigger, useL1EventSetup(), and useL1GtTriggerMenuLite().

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

252  {
253  // return hltPrescaleTable_.set();
254  l1GtUtils_->getL1GtRunCache(iEvent,iSetup,useL1EventSetup,useL1GtTriggerMenuLite);
255  int errorTech(0);
256  const int psfsiTech(l1GtUtils_->prescaleFactorSetIndex(iEvent,L1GtUtils::TechnicalTrigger,errorTech));
257  int errorPhys(0);
258  const int psfsiPhys(l1GtUtils_->prescaleFactorSetIndex(iEvent,L1GtUtils::AlgorithmTrigger,errorPhys));
259  assert(psfsiTech==psfsiPhys);
260  if ( (errorTech==0) && (errorPhys==0) &&
261  (psfsiTech>=0) && (psfsiPhys>=0) && (psfsiTech==psfsiPhys) ) {
262  return psfsiPhys;
263  } else {
265  edm::LogError("HLTConfigData")
266  << " Error in determining HLT prescale set index from L1 data using L1GtUtils: "
267  << " Tech/Phys error = " << errorTech << "/" << errorPhys
268  << " Tech/Phys psfsi = " << psfsiTech << "/" << psfsiPhys;
269  return -1;
270  }
271 }
assert(m_qm.get())
boost::shared_ptr< L1GtUtils > l1GtUtils_
static const bool useL1GtTriggerMenuLite(false)
static const bool useL1EventSetup(true)
unsigned int HLTConfigProvider::prescaleSize ( ) const
inline

HLT prescale info Number of HLT prescale sets

Definition at line 228 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleSize().

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

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

Definition at line 255 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleTable().

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

255  {
256  return hltConfigData_->prescaleTable();
257  }
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 232 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::prescaleValue().

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

232  {
233  return hltConfigData_->prescaleValue(set,trigger);
234  }
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_
unsigned int HLTConfigProvider::prescaleValue ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  trigger 
) const

combining the two methods above

Definition at line 273 of file HLTConfigProvider.cc.

References prescaleSet(), and prescaleValue().

273  {
274  const int set(prescaleSet(iEvent,iSetup));
275  if (set<0) {
276  return 1;
277  } else {
278  return prescaleValue(static_cast<unsigned int>(set),trigger);
279  }
280 }
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
int prescaleSet(const edm::Event &iEvent, const edm::EventSetup &iSetup) const
std::pair< int, int > HLTConfigProvider::prescaleValues ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  trigger 
) const

Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.

error - can't handle properly multiple L1GTSeed modules

Definition at line 282 of file HLTConfigProvider.cc.

References asciidump::at, dump(), hltL1GTSeeds(), i, l1GtUtils_, prescaleSet(), prescaleValue(), query::result, edm::second(), size(), AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), and useL1GtTriggerMenuLite().

Referenced by IsoTrig::analyze(), IsoTrackCalib::analyze(), GammaJetAnalysis::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), and CandidateTriggerObjectProducer::produce().

282  {
283 
284  // start with setting both L1T and HLT prescale values to 0
285  std::pair<int,int> result(std::pair<int,int>(0,0));
286 
287  // get HLT prescale (possible if HLT prescale set index is correctly found)
288  const int set(prescaleSet(iEvent,iSetup));
289  if (set<0) {
290  result.second = -1;
291  } else {
292  result.second = static_cast<int>(prescaleValue(static_cast<unsigned int>(set),trigger));
293  }
294 
295  // get L1T prescale - works only for those hlt trigger paths with
296  // exactly one L1GT seed module which has exactly one L1T name as seed
297  const unsigned int nL1GTSeedModules(hltL1GTSeeds(trigger).size());
298  if (nL1GTSeedModules==0) {
299  // no L1 seed module on path hence no L1 seed hence formally no L1 prescale
300  result.first=1;
301  } else if (nL1GTSeedModules==1) {
302  l1GtUtils_->getL1GtRunCache(iEvent,iSetup,useL1EventSetup,useL1GtTriggerMenuLite);
303  const std::string l1tname(hltL1GTSeeds(trigger).at(0).second);
304  int l1error(0);
305  result.first = l1GtUtils_->prescaleFactor(iEvent,l1tname,l1error);
306  if (l1error!=0) {
307  edm::LogError("HLTConfigData")
308  << " Error in determining L1T prescale for HLT path: '" << trigger
309  << "' with L1T seed: '" << l1tname
310  << "' using L1GtUtils: error code = " << l1error << "." << std::endl
311  << " Note: for this method ('prescaleValues'), only a single L1T name (and not a bit number) is allowed as seed!" << std::endl
312  << " For seeds being complex logical expressions, try the new method 'prescaleValuesInDetail'."<< std::endl;
313  result.first = -1;
314  }
315  } else {
317  std::string dump("'"+hltL1GTSeeds(trigger).at(0).second+"'");
318  for (unsigned int i=1; i!=nL1GTSeedModules; ++i) {
319  dump += " * '"+hltL1GTSeeds(trigger).at(i).second+"'";
320  }
321  edm::LogError("HLTConfigData")
322  << " Error in determining L1T prescale for HLT path: '" << trigger
323  << "' has multiple L1GTSeed modules, " << nL1GTSeedModules
324  << ", with L1 seeds: " << dump
325  << ". (Note: at most one L1GTSeed module is allowed for a proper determination of the L1T prescale!)";
326  result.first = -1;
327  }
328 
329  return result;
330 }
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
int i
Definition: DBlmapReader.cc:9
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
U second(std::pair< T, U > const &p)
boost::shared_ptr< L1GtUtils > l1GtUtils_
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
tuple result
Definition: query.py:137
static const bool useL1GtTriggerMenuLite(false)
int prescaleSet(const edm::Event &iEvent, const edm::EventSetup &iSetup) const
static const bool useL1EventSetup(true)
list at
Definition: asciidump.py:428
std::pair< std::vector< std::pair< std::string, int > >, int > HLTConfigProvider::prescaleValuesInDetail ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  trigger 
) const

error - can't handle properly multiple L1GTSeed modules

Definition at line 332 of file HLTConfigProvider.cc.

References funct::abs(), asciidump::at, dump(), L1GtUtils::LogicalExpressionL1Results::errorCodes(), edm::Event::getRun(), hltL1GTSeeds(), i, L1GtUtils::LogicalExpressionL1Results::isValid(), l1GtUtils_, L1GtUtils::LogicalExpressionL1Results::logicalExpressionRunUpdate(), python.rootplot.argparse::message, L1GtUtils::LogicalExpressionL1Results::prescaleFactors(), prescaleSet(), prescaleValue(), query::result, edm::second(), size(), AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), and useL1GtTriggerMenuLite().

Referenced by HLTEventAnalyzerAOD::analyzeTrigger(), and pat::PATTriggerProducer::produce().

332  {
333 
334  std::pair<std::vector<std::pair<std::string,int> >,int> result;
335  result.first.clear();
336 
337  // get HLT prescale (possible if HLT prescale set index is correctly found)
338  const int set(prescaleSet(iEvent,iSetup));
339  if (set<0) {
340  result.second = -1;
341  } else {
342  result.second = static_cast<int>(prescaleValue(static_cast<unsigned int>(set),trigger));
343  }
344 
345  // get L1T prescale - works only for those hlt trigger paths with
346  // exactly one L1GT seed module which has exactly one L1T name as seed
347  const unsigned int nL1GTSeedModules(hltL1GTSeeds(trigger).size());
348  if (nL1GTSeedModules==0) {
349  // no L1 seed module on path hence no L1 seed hence formally no L1 prescale
350  result.first.clear();
351  } else if (nL1GTSeedModules==1) {
352  l1GtUtils_->getL1GtRunCache(iEvent,iSetup,useL1EventSetup,useL1GtTriggerMenuLite);
353  const std::string l1tname(hltL1GTSeeds(trigger).at(0).second);
355  l1Logical.logicalExpressionRunUpdate(iEvent.getRun(),iSetup,l1tname);
356  const std::vector<std::pair<std::string, int> >& errorCodes(l1Logical.errorCodes(iEvent));
357  result.first = l1Logical.prescaleFactors();
358  int l1error(l1Logical.isValid() ? 0 : 1);
359  for (unsigned int i=0; i<errorCodes.size(); ++i) {
360  l1error += std::abs(errorCodes[i].second);
361  }
362  if (l1error!=0) {
363  std::ostringstream message;
364  message
365  << " Error in determining L1T prescales for HLT path: '" << trigger
366  << "' with complex L1T seed: '" << l1tname
367  << "' using L1GtUtils: " << std::endl
368  << " isValid=" << l1Logical.isValid()
369  << " l1tname/error/prescale " << errorCodes.size()
370  << std::endl;
371  for (unsigned int i=0; i< errorCodes.size(); ++i) {
372  message << " " << i << ":" << errorCodes[i].first << "/" << errorCodes[i].second << "/" << result.first[i].second;
373  }
374  message << ".";
375  edm::LogError("HLTConfigData") << message.str();
376  result.first.clear();
377  }
378  } else {
380  std::string dump("'"+hltL1GTSeeds(trigger).at(0).second+"'");
381  for (unsigned int i=1; i!=nL1GTSeedModules; ++i) {
382  dump += " * '"+hltL1GTSeeds(trigger).at(i).second+"'";
383  }
384  edm::LogError("HLTConfigData")
385  << " Error in determining L1T prescale for HLT path: '" << trigger
386  << "' has multiple L1GTSeed modules, " << nL1GTSeedModules
387  << ", with L1 seeds: " << dump
388  << ". (Note: at most one L1GTSeed module is allowed for a proper determination of the L1T prescale!)";
389  result.first.clear();
390  }
391 
392  return result;
393 }
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
int i
Definition: DBlmapReader.cc:9
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
Run const & getRun() const
Definition: Event.cc:58
U second(std::pair< T, U > const &p)
boost::shared_ptr< L1GtUtils > l1GtUtils_
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
tuple result
Definition: query.py:137
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static const bool useL1GtTriggerMenuLite(false)
int prescaleSet(const edm::Event &iEvent, const edm::EventSetup &iSetup) const
static const bool useL1EventSetup(true)
list at
Definition: asciidump.py:428
const std::string& HLTConfigProvider::processName ( ) const
inline

process name

Definition at line 65 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::processName().

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

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

ParameterSet of process.

Definition at line 143 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::processPSet().

Referenced by getDataFrom(), and init().

143  {
144  return hltConfigData_->processPSet();
145  }
const HLTConfigData * hltConfigData_
const edm::ParameterSet & processPSet() const
ParameterSet of process.
const std::string HLTConfigProvider::removeVersion ( const std::string &  trigger)
static

Definition at line 406 of file HLTConfigProvider.cc.

Referenced by GeneralHLTOffline::analyze(), GeneralHLTOffline::bookHistograms(), HLTJetMETValidation::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), EmDQM::dqmBeginRun(), GeneralHLTOffline::fillHltMatrix(), and GeneralHLTOffline::setupHltMatrix().

406  {
407  const boost::regex regexp("_v[0-9]+$");
408  return boost::regex_replace(trigger,regexp,"");
409 }
const std::vector< std::string > HLTConfigProvider::restoreVersion ( const std::vector< std::string > &  inputs,
const std::string &  trigger 
)
static

Definition at line 411 of file HLTConfigProvider.cc.

References matched().

Referenced by GenericTriggerEventFlag::expandLogicalExpression().

411  {
412  return matched(inputs,trigger+"_v[0-9]+$");
413 }
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 153 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::saveTags().

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

153  {
154  return hltConfigData_->saveTags(module);
155  }
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 111 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::saveTagsModules().

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

111  {
112  return hltConfigData_->saveTagsModules(trigger);
113  }
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 114 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::saveTagsModules().

114  {
115  return hltConfigData_->saveTagsModules(trigger);
116  }
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 80 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::size().

Referenced by TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), HLTEventAnalyzerRAW::analyze(), HLTEventAnalyzerAOD::analyze(), TriggerValidator::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerRAW::analyzeTrigger(), L1GtTriggerMenuTester::associateL1SeedsHltPath(), HLTPathSelector::beginRun(), HLTEventAnalyzerRAW::beginRun(), HLTEventAnalyzerAOD::beginRun(), LumiCalculator::beginRun(), pat::PATTriggerEventProducer::beginRun(), pat::PATTriggerProducer::beginRun(), HLTOfflineReproducibility::beginRun(), HcalRaddamMuon::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), GeneralHLTOffline::bookHistograms(), HLTScalers::bookHistograms(), TriggerRatesMonitor::bookHistograms(), QcdUeDQM::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(), DQMProvInfo::makeHLTKeyInfo(), prescaleValues(), prescaleValuesInDetail(), PrescaleWeightProvider::prescaleWeight(), CandidateTriggerObjectProducer::produce(), pat::PATTriggerProducer::produce(), egHLT::trigTools::translateFiltersToPathNames(), and JetMETHLTOfflineSource::validPathHLT().

80  {
81  return hltConfigData_->size();
82  }
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 84 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::size().

84  {
85  return hltConfigData_->size(trigger);
86  }
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 87 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::size().

87  {
88  return hltConfigData_->size(trigger);
89  }
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 190 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamContent().

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

190  {
192  }
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 194 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamContent().

194  {
196  }
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 186 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamContents().

Referenced by HLTrigReport::reset().

186  {
187  return hltConfigData_->streamContents();
188  }
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 182 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamIndex().

Referenced by HLTScalers::dqmBeginRun().

182  {
184  }
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 178 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamName().

178  {
180  }
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 174 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::streamNames().

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

174  {
175  return hltConfigData_->streamNames();
176  }
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 75 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::tableName().

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

75  {
76  return hltConfigData_->tableName();
77  }
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 92 of file HLTConfigProvider.h.

References hltConfigData_, and HLTConfigData::triggerNames().

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

92  {
93  return hltConfigData_->triggerNames();
94  }
const std::vector< std::string > & triggerNames() const
names of trigger paths
const HLTConfigData * hltConfigData_

Member Data Documentation

bool HLTConfigProvider::changed_
private

Definition at line 274 of file HLTConfigProvider.h.

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

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

Definition at line 273 of file HLTConfigProvider.h.

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

boost::shared_ptr<L1GtUtils> HLTConfigProvider::l1GtUtils_
private

Definition at line 276 of file HLTConfigProvider.h.

Referenced by clear(), init(), prescaleSet(), prescaleValues(), and prescaleValuesInDetail().

std::string HLTConfigProvider::processName_
private

data members

Definition at line 272 of file HLTConfigProvider.h.

Referenced by clear(), and init().