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::product
T const * product() const
Definition: ESHandle.h:86
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
ConditionHelper::paramsToken_
edm::ESGetToken< L1TMuonEndCapParams, L1TMuonEndCapParamsRcd > paramsToken_
Definition: ConditionHelper.h:42
ConditionHelper::forest_
edm::ESHandle< L1TMuonEndCapForest > forest_
Definition: ConditionHelper.h:45
ConditionHelper::get_pc_lut_version_unchecked
unsigned int get_pc_lut_version_unchecked() const
Definition: ConditionHelper.cc:90
ConditionHelper::forestToken_
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > forestToken_
Definition: ConditionHelper.h:44
ESGetToken.h
ConditionHelper
Definition: ConditionHelper.h:19
edm::ESHandle< L1TMuonEndCapParams >
ConditionHelper::get_fw_version
unsigned int get_fw_version() const
Definition: ConditionHelper.cc:60
L1TMuonEndCapForestRcd
Definition: L1TMuonEndCapForestRcd.h:11
ConditionHelper::ConditionHelper
ConditionHelper(edm::ConsumesCollector)
Definition: ConditionHelper.cc:14
ConditionHelper::params_cache_id_
unsigned long long params_cache_id_
Definition: ConditionHelper.h:39
L1TMuonEndCapParamsRcd
Definition: L1TMuonEndCapParamsRcd.h:11
ConditionHelper::getParams
const L1TMuonEndCapParams * getParams() const
Definition: ConditionHelper.h:26
ConditionHelper::get_pc_lut_version
unsigned int get_pc_lut_version() const
Definition: ConditionHelper.cc:73
ConditionHelper::params_
edm::ESHandle< L1TMuonEndCapParams > params_
Definition: ConditionHelper.h:43
ConditionHelper::checkAndUpdateConditions
void checkAndUpdateConditions(const edm::EventSetup &iSetup)
Definition: ConditionHelper.cc:19
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< L1TMuonEndCapParams, L1TMuonEndCapParamsRcd >
L1TMuonEndCapParams
Definition: L1TMuonEndCapParams.h:15
L1TMuonEndCapForest
Definition: L1TMuonEndCapForest.h:15
ConditionHelper::forest_cache_id_
unsigned long long forest_cache_id_
Definition: ConditionHelper.h:40
EventSetup
ConditionHelper::getForest
const L1TMuonEndCapForest * getForest() const
Definition: ConditionHelper.h:27
ConditionHelper::get_pt_lut_version
unsigned int get_pt_lut_version() const
Definition: ConditionHelper.cc:65
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
ConditionHelper::~ConditionHelper
~ConditionHelper()
Definition: ConditionHelper.cc:17