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 //
22 
24  : m_loader(nullptr),
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
29  //auto cc = setWhatProduced(this, &ZdcHardcodeGeometryEP::produce, ZdcGeometry::producerTag());
32  // disable
33  // setWhatProduced( this,
34  // &ZdcHardcodeGeometryEP::produceIdeal,
35  // edm::es::Label( "ZDC" ) );
36 }
37 
39 
40 //
41 // member functions
42 //
43 
44 // ------------ method called to produce the data ------------
45 
47  // ZdcHardcodeGeometryLoader loader ( m_topology ) ;
48  const ZdcTopology& m_topology = iRecord.get(m_zdcTopoToken);
49  m_loader = std::make_unique<ZdcHardcodeGeometryLoader>(m_topology);
50  m_loader->setAddRPD(m_zdcAddRPD);
51  return ReturnType(m_loader->load());
52 }
53 
56  desc.add<bool>("applyAlignment", false);
57  desc.add<bool>("zdcAddRPD", false);
58  descriptions.addWithDefaultLabel(desc);
59 }
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:45
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
static void fillDescriptions(edm::ConfigurationDescriptions &)
ZdcHardcodeGeometryEP(const edm::ParameterSet &)
ReturnType produce(const ZDCGeometryRecord &)
edm::ESGetToken< ZdcTopology, HcalRecNumberingRecord > m_zdcTopoToken
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const