8 "HGCalBestChoiceCodec");
25 std::vector<HGCDataFrame<HGCalDetId,HGCSample>> dataframes;
26 std::vector<std::pair<HGCalDetId, uint32_t > > linearized_dataframes;
30 for(
const auto& eedata : ee)
32 dataframes.emplace_back(eedata.id());
33 for(
int i=0;
i<eedata.size();
i++)
35 dataframes.back().setSample(
i, eedata.sample(
i));
41 for(
const auto& fhdata : fh)
43 dataframes.emplace_back(fhdata.id());
44 for(
int i=0;
i<fhdata.size();
i++)
46 dataframes.back().setSample(
i, fhdata.sample(
i));
data_type decode(const std::vector< bool > &) const
std::vector< bool > encodeImpl(const data_type &) const
double adcsaturation() const
std::vector< bool > encode(const data_type &) 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
void setDataPayloadImpl(const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCHEDigiCollection &bh)
data_type decodeImpl(const std::vector< bool > &, const uint32_t) 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
const HGCalTriggerGeometryBase * geometry_
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)
HGCalBestChoiceCodec(const edm::ParameterSet &conf)