CMS 3D CMS Logo

HLTConfigData.h
Go to the documentation of this file.
1 #ifndef HLTcore_HLTConfigData_h
2 #define HLTcore_HLTConfigData_h
3 
16 
17 #include <map>
18 #include <string>
19 #include <vector>
20 
21 //
22 // class declaration
23 //
24 
26 public:
27  HLTConfigData();
28  HLTConfigData(const edm::ParameterSet* iID);
29 
30 private:
32  void extract();
33 
34 public:
36  void dump(const std::string& what) const;
37 
39 
41  const std::string& processName() const;
42 
44  const std::string& globalTag() const;
45 
47  const std::string& tableName() const;
48 
50  unsigned int size() const;
52  unsigned int size(unsigned int trigger) const;
53  unsigned int size(const std::string& trigger) const;
54 
56  const std::vector<std::string>& triggerNames() const;
57  const std::string& triggerName(unsigned int triggerIndex) const;
58 
60  unsigned int triggerIndex(const std::string& triggerName) const;
61 
63  const std::vector<std::string>& moduleLabels(unsigned int trigger) const;
64  const std::vector<std::string>& moduleLabels(const std::string& trigger) const;
65  const std::vector<std::string>& saveTagsModules(unsigned int trigger) const;
66  const std::vector<std::string>& saveTagsModules(const std::string& trigger) const;
67  const std::string& moduleLabel(unsigned int trigger, unsigned int module) const;
68  const std::string& moduleLabel(const std::string& trigger, unsigned int module) const;
69 
71  unsigned int moduleIndex(unsigned int trigger, const std::string& module) const;
72  unsigned int moduleIndex(const std::string& trigger, const std::string& module) const;
73 
75  const std::string moduleType(const std::string& module) const;
76 
78  const std::string moduleEDMType(const std::string& module) const;
79 
81  const edm::ParameterSet& processPSet() const;
82 
84  const edm::ParameterSet& modulePSet(const std::string& module) const;
85 
87  bool saveTags(const std::string& module) const;
88 
90  unsigned int l1tType() const;
91 
94  const std::vector<std::vector<std::pair<bool, std::string> > >& hltL1GTSeeds() const;
96  const std::vector<std::pair<bool, std::string> >& hltL1GTSeeds(const std::string& trigger) const;
98  const std::vector<std::pair<bool, std::string> >& hltL1GTSeeds(unsigned int trigger) const;
99 
102  const std::vector<std::vector<std::string> >& hltL1TSeeds() const;
104  const std::vector<std::string>& hltL1TSeeds(const std::string& trigger) const;
106  const std::vector<std::string>& hltL1TSeeds(unsigned int trigger) const;
107 
110  const std::vector<std::string>& streamNames() const;
112  const std::string& streamName(unsigned int stream) const;
114  unsigned int streamIndex(const std::string& stream) const;
116  const std::vector<std::vector<std::string> >& streamContents() const;
118  const std::vector<std::string>& streamContent(unsigned int stream) const;
120  const std::vector<std::string>& streamContent(const std::string& stream) const;
121 
124  const std::vector<std::string>& datasetNames() const;
126  const std::string& datasetName(unsigned int dataset) const;
128  unsigned int datasetIndex(const std::string& dataset) const;
130  const std::vector<std::vector<std::string> >& datasetContents() const;
132  const std::vector<std::string>& datasetContent(unsigned int dataset) const;
134  const std::vector<std::string>& datasetContent(const std::string& dataset) const;
135 
138  unsigned int prescaleSize() const;
140  unsigned int prescaleValue(unsigned int set, const std::string& trigger) const;
142  const std::vector<std::string>& prescaleLabels() const;
143  const std::map<std::string, std::vector<unsigned int> >& prescaleTable() const;
144 
146  edm::ParameterSetID id() const;
147 
148 private:
150 
154  std::vector<std::string> triggerNames_;
155  std::vector<std::vector<std::string> > moduleLabels_;
156  std::vector<std::vector<std::string> > saveTagsModules_;
157 
158  std::map<std::string, unsigned int> triggerIndex_;
159  std::vector<std::map<std::string, unsigned int> > moduleIndex_;
160 
161  unsigned int l1tType_;
162  std::vector<std::vector<std::pair<bool, std::string> > > hltL1GTSeeds_;
163  std::vector<std::vector<std::string> > hltL1TSeeds_;
164 
165  std::vector<std::string> streamNames_;
166  std::map<std::string, unsigned int> streamIndex_;
167  std::vector<std::vector<std::string> > streamContents_;
168 
169  std::vector<std::string> datasetNames_;
170  std::map<std::string, unsigned int> datasetIndex_;
171  std::vector<std::vector<std::string> > datasetContents_;
172 
174 };
175 #endif
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
trigger::HLTPrescaleTable
The single EDProduct containing the HLT Prescale Table.
Definition: HLTPrescaleTable.h:20
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
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
HLTConfigData::hltPrescaleTable_
trigger::HLTPrescaleTable hltPrescaleTable_
Definition: HLTConfigData.h:173
HLTConfigData::datasetNames_
std::vector< std::string > datasetNames_
Definition: HLTConfigData.h:169
HLTConfigData::tableName_
std::string tableName_
Definition: HLTConfigData.h:153
HLTConfigData::hltL1GTSeeds_
std::vector< std::vector< std::pair< bool, std::string > > > hltL1GTSeeds_
Definition: HLTConfigData.h:162
cms::cuda::stream
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition: HistoContainer.h:51
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_
std::string processName_
Definition: HLTConfigData.h:151
HLTConfigData::processName
const std::string & processName() const
Accessors (const methods)
Definition: HLTConfigData.cc:427
HLTConfigData::triggerIndex_
std::map< std::string, unsigned int > triggerIndex_
Definition: HLTConfigData.h:158
HLTConfigData::l1tType_
unsigned int l1tType_
Definition: HLTConfigData.h:161
HLTConfigData::globalTag_
std::string globalTag_
Definition: HLTConfigData.h:152
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
HLTConfigData::saveTagsModules_
std::vector< std::vector< std::string > > saveTagsModules_
Definition: HLTConfigData.h:156
HLTConfigData::datasetNames
const std::vector< std::string > & datasetNames() const
Datasets.
Definition: HLTConfigData.cc:570
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::streamIndex_
std::map< std::string, unsigned int > streamIndex_
Definition: HLTConfigData.h:166
HLTConfigData::triggerNames_
std::vector< std::string > triggerNames_
Definition: HLTConfigData.h:154
HLTConfigData::streamName
const std::string & streamName(unsigned int stream) const
name of stream with index i
Definition: HLTConfigData.cc:548
HLTConfigData::extract
void extract()
extract information into data members - called by init() methods
Definition: HLTConfigData.cc:79
edm::Hash< ParameterSetType >
HLTConfigData::HLTConfigData
HLTConfigData()
Definition: HLTConfigData.cc:29
HLTConfigData::streamNames_
std::vector< std::string > streamNames_
Definition: HLTConfigData.h:165
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
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::streamContents_
std::vector< std::vector< std::string > > streamContents_
Definition: HLTConfigData.h:167
HLTConfigData::streamContent
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
Definition: HLTConfigData.cc:561
HLTConfigData::processPSet_
const edm::ParameterSet * processPSet_
Definition: HLTConfigData.h:149
HLTConfigData::datasetContents_
std::vector< std::vector< std::string > > datasetContents_
Definition: HLTConfigData.h:171
HLTConfigData::datasetContents
const std::vector< std::vector< std::string > > & datasetContents() const
names of trigger paths for all datasets
Definition: HLTConfigData.cc:583
HLTConfigData::moduleIndex_
std::vector< std::map< std::string, unsigned int > > moduleIndex_
Definition: HLTConfigData.h:159
HLTConfigData::prescaleLabels
const std::vector< std::string > & prescaleLabels() const
low-level data member access
Definition: HLTConfigData.cc:598
HLTConfigData::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigData.cc:431
HLTConfigData::hltL1TSeeds
const std::vector< std::vector< std::string > > & hltL1TSeeds() const
Definition: HLTConfigData.cc:535
HLTConfigData::hltL1TSeeds_
std::vector< std::vector< std::string > > hltL1TSeeds_
Definition: HLTConfigData.h:163
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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
callgraph.module
module
Definition: callgraph.py:61
HLTConfigData::streamContents
const std::vector< std::vector< std::string > > & streamContents() const
names of datasets for all streams
Definition: HLTConfigData.cc:559
HLTConfigData::dump
void dump(const std::string &what) const
Dumping config info to cout.
Definition: HLTConfigData.cc:304
HLTConfigData::globalTag
const std::string & globalTag() const
GlobalTag.globaltag.
Definition: HLTConfigData.cc:429
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
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
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
HLTConfigData::datasetIndex_
std::map< std::string, unsigned int > datasetIndex_
Definition: HLTConfigData.h:170
ParameterSet.h
HLTConfigData::prescaleSize
unsigned int prescaleSize() const
Definition: HLTConfigData.cc:593
HLTConfigData::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigData.cc:437
HLTPrescaleTable.h
HLTConfigData::moduleLabels_
std::vector< std::vector< std::string > > moduleLabels_
Definition: HLTConfigData.h:155