48 Registry(uint32_t aDetid, uint16_t firstStrip,
size_t indexInVector, uint16_t numberOfDigis)
74 :
runNumber_(0), cabling_(nullptr), cacheId_(0) {
76 produces<edm::DetSetVector<Phase2TrackerDigi>>(
"ProcessedRaw");
100 event.getByToken(
token_, buffers);
106 if (fed.
size() != 0) {
112 std::ostringstream
ss;
113 ss <<
" -------------------------------------------- " << endl;
114 ss <<
" buffer debug ------------------------------- " << endl;
115 ss <<
" -------------------------------------------- " << endl;
116 ss <<
" buffer size : " <<
buffer->bufferSize() << endl;
117 ss <<
" fed id : " << fedIndex << endl;
118 ss <<
" -------------------------------------------- " << endl;
119 ss <<
" tracker header debug ------------------------" << endl;
120 ss <<
" -------------------------------------------- " << endl;
121 LogTrace(
"Phase2TrackerDigiProducer") <<
ss.str();
127 ss <<
" Mode : " << hex << setw(2) << tr_header.
getDebugMode() << endl;
129 ss <<
" Readout : " << hex << setw(2) << tr_header.
getReadoutMode() << endl;
130 ss <<
" Condition Data : " << (tr_header.
getConditionData() ?
"Present" :
"Absent") <<
"\n";
131 ss <<
" Data Type : " << (tr_header.
getDataType() ?
"Real" :
"Fake") <<
"\n";
134 for (
int i = 15;
i >= 0;
i--) {
143 ss <<
" CBC stat : ";
148 LogTrace(
"Phase2TrackerDigiProducer") <<
ss.str();
151 ss <<
" -------------------------------------------- " << endl;
152 ss <<
" Payload ----------------------------------- " << endl;
153 ss <<
" -------------------------------------------- " << endl;
161 if (channel.
length() > 0) {
164 uint32_t detid =
mod.getDetid();
166 ss <<
dec <<
" id from cabling : " << detid << endl;
167 ss <<
dec <<
" reading channel : " << icbc <<
" on FE " << ife;
172 std::vector<Phase2TrackerDigi> stripsTop;
173 std::vector<Phase2TrackerDigi> stripsBottom;
185 stripsBottom.push_back(
200 LogTrace(
"Phase2TrackerDigiProducer") <<
ss.str();
220 std::vector<edm::DetSet<Phase2TrackerDigi>> sorted_and_merged;
227 std::vector<Phase2TrackerDigi>& digis = sorted_and_merged.back().data;
229 size_t len = it->length;
230 for (it2 = it + 1; (it2 !=
end) && (it2->detid == it->detid); ++it2) {
236 for (it2 = it + 0; (it2 !=
end) && (it2->detid == it->detid); ++it2) {
243 pr->swap(proc_raw_dsv);