23 produces<RPCDigiCollection>();
39 descs.
add(
"rpcDigiMerger", desc);
51 event.getByToken(twinMux_token_,TwinMux_digis);
54 event.getByToken(omtf_token_,OMTF_digis);
57 event.getByToken(cppf_token_,CPPF_digis);
64 for (
const auto & rpcdgIt : (*TwinMux_digis) ) {
66 const RPCDetId& rpcId = rpcdgIt.first;
70 rpc_digi_collection->put(range, rpcId);
74 for (
const auto && rpcdgIt : (*CPPF_digis) ) {
76 const RPCDetId& rpcId = rpcdgIt.first;
80 rpc_digi_collection->put(range, rpcId);
84 for (
const auto & rpcdgIt : (*OMTF_digis) ) {
86 const RPCDetId& rpcId = rpcdgIt.first;
92 rpc_digi_collection->put(range, rpcId);
97 event.put(
std::move(rpc_digi_collection));
T getParameter(std::string const &) const
RPCDigiMerger(edm::ParameterSet const &config)
def setup(process, global_tag, zero_tesla=False)
~RPCDigiMerger() override
#define DEFINE_FWK_MODULE(type)
void beginRun(edm::Run const &run, edm::EventSetup const &setup) override
MuonDigiCollection< RPCDetId, RPCDigi > RPCDigiCollection
static void fillDescriptions(edm::ConfigurationDescriptions &descs)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::pair< const_iterator, const_iterator > Range
void produce(edm::Event &event, edm::EventSetup const &setup) override
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.