Go to the documentation of this file.
20 inputTags_, [
this](
edm::InputTag const&
tag) {
return consumes<edm::DetSetVector<SiStripRawDigi> >(
tag); })),
24 produces<edm::DetSetVector<SiStripProcessedRawDigi> >(
"");
37 if (
"VirginRaw" ==
label)
39 else if (
"ProcessedRaw" ==
label)
62 return "Input Not Found";
68 std::vector<float> digis;
72 digis.resize(digi->strip(), 0);
73 digis.push_back(digi->adc());
83 std::vector<float> digis;
85 detset->begin(), detset->end(), back_inserter(digis), std::bind(&
SiStripRawDigi::adc, std::placeholders::_1));
95 std::vector<int16_t> int_digis(detset->size());
97 std::vector<float> digis(int_digis.begin(), int_digis.end());
104 std::vector<float>& digis,
109 for (std::vector<float>::iterator it = digis.begin(); it < digis.end(); ++it)
110 (*it) /= (
gain.getStripGain(it - digis.begin(), detGainRange));
114 copy(digis.begin(), digis.end(), back_inserter(ds.
data));
static const std::string input
std::vector< edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > > inputTokensDigi_
std::unique_ptr< SiStripCommonModeNoiseSubtractor > subtractorCMN_
std::unique_ptr< SiStripPedestalsSubtractor > subtractorPed_
void zs_process(const edm::DetSetVector< SiStripDigi > &, edm::DetSetVector< SiStripProcessedRawDigi > &, const SiStripGain &)
std::vector< edm::InputTag > inputTags_
void pr_process(const edm::DetSetVector< SiStripRawDigi > &, edm::DetSetVector< SiStripProcessedRawDigi > &, const SiStripGain &)
Log< level::Info, false > LogInfo
void common_process(const uint32_t, std::vector< float > &, edm::DetSetVector< SiStripProcessedRawDigi > &, const SiStripGain &)
void vr_process(const edm::DetSetVector< SiStripRawDigi > &, edm::DetSetVector< SiStripProcessedRawDigi > &, const SiStripGain &)
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
void produce(edm::Event &e, const edm::EventSetup &es) override
static std::unique_ptr< SiStripCommonModeNoiseSubtractor > create_SubtractorCMN(const edm::ParameterSet &, edm::ConsumesCollector)
collection_type::const_iterator const_iterator
std::vector< edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > > inputTokensRawDigi_
Log< level::Error, false > LogError
bool getData(T &iHolder) const
edm::ESGetToken< SiStripGain, SiStripGainRcd > gainToken_
std::pair< ContainerIterator, ContainerIterator > Range
static std::unique_ptr< SiStripPedestalsSubtractor > create_SubtractorPed(const edm::ParameterSet &, edm::ConsumesCollector)
SiStripProcessedRawDigiProducer(edm::ParameterSet const &)
std::string findInput(edm::Handle< T > &handle, const std::vector< edm::EDGetTokenT< T > > &tokens, const edm::Event &e)
collection_type::const_iterator const_iterator