CMS 3D CMS Logo

L1TMuonEndcapParamsOnlineProxy.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 
10 
12 private:
14 public:
15  std::shared_ptr<L1TMuonEndCapParams> produce(const L1TMuonEndcapParamsO2ORcd& record);
16 
19 };
20 
22  setWhatProduced(this);
23  PtAssignVersion = iConfig.getUntrackedParameter<unsigned int>("PtAssignVersion", 1);
24  firmwareVersion = iConfig.getUntrackedParameter<unsigned int>("firmwareVersion", 1);
25  changeDate = iConfig.getUntrackedParameter<unsigned int>("changeDate", 1);
26 }
27 
28 std::shared_ptr<L1TMuonEndCapParams> L1TMuonEndcapParamsOnlineProxy::produce(const L1TMuonEndcapParamsO2ORcd& record) {
29 /*
30  const L1TMuonEndcapParamsRcd& baseRcd = record.template getRecord< L1TMuonEndcapParamsRcd >() ;
31  edm::ESHandle< L1TMuonEndcapParams > baseSettings ;
32  baseRcd.get( baseSettings ) ;
33 
34  return boost::shared_ptr< L1TMuonEndcapParams > ( new L1TMuonEndcapParams( *(baseSettings.product()) ) );
35 */
36  std::shared_ptr< L1TMuonEndCapParams > retval = std::make_shared< L1TMuonEndCapParams>();
37 
38  retval->PtAssignVersion_ = PtAssignVersion;
39  retval->firmwareVersion_ = firmwareVersion;
40  retval->PhiMatchWindowSt1_ = changeDate;
41  return retval;
42 }
43 
44 //define this as a plug-in
T getUntrackedParameter(std::string const &, T const &) const
JetCorrectorParameters::Record record
Definition: classes.h:7
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
L1TMuonEndcapParamsOnlineProxy(const edm::ParameterSet &)
std::shared_ptr< L1TMuonEndCapParams > produce(const L1TMuonEndcapParamsO2ORcd &record)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.