20 inputTags_, [
this](
edm::InputTag const&
tag) {
return consumes<edm::DetSetVector<SiStripRawDigi> >(
tag); })),
21 gainToken_(esConsumes()),
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));