106 : spyReorderedDigisTag_(iConfig.getParameter<
edm::
InputTag>(
"SpyReorderedDigisTag")),
107 spyVirginRawDigisTag_(iConfig.getParameter<
edm::
InputTag>(
"SpyVirginRawDigisTag")),
108 byModule_(iConfig.getParameter<
bool>(
"ByModule")),
110 consumesCollector())),
124 produces<std::map<uint32_t, std::vector<uint32_t> > >(
"Medians");
125 produces<edm::DetSetVector<SiStripRawDigi> >(
"PedestalsOrdered");
126 produces<edm::DetSetVector<SiStripProcessedRawDigi> >(
"NoisesOrdered");
127 produces<edm::DetSetVector<SiStripRawDigi> >(
"PedSubtrDigisOrdered");
128 produces<edm::DetSetVector<SiStripRawDigi> >(
"CMSubtrDigisOrdered");
130 produces<edm::DetSetVector<SiStripRawDigi> >(
"ModulePedestals");
131 produces<edm::DetSetVector<SiStripProcessedRawDigi> >(
"ModuleNoises");
132 produces<edm::DetSetVector<SiStripRawDigi> >(
"PedSubtrModuleDigis");
133 produces<std::map<uint32_t, std::vector<uint32_t> > >(
"ModuleMedians");
134 produces<edm::DetSetVector<SiStripRawDigi> >(
"CMSubtrModuleDigis");
135 produces<edm::DetSetVector<SiStripDigi> >(
"ZSModuleDigis");
172 unsigned int lNDigis = lInputDigis->
size();
176 std::vector<edm::DetSetVector<SiStripRawDigi>::detset> pedsData;
177 pedsData.reserve(lNDigis);
178 std::vector<edm::DetSetVector<SiStripProcessedRawDigi>::detset> noiseData;
179 noiseData.reserve(lNDigis);
180 std::vector<edm::DetSetVector<SiStripRawDigi>::detset> pedSubtrData;
181 pedSubtrData.reserve(lNDigis);
182 std::vector<edm::DetSetVector<SiStripRawDigi>::detset> cmSubtrData;
183 cmSubtrData.reserve(lNDigis);
185 std::vector<edm::DetSet<SiStripDigi> > zsData;
188 std::map<uint32_t, std::vector<uint32_t> > medsData;
192 for (; inputChannel != lInputDigis->
end(); ++inputChannel) {
193 uint32_t lDetId = inputChannel->detId();
200 unsigned int lNStrips = inputChannel->
size();
203 std::vector<SiStripRawDigi>& pedsDetSetData = pedsData.back().data;
204 pedsDetSetData.reserve(lNStrips);
205 std::vector<SiStripProcessedRawDigi>& noiseDetSetData = noiseData.back().data;
206 noiseDetSetData.reserve(lNStrips);
207 std::vector<SiStripRawDigi>& pedSubtrDetSetData = pedSubtrData.back().data;
208 pedSubtrDetSetData.reserve(lNStrips);
209 std::vector<SiStripRawDigi>& cmSubtrDetSetData = cmSubtrData.back().data;
210 cmSubtrDetSetData.reserve(lNStrips);
218 std::vector<uint32_t> medsDetSetData;
219 medsDetSetData.reserve(lNPairs * 2);
224 uint16_t lFedChannel = 0;
228 lDetId = lConnection.
detId();
244 inputChannel, pedsDetSetData, noiseDetSetData, pedSubtrDetSetData, medsDetSetData,
true);
249 medsData[inputChannel->detId()] = medsDetSetData;
253 if (!zsDetSetData.
empty())
254 zsData.push_back(zsDetSetData);
259 std::unique_ptr<edm::DetSetVector<SiStripProcessedRawDigi> > lNoises(
262 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > lOutputPedSubtr(
265 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > lOutputCMSubtr(
268 std::unique_ptr<std::map<uint32_t, std::vector<uint32_t> > > lMedians(
269 new std::map<uint32_t, std::vector<uint32_t> >(medsData));