CMS 3D CMS Logo

CaloSummaryUnpacker.h
Go to the documentation of this file.
1 #ifndef L1T_PACKER_STAGE2_CaloSummaryUnpacker_H
2 #define L1T_PACKER_STAGE2_CaloSummaryUnpacker_H
3 
5 
6 namespace l1t {
7  namespace stage2 {
8  class CaloSummaryUnpacker : public Unpacker {
9  public:
10  CaloSummaryUnpacker() = default;
11  ~CaloSummaryUnpacker() override = default;
12 
13  bool unpack(const Block& block, UnpackerCollections* coll) override;
14  float processBitsToScore(const unsigned int[]);
15 
16  static constexpr unsigned short numCICADAWords = 4; // We have 4 words/frames that contain CICADA bits
17  static constexpr unsigned int nFramesPerEvent =
18  6; //Calo Summary outputs 6 32 bit words (or frames in uGT parlance) per event.
19  static constexpr unsigned int cicadaBitsPattern =
20  0xF0000000; //first 4 bits of the first 4 words/frames are CICADA
21  };
22  } // namespace stage2
23 } // namespace l1t
24 #endif
bool unpack(const Block &block, UnpackerCollections *coll) override
float processBitsToScore(const unsigned int[])
delete x;
Definition: CaloConfig.h:22
static constexpr unsigned short numCICADAWords
static constexpr unsigned int cicadaBitsPattern
~CaloSummaryUnpacker() override=default
static constexpr unsigned int nFramesPerEvent