File indexing completed on 2024-09-07 04:36:13
0001 #ifndef EventFilter_L1TRawToDigi_Unpacker_h
0002 #define EventFilter_L1TRawToDigi_Unpacker_h
0003
0004 #include "EventFilter/L1TRawToDigi/interface/Block.h"
0005
0006 namespace l1t {
0007 class UnpackerCollections;
0008
0009 void getBXRange(int nbx, int& first, int& last);
0010
0011 class Unpacker {
0012 public:
0013 Unpacker() : algoVersion_(0) {}
0014 virtual ~Unpacker() = default;
0015 virtual bool unpack(const Block& block, UnpackerCollections* coll) = 0;
0016
0017
0018 inline unsigned int getAlgoVersion() { return algoVersion_; };
0019 inline void setAlgoVersion(const unsigned int version) { algoVersion_ = version; };
0020
0021 private:
0022 unsigned int algoVersion_;
0023 };
0024 }
0025
0026 #endif