CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTopologyIdealEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalTopologyIdealEP
4 // Class: HcalTopologyIdealEP
5 //
13 //
14 // Original Author: Jeremiah Mans
15 // Created: Mon Oct 3 11:35:27 CDT 2005
16 // $Id: HcalTopologyIdealEP.cc,v 1.3 2008/04/21 22:18:19 heltsley Exp $
17 //
18 //
19 
24 //
25 // constants, enums and typedefs
26 //
27 
28 //
29 // static data member definitions
30 //
31 
32 //
33 // constructors and destructor
34 //
36  m_restrictions(conf.getUntrackedParameter<std::string>("Exclude","")),
37  m_h2mode(conf.getUntrackedParameter<bool>("H2Mode",false))
38 {
39  //the following line is needed to tell the framework what
40  // data is being produced
41  setWhatProduced(this);
42 }
43 
44 
46 {
47 }
48 
49 
50 //
51 // member functions
52 //
53 
54 // ------------ method called to produce the data ------------
57 {
58  if (m_h2mode) edm::LogInfo("HCAL") << "Using H2 Topology";
59 
60  ReturnType myTopo(new HcalTopology(m_h2mode));
61 
63  if (!m_restrictions.empty()) {
64  std::string error=parser.parse(m_restrictions);
65  if (!error.empty()) {
66  throw cms::Exception("Parse Error","Parse error on Exclude "+error);
67  }
68  }
69 
70  return myTopo ;
71 }
72 
73 
std::string parse(const std::string &line)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
boost::shared_ptr< HcalTopology > ReturnType
HcalTopologyIdealEP(const edm::ParameterSet &)
HcalTopology(bool h2_mode=false)
Definition: HcalTopology.cc:9
tuple conf
Definition: dbtoconf.py:185
ReturnType produce(const IdealGeometryRecord &)