Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "PixelToLNKAssociateFromAsciiESProducer.h"

#include <string>

using namespace edm;

PixelToLNKAssociateFromAsciiESProducer::PixelToLNKAssociateFromAsciiESProducer(const edm::ParameterSet& p)
    : theConfig(p) {
  std::string myname = "PixelToLNKAssociateFromAscii";
  setWhatProduced(this, myname);
}

PixelToLNKAssociateFromAsciiESProducer::~PixelToLNKAssociateFromAsciiESProducer() {}

std::unique_ptr<PixelToFEDAssociate> PixelToLNKAssociateFromAsciiESProducer::produce(
    const TrackerDigiGeometryRecord& r) {
  return std::make_unique<PixelToLNKAssociateFromAscii>(theConfig.getParameter<std::string>("fileName"));
}