CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RoadMapMakerESProducer Class Reference

#include <RoadMapMakerESProducer.h>

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

List of all members.

Public Types

typedef std::auto_ptr< RoadsReturnType

Public Member Functions

ReturnType produce (const RoadMapRecord &)
 RoadMapMakerESProducer (const edm::ParameterSet &)
 ~RoadMapMakerESProducer ()

Private Attributes

std::string fileName_
RoadMaker::GeometryStructure geometryStructure_
std::string ringsLabel_
Roadsroads_
RoadMaker::SeedingType seedingType_
bool writeOut_

Detailed Description

Definition at line 33 of file RoadMapMakerESProducer.h.


Member Typedef Documentation

typedef std::auto_ptr<Roads> RoadMapMakerESProducer::ReturnType

Definition at line 40 of file RoadMapMakerESProducer.h.


Constructor & Destructor Documentation

RoadMapMakerESProducer::RoadMapMakerESProducer ( const edm::ParameterSet iConfig)

Definition at line 21 of file RoadMapMakerESProducer.cc.

References fileName_, RoadMaker::FourRingSeeds, RoadMaker::FullDetector, RoadMaker::FullDetectorII, geometryStructure_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), RoadMaker::MTCC, RoadMaker::P5, ringsLabel_, roads_, seedingType_, edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, RoadMaker::TIF, RoadMaker::TIFTIB, RoadMaker::TIFTIBTOB, RoadMaker::TIFTOB, RoadMaker::TIFTOBTEC, RoadMaker::TwoRingSeeds, and writeOut_.

{

  std::string componentName = iConfig.getParameter<std::string>("ComponentName");
  setWhatProduced(this, componentName);

  ringsLabel_                = iConfig.getParameter<std::string>("RingsLabel");

  writeOut_                  = iConfig.getUntrackedParameter<bool>("WriteOutRoadMapToAsciiFile",false);
  fileName_                  = iConfig.getUntrackedParameter<std::string>("RoadMapAsciiFile","");

  std::string tmp_string         = iConfig.getParameter<std::string>("GeometryStructure");

  if ( tmp_string == "MTCC" ) {
    geometryStructure_ = RoadMaker::MTCC;
  } else if ( tmp_string == "TIF" ) {
    geometryStructure_ = RoadMaker::TIF;
  } else if ( tmp_string == "TIFTOB" ) {
    geometryStructure_ = RoadMaker::TIFTOB;
  } else if ( tmp_string == "TIFTIB" ) {
    geometryStructure_ = RoadMaker::TIFTIB;
  }else if ( tmp_string == "TIFTIBTOB" ) {
    geometryStructure_ = RoadMaker::TIFTIBTOB;
  }else if ( tmp_string == "TIFTOBTEC" ) {
    geometryStructure_ = RoadMaker::TIFTOBTEC;
  } else if ( tmp_string == "P5" ) {
    geometryStructure_ = RoadMaker::P5;
  } else if ( tmp_string == "FullDetector" ) {
    geometryStructure_ = RoadMaker::FullDetector;
  } else if ( tmp_string == "FullDetectorII" ) {
    geometryStructure_ = RoadMaker::FullDetectorII;
  } else {
    geometryStructure_ = RoadMaker::FullDetector;
  }

  tmp_string         = iConfig.getParameter<std::string>("SeedingType");

  if ( tmp_string == "TwoRingSeeds" ) {
    seedingType_ = RoadMaker::TwoRingSeeds;
  } else if ( tmp_string == "FourRingSeeds" ) {
    seedingType_ = RoadMaker::FourRingSeeds;
  } else {
    seedingType_ = RoadMaker::FourRingSeeds;
  }
  
  roads_ = 0;

}
RoadMapMakerESProducer::~RoadMapMakerESProducer ( )

Definition at line 71 of file RoadMapMakerESProducer.cc.

{
}

Member Function Documentation

RoadMapMakerESProducer::ReturnType RoadMapMakerESProducer::produce ( const RoadMapRecord iRecord)

Member Data Documentation

std::string RoadMapMakerESProducer::fileName_ [private]

Definition at line 47 of file RoadMapMakerESProducer.h.

Referenced by produce(), and RoadMapMakerESProducer().

Definition at line 49 of file RoadMapMakerESProducer.h.

Referenced by produce(), and RoadMapMakerESProducer().

std::string RoadMapMakerESProducer::ringsLabel_ [private]

Definition at line 52 of file RoadMapMakerESProducer.h.

Referenced by produce(), and RoadMapMakerESProducer().

Definition at line 54 of file RoadMapMakerESProducer.h.

Referenced by produce(), and RoadMapMakerESProducer().

Definition at line 50 of file RoadMapMakerESProducer.h.

Referenced by produce(), and RoadMapMakerESProducer().

Definition at line 46 of file RoadMapMakerESProducer.h.

Referenced by produce(), and RoadMapMakerESProducer().