95 : spyReorderedDigisTag_(iConfig.getParameter<
edm::
InputTag>(
"SpyReorderedDigisTag")),
96 spyVirginRawDigisTag_(iConfig.getParameter<
edm::
InputTag>(
"SpyVirginRawDigisTag")),
97 byModule_(iConfig.getParameter<
bool>(
"ByModule")),
106 produces<std::map<uint32_t, std::vector<uint32_t> > >(
"Medians");
107 produces<edm::DetSetVector<SiStripRawDigi> >(
"PedestalsOrdered");
108 produces<edm::DetSetVector<SiStripProcessedRawDigi> >(
"NoisesOrdered");
109 produces<edm::DetSetVector<SiStripRawDigi> >(
"PedSubtrDigisOrdered");
110 produces<edm::DetSetVector<SiStripRawDigi> >(
"CMSubtrDigisOrdered");
112 produces<edm::DetSetVector<SiStripRawDigi> >(
"ModulePedestals");
113 produces<edm::DetSetVector<SiStripProcessedRawDigi> >(
"ModuleNoises");
114 produces<edm::DetSetVector<SiStripRawDigi> >(
"PedSubtrModuleDigis");
115 produces<std::map<uint32_t, std::vector<uint32_t> > >(
"ModuleMedians");
116 produces<edm::DetSetVector<SiStripRawDigi> >(
"CMSubtrModuleDigis");
117 produces<edm::DetSetVector<SiStripDigi> >(
"ZSModuleDigis");
149 unsigned int lNDigis = lInputDigis->
size();
153 std::vector<edm::DetSetVector<SiStripRawDigi>::detset> pedsData;
154 pedsData.reserve(lNDigis);
155 std::vector<edm::DetSetVector<SiStripProcessedRawDigi>::detset> noiseData;
156 noiseData.reserve(lNDigis);
157 std::vector<edm::DetSetVector<SiStripRawDigi>::detset> pedSubtrData;
158 pedSubtrData.reserve(lNDigis);
159 std::vector<edm::DetSetVector<SiStripRawDigi>::detset> cmSubtrData;
160 cmSubtrData.reserve(lNDigis);
162 std::vector<edm::DetSet<SiStripDigi> > zsData;
165 std::map<uint32_t, std::vector<uint32_t> > medsData;
169 for (; inputChannel != lInputDigis->
end(); ++inputChannel) {
170 uint32_t lDetId = inputChannel->detId();
177 unsigned int lNStrips = inputChannel->
size();
180 std::vector<SiStripRawDigi>& pedsDetSetData = pedsData.back().data;
181 pedsDetSetData.reserve(lNStrips);
182 std::vector<SiStripProcessedRawDigi>& noiseDetSetData = noiseData.back().data;
183 noiseDetSetData.reserve(lNStrips);
184 std::vector<SiStripRawDigi>& pedSubtrDetSetData = pedSubtrData.back().data;
185 pedSubtrDetSetData.reserve(lNStrips);
186 std::vector<SiStripRawDigi>& cmSubtrDetSetData = cmSubtrData.back().data;
187 cmSubtrDetSetData.reserve(lNStrips);
195 std::vector<uint32_t> medsDetSetData;
196 medsDetSetData.reserve(lNPairs * 2);
201 uint16_t lFedChannel = 0;
205 lDetId = lConnection.
detId();
221 inputChannel, pedsDetSetData, noiseDetSetData, pedSubtrDetSetData, medsDetSetData,
true);
226 medsData[inputChannel->detId()] = medsDetSetData;
230 if (!zsDetSetData.
empty())
231 zsData.push_back(zsDetSetData);
236 std::unique_ptr<edm::DetSetVector<SiStripProcessedRawDigi> > lNoises(
239 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > lOutputPedSubtr(
242 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > lOutputCMSubtr(
245 std::unique_ptr<std::map<uint32_t, std::vector<uint32_t> > > lMedians(
246 new std::map<uint32_t, std::vector<uint32_t> >(medsData));