test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 HGCEEDigiCollection& ee,
28  const HGCHEDigiCollection& fh,
29  const HGCHEDigiCollection& bh );
30 
32  const l1t::HGCFETriggerDigi& digi);
33 
34  std::vector<bool> encodeImpl(const data_type&) const ;
35  data_type decodeImpl(const std::vector<bool>&) const;
36 
37  private:
39 };
40 
41 #endif
data_type decodeImpl(const std::vector< bool > &) const
std::vector< bool > encodeImpl(const data_type &) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
HGCalBestChoiceCodecImpl codecImpl_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
HGCalBestChoiceDataPayload data_type
void setDataPayloadImpl(const HGCalTriggerGeometryBase &geom, const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCHEDigiCollection &bh)
HGCalBestChoiceCodec(const edm::ParameterSet &conf)