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 
30 
31 class HcalTopology;
32 
34  useOld_ = ps.getParameter<bool>("UseOldLoader");
35  //the following line is needed to tell the framework what
36  // data is being produced
37  setWhatProduced( this,
40 }
41 
44 
45  edm::LogInfo("HCAL") << "Using default HCAL topology" ;
47  iRecord.get( hcons ) ;
49  iRecord.get( topology ) ;
50  if (useOld_) {
52  return ReturnType (loader.load (*topology));
53  } else {
55  return ReturnType (loader.load (*topology, *hcons));
56  }
57 }
58 
61  const HcalRecNumberingRecord& idealRecord = iRecord.getRecord<HcalRecNumberingRecord>();
62  return produceIdeal (idealRecord);
63 }
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
HcalHardcodeGeometryEP(const edm::ParameterSet &)
CaloTopology const * topology(0)
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
static std::string producerTag()
Definition: HcalGeometry.h:67
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
CaloSubdetectorGeometry * load(const HcalTopology &fTopology)
ReturnType produceAligned(const HcalGeometryRecord &)
ReturnType produceIdeal(const HcalRecNumberingRecord &)
CaloSubdetectorGeometry * load(const HcalTopology &fTopology, const HcalDDDRecConstants &hcons)