00001 #include "PixelToLNKAssociateFromAsciiESProducer.h" 00002 00003 #include <string> 00004 00005 using namespace edm; 00006 00007 PixelToLNKAssociateFromAsciiESProducer:: 00008 PixelToLNKAssociateFromAsciiESProducer(const edm::ParameterSet & p) 00009 : theConfig(p) 00010 { 00011 std::string myname = "PixelToLNKAssociateFromAscii"; 00012 setWhatProduced(this,myname); 00013 } 00014 00015 PixelToLNKAssociateFromAsciiESProducer:: 00016 ~PixelToLNKAssociateFromAsciiESProducer() 00017 { } 00018 00019 boost::shared_ptr<PixelToFEDAssociate> PixelToLNKAssociateFromAsciiESProducer:: 00020 produce(const TrackerDigiGeometryRecord & r) 00021 { 00022 theAssociator = boost::shared_ptr<PixelToFEDAssociate>( 00023 new PixelToLNKAssociateFromAscii( 00024 theConfig.getParameter<std::string>("fileName"))); 00025 return theAssociator; 00026 } 00027