CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTConfigData.h
Go to the documentation of this file.
1 #ifndef HLTcore_HLTConfigData_h
2 #define HLTcore_HLTConfigData_h
3 
18 
19 #include<map>
20 #include<string>
21 #include<vector>
22 
23 //
24 // class declaration
25 //
26 
28 
29  public:
30  HLTConfigData();
31  HLTConfigData(const edm::ParameterSet* iID);
32 
33  private:
35  void extract();
36 
37  public:
38 
40  void dump(const std::string& what) const;
41 
43 
45  const std::string& processName() const;
46 
48  unsigned int size() const;
50  unsigned int size(unsigned int trigger) const;
51  unsigned int size(const std::string& trigger) const;
52 
54  const std::string& tableName() const;
55 
57  const std::vector<std::string>& triggerNames() const;
58  const std::string& triggerName(unsigned int triggerIndex) const;
59 
61  unsigned int triggerIndex(const std::string& triggerName) const;
62 
64  const std::vector<std::string>& moduleLabels(unsigned int trigger) const;
65  const std::vector<std::string>& moduleLabels(const std::string& trigger) const;
66  const std::string& moduleLabel(unsigned int trigger, unsigned int module) const;
67  const std::string& moduleLabel(const std::string& trigger, unsigned int module) const;
68 
70  unsigned int moduleIndex(unsigned int trigger, const std::string& module) const;
71  unsigned int moduleIndex(const std::string& trigger, const std::string& module) const;
72 
74  const std::string moduleType(const std::string& module) const;
75 
77  const std::string moduleEDMType(const std::string& module) const;
78 
80  const edm::ParameterSet& processPSet() const;
81 
83  const edm::ParameterSet& modulePSet(const std::string& module) const;
84 
85 
88  const std::vector<std::vector<std::pair<bool,std::string> > >& hltL1GTSeeds() const;
90  const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(const std::string& trigger) const;
92  const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(unsigned int trigger) const;
93 
94 
97  const std::vector<std::string>& streamNames() const;
99  const std::string& streamName(unsigned int stream) const;
101  unsigned int streamIndex(const std::string& stream) const;
103  const std::vector<std::vector<std::string> >& streamContents() const;
105  const std::vector<std::string>& streamContent(unsigned int stream) const;
107  const std::vector<std::string>& streamContent(const std::string& stream) const;
108 
109 
112  const std::vector<std::string>& datasetNames() const;
114  const std::string& datasetName(unsigned int dataset) const;
116  unsigned int datasetIndex(const std::string& dataset) const;
118  const std::vector<std::vector<std::string> >& datasetContents() const;
120  const std::vector<std::string>& datasetContent(unsigned int dataset) const;
122  const std::vector<std::string>& datasetContent(const std::string& dataset) const;
123 
124 
127  unsigned int prescaleSize() const;
129  unsigned int prescaleValue(unsigned int set, const std::string& trigger) const;
131  const std::vector<std::string>& prescaleLabels() const;
132  const std::map<std::string,std::vector<unsigned int> >& prescaleTable() const;
133 
135  edm::ParameterSetID id() const;
136 
137  private:
138 
140 
141  std::string processName_;
142  std::string tableName_;
143  std::vector<std::string> triggerNames_;
144  std::vector<std::vector<std::string> > moduleLabels_;
145 
146  std::map<std::string,unsigned int> triggerIndex_;
147  std::vector<std::map<std::string,unsigned int> > moduleIndex_;
148 
149  std::vector<std::vector<std::pair<bool,std::string> > > hltL1GTSeeds_;
150 
151  std::vector<std::string> streamNames_;
152  std::map<std::string,unsigned int> streamIndex_;
153  std::vector<std::vector<std::string> > streamContents_;
154 
155  std::vector<std::string> datasetNames_;
156  std::map<std::string,unsigned int> datasetIndex_;
157  std::vector<std::vector<std::string> > datasetContents_;
158 
160 
161 };
162 #endif
const std::string & datasetName(unsigned int dataset) const
name of dataset with index i
std::vector< std::vector< std::pair< bool, std::string > > > hltL1GTSeeds_
std::vector< std::map< std::string, unsigned int > > moduleIndex_
const std::string & streamName(unsigned int stream) const
name of stream with index i
std::map< std::string, unsigned int > datasetIndex_
The single EDProduct containing the HLT Prescale Table.
const std::vector< std::string > & triggerNames() const
names of trigger paths
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
const edm::ParameterSet & modulePSet(const std::string &module) const
ParameterSet of module.
std::vector< std::string > datasetNames_
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::vector< std::string > & datasetNames() const
Datasets.
const std::vector< std::string > & streamNames() const
Streams.
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
std::vector< std::vector< std::string > > streamContents_
std::vector< std::string > triggerNames_
std::vector< std::vector< std::string > > datasetContents_
const std::vector< std::vector< std::string > > & datasetContents() const
names of trigger paths for all datasets
std::map< std::string, unsigned int > triggerIndex_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::string tableName_
trigger::HLTPrescaleTable hltPrescaleTable_
std::vector< std::vector< std::string > > moduleLabels_
const std::string moduleType(const std::string &module) const
C++ class name of module.
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 - size-1)
void extract()
extract information into data members - called by init() methods
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
Accessors (const methods)
unsigned int streamIndex(const std::string &stream) const
index of stream with name
const std::string & tableName() const
HLT ConfDB table name.
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
const edm::ParameterSet * processPSet_
const edm::ParameterSet & processPSet() const
ParameterSet of process.
unsigned int prescaleSize() const
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::string > & prescaleLabels() const
low-level data member access
std::vector< std::string > streamNames_
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
std::map< std::string, unsigned int > streamIndex_
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
edm::ParameterSetID id() const
technical: id() function needed for use with ThreadSafeRegistry
Definition: vlib.h:209
std::string processName_
void dump(const std::string &what) const
Dumping config info to cout.