8 "HGCalTriggerCellBestChoiceCodec");
24 std::vector<HGCDataFrame<DetId,HGCSample>> dataframes;
25 std::vector<std::pair<DetId, 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));
uint32_t adcnBits() const
HGCalTriggerCellBestChoiceCodecImpl codecImpl_
void linearize(const std::vector< HGCDataFrame< DetId, HGCSample >> &, std::vector< std::pair< DetId, uint32_t > > &)
void decode(const CODEC &codec, DATA &data) const
HGCalTriggerCellBestChoiceDataPayload data_
double tdcOnsetfC() const
void triggerCellSums(const HGCalTriggerGeometryBase &, const std::vector< std::pair< DetId, uint32_t > > &, data_type &)
double tdcsaturation() const
HGCalTriggerCellBestChoiceCodec(const edm::ParameterSet &conf)
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
void setDataPayloadImpl(const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCBHDigiCollection &bh)
double adcsaturation() const
const HGCalTriggerGeometryBase * geometry_
size_t nCellsInModule() const
size_t dataLength() const
uint32_t linnBits() const
uint32_t triggerCellTruncationBits() const
char data[epos_bytes_allocation]
std::vector< double > ThicknessCorrections() const
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 &)