CMS 3D CMS Logo

ZdcHardcodeGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: ZdcHardcodeGeometryEP
4 // Class: ZdcHardcodeGeometryEP
5 //
13 //
14 // Original Author: Edmundo Garcia
15 // Created: Mon Aug 6 12:33:33 CDT 2007
16 //
21 
23  : m_loader(nullptr),
24  m_topology(),
25  m_applyAlignment(ps.getParameter<bool>("applyAlignment")),
26  m_zdcAddRPD(ps.getParameter<bool>("zdcAddRPD")) {
27  //the following line is needed to tell the framework what
28  // data is being produced
30 
31  // disable
32  // setWhatProduced( this,
33  // &ZdcHardcodeGeometryEP::produceIdeal,
34  // edm::es::Label( "ZDC" ) );
35 }
36 
38 
39 //
40 // member functions
41 //
42 
43 // ------------ method called to produce the data ------------
44 
46  // ZdcHardcodeGeometryLoader loader ( m_topology ) ;
47  m_loader = std::make_unique<ZdcHardcodeGeometryLoader>(m_topology);
48  m_loader->setAddRPD(m_zdcAddRPD);
49  return ReturnType(m_loader->load());
50 }
51 
54  desc.add<bool>("applyAlignment", false);
55  desc.add<bool>("zdcAddRPD", false);
56  descriptions.addWithDefaultLabel(desc);
57 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
std::unique_ptr< ZdcHardcodeGeometryLoader > m_loader
static std::string producerTag()
Definition: ZdcGeometry.h:44
static void fillDescriptions(edm::ConfigurationDescriptions &)
ZdcHardcodeGeometryEP(const edm::ParameterSet &)
ReturnType produce(const ZDCGeometryRecord &)
std::unique_ptr< CaloSubdetectorGeometry > ReturnType