To find the clusters we have to copy the digis in chamber to sort them (not optimal).
83 for (
auto rollDigis : rpcDigiCollection) {
106 std::vector<RPCDigi> digisCopy;
108 for (
auto pDigi = rollDigis.second.first; pDigi != rollDigis.second.second; pDigi++) {
109 if (pDigi->bx() >= bxFrom && pDigi->bx() <= bxTo) {
110 digisCopy.push_back(*pDigi);
117 addRPCstub(muonStubsInLayers, roll, cluster, iProcessor, procTyp);
123 for (
unsigned int iLayer = 10; iLayer < muonStubsInLayers.size(); iLayer++) {
124 for (
unsigned int iInput = 0; iInput < muonStubsInLayers[iLayer].size(); iInput++) {
126 LogTrace(
"l1tOmtfEventPrint") <<
"RpcDigiToStubsConverter::makeStubs " 127 <<
" iProcessor " << iProcessor <<
" procTyp " << procTyp
128 <<
" dropping a stub iLayer " << iLayer <<
" iInput " 129 << *(muonStubsInLayers[iLayer][iInput]) << std::endl;
130 muonStubsInLayers[iLayer][iInput].reset();
virtual bool acceptDigi(const RPCDetId &rpcDetId, unsigned int iProcessor, l1t::tftype procType)
const RpcClusterization * rpcClusterization
edm::Handle< RPCDigiCollection > rpcDigis
virtual void addRPCstub(MuonStubPtrs2D &muonStubsInLayers, const RPCDetId &roll, const RpcCluster &cluster, unsigned int iProcessor, l1t::tftype procTyp)=0
virtual std::vector< RpcCluster > getClusters(const RPCDetId &roll, std::vector< RPCDigi > &digis) const
N.B. digis are sorted inside the function.