8 "HGCalTriggerCellThresholdCodec");
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));
size_t dataLength() const
double tdcOnsetfC() const
void decode(const CODEC &codec, DATA &data) const
size_t nCellsInModule() const
HGCalTriggerCellThresholdDataPayload data_
double TCThreshold_fC() const
HGCalTriggerCellThresholdCodecImpl codecImpl_
uint32_t tdcnBits() const
void linearize(const std::vector< HGCDataFrame< HGCalDetId, HGCSample >> &, std::vector< std::pair< HGCalDetId, uint32_t > > &)
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 HGCHEDigiCollection &bh)
data_type decodeImpl(const std::vector< bool > &, const uint32_t) const
std::vector< bool > encode(const data_type &, const HGCalTriggerGeometryBase &) const
HGCalTriggerCellThresholdCodec(const edm::ParameterSet &conf)
uint32_t triggerCellTruncationBits() const
const HGCalTriggerGeometryBase * geometry_
void thresholdSelect(data_type &)
std::vector< bool > encodeImpl(const data_type &) const
char data[epos_bytes_allocation]
uint32_t adcnBits() const
const std::string & name() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
void triggerCellSums(const HGCalTriggerGeometryBase &, const std::vector< std::pair< HGCalDetId, uint32_t > > &, data_type &)
double tdcsaturation() const
double adcsaturation() const