27 for (
const auto& digiIt : *
dtPhDigis->getContainer()) {
28 DTChamberId detid(digiIt.whNum(), digiIt.stNum(), digiIt.scNum() + 1);
34 if (digiIt.bxNum() >= bxFrom && digiIt.bxNum() <= bxTo)
39 for (
auto& thetaDigi : (*(
dtThDigis->getContainer()))) {
40 if (thetaDigi.bxNum() >= bxFrom && thetaDigi.bxNum() <= bxTo) {
41 addDTetaStubs(muonStubsInLayers, thetaDigi, iProcessor, procTyp);
57 for (; chamber != chend; ++chamber) {
58 unsigned int rawid = (*chamber).first;
64 auto digi = (*chamber).second.first;
65 auto dend = (*chamber).second.second;
66 for (; digi != dend; ++digi) {
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);
116 for (
auto& cluster : clusters) {
118 addRPCstub(muonStubsInLayers, roll, cluster, iProcessor, procTyp);
143 digiToStubsConverter->loadDigis(event);
152 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
muonGeometryTokens({esConsumes< RPCGeometry, MuonGeometryRecord, edm::Transition::BeginRun >(), esConsumes< CSCGeometry, MuonGeometryRecord, edm::Transition::BeginRun >(), esConsumes< DTGeometry, MuonGeometryRecord, edm::Transition::BeginRun >()})
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)
MuonStubMakerBase(const ProcConfigurationBase *procConf)
void makeStubs(MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom, int bxTo) override
const ProcConfigurationBase * config
virtual unsigned int getRpcMaxClusterCnt() const
virtual void addDTphiDigi(MuonStubPtrs2D &muonStubsInLayers, const L1MuDTChambPhDigi &digi, const L1MuDTChambThContainer *dtThDigis, unsigned int iProcessor, l1t::tftype procTyp)=0
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDtPh
virtual std::vector< RpcCluster > getClusters(const RPCDetId &roll, std::vector< RPCDigi > &digis) const
N.B. digis are sorted inside the function.
void makeStubs(MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom, int bxTo) override
virtual bool getRpcDropAllClustersIfMoreThanMax() const
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< MuonStubPtrs1D > MuonStubPtrs2D
std::vector< std::unique_ptr< DigiToStubsConverterBase > > digiToStubsConverters
const ProcConfigurationBase * config
T const * product() 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 bool acceptDigi(const DTChamberId &dTChamberId, unsigned int iProcessor, l1t::tftype procType)
tuple config
parse the configuration file
virtual int cscLctCentralBx() const
edm::Handle< L1MuDTChambPhContainer > dtPhDigis
RpcClusterization rpcClusterization
edm::Handle< CSCCorrelatedLCTDigiCollection > cscDigis
void configure(int maxClusterSize, int maxClusterCnt, bool dropAllClustersIfMoreThanMax)
virtual unsigned int getRpcMaxClusterSize() const