CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

HcalTopologyIdealEP Class Reference

#include <tmp/HcalTopologyIdealEP/interface/HcalTopologyIdealEP.h>

Inheritance diagram for HcalTopologyIdealEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef boost::shared_ptr
< HcalTopology
ReturnType

Public Member Functions

 HcalTopologyIdealEP (const edm::ParameterSet &)
ReturnType produce (const IdealGeometryRecord &)
 ~HcalTopologyIdealEP ()

Private Attributes

bool m_h2mode
std::string m_restrictions

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 21 of file HcalTopologyIdealEP.h.


Member Typedef Documentation

typedef boost::shared_ptr<HcalTopology> HcalTopologyIdealEP::ReturnType

Definition at line 26 of file HcalTopologyIdealEP.h.


Constructor & Destructor Documentation

HcalTopologyIdealEP::HcalTopologyIdealEP ( const edm::ParameterSet conf)

Definition at line 35 of file HcalTopologyIdealEP.cc.

References edm::ESProducer::setWhatProduced().

                                                                    :
  m_restrictions(conf.getUntrackedParameter<std::string>("Exclude","")),
  m_h2mode(conf.getUntrackedParameter<bool>("H2Mode",false))
{
   //the following line is needed to tell the framework what
   // data is being produced
   setWhatProduced(this);
}
HcalTopologyIdealEP::~HcalTopologyIdealEP ( )

Definition at line 45 of file HcalTopologyIdealEP.cc.

{ 
}

Member Function Documentation

HcalTopologyIdealEP::ReturnType HcalTopologyIdealEP::produce ( const IdealGeometryRecord iRecord)

Definition at line 56 of file HcalTopologyIdealEP.cc.

References error, Exception, HcalTopology::HcalTopology(), m_h2mode, m_restrictions, HcalTopologyRestrictionParser::parse(), and geometryXMLtoCSV::parser.

{
   if (m_h2mode) edm::LogInfo("HCAL") << "Using H2 Topology";

   ReturnType myTopo(new HcalTopology(m_h2mode));

   HcalTopologyRestrictionParser parser(*myTopo);
   if (!m_restrictions.empty()) {
     std::string error=parser.parse(m_restrictions);
     if (!error.empty()) {
       throw cms::Exception("Parse Error","Parse error on Exclude "+error);
     }
   }

   return myTopo ;
}

Member Data Documentation

Definition at line 32 of file HcalTopologyIdealEP.h.

Referenced by produce().

std::string HcalTopologyIdealEP::m_restrictions [private]

Definition at line 31 of file HcalTopologyIdealEP.h.

Referenced by produce().