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