CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PrescaleService.h
Go to the documentation of this file.
1 #ifndef FWCore_PrescaleService_PrescaleService_h
2 #define FWCore_PrescaleService_PrescaleService_h
3 
6 
7 #include <string>
8 #include <vector>
9 #include <map>
10 
11 
12 namespace edm {
13  class ActivityRegistry;
15 
16  namespace service {
17 
19  {
20  public:
21 
22  //
23  // construction/destruction
24  //
25 
28 
29  //
30  // member functions
31  //
32 
33  unsigned int getPrescale(std::string const& prescaledPath) const;
34  unsigned int getPrescale(unsigned int lvl1Index,
35  std::string const& prescaledPath) const;
36 
37  typedef std::vector<std::string> VString_t;
38  typedef std::map<std::string, std::vector<unsigned int> > PrescaleTable_t;
39  unsigned int getLvl1IndexDefault() const {return lvl1Default_;}
40  const VString_t& getLvl1Labels() const {return lvl1Labels_;}
42 
43  static unsigned int findDefaultIndex(std::string const & label, std::vector<std::string> const & labels);
44  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
45 
46  private:
47  //
48  // private member functions
49  //
50  void postBeginJob();
51 
52  //
53  // member data
54  //
55  const bool forceDefault_;
57  const unsigned int lvl1Default_;
58  const std::vector<ParameterSet> vpsetPrescales_;
60  };
61  }
62 }
63 
64 #endif
const unsigned int lvl1Default_
unsigned int getLvl1IndexDefault() const
const PrescaleTable_t & getPrescaleTable() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::map< std::string, std::vector< unsigned int > > PrescaleTable_t
PrescaleService(ParameterSet const &, ActivityRegistry &)
const VString_t & getLvl1Labels() const
unsigned int getPrescale(std::string const &prescaledPath) const
const std::vector< ParameterSet > vpsetPrescales_
std::vector< std::string > VString_t
static unsigned int findDefaultIndex(std::string const &label, std::vector< std::string > const &labels)