Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef EventFilter_L1TRawToDigi_Omtf_RpcPacker_H
0002 #define EventFilter_L1TRawToDigi_Omtf_RpcPacker_H
0003 
0004 #include <string>
0005 #include <memory>
0006 #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
0007 #include "DataFormats/L1TMuon/interface/OMTF/OmtfDataWord64.h"
0008 #include "EventFilter/L1TRawToDigi/interface/OmtfLinkMappingRpc.h"
0009 #include "CondFormats/RPCObjects/interface/RPCReadOutMapping.h"
0010 #include "CondFormats/RPCObjects/interface/RPCEMap.h"
0011 
0012 namespace edm {
0013   class EventSetup;
0014 }
0015 
0016 namespace omtf {
0017 
0018   class RpcPacker {
0019   public:
0020     RpcPacker() {}
0021 
0022     void init(const RPCEMap& readoutMapping, const RPCAMCLinkMap& linkMap);
0023     void init(const RPCEMap& readoutMapping, const std::string& connectionFile);
0024     void pack(const RPCDigiCollection* prod, FedAmcRawsMap& raws);
0025 
0026   private:
0027     void initCabling(const RPCEMap& readoutMapping);
0028 
0029     MapLBIndex2EleIndex thePact2Omtf;
0030     std::unique_ptr<const RPCReadOutMapping> thePactCabling;
0031   };
0032 }  // namespace omtf
0033 #endif