4 using namespace HGCalTriggerFE;
8 "HGCalBestChoiceCodec");
26 std::vector<HGCDataFrame<HGCalDetId,HGCSample>> dataframes;
27 std::vector<std::pair<HGCalDetId, uint32_t > > linearized_dataframes;
31 for(
const auto& eedata : ee)
33 dataframes.emplace_back(eedata.id());
34 for(
int i=0;
i<eedata.size();
i++)
36 dataframes.back().setSample(
i, eedata.sample(
i));
42 for(
const auto& fhdata : fh)
44 dataframes.emplace_back(fhdata.id());
45 for(
int i=0;
i<fhdata.size();
i++)
47 dataframes.back().setSample(
i, fhdata.sample(
i));
95 return codecImpl_.encode(
data);
102 return codecImpl_.decode(
data);
data_type decodeImpl(const std::vector< bool > &) const
std::vector< bool > encodeImpl(const data_type &) const
double adcsaturation() const
void decode(const CODEC &codec, DATA &data) const
HGCalBestChoiceDataPayload data_
double tdcsaturation() const
void linearize(const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> &, std::vector< std::pair< HGCalDetId, uint32_t > > &)
size_t dataLength() const
HGCalBestChoiceCodecImpl codecImpl_
void triggerCellSums(const HGCalTriggerGeometryBase &, const std::vector< std::pair< HGCalDetId, uint32_t > > &, data_type &)
uint32_t adcnBits() const
void addParameter(std::string const &name, T const &value)
const unsigned char getCodecType() const
double tdcOnsetfC() const
uint32_t tdcnBits() const
void bestChoiceSelect(data_type &)
uint32_t triggerCellTruncationBits() const
char data[epos_bytes_allocation]
const std::string & name() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
void setDataPayloadImpl(const HGCalTriggerGeometryBase &geom, const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCHEDigiCollection &bh)
HGCalBestChoiceCodec(const edm::ParameterSet &conf)