CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
30  private:
31  public:
35  // ~HLTConfigProvider();
36 
37  public:
41  bool init(const edm::Run& iRun, const edm::EventSetup& iSetup,
42  const std::string& processName, bool& changed);
43 
45  void dump(const std::string& what) const {
46  hltConfigData_->dump(what);
47  }
48 
50 
52  bool inited() const {
53  return inited_;
54  }
56  bool changed() const {
57  return changed_;
58  }
59 
61  const std::string& processName() const {
62  return hltConfigData_->processName();
63  }
64 
66  const std::string& globalTag() const {
67  return hltConfigData_->globalTag();
68  }
69 
71  const std::string& tableName() const {
72  return hltConfigData_->tableName();
73  }
74 
76  unsigned int size() const {
77  return hltConfigData_->size();
78  }
80  unsigned int size(unsigned int trigger) const {
81  return hltConfigData_->size(trigger);
82  }
83  unsigned int size(const std::string& trigger) const {
84  return hltConfigData_->size(trigger);
85  }
86 
88  const std::vector<std::string>& triggerNames() const {
89  return hltConfigData_->triggerNames();
90  }
91  const std::string& triggerName(unsigned int triggerIndex) const {
92  return hltConfigData_->triggerName(triggerIndex);
93  }
94 
96  unsigned int triggerIndex(const std::string& triggerName) const {
97  return hltConfigData_->triggerIndex(triggerName);
98  }
99 
101  const std::vector<std::string>& moduleLabels(unsigned int trigger) const {
102  return hltConfigData_->moduleLabels(trigger);
103  }
104  const std::vector<std::string>& moduleLabels(const std::string& trigger) const {
105  return hltConfigData_->moduleLabels(trigger);
106  }
107  const std::vector<std::string>& saveTagsModules(unsigned int trigger) const {
108  return hltConfigData_->saveTagsModules(trigger);
109  }
110  const std::vector<std::string>& saveTagsModules(const std::string& trigger) const {
111  return hltConfigData_->saveTagsModules(trigger);
112  }
113  const std::string& moduleLabel(unsigned int trigger, unsigned int module) const {
114  return hltConfigData_->moduleLabel(trigger,module);
115  }
116  const std::string& moduleLabel(const std::string& trigger, unsigned int module) const {
117  return hltConfigData_->moduleLabel(trigger,module);
118  }
119 
121  unsigned int moduleIndex(unsigned int trigger, const std::string& module) const {
122  return hltConfigData_->moduleIndex(trigger,module);
123  }
124  unsigned int moduleIndex(const std::string& trigger, const std::string& module) const {
125  return hltConfigData_->moduleIndex(trigger,module);
126  }
127 
129  const std::string moduleType(const std::string& module) const {
130  return hltConfigData_->moduleType(module);
131  }
132 
135  return hltConfigData_->moduleEDMType(module);
136  }
137 
140  return hltConfigData_->processPSet();
141  }
142 
145  return hltConfigData_->modulePSet(module);
146  }
147 
149  bool saveTags(const std::string& module) const {
150  return hltConfigData_->saveTags(module);
151  }
152 
153 
155  unsigned int l1tType() const {
156  return hltConfigData_->l1tType();
157  }
158 
161  const std::vector<std::vector<std::pair<bool,std::string> > >& hltL1GTSeeds() const {
162  return hltConfigData_->hltL1GTSeeds();
163  }
165  const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(const std::string& trigger) const {
166  return hltConfigData_->hltL1GTSeeds(trigger);
167  }
169  const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(unsigned int trigger) const {
170  return hltConfigData_->hltL1GTSeeds(trigger);
171  }
172 
175  const std::vector<std::vector<std::string> >& hltL1TSeeds() const {
176  return hltConfigData_->hltL1TSeeds();
177  }
179  const std::vector<std::string>& hltL1TSeeds(const std::string& trigger) const {
180  return hltConfigData_->hltL1TSeeds(trigger);
181  }
183  const std::vector<std::string>& hltL1TSeeds(unsigned int trigger) const {
184  return hltConfigData_->hltL1TSeeds(trigger);
185  }
186 
187 
190  const std::vector<std::string>& streamNames() const {
191  return hltConfigData_->streamNames();
192  }
194  const std::string& streamName(unsigned int stream) const {
195  return hltConfigData_->streamName(stream);
196  }
198  unsigned int streamIndex(const std::string& stream) const {
199  return hltConfigData_->streamIndex(stream);
200  }
202  const std::vector<std::vector<std::string> >& streamContents() const {
203  return hltConfigData_->streamContents();
204  }
206  const std::vector<std::string>& streamContent(unsigned int stream) const {
207  return hltConfigData_->streamContent(stream);
208  }
210  const std::vector<std::string>& streamContent(const std::string& stream) const {
211  return hltConfigData_->streamContent(stream);
212  }
213 
214 
217  const std::vector<std::string>& datasetNames() const {
218  return hltConfigData_->datasetNames();
219  }
221  const std::string& datasetName(unsigned int dataset) const {
222  return hltConfigData_->datasetName(dataset);
223  }
225  unsigned int datasetIndex(const std::string& dataset) const {
226  return hltConfigData_->datasetIndex(dataset);
227  }
229  const std::vector<std::vector<std::string> >& datasetContents() const {
231  }
233  const std::vector<std::string>& datasetContent(unsigned int dataset) const {
234  return hltConfigData_->datasetContent(dataset);
235  }
237  const std::vector<std::string>& datasetContent(const std::string& dataset) const {
238  return hltConfigData_->datasetContent(dataset);
239  }
240 
241 
244  unsigned int prescaleSize() const {
245  return hltConfigData_->prescaleSize();
246  }
248  unsigned int prescaleValue(unsigned int set, const std::string& trigger) const {
249  return hltConfigData_->prescaleValue(set,trigger);
250  }
251 
253  const std::vector<std::string>& prescaleLabels() const {
254  return hltConfigData_->prescaleLabels();
255  }
256  const std::map<std::string,std::vector<unsigned int> >& prescaleTable() const {
257  return hltConfigData_->prescaleTable();
258  }
259 
261  static const std::vector<std::string> matched(const std::vector<std::string>& inputs, const std::string& pattern);
262  static const std::string removeVersion(const std::string& trigger);
263  static const std::vector<std::string> restoreVersion(const std::vector<std::string>& inputs, const std::string& trigger);
264 
265  private:
266 
267  void getDataFrom(const edm::ParameterSetID& iID);
268  void init(const edm::ProcessHistory& iHistory, const std::string& processName);
269  void init(const std::string& processName);
270  void clear();
271 
274  bool inited_;
275  bool changed_;
277 };
278 #endif
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
unsigned int moduleIndex(const std::string &trigger, const std::string &module) const
const std::string moduleType(const std::string &module) const
C++ class name of module.
static const std::vector< std::string > matched(const std::vector< std::string > &inputs, const std::string &pattern)
regexp processing
unsigned int l1tType() const
L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)
const std::vector< std::vector< std::string > > & streamContents() const
names of datasets for all streams
const std::string & datasetName(unsigned int dataset) const
name of dataset with index i
const std::string & triggerName(unsigned int triggerIndex) const
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
const std::vector< std::string > & hltL1TSeeds(unsigned int trigger) const
HLTL1TSeed modules for trigger path with index i.
const std::vector< std::string > & datasetContent(const std::string &dataset) const
names of trigger paths in dataset with name
const std::string & streamName(unsigned int stream) const
name of stream with index i
void getDataFrom(const edm::ParameterSetID &iID)
const std::vector< std::pair< bool, std::string > > & hltL1GTSeeds(const std::string &trigger) const
HLTLevel1GTSeed modules for trigger path with name.
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
const std::vector< std::string > & triggerNames() const
names of trigger paths
const std::vector< std::string > & triggerNames() const
names of trigger paths
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
const std::string & datasetName(unsigned int dataset) const
name of dataset with index i
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
unsigned int size() const
number of trigger paths in trigger table
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
const std::string & tableName() const
HLT ConfDB table name.
unsigned int size(const std::string &trigger) const
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
std::string processName_
data members
unsigned int streamIndex(const std::string &stream) const
index of stream with name
const std::vector< std::string > & datasetNames() const
Datasets.
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
bool changed() const
changed?
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
static const std::string removeVersion(const std::string &trigger)
bool inited() const
Accessors (const methods)
const HLTConfigData * hltConfigData_
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
const std::vector< std::string > & streamNames() const
Streams.
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 to size-1)
const std::vector< std::string > & streamNames() const
const edm::ParameterSet & processPSet() const
ParameterSet of process.
const std::string & moduleLabel(const std::string &trigger, unsigned int module) const
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
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 > > & datasetContents() const
names of trigger paths for all datasets
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
const std::string moduleType(const std::string &module) const
C++ class name of module.
const std::vector< std::string > & saveTagsModules(const std::string &trigger) const
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 - size-1)
HLTConfigProvider()
c&#39;tor
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 - size-1)
const std::string & processName() const
process name
const std::string & processName() const
Accessors (const methods)
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
unsigned int streamIndex(const std::string &stream) const
index of stream with name
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
const std::string & tableName() const
HLT ConfDB table name.
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
const std::vector< std::pair< bool, std::string > > & hltL1GTSeeds(unsigned int trigger) const
HLTLevel1GTSeed modules for trigger path with index i.
const edm::ParameterSet & processPSet() const
ParameterSet of process.
static const std::vector< std::string > restoreVersion(const std::vector< std::string > &inputs, const std::string &trigger)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
unsigned int size(unsigned int trigger) const
number of modules on a specific trigger path
unsigned int prescaleSize() const
const std::vector< std::string > & prescaleLabels() const
low-level data member access
const std::string moduleEDMType(const std::string &module) const
C++ base class name of module.
unsigned int datasetIndex(const std::string &dataset) const
index of dataset with name
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
const std::vector< std::vector< std::string > > & datasetContents() const
names of trigger paths for all datasets
unsigned int datasetIndex(const std::string &dataset) const
index of dataset with name
const std::vector< std::string > & prescaleLabels() const
low-level data member access
const std::string & streamName(unsigned int stream) const
name of stream with index i
const std::vector< std::string > & streamContent(const std::string &stream) const
names of datasets in stream with name
unsigned int prescaleSize() const
const std::vector< std::vector< std::string > > & streamContents() const
names of datasets for all streams
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
const std::string & triggerName(unsigned int triggerIndex) const
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
unsigned int l1tType() const
L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)
Definition: vlib.h:208
const std::vector< std::string > & hltL1TSeeds(const std::string &trigger) const
HLTL1TSeed modules for trigger path with name.
const std::vector< std::string > & moduleLabels(const std::string &trigger) const
void dump(const std::string &what) const
Dumping config info to cout.
const std::string & globalTag() const
GlobalTag.globaltag.
Definition: Run.h:43
const std::vector< std::string > & datasetNames() const
const std::string & globalTag() const
global tag