19 return std::unique_ptr<SiStripRawProcessingAlgorithms>(
31 return std::unique_ptr<SiStripPedestalsSubtractor>(
42 if (
mode ==
"Percentile") {
43 return std::unique_ptr<SiStripCommonModeNoiseSubtractor>(
47 if (
mode ==
"IteratedMedian") {
52 if (
mode ==
"FastLinear")
56 return std::unique_ptr<SiStripCommonModeNoiseSubtractor>(
60 edm::LogError(
"SiStripRawProcessingFactory::create_SubtractorCMN")
61 <<
"Unregistered Algorithm: " <<
mode <<
". Use one of {Median, Percentile, IteratedMedian, FastLinear, TT6}";
67 const uint32_t
mode = conf.
getParameter<uint32_t>(
"SiStripFedZeroSuppressionMode");
69 const bool trunc10bits = conf.
getParameter<
bool>(
"Use10bitsTruncation");
75 return std::make_unique<SiStripFedZeroSuppression>(
mode, &iC,
trunc, trunc10bits);
77 edm::LogError(
"SiStripRawProcessingFactory::createSuppressor")
78 <<
"Unregistered mode: " <<
mode <<
". Use one of {1,2,3,4}.";
79 return std::make_unique<SiStripFedZeroSuppression>(4, &iC,
true, trunc10bits);
85 if (!conf.
exists(
"APVRestoreMode")) {
86 return std::unique_ptr<SiStripAPVRestorer>(
nullptr);
97 algorithms.add(
"SiStripFedZeroSuppressionMode", 4
U);
98 algorithms.add(
"PedestalSubtractionFedMode",
true);
T getParameter(std::string const &) const
static void fillDescriptions(edm::ParameterSetDescription &desc)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static std::unique_ptr< SiStripFedZeroSuppression > create_Suppressor(const edm::ParameterSet &, edm::ConsumesCollector)
static void fillDescriptions(edm::ParameterSetDescription &algorithms)
Log< level::Error, false > LogError
static std::unique_ptr< SiStripAPVRestorer > create_Restorer(const edm::ParameterSet &, edm::ConsumesCollector)
static std::unique_ptr< SiStripCommonModeNoiseSubtractor > create_SubtractorCMN(const edm::ParameterSet &, edm::ConsumesCollector)
static std::unique_ptr< SiStripPedestalsSubtractor > create_SubtractorPed(const edm::ParameterSet &, edm::ConsumesCollector)
static std::unique_ptr< SiStripRawProcessingAlgorithms > create(const edm::ParameterSet &, edm::ConsumesCollector)