CMS 3D CMS Logo

ConditionHelper.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_ConditionHelper_h
2 #define L1TMuonEndCap_ConditionHelper_h
3 
5 
6 // forwards
7 namespace edm {
8  class Event;
9  class EventSetup;
10 } // namespace edm
11 
14 
15 // class declaration
17 public:
20 
21  void checkAndUpdateConditions(const edm::Event& iEvent, const edm::EventSetup& iSetup);
22 
23  const L1TMuonEndCapParams* getParams() const { return params_.product(); }
24  const L1TMuonEndCapForest* getForest() const { return forest_.product(); }
25 
26  // EMTF firmware is defined by three numbers:
27  // 1. FW version for the core logic
28  // 2. pT assignment LUT
29  // 3. primitive conversion (PC) LUT
30  unsigned int get_fw_version() const;
31  unsigned int get_pt_lut_version() const;
32  unsigned int get_pc_lut_version() const;
33  unsigned int get_pc_lut_version_unchecked() const;
34 
35 private:
36  unsigned long long params_cache_id_;
37  unsigned long long forest_cache_id_;
38 
41 };
42 
43 #endif
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
ConditionHelper::forest_
edm::ESHandle< L1TMuonEndCapForest > forest_
Definition: ConditionHelper.h:40
ConditionHelper::get_pc_lut_version_unchecked
unsigned int get_pc_lut_version_unchecked() const
Definition: ConditionHelper.cc:88
ConditionHelper::ConditionHelper
ConditionHelper()
Definition: ConditionHelper.cc:13
ConditionHelper
Definition: ConditionHelper.h:16
edm::ESHandle< L1TMuonEndCapParams >
Event
ConditionHelper::get_fw_version
unsigned int get_fw_version() const
Definition: ConditionHelper.cc:58
ConditionHelper::params_cache_id_
unsigned long long params_cache_id_
Definition: ConditionHelper.h:36
iEvent
int iEvent
Definition: GenABIO.cc:224
ConditionHelper::getParams
const L1TMuonEndCapParams * getParams() const
Definition: ConditionHelper.h:23
ConditionHelper::get_pc_lut_version
unsigned int get_pc_lut_version() const
Definition: ConditionHelper.cc:71
ConditionHelper::params_
edm::ESHandle< L1TMuonEndCapParams > params_
Definition: ConditionHelper.h:39
edm::EventSetup
Definition: EventSetup.h:57
L1TMuonEndCapParams
Definition: L1TMuonEndCapParams.h:15
L1TMuonEndCapForest
Definition: L1TMuonEndCapForest.h:15
ConditionHelper::forest_cache_id_
unsigned long long forest_cache_id_
Definition: ConditionHelper.h:37
EventSetup
ConditionHelper::getForest
const L1TMuonEndCapForest * getForest() const
Definition: ConditionHelper.h:24
edm::Event
Definition: Event.h:73
ConditionHelper::get_pt_lut_version
unsigned int get_pt_lut_version() const
Definition: ConditionHelper.cc:63
ConditionHelper::checkAndUpdateConditions
void checkAndUpdateConditions(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: ConditionHelper.cc:17
ConditionHelper::~ConditionHelper
~ConditionHelper()
Definition: ConditionHelper.cc:15