CMS 3D CMS Logo

Packer.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1TRawToDigi_Packer_h
2 #define EventFilter_L1TRawToDigi_Packer_h
3 
6 
7 namespace edm {
8  class Event;
9 }
10 
11 namespace l1t {
12  class L1TDigiToRaw;
13 
14  class Packer {
15  public:
16  virtual Blocks pack(const edm::Event&, const PackerTokens*) = 0;
17  void setBoard(unsigned board) { board_ = board; };
18  unsigned board() { return board_; };
19  virtual ~Packer() = default;
20 
21  private:
22  unsigned board_{0};
23  };
24 
25  typedef std::vector<std::shared_ptr<Packer>> Packers;
26 } // namespace l1t
27 
28 #endif
delete x;
Definition: CaloConfig.h:22
virtual ~Packer()=default
std::vector< std::shared_ptr< Packer > > Packers
Definition: Packer.h:25
virtual Blocks pack(const edm::Event &, const PackerTokens *)=0
std::vector< Block > Blocks
Definition: Block.h:99
HLT enums.
unsigned board()
Definition: Packer.h:18
void setBoard(unsigned board)
Definition: Packer.h:17
unsigned board_
Definition: Packer.h:22