Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef EventFilter_L1TRawToDigi_Packer_h
0002 #define EventFilter_L1TRawToDigi_Packer_h
0003 
0004 #include "EventFilter/L1TRawToDigi/interface/Block.h"
0005 #include "EventFilter/L1TRawToDigi/interface/PackerTokens.h"
0006 
0007 namespace edm {
0008   class Event;
0009 }
0010 
0011 namespace l1t {
0012   class L1TDigiToRaw;
0013 
0014   class Packer {
0015   public:
0016     virtual Blocks pack(const edm::Event&, const PackerTokens*) = 0;
0017     void setBoard(unsigned board) { board_ = board; };
0018     unsigned board() { return board_; };
0019     virtual ~Packer() = default;
0020 
0021   private:
0022     unsigned board_{0};
0023   };
0024 
0025   typedef std::vector<std::shared_ptr<Packer>> Packers;
0026 }  // namespace l1t
0027 
0028 #endif