1 #ifndef EventFilter_RPCRawToDigi_debugDigisPrintout_h 2 #define EventFilter_RPCRawToDigi_debugDigisPrintout_h 15 return (det==o.
det && strip==o.
strip && bx==o.
bx);
18 if (this->det < o.
det)
return true;
19 if (this->det > o.
det)
return false;
20 if (this->strip < o.
strip)
return true;
27 std::ostringstream
str;
28 str <<
"DebugDigisPrintout:";
29 if (!digis)
return str.str();
31 std::vector<MyDigi> myDigis;
35 for (DigiRangeIterator it=digis->begin(); it != digis->end(); it++) {
38 uint32_t rawDetId = rpcDetId.
rawId();
40 for (std::vector<RPCDigi>::const_iterator
id = range.first;
id != range.second;
id++) {
44 if (myDigis.end() ==
std::find(myDigis.begin(), myDigis.end(), myDigi))
45 myDigis.push_back(myDigi);
48 std::sort(myDigis.begin(),myDigis.end());
49 str <<
" dets: "<<nDet<<
" allDigis: "<<nDigisAll<<
" unigueDigis: "<<myDigis.size()<<std::endl;
50 for (std::vector<MyDigi>::const_iterator it = myDigis.begin(); it != myDigis.end(); ++it)
51 str <<
"debugDIGI: "<< it->det<<
", "<<it->strip<<
", "<<it->bx<<std::endl;
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
uint32_t rawId() const
get the raw id
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)