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; // This should be set to PrimConvVersion - AWB 13.06.17
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.