test
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  setWhatProduced( this );
10 }
11 
13 {}
14 
15 boost::shared_ptr<HcalTrigTowerGeometry>
17 {
18  edm::ESHandle<HcalTopology> hcalTopology;
19  iRecord.getRecord<HcalRecNumberingRecord>().get( hcalTopology );
20 
22  boost::shared_ptr<HcalTrigTowerGeometry>( new HcalTrigTowerGeometry( &*hcalTopology));
23  HcalTopologyMode::TriggerMode tmode=hcalTopology->triggerMode();
24  bool enableRCTHF=(tmode==HcalTopologyMode::tm_LHC_RCT || tmode==HcalTopologyMode::tm_LHC_RCT_and_1x1);
25  bool enable1x1HF=(tmode==HcalTopologyMode::tm_LHC_1x1 || tmode==HcalTopologyMode::tm_LHC_RCT_and_1x1);
26  m_hcalTrigTowerGeom->setupHFTowers(enableRCTHF,enable1x1HF);
27 
28  return m_hcalTrigTowerGeom;
29 }
30 
33  descriptions.add("HcalTrigTowerGeometryESProducer", desc);
34 }
35 
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)
#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 &)