#include <DebugDigisPrintout.h>
Definition at line 10 of file DebugDigisPrintout.h.
std::string rpcrawtodigi::DebugDigisPrintout::operator() |
( |
const RPCDigiCollection * |
digis | ) |
|
|
inline |
Definition at line 26 of file DebugDigisPrintout.h.
References RPCDigi::bx(), spr::find(), DetId::rawId(), python.multivaluedict::sort(), and RPCDigi::strip().
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++) {
43 MyDigi myDigi = { rawDetId, digi.
strip(), digi.
bx() };
44 if (myDigis.end() ==
std::find(myDigis.begin(), myDigis.end(), myDigi))
45 myDigis.push_back(myDigi);
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
std::pair< const_iterator, const_iterator > Range