1 #ifndef EventFilter_RPCRawToDigi_debugDigisPrintout_h 2 #define EventFilter_RPCRawToDigi_debugDigisPrintout_h 16 return (det==o.
det && strip==o.
strip && bx==o.
bx);
19 if (this->det < o.
det)
return true;
20 if (this->det > o.
det)
return false;
21 if (this->strip < o.
strip)
return true;
28 std::ostringstream
str;
29 str <<
"DebugDigisPrintout:";
30 if (!digis)
return str.str();
32 std::vector<MyDigi> myDigis;
36 for (DigiRangeIterator it=digis->begin(); it != digis->end(); it++) {
39 uint32_t rawDetId = rpcDetId.
rawId();
41 for (std::vector<RPCDigi>::const_iterator
id = range.first;
id != range.second;
id++) {
45 if (myDigis.end() ==
std::find(myDigis.begin(), myDigis.end(), myDigi))
46 myDigis.push_back(myDigi);
49 std::sort(myDigis.begin(),myDigis.end());
50 str <<
" dets: "<<nDet<<
" allDigis: "<<nDigisAll<<
" unigueDigis: "<<myDigis.size()<<std::endl;
51 for (std::vector<MyDigi>::const_iterator it = myDigis.begin(); it != myDigis.end(); ++it)
52 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)