28 DTChamberId detid(digiIt.whNum(), digiIt.stNum(), digiIt.scNum() + 1);
34 if (digiIt.bxNum() >= bxFrom && digiIt.bxNum() <= bxTo)
40 if (thetaDigi.bxNum() >= bxFrom && thetaDigi.bxNum() <= bxTo) {
41 addDTetaStubs(muonStubsInLayers, thetaDigi, iProcessor, procTyp);
58 unsigned int rawid = (*chamber).first;
64 auto digi = (*chamber).second.first;
65 auto dend = (*chamber).second.second;
66 for (; digi != dend; ++digi) {
68 int digiBx = digi->getBX() -
config->cscLctCentralBx();
70 if (digiBx >= bxFrom && digiBx <= bxTo)
71 addCSCstubs(muonStubsInLayers, rawid, *digi, iProcessor, procTyp);
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();
146 config->getRpcMaxClusterSize(),
config->getRpcMaxClusterCnt(),
config->getRpcDropAllClustersIfMoreThanMax());
156 digiToStubsConverter->loadDigis(
event);
165 digiToStubsConverter->makeStubs(muonStubsInLayers, iProcessor, procTyp, bxFrom, bxTo);
virtual bool acceptDigi(const CSCDetId &cscDetId, unsigned int iProcessor, l1t::tftype procType)
virtual void addCSCstubs(MuonStubPtrs2D &muonStubsInLayers, unsigned int rawid, const CSCCorrelatedLCTDigi &digi, unsigned int iProcessor, l1t::tftype procTyp)=0
virtual ~MuonStubMakerBase()
void loadDigis(const edm::Event &event) override
T const * product() const
virtual bool acceptDigi(const RPCDetId &rpcDetId, unsigned int iProcessor, l1t::tftype procType)
void buildInputForProcessor(MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom=0, int bxTo=0)
Method translating trigger digis into input matrix with global phi coordinates, fills the muonStubsIn...
edm::Handle< L1MuDTChambThContainer > dtThDigis
void loadAndFilterDigis(const edm::Event &event)
std::vector< MuonStubPtrs1D > MuonStubPtrs2D
MuonStubMakerBase(const ProcConfigurationBase *procConf)
void makeStubs(MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom, int bxTo) override
The_Container const * getContainer() const
virtual void addDTphiDigi(MuonStubPtrs2D &muonStubsInLayers, const L1MuDTChambPhDigi &digi, const L1MuDTChambThContainer *dtThDigis, unsigned int iProcessor, l1t::tftype procTyp)=0
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDtPh
void makeStubs(MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom, int bxTo) override
const RpcClusterization * rpcClusterization
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDtTh
edm::Handle< RPCDigiCollection > rpcDigis
virtual void initialize(const edm::ParameterSet &edmCfg, const edm::EventSetup &es, const MuonGeometryTokens &muonGeometryTokens)
virtual void addDTetaStubs(MuonStubPtrs2D &muonStubsInLayers, const L1MuDTChambThDigi &thetaDigi, unsigned int iProcessor, l1t::tftype procTyp)=0
std::vector< std::unique_ptr< DigiToStubsConverterBase > > digiToStubsConverters
Phi_Container const * getContainer() const
virtual void addRPCstub(MuonStubPtrs2D &muonStubsInLayers, const RPCDetId &roll, const RpcCluster &cluster, unsigned int iProcessor, l1t::tftype procTyp)=0
void makeStubs(MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom, int bxTo) override
virtual std::vector< RpcCluster > getClusters(const RPCDetId &roll, std::vector< RPCDigi > &digis) const
N.B. digis are sorted inside the function.
virtual bool acceptDigi(const DTChamberId &dTChamberId, unsigned int iProcessor, l1t::tftype procType)
edm::Handle< L1MuDTChambPhContainer > dtPhDigis
RpcClusterization rpcClusterization
edm::Handle< CSCCorrelatedLCTDigiCollection > cscDigis
void configure(int maxClusterSize, int maxClusterCnt, bool dropAllClustersIfMoreThanMax)