1 #ifndef __DataFormats_L1THGCal_HGCFETriggerDigi_h__ 2 #define __DataFormats_L1THGCal_HGCFETriggerDigi_h__ 53 template<
typename IDTYPE>
55 template<
typename IDTYPE>
61 template<
typename CODEC,
typename DATA>
65 <<
"HGC Codec and data already set with codec: " 68 codec_ = codec.getCodecType();
69 data_ = codec.encode(data);
72 template<
typename CODEC,
typename DATA>
74 if(
codec_ != codec.getCodecType() ){
76 <<
"Wrong HGC codec: " << std::hex << codec.getCodecType()
77 <<
" given to data encoded with HGC codec type: " 84 template<
typename CODEC>
85 void print(
const CODEC& codec, std::ostream& out)
const;
93 template<
typename CODEC>
95 if(
codec_ != codec.getCodecType() ){
97 <<
"Wrong HGC codec: " << codec.getCodecType()
98 <<
" given to data encoded with HGC codec type: " 102 out << std::endl <<
" decoded from: " << std::endl;
void decode(const CODEC &codec, DATA &data) const
unsigned char getWhichCodec() const
std::vector< bool > data_payload
void encode(const CODEC &codec, const DATA &data)
void setDetId(const IDTYPE &id)
unsigned char hgcal_bad_codec(0xff)
void print(std::ostream &out) const
char data[epos_bytes_allocation]