16 return std::auto_ptr<SiStripRawProcessingAlgorithms>(
26 bool fedMode = conf.
getParameter<
bool>(
"PedestalSubtractionFedMode");
32 std::string
mode = conf.
getParameter<std::string>(
"CommonModeNoiseSubtractionMode");
34 if ( mode ==
"Median")
37 if ( mode ==
"Percentile") {
38 double percentile = conf.
getParameter<
double>(
"Percentile");
42 if ( mode ==
"IteratedMedian") {
43 double cutToAvoidSignal = conf.
getParameter<
double>(
"CutToAvoidSignal");
48 if ( mode ==
"FastLinear")
52 double cutToAvoidSignal = conf.
getParameter<
double>(
"CutToAvoidSignal");
53 return std::auto_ptr<SiStripCommonModeNoiseSubtractor>(
new TT6CMNSubtractor(cutToAvoidSignal) );
56 edm::LogError(
"SiStripRawProcessingFactory::create_SubtractorCMN")
57 <<
"Unregistered Algorithm: "<<mode<<
". Use one of {Median, Percentile, IteratedMedian, FastLinear, TT6}";
63 uint32_t
mode = conf.
getParameter<uint32_t>(
"SiStripFedZeroSuppressionMode");
64 bool trunc = conf.
getParameter<
bool>(
"TruncateInSuppressor");
66 case 1:
case 2:
case 3:
case 4:
69 edm::LogError(
"SiStripRawProcessingFactory::createSuppressor")
70 <<
"Unregistered mode: "<<mode<<
". Use one of {1,2,3,4}.";
77 if(!conf.
exists(
"APVRestoreMode")) {
78 return std::auto_ptr<SiStripAPVRestorer>( 0 );
T getParameter(std::string const &) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static std::auto_ptr< SiStripFedZeroSuppression > create_Suppressor(const edm::ParameterSet &)
static std::auto_ptr< SiStripCommonModeNoiseSubtractor > create_SubtractorCMN(const edm::ParameterSet &)
static std::auto_ptr< SiStripRawProcessingAlgorithms > create(const edm::ParameterSet &)
static std::auto_ptr< SiStripAPVRestorer > create_Restorer(const edm::ParameterSet &)
static std::auto_ptr< SiStripPedestalsSubtractor > create_SubtractorPed(const edm::ParameterSet &)