CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/HLTrigger/HLTcore/interface/HLTConfigData.h

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 // class declaration
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::vector<std::string>& saveTagsModules(unsigned int trigger) const;
00067   const std::vector<std::string>& saveTagsModules(const std::string& trigger) const;
00068   const std::string& moduleLabel(unsigned int trigger, unsigned int module) const;
00069   const std::string& moduleLabel(const std::string& trigger, unsigned int module) const;
00070 
00072   unsigned int moduleIndex(unsigned int trigger, const std::string& module) const;
00073   unsigned int moduleIndex(const std::string& trigger, const std::string& module) const;
00074 
00076   const std::string moduleType(const std::string& module) const;
00077 
00079   const std::string moduleEDMType(const std::string& module) const;
00080 
00082   const edm::ParameterSet& processPSet() const;
00083 
00085   const edm::ParameterSet& modulePSet(const std::string& module) const;
00086 
00088   const bool saveTags(const std::string& module) const;
00089 
00090 
00093   const std::vector<std::vector<std::pair<bool,std::string> > >& hltL1GTSeeds() const;
00095   const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(const std::string& trigger) const;
00097   const std::vector<std::pair<bool,std::string> >& hltL1GTSeeds(unsigned int trigger) const;
00098 
00099 
00102   const std::vector<std::string>& streamNames() const;
00104   const std::string& streamName(unsigned int stream) const;
00106   unsigned int streamIndex(const std::string& stream) const;
00108   const std::vector<std::vector<std::string> >& streamContents() const;
00110   const std::vector<std::string>& streamContent(unsigned int stream) const;
00112   const std::vector<std::string>& streamContent(const std::string& stream) const;
00113 
00114 
00117   const std::vector<std::string>& datasetNames() const;
00119   const std::string& datasetName(unsigned int dataset) const;
00121   unsigned int datasetIndex(const std::string& dataset) const;
00123   const std::vector<std::vector<std::string> >& datasetContents() const;
00125   const std::vector<std::string>& datasetContent(unsigned int dataset) const;
00127   const std::vector<std::string>& datasetContent(const std::string& dataset) const;
00128 
00129 
00132   unsigned int prescaleSize() const;
00134   unsigned int prescaleValue(unsigned int set, const std::string& trigger) const;
00136   const std::vector<std::string>& prescaleLabels() const;
00137   const std::map<std::string,std::vector<unsigned int> >& prescaleTable() const;
00138 
00140   edm::ParameterSetID id() const;
00141 
00142  private:
00143 
00144   const edm::ParameterSet* processPSet_;
00145 
00146   std::string processName_;
00147   std::string tableName_;
00148   std::vector<std::string> triggerNames_;
00149   std::vector<std::vector<std::string> > moduleLabels_;
00150   std::vector<std::vector<std::string> > saveTagsModules_;
00151 
00152   std::map<std::string,unsigned int> triggerIndex_;
00153   std::vector<std::map<std::string,unsigned int> > moduleIndex_;
00154 
00155   std::vector<std::vector<std::pair<bool,std::string> > > hltL1GTSeeds_;
00156 
00157   std::vector<std::string> streamNames_;
00158   std::map<std::string,unsigned int> streamIndex_;
00159   std::vector<std::vector<std::string> > streamContents_;
00160 
00161   std::vector<std::string> datasetNames_;
00162   std::map<std::string,unsigned int> datasetIndex_;
00163   std::vector<std::vector<std::string> > datasetContents_;
00164 
00165   trigger::HLTPrescaleTable hltPrescaleTable_;
00166 
00167 };
00168 #endif