8 "HGCalTriggerCellBestChoiceCodec");
24 std::vector<HGCDataFrame<HGCalDetId,HGCSample>> dataframes;
25 std::vector<std::pair<HGCalDetId, uint32_t > > linearized_dataframes;
29 for(
const auto& eedata : ee)
31 dataframes.emplace_back(eedata.id());
32 for(
int i=0;
i<eedata.size();
i++)
34 dataframes.back().setSample(
i, eedata.sample(
i));
40 for(
const auto& fhdata : fh)
42 dataframes.emplace_back(fhdata.id());
43 for(
int i=0;
i<fhdata.size();
i++)
45 dataframes.back().setSample(
i, fhdata.sample(
i));
void triggerCellSums(const HGCalTriggerGeometryBase &, const std::vector< std::pair< HGCalDetId, uint32_t > > &, data_type &)
uint32_t adcnBits() const
HGCalTriggerCellBestChoiceCodecImpl codecImpl_
void decode(const CODEC &codec, DATA &data) const
HGCalTriggerCellBestChoiceDataPayload data_
double tdcOnsetfC() const
void linearize(const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> &, std::vector< std::pair< HGCalDetId, uint32_t > > &)
double tdcsaturation() const
HGCalTriggerCellBestChoiceCodec(const edm::ParameterSet &conf)
void setDataPayloadImpl(const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCHEDigiCollection &bh)
data_type decode(const std::vector< bool > &, const uint32_t, const HGCalTriggerGeometryBase &) const
void addParameter(std::string const &name, T const &value)
const unsigned char getCodecType() const
double adcsaturation() const
const HGCalTriggerGeometryBase * geometry_
size_t nCellsInModule() const
size_t dataLength() const
uint32_t triggerCellTruncationBits() const
char data[epos_bytes_allocation]
std::vector< bool > encodeImpl(const data_type &) const
data_type decodeImpl(const std::vector< bool > &, const uint32_t) const
const std::string & name() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
uint32_t tdcnBits() const
std::vector< bool > encode(const data_type &, const HGCalTriggerGeometryBase &) const
void bestChoiceSelect(data_type &)