CMS 3D CMS Logo

MTDParametersESModule.cc
Go to the documentation of this file.
12 
14  builder(pset)
15 {
16  edm::LogInfo("TRACKER") << "MTDParametersESModule::MTDParametersESModule";
17 
18  setWhatProduced(this);
19 }
20 
22 {
23 }
24 
25 void
27 {
30  vpdesc.add("subdetPars",std::vector<int>());
31  desc.addVPSet("vitems",vpdesc,edm::VParameterSet());
32  desc.add("vpars",std::vector<int>());
33  descriptions.add( "mtdParametersBase", desc );
34 }
35 
38 {
39  edm::LogInfo("MTDParametersESModule") << "MTDParametersESModule::produce(const PMTDParametersRcd& iRecord)" << std::endl;
41  iRecord.getRecord<IdealGeometryRecord>().get( cpv );
42 
43  PMTDParameters* ptp = new PMTDParameters();
44  builder.build( &(*cpv), *ptp );
45 
46  return ReturnType( ptp ) ;
47 }
48 
ReturnType produce(const PMTDParametersRcd &)
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:33
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static void fillDescriptions(edm::ConfigurationDescriptions &)
~MTDParametersESModule(void) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
MTDParametersFromDD builder
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool build(const DDCompactView *, PMTDParameters &)
MTDParametersESModule(const edm::ParameterSet &)
std::shared_ptr< PMTDParameters > ReturnType