19 if (!p.
exists(
"ComponentType"))
20 edm::LogWarning(
"StripCPEESProducer")<<
" the CPE producer should contain a ComponentType, probably identical to ComponentName in the first step of migration. Falling back to:"<<
type;
28 if(enumMap.find(type)==enumMap.end())
49 std::unique_ptr<StripClusterParameterEstimator> cpe;
54 cpe = std::make_unique<StripCPE>(
parametersPSet, *magfield, *pDD, *lorentzAngle, *backPlaneCorrection, *confObj, *
latency );
58 cpe = std::make_unique<StripCPEfromTrackAngle>(
parametersPSet, *magfield, *pDD, *lorentzAngle, *backPlaneCorrection, *confObj, *
latency );
62 cpe = std::make_unique<StripCPEgeometric>(
parametersPSet, *magfield, *pDD, *lorentzAngle, *backPlaneCorrection, *confObj, *
latency );
66 cpe = std::make_unique<StripFakeCPE>();
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ParameterSet parametersPSet
std::unique_ptr< StripClusterParameterEstimator > produce(const TkStripCPERecord &)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
const DepRecordT getRecord() const
std::map< std::string, CPE_t > enumMap
StripCPEESProducer(const edm::ParameterSet &)