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

#include <string>

using namespace edm;

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

PixelToFEDAssociateFromAsciiESProducer::~PixelToFEDAssociateFromAsciiESProducer() {}

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