16 return std::auto_ptr<SiStripRawProcessingAlgorithms>(
38 bool fedMode = conf.
getParameter<
bool>(
"PedestalSubtractionFedMode");
46 if ( mode ==
"Median")
49 if ( mode ==
"Percentile") {
50 double percentile = conf.
getParameter<
double>(
"Percentile");
54 if ( mode ==
"IteratedMedian") {
55 double cutToAvoidSignal = conf.
getParameter<
double>(
"CutToAvoidSignal");
60 if ( mode ==
"FastLinear")
64 double cutToAvoidSignal = conf.
getParameter<
double>(
"CutToAvoidSignal");
65 return std::auto_ptr<SiStripCommonModeNoiseSubtractor>(
new TT6CMNSubtractor(cutToAvoidSignal) );
68 edm::LogError(
"SiStripRawProcessingFactory::create_SubtractorCMN")
69 <<
"Unregistered Algorithm: "<<mode<<
". Use one of {Median, Percentile, IteratedMedian, FastLinear, TT6}";
75 uint32_t
mode = conf.
getParameter<uint32_t>(
"SiStripFedZeroSuppressionMode");
78 case 1:
case 2:
case 3:
case 4:
81 edm::LogError(
"SiStripRawProcessingFactory::createSuppressor")
82 <<
"Unregistered mode: "<<mode<<
". Use one of {1,2,3,4}.";
89 if(!conf.
exists(
"APVRestoreMode")) {
90 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 bool create_useCMMeanMap(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 bool create_doAPVRestorer(const edm::ParameterSet &)
static std::auto_ptr< SiStripPedestalsSubtractor > create_SubtractorPed(const edm::ParameterSet &)