1 #ifndef EventFilter_RPCRawToDigi_debugDigisPrintout_h
2 #define EventFilter_RPCRawToDigi_debugDigisPrintout_h
10 namespace rpcrawtodigi {
30 std::ostringstream
str;
31 str <<
"DebugDigisPrintout:";
35 std::vector<MyDigi> myDigis;
39 for (DigiRangeIterator it = digis->begin(); it != digis->end(); it++) {
42 uint32_t rawDetId = rpcDetId.
rawId();
44 for (std::vector<RPCDigi>::const_iterator
id = range.first;
id != range.second;
id++) {
48 if (myDigis.end() ==
std::find(myDigis.begin(), myDigis.end(), myDigi))
49 myDigis.push_back(myDigi);
52 std::sort(myDigis.begin(), myDigis.end());
53 str <<
" dets: " << nDet <<
" allDigis: " << nDigisAll <<
" unigueDigis: " << myDigis.size() << std::endl;
54 for (std::vector<MyDigi>::const_iterator it = myDigis.begin(); it != myDigis.end(); ++it)
55 str <<
"debugDIGI: " << it->det <<
", " << it->strip <<
", " << it->bx << std::endl;
constexpr uint32_t rawId() const
get the raw id
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const uint16_t range(const Frame &aFrame)
bool operator==(const MyDigi &o) const
std::pair< const_iterator, const_iterator > Range
bool operator<(const MyDigi &o) const
std::string operator()(const RPCDigiCollection *digis)