CMS 3D CMS Logo

HcalDDDGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalDDDGeometryEP
4 // Class: HcalDDDGeometryEP
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 // Created: Thu Oct 20 11:35:27 CDT 2006
16 //
17 //
18 
22 
24  m_applyAlignment(ps.getUntrackedParameter<bool>("applyAlignment", false) ) {
25 
26  //the following line is needed to tell the framework what
27  // data is being produced
28  setWhatProduced( this,
30  edm::es::Label("HCAL"));
31 }
32 
33 // ------------ method called to produce the data ------------
36 
37  edm::LogInfo("HCAL") << "Using default HCAL topology" ;
39  iRecord.get( hcons ) ;
40 
42  iRecord.get( topology ) ;
43 
44  HcalDDDGeometryLoader loader(&(*hcons));
45 
46  return ReturnType(loader.load(*topology));
47 }
48 
51 
52  const HcalRecNumberingRecord& idealRecord = iRecord.getRecord<HcalRecNumberingRecord>();
53  return produceIdeal (idealRecord);
54 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
CaloTopology const * topology(0)
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
ReturnType produceAligned(const HcalGeometryRecord &)
ReturnType load(const HcalTopology &topo, DetId::Detector, int)
HcalDDDGeometryEP(const edm::ParameterSet &)
ReturnType produceIdeal(const HcalRecNumberingRecord &)