CMS 3D CMS Logo

HcalHardcodeGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalHardcodeGeometryEP
4 // Class: HcalHardcodeGeometryEP
5 //
13 //
14 // Original Author: Jeremiah Mans
15 // Created: Mon Oct 3 11:35:27 CDT 2005
16 //
17 //
18 
20 
29 
30 class HcalTopology;
31 
33  useOld_ = ps.getParameter<bool>("UseOldLoader");
34  //the following line is needed to tell the framework what
35  // data is being produced
37  if (not useOld_) {
39  }
41 }
42 
44  edm::LogInfo("HCAL") << "Using default HCAL topology";
45  const auto& topology = iRecord.get(topologyToken_);
46  if (useOld_) {
48  return ReturnType(loader.load(topology));
49  } else {
50  const auto& cons = iRecord.get(consToken_);
52  return ReturnType(loader.load(topology, cons));
53  }
54 }
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
HcalHardcodeGeometryEP(const edm::ParameterSet &)
CaloTopology const * topology(0)
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
static std::string producerTag()
Definition: HcalGeometry.h:63
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topologyToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
HcalTopology(const HcalDDDRecConstants *hcons, const bool mergePosition=false)
Definition: HcalTopology.cc:17
CaloSubdetectorGeometry * load(const HcalTopology &fTopology)
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
ReturnType produceAligned(const HcalGeometryRecord &)
CaloSubdetectorGeometry * load(const HcalTopology &fTopology, const HcalDDDRecConstants &hcons)