1 #ifndef EventFilter_RPCRawToDigi_debugDigisPrintout_h 2 #define EventFilter_RPCRawToDigi_debugDigisPrintout_h 18 if (this->det <
o.det)
20 if (this->det >
o.det)
22 if (this->strip <
o.strip)
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;
bool operator==(const MyDigi &o) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool operator<(const MyDigi &o) const
constexpr uint32_t rawId() const
get the raw id
std::pair< const_iterator, const_iterator > Range
std::string operator()(const RPCDigiCollection *digis)