CMS 3D CMS Logo

HLTConfigProvider.h
Go to the documentation of this file.
1 #ifndef HLTcore_HLTConfigProvider_h
2 #define HLTcore_HLTConfigProvider_h
3 
17 
19 
20 #include <map>
21 #include <string>
22 #include <vector>
23 
24 //
25 // class declaration
26 //
27 
29 private:
30 public:
34  // ~HLTConfigProvider();
35 
36 public:
40  bool init(const edm::Run& iRun, const edm::EventSetup& iSetup, const std::string& processName, bool& changed);
41 
43  void dump(const std::string& what) const { hltConfigData_->dump(what); }
44 
46 
48  bool inited() const { return inited_; }
50  bool changed() const { return changed_; }
51 
53  const std::string& processName() const { return hltConfigData_->processName(); }
54 
56  const std::string& globalTag() const { return hltConfigData_->globalTag(); }
57 
59  const std::string& tableName() const { return hltConfigData_->tableName(); }
60 
62  unsigned int size() const { return hltConfigData_->size(); }
64  unsigned int size(unsigned int trigger) const { return hltConfigData_->size(trigger); }
65  unsigned int size(const std::string& trigger) const { return hltConfigData_->size(trigger); }
66 
68  const std::vector<std::string>& triggerNames() const { return hltConfigData_->triggerNames(); }
70 
73 
75  const std::vector<std::string>& moduleLabels(unsigned int trigger) const {
77  }
78  const std::vector<std::string>& moduleLabels(const std::string& trigger) const {
80  }
81  const std::vector<std::string>& saveTagsModules(unsigned int trigger) const {
83  }
84  const std::vector<std::string>& saveTagsModules(const std::string& trigger) const {
86  }
87  const std::string& moduleLabel(unsigned int trigger, unsigned int module) const {
89  }
90  const std::string& moduleLabel(const std::string& trigger, unsigned int module) const {
92  }
93 
95  unsigned int moduleIndex(unsigned int trigger, const std::string& module) const {
97  }
98  unsigned int moduleIndex(const std::string& trigger, const std::string& module) const {
100  }
101 
104 
107 
110 
113 
115  bool saveTags(const std::string& module) const { return hltConfigData_->saveTags(module); }
116 
118  unsigned int l1tType() const { return hltConfigData_->l1tType(); }
119 
122  const std::vector<std::vector<std::pair<bool, std::string> > >& hltL1GTSeeds() const {
123  return hltConfigData_->hltL1GTSeeds();
124  }
126  const std::vector<std::pair<bool, std::string> >& hltL1GTSeeds(const std::string& trigger) const {
128  }
130  const std::vector<std::pair<bool, std::string> >& hltL1GTSeeds(unsigned int trigger) const {
132  }
133 
136  const std::vector<std::vector<std::string> >& hltL1TSeeds() const { return hltConfigData_->hltL1TSeeds(); }
138  const std::vector<std::string>& hltL1TSeeds(const std::string& trigger) const {
140  }
142  const std::vector<std::string>& hltL1TSeeds(unsigned int trigger) const {
144  }
145 
148  const std::vector<std::string>& streamNames() const { return hltConfigData_->streamNames(); }
150  const std::string& streamName(unsigned int stream) const { return hltConfigData_->streamName(stream); }
152  unsigned int streamIndex(const std::string& stream) const { return hltConfigData_->streamIndex(stream); }
154  const std::vector<std::vector<std::string> >& streamContents() const { return hltConfigData_->streamContents(); }
156  const std::vector<std::string>& streamContent(unsigned int stream) const {
158  }
160  const std::vector<std::string>& streamContent(const std::string& stream) const {
162  }
163 
166  const std::vector<std::string>& datasetNames() const { return hltConfigData_->datasetNames(); }
168  const std::string& datasetName(unsigned int dataset) const { return hltConfigData_->datasetName(dataset); }
170  unsigned int datasetIndex(const std::string& dataset) const { return hltConfigData_->datasetIndex(dataset); }
172  const std::vector<std::vector<std::string> >& datasetContents() const { return hltConfigData_->datasetContents(); }
174  const std::vector<std::string>& datasetContent(unsigned int dataset) const {
176  }
178  const std::vector<std::string>& datasetContent(const std::string& dataset) const {
180  }
181 
184  unsigned int prescaleSize() const { return hltConfigData_->prescaleSize(); }
186  unsigned int prescaleValue(unsigned int set, const std::string& trigger) const {
187  return hltConfigData_->prescaleValue(set, trigger);
188  }
189 
191  const std::vector<std::string>& prescaleLabels() const { return hltConfigData_->prescaleLabels(); }
192  const std::map<std::string, std::vector<unsigned int> >& prescaleTable() const {
193  return hltConfigData_->prescaleTable();
194  }
195 
197  static const std::vector<std::string> matched(const std::vector<std::string>& inputs, const std::string& pattern);
198  static const std::string removeVersion(const std::string& trigger);
199  static const std::vector<std::string> restoreVersion(const std::vector<std::string>& inputs,
200  const std::string& trigger);
201 
202 private:
203  void getDataFrom(const edm::ParameterSetID& iID);
204  void init(const edm::ProcessHistory& iHistory, const std::string& processName);
205  void init(const std::string& processName);
206  void clear();
207 
210  bool inited_;
211  bool changed_;
213 };
214 #endif
HLTConfigProvider::moduleIndex
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 to size-1)
Definition: HLTConfigProvider.h:95
HLTConfigData::modulePSet
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
Definition: HLTConfigData.cc:500
HLTConfigProvider::prescaleSize
unsigned int prescaleSize() const
Definition: HLTConfigProvider.h:184
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
HLTConfigData::moduleType
const std::string moduleType(const std::string &module) const
C++ class name of module.
Definition: HLTConfigData.cc:480
HLTConfigData::streamIndex
unsigned int streamIndex(const std::string &stream) const
index of stream with name
Definition: HLTConfigData.cc:550
HLTConfigProvider::moduleType
const std::string moduleType(const std::string &module) const
C++ class name of module.
Definition: HLTConfigProvider.h:103
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
HLTConfigProvider::saveTagsModules
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
Definition: HLTConfigProvider.h:81
HLTConfigData::triggerNames
const std::vector< std::string > & triggerNames() const
names of trigger paths
Definition: HLTConfigData.cc:436
HLTConfigProvider::hltL1TSeeds
const std::vector< std::string > & hltL1TSeeds(unsigned int trigger) const
HLTL1TSeed modules for trigger path with index i.
Definition: HLTConfigProvider.h:142
HLTConfigProvider::globalTag
const std::string & globalTag() const
global tag
Definition: HLTConfigProvider.h:56
edm::Run
Definition: Run.h:45
LuminosityBlock.h
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
HLTConfigProvider::hltL1TSeeds
const std::vector< std::string > & hltL1TSeeds(const std::string &trigger) const
HLTL1TSeed modules for trigger path with name.
Definition: HLTConfigProvider.h:138
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
HLTConfigProvider::datasetContent
const std::vector< std::string > & datasetContent(const std::string &dataset) const
names of trigger paths in dataset with name
Definition: HLTConfigProvider.h:178
HLTConfigProvider::dump
void dump(const std::string &what) const
Dumping config info to cout.
Definition: HLTConfigProvider.h:43
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
HLTConfigProvider::inited
bool inited() const
Accessors (const methods)
Definition: HLTConfigProvider.h:48
HLTConfigProvider::moduleLabel
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: HLTConfigProvider.h:87
HLTConfigProvider::hltConfigData_
const HLTConfigData * hltConfigData_
Definition: HLTConfigProvider.h:212
HLTConfigProvider::datasetIndex
unsigned int datasetIndex(const std::string &dataset) const
index of dataset with name
Definition: HLTConfigProvider.h:170
HLTConfigProvider::moduleLabels
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
Definition: HLTConfigProvider.h:75
HLTConfigProvider::processPSet
const edm::ParameterSet & processPSet() const
ParameterSet of process.
Definition: HLTConfigProvider.h:109
HLTConfigProvider::l1tType
unsigned int l1tType() const
L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)
Definition: HLTConfigProvider.h:118
HLTConfigProvider::hltL1TSeeds
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
Definition: HLTConfigProvider.h:136
HLTConfigData::datasetNames
const std::vector< std::string > & datasetNames() const
Datasets.
Definition: HLTConfigData.cc:570
HLTConfigProvider::prescaleTable
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
Definition: HLTConfigProvider.h:192
HLTConfigProvider::moduleIndex
unsigned int moduleIndex(const std::string &trigger, const std::string &module) const
Definition: HLTConfigProvider.h:98
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
HLTConfigProvider::hltL1GTSeeds
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
Definition: HLTConfigProvider.h:122
HLTConfigProvider::saveTags
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
Definition: HLTConfigProvider.h:115
HLTConfigData::streamName
const std::string & streamName(unsigned int stream) const
name of stream with index i
Definition: HLTConfigData.cc:548
HLTConfigProvider::processName_
std::string processName_
data members
Definition: HLTConfigProvider.h:209
Run.h
edm::Hash< ParameterSetType >
HLTConfigProvider::moduleEDMType
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
Definition: HLTConfigProvider.h:106
HLTConfigProvider::removeVersion
static const std::string removeVersion(const std::string &trigger)
Definition: HLTConfigProvider.cc:238
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTConfigProvider::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigProvider.h:62
HLTConfigProvider::inited_
bool inited_
Definition: HLTConfigProvider.h:210
HLTConfigProvider::modulePSet
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
Definition: HLTConfigProvider.h:112
HLTConfigProvider::restoreVersion
static const std::vector< std::string > restoreVersion(const std::vector< std::string > &inputs, const std::string &trigger)
Definition: HLTConfigProvider.cc:243
edm::ParameterSet
Definition: ParameterSet.h:36
HLTConfigProvider::streamName
const std::string & streamName(unsigned int stream) const
name of stream with index i
Definition: HLTConfigProvider.h:150
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
Event.h
HLTConfigData::moduleEDMType
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
Definition: HLTConfigData.cc:489
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
HLTConfigProvider::size
unsigned int size(const std::string &trigger) const
Definition: HLTConfigProvider.h:65
HLTConfigProvider::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: HLTConfigProvider.h:186
HLTConfigData::streamContent
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
Definition: HLTConfigData.cc:561
HLTConfigProvider::size
unsigned int size(unsigned int trigger) const
number of modules on a specific trigger path
Definition: HLTConfigProvider.h:64
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:59
HLTConfigProvider::moduleLabel
const std::string & moduleLabel(const std::string &trigger, unsigned int module) const
Definition: HLTConfigProvider.h:90
HLTConfigData::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigData.cc:431
HLTConfigProvider::datasetName
const std::string & datasetName(unsigned int dataset) const
name of dataset with index i
Definition: HLTConfigProvider.h:168
HLTConfigProvider::processName
const std::string & processName() const
process name
Definition: HLTConfigProvider.h:53
edm::EventSetup
Definition: EventSetup.h:57
HLTConfigProvider::prescaleLabels
const std::vector< std::string > & prescaleLabels() const
low-level data member access
Definition: HLTConfigProvider.h:191
HLTConfigData::hltL1TSeeds
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
Definition: HLTConfigData.cc:535
HLTConfigProvider::saveTagsModules
const std::vector< std::string > & saveTagsModules(const std::string &trigger) const
Definition: HLTConfigProvider.h:84
module
Definition: vlib.h:198
HLTConfigProvider::streamNames
const std::vector< std::string > & streamNames() const
Definition: HLTConfigProvider.h:148
HLTConfigData::saveTags
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
Definition: HLTConfigData.cc:512
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:72
HLTConfigProvider::streamContent
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
Definition: HLTConfigProvider.h:156
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
HLTConfigProvider::HLTConfigProvider
HLTConfigProvider()
c'tor
Definition: HLTConfigProvider.cc:33
HLTConfigData::dump
void dump(const std::string &what) const
Dumping config info to cout.
Definition: HLTConfigData.cc:304
HLTConfigProvider
Definition: HLTConfigProvider.h:28
HLTConfigProvider::init
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Definition: HLTConfigProvider.cc:36
HLTConfigData::globalTag
const std::string & globalTag() const
GlobalTag.globaltag.
Definition: HLTConfigData.cc:429
HLTConfigProvider::hltL1GTSeeds
const std::vector< std::pair< bool, std::string > > & hltL1GTSeeds(unsigned int trigger) const
HLTLevel1GTSeed modules for trigger path with index i.
Definition: HLTConfigProvider.h:130
HLTConfigData.h
HLTConfigData::datasetIndex
unsigned int datasetIndex(const std::string &dataset) const
index of dataset with name
Definition: HLTConfigData.cc:574
HLTConfigProvider::datasetContents
const std::vector< std::vector< std::string > > & datasetContents() const
names of trigger paths for all datasets
Definition: HLTConfigProvider.h:172
HLTConfigProvider::streamContents
const std::vector< std::vector< std::string > > & streamContents() const
names of datasets for all streams
Definition: HLTConfigProvider.h:154
HLTConfigProvider::moduleLabels
const std::vector< std::string > & moduleLabels(const std::string &trigger) const
Definition: HLTConfigProvider.h:78
HLTConfigData::moduleLabel
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: HLTConfigData.cc:461
HLTConfigProvider::streamIndex
unsigned int streamIndex(const std::string &stream) const
index of stream with name
Definition: HLTConfigProvider.h:152
HLTConfigProvider::changed
bool changed() const
changed?
Definition: HLTConfigProvider.h:50
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
HLTConfigProvider::datasetContent
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
Definition: HLTConfigProvider.h:174
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::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:69
edm::ProcessHistory
Definition: ProcessHistory.h:13
HLTConfigProvider::triggerNames
const std::vector< std::string > & triggerNames() const
names of trigger paths
Definition: HLTConfigProvider.h:68
HLTConfigProvider::hltL1GTSeeds
const std::vector< std::pair< bool, std::string > > & hltL1GTSeeds(const std::string &trigger) const
HLTLevel1GTSeed modules for trigger path with name.
Definition: HLTConfigProvider.h:126
HLTConfigProvider::streamContent
const std::vector< std::string > & streamContent(const std::string &stream) const
names of datasets in stream with name
Definition: HLTConfigProvider.h:160
HLTConfigData::prescaleSize
unsigned int prescaleSize() const
Definition: HLTConfigData.cc:593
HLTConfigData::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigData.cc:437
HLTConfigProvider::changed_
bool changed_
Definition: HLTConfigProvider.h:211
HLTConfigProvider::datasetNames
const std::vector< std::string > & datasetNames() const
Definition: HLTConfigProvider.h:166