Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:58

0001 #ifndef EventFilter_RPCRawToDigi_RPCAMCUnpacker_h
0002 #define EventFilter_RPCRawToDigi_RPCAMCUnpacker_h
0003 
0004 #include <map>
0005 #include <vector>
0006 
0007 #include "CondFormats/RPCObjects/interface/RPCAMCLink.h"
0008 #include "EventFilter/RPCRawToDigi/interface/RPCAMC13Record.h"
0009 #include "FWCore/Framework/interface/ProducesCollector.h"
0010 #include "FWCore/Framework/interface/ConsumesCollector.h"
0011 
0012 namespace edm {
0013   class Event;
0014   class EventSetup;
0015   class ParameterSet;
0016   class ParameterSetDescription;
0017   class Run;
0018 }  // namespace edm
0019 
0020 class RPCAMCUnpacker {
0021 public:
0022   RPCAMCUnpacker(edm::ParameterSet const&, edm::ConsumesCollector, edm::ProducesCollector);
0023   virtual ~RPCAMCUnpacker();
0024 
0025   static void fillDescription(edm::ParameterSetDescription& desc);
0026 
0027   virtual void beginRun(edm::Run const& run, edm::EventSetup const& setup);
0028   virtual void produce(edm::Event& event,
0029                        edm::EventSetup const& setup,
0030                        std::map<RPCAMCLink, rpcamc13::AMCPayload> const& amc_payload);
0031 
0032   std::vector<int> const& getFeds() const;
0033 
0034 protected:
0035   std::vector<int> feds_;
0036 };
0037 
0038 inline std::vector<int> const& RPCAMCUnpacker::getFeds() const { return feds_; }
0039 
0040 #endif  // EventFilter_RPCRawToDigi_RPCAMCUnpacker_h