test
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 
7 
8 #include <string>
9 #include <vector>
10 #include <map>
11 
12 
13 namespace edm {
14  class ActivityRegistry;
16  class PathsAndConsumesOfModulesBase;
17  class ProcessContext;
18 
19  namespace service {
20 
22  {
23  public:
24 
25  //
26  // construction/destruction
27  //
28 
31 
32  //
33  // member functions
34  //
35 
36  unsigned int getPrescale(std::string const& prescaledPath) const;
37  unsigned int getPrescale(unsigned int lvl1Index,
38  std::string const& prescaledPath) const;
39 
40  typedef std::vector<std::string> VString_t;
41  typedef std::map<std::string, std::vector<unsigned int> > PrescaleTable_t;
42  unsigned int getLvl1IndexDefault() const {return lvl1Default_;}
43  const VString_t& getLvl1Labels() const {return lvl1Labels_;}
45 
46  static unsigned int findDefaultIndex(std::string const & label, std::vector<std::string> const & labels);
47  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
48 
49  private:
50  //
51  // private member functions
52  //
54  void postBeginJob();
55 
56  //
57  // member data
58  //
59  const bool forceDefault_;
61  const unsigned int lvl1Default_;
62  const std::vector<ParameterSet> vpsetPrescales_;
65  };
66  }
67 }
68 
69 #endif
70 
void preBeginJob(PathsAndConsumesOfModulesBase const &, ProcessContext const &)
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_
ParameterSetID processParameterSetID_
std::vector< std::string > VString_t
static unsigned int findDefaultIndex(std::string const &label, std::vector< std::string > const &labels)