CMS 3D CMS Logo

ConditionHelper.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_ConditionHelper_h
2 #define L1TMuonEndCap_ConditionHelper_h
3 
6 
7 // forwards
8 namespace edm {
9  class EventSetup;
10  class ConsumesCollector;
11 } // namespace edm
12 
17 
18 // class declaration
20 public:
23 
24  void checkAndUpdateConditions(const edm::EventSetup& iSetup);
25 
26  const L1TMuonEndCapParams* getParams() const { return params_.product(); }
27  const L1TMuonEndCapForest* getForest() const { return forest_.product(); }
28 
29  // EMTF firmware is defined by three numbers:
30  // 1. FW version for the core logic
31  // 2. pT assignment LUT
32  // 3. primitive conversion (PC) LUT
33  unsigned int get_fw_version() const;
34  unsigned int get_pt_lut_version() const;
35  unsigned int get_pc_lut_version() const;
36  unsigned int get_pc_lut_version_unchecked() const;
37 
38 private:
39  unsigned long long params_cache_id_;
40  unsigned long long forest_cache_id_;
41 
46 };
47 
48 #endif
edm::ESHandle< L1TMuonEndCapParams > params_
void checkAndUpdateConditions(const edm::EventSetup &iSetup)
edm::ESHandle< L1TMuonEndCapForest > forest_
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > forestToken_
unsigned int get_pc_lut_version_unchecked() const
T const * product() const
Definition: ESHandle.h:86
ConditionHelper(edm::ConsumesCollector)
edm::ESGetToken< L1TMuonEndCapParams, L1TMuonEndCapParamsRcd > paramsToken_
const L1TMuonEndCapParams * getParams() const
HLT enums.
const L1TMuonEndCapForest * getForest() const
unsigned int get_fw_version() const
unsigned long long params_cache_id_
unsigned int get_pc_lut_version() const
unsigned long long forest_cache_id_
unsigned int get_pt_lut_version() const