CMS 3D CMS Logo

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