CMS 3D CMS Logo

RPCCPPFUnpacker.h
Go to the documentation of this file.
1 #ifndef EventFilter_RPCRawToDigi_RPCCPPFUnpacker_h
2 #define EventFilter_RPCRawToDigi_RPCCPPFUnpacker_h
3 
4 #include <map>
5 #include <set>
6 
10 
20 
21 class RPCAMCLinkCounters;
22 
24 public:
26 
27  void beginRun(edm::Run const& run, edm::EventSetup const& setup) override;
28  void produce(edm::Event& event,
29  edm::EventSetup const& setup,
30  std::map<RPCAMCLink, rpcamc13::AMCPayload> const& amc_payload) override;
31 
32 protected:
33  bool processCPPF(RPCAMCLink const& link,
35  RPCAMCLinkCounters& counters,
36  std::set<std::pair<RPCDetId, RPCDigi> >& rpc_digis,
37  l1t::CPPFDigiCollection& rpc_cppf_digis) const;
38  void processRXRecord(RPCAMCLink link,
39  unsigned int bx_counter_mod,
41  RPCAMCLinkCounters& counters,
42  std::set<std::pair<RPCDetId, RPCDigi> >& rpc_digis,
43  int bx_min,
44  int bx_max) const;
45  void processTXRecord(RPCAMCLink link,
46  unsigned int block,
47  unsigned int word,
48  rpccppf::TXRecord const& record,
49  l1t::CPPFDigiCollection& rpc_cppf_digis) const;
50  void putRPCDigis(edm::Event& event, std::set<std::pair<RPCDetId, RPCDigi> > const& digis) const;
51 
52 protected:
55 
59 };
60 
61 #endif // EventFilter_RPCRawToDigi_RPCCPPFUnpacker_h
void produce(edm::Event &event, edm::EventSetup const &setup, std::map< RPCAMCLink, rpcamc13::AMCPayload > const &amc_payload) override
edm::ESHandle< RPCLBLinkMap > es_lb_link_map_
edm::ESHandle< RPCAMCLinkMap > es_cppf_link_map_
JetCorrectorParameters::Record record
Definition: classes.h:7
bool processCPPF(RPCAMCLink const &link, rpcamc13::AMCPayload const &payload, RPCAMCLinkCounters &counters, std::set< std::pair< RPCDetId, RPCDigi > > &rpc_digis, l1t::CPPFDigiCollection &rpc_cppf_digis) const
void beginRun(edm::Run const &run, edm::EventSetup const &setup) override
void processRXRecord(RPCAMCLink link, unsigned int bx_counter_mod, rpccppf::RXRecord const &record, RPCAMCLinkCounters &counters, std::set< std::pair< RPCDetId, RPCDigi > > &rpc_digis, int bx_min, int bx_max) const
uint64_t word
edm::ESWatcher< RPCCPPFLinkMapRcd > es_cppf_link_map_watcher_
void putRPCDigis(edm::Event &event, std::set< std::pair< RPCDetId, RPCDigi > > const &digis) const
RPCCPPFUnpacker(edm::ParameterSet const &, edm::ProducesCollector)
std::vector< CPPFDigi > CPPFDigiCollection
Definition: CPPFDigi.h:83
void processTXRecord(RPCAMCLink link, unsigned int block, unsigned int word, rpccppf::TXRecord const &record, l1t::CPPFDigiCollection &rpc_cppf_digis) const
Definition: event.py:1
Definition: Run.h:45