CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTrigTowerGeometryESProducer.cc
Go to the documentation of this file.
5 #include <memory>
6 
8 {
9  useFullGranularityHF_=config.getParameter<bool>("useFullGranularityHF");
10 
11  setWhatProduced( this );
12 }
13 
15 {}
16 
17 boost::shared_ptr<HcalTrigTowerGeometry>
19 {
20  edm::ESHandle<HcalTopology> hcalTopology;
21  iRecord.getRecord<IdealGeometryRecord>().get( hcalTopology );
22 
24  boost::shared_ptr<HcalTrigTowerGeometry>( new HcalTrigTowerGeometry( &*hcalTopology));
25  m_hcalTrigTowerGeom->setUpgradeConfigurationHFTowers(useFullGranularityHF_);
26 
27  return m_hcalTrigTowerGeom;
28 }
29 
32  desc.add<bool>("useFullGranularityHF", false);
33  descriptions.add("HcalTrigTowerGeometryESProducer", desc);
34 }
35 
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
HcalTrigTowerGeometryESProducer(const edm::ParameterSet &conf)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
boost::shared_ptr< HcalTrigTowerGeometry > m_hcalTrigTowerGeom
boost::shared_ptr< HcalTrigTowerGeometry > produce(const CaloGeometryRecord &)