Go to the documentation of this file.00001 #ifndef HLTcore_HLTConfigData_h
00002 #define HLTcore_HLTConfigData_h
00003
00016 #include "DataFormats/HLTReco/interface/HLTPrescaleTable.h"
00017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00018
00019 #include<map>
00020 #include<string>
00021 #include<vector>
00022
00023
00024
00025
00026
00027 class HLTConfigData {
00028
00029 public:
00030 HLTConfigData();
00031 HLTConfigData(const edm::ParameterSet* iID);
00032
00033 private:
00035 void extract();
00036
00037 public:
00038
00040 void dump(const std::string& what) const;
00041
00043
00045 const std::string& processName() const;
00046
00048 unsigned int size() const;
00050 unsigned int size(unsigned int trigger) const;
00051 unsigned int size(const std::string& trigger) const;
00052
00054 const std::string& tableName() const;
00055
00057 const std::vector<std::string>& triggerNames() const;
00058 const std::string& triggerName(unsigned int triggerIndex) const;
00059
00061 unsigned int triggerIndex(const std::string& triggerName) const;
00062
00064 const std::vector<std::string>& moduleLabels(unsigned int trigger) const;
00065 const std::vector<std::string>& moduleLabels(const std::string& trigger) const;
00066 const std::string& moduleLabel(unsigned int trigger, unsigned int module) const;
00067 const std::string& moduleLabel(const std::string& trigger, unsigned int module) const;
00068
00070 unsigned int moduleIndex(unsigned int trigger, const std::string& module) const;
00071 unsigned int moduleIndex(const std::string& trigger, const std::string& module) const;
00072
00074 const std::string moduleType(const std::string& module) const;
00075
00077 const std::string moduleEDMType(const std::string& module) const;
00078
00080 const edm::ParameterSet& processPSet() const;
00081
00083 const edm::ParameterSet& modulePSet(const std::string& module) const;
00084
00085
00088 const std::vector<std::vector<std::pair<bool,std::string> > >& hltL1GTSeeds() const;
00090 const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(const std::string& trigger) const;
00092 const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(unsigned int trigger) const;
00093
00094
00097 const std::vector<std::string>& streamNames() const;
00099 const std::string& streamName(unsigned int stream) const;
00101 unsigned int streamIndex(const std::string& stream) const;
00103 const std::vector<std::vector<std::string> >& streamContents() const;
00105 const std::vector<std::string>& streamContent(unsigned int stream) const;
00107 const std::vector<std::string>& streamContent(const std::string& stream) const;
00108
00109
00112 const std::vector<std::string>& datasetNames() const;
00114 const std::string& datasetName(unsigned int dataset) const;
00116 unsigned int datasetIndex(const std::string& dataset) const;
00118 const std::vector<std::vector<std::string> >& datasetContents() const;
00120 const std::vector<std::string>& datasetContent(unsigned int dataset) const;
00122 const std::vector<std::string>& datasetContent(const std::string& dataset) const;
00123
00124
00127 unsigned int prescaleSize() const;
00129 unsigned int prescaleValue(unsigned int set, const std::string& trigger) const;
00131 const std::vector<std::string>& prescaleLabels() const;
00132 const std::map<std::string,std::vector<unsigned int> >& prescaleTable() const;
00133
00135 edm::ParameterSetID id() const;
00136
00137 private:
00138
00139 const edm::ParameterSet* processPSet_;
00140
00141 std::string processName_;
00142 std::string tableName_;
00143 std::vector<std::string> triggerNames_;
00144 std::vector<std::vector<std::string> > moduleLabels_;
00145
00146 std::map<std::string,unsigned int> triggerIndex_;
00147 std::vector<std::map<std::string,unsigned int> > moduleIndex_;
00148
00149 std::vector<std::vector<std::pair<bool,std::string> > > hltL1GTSeeds_;
00150
00151 std::vector<std::string> streamNames_;
00152 std::map<std::string,unsigned int> streamIndex_;
00153 std::vector<std::vector<std::string> > streamContents_;
00154
00155 std::vector<std::string> datasetNames_;
00156 std::map<std::string,unsigned int> datasetIndex_;
00157 std::vector<std::vector<std::string> > datasetContents_;
00158
00159 trigger::HLTPrescaleTable hltPrescaleTable_;
00160
00161 };
00162 #endif