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 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
HcalHardcodeGeometryEP(const edm::ParameterSet &)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
static std::string producerTag()
Definition: HcalGeometry.h:65
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topologyToken_
HcalTopology(const HcalDDDRecConstants *hcons, const bool mergePosition=false)
Definition: HcalTopology.cc:17
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
Log< level::Info, false > LogInfo
ReturnType produceAligned(const HcalGeometryRecord &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const