14 std::unique_ptr<SiStripRawProcessingAlgorithms>
17 return std::unique_ptr<SiStripRawProcessingAlgorithms>(
28 std::unique_ptr<SiStripPedestalsSubtractor>
35 std::unique_ptr<SiStripCommonModeNoiseSubtractor>
40 if ( mode ==
"Median")
43 if ( mode ==
"Percentile") {
44 return std::unique_ptr<SiStripCommonModeNoiseSubtractor>(
48 if ( mode ==
"IteratedMedian") {
53 if ( mode ==
"FastLinear")
57 return std::unique_ptr<SiStripCommonModeNoiseSubtractor>(
new TT6CMNSubtractor(
61 edm::LogError(
"SiStripRawProcessingFactory::create_SubtractorCMN")
62 <<
"Unregistered Algorithm: " << mode <<
". Use one of {Median, Percentile, IteratedMedian, FastLinear, TT6}";
66 std::unique_ptr<SiStripFedZeroSuppression>
69 const uint32_t
mode = conf.
getParameter<uint32_t>(
"SiStripFedZeroSuppressionMode");
71 const bool trunc10bits = conf.
getParameter<
bool>(
"Use10bitsTruncation");
73 case 1:
case 2:
case 3:
case 4:
76 edm::LogError(
"SiStripRawProcessingFactory::createSuppressor")
77 <<
"Unregistered mode: " << mode <<
". Use one of {1,2,3,4}.";
82 std::unique_ptr<SiStripAPVRestorer>
85 if ( ! conf.
exists(
"APVRestoreMode") ) {
86 return std::unique_ptr<SiStripAPVRestorer>(
nullptr);
T getParameter(std::string const &) const
static std::unique_ptr< SiStripAPVRestorer > create_Restorer(const edm::ParameterSet &)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static std::unique_ptr< SiStripPedestalsSubtractor > create_SubtractorPed(const edm::ParameterSet &)
static std::unique_ptr< SiStripFedZeroSuppression > create_Suppressor(const edm::ParameterSet &)
static std::unique_ptr< SiStripRawProcessingAlgorithms > create(const edm::ParameterSet &)
static std::unique_ptr< SiStripCommonModeNoiseSubtractor > create_SubtractorCMN(const edm::ParameterSet &)