1 #ifndef __DataFormats_L1THGCal_HGCFETriggerDigi_h__ 2 #define __DataFormats_L1THGCal_HGCFETriggerDigi_h__ 51 template<
typename IDTYPE>
53 template<
typename IDTYPE>
59 template<
typename CODEC,
typename DATA>
63 <<
"HGC Codec and data already set with codec: " 66 codec_ = codec.getCodecType();
67 data_ = codec.encode(data);
70 template<
typename CODEC,
typename DATA>
72 if(
codec_ != codec.getCodecType() ){
74 <<
"Wrong HGC codec: " << std::hex << codec.getCodecType()
75 <<
" given to data encoded with HGC codec type: " 82 template<
typename CODEC>
83 void print(
const CODEC& codec, std::ostream& out)
const;
91 template<
typename CODEC>
93 if(
codec_ != codec.getCodecType() ){
95 <<
"Wrong HGC codec: " << codec.getCodecType()
96 <<
" given to data encoded with HGC codec type: " 100 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]