CMS 3D CMS Logo

HGCalTriggerCellBestChoiceCodec.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerCellBestChoiceCodec_h__
2 #define __L1Trigger_L1THGCal_HGCalTriggerCellBestChoiceCodec_h__
3 
6 
7 
8 inline std::ostream& operator<<(std::ostream& o, const HGCalTriggerCellBestChoiceDataPayload& data)
9 {
10  for(const auto& dat : data.payload)
11  {
12  o << "(" << std::hex << dat.detId()
13  << std::dec << " " << dat.hwPt() << ") ";
14  }
15  o << "\n";
16  return o;
17 }
18 
19 
20 class HGCalTriggerCellBestChoiceCodec : public HGCalTriggerFE::Codec<HGCalTriggerCellBestChoiceCodec,HGCalTriggerCellBestChoiceDataPayload>
21 {
22  public:
24 
26 
28  const HGCalDigiCollection& fh,
29  const HGCalDigiCollection& bh );
30 
31  void setDataPayloadImpl(const l1t::HGCFETriggerDigi& digi);
32 
33  std::vector<bool> encodeImpl(const data_type&) const ;
34  data_type decodeImpl(const std::vector<bool>&, const uint32_t) const;
35 
36  private:
38 };
39 
40 #endif
std::ostream & operator<<(std::ostream &o, const HGCalTriggerCellBestChoiceDataPayload &data)
void setDataPayloadImpl(const HGCalDigiCollection &ee, const HGCalDigiCollection &fh, const HGCalDigiCollection &bh)
HGCalTriggerCellBestChoiceCodecImpl codecImpl_
HGCalTriggerCellBestChoiceCodec(const edm::ParameterSet &conf)
HGCalTriggerCellBestChoiceDataPayload data_type
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::vector< bool > encodeImpl(const data_type &) const
data_type decodeImpl(const std::vector< bool > &, const uint32_t) const