8 "HGCalTriggerCellThresholdCodec");
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));
51 for(
const auto& bhdata : bh)
53 dataframes.emplace_back(bhdata.id());
54 for(
int i=0;
i<bhdata.size();
i++)
56 dataframes.back().setSample(
i, bhdata.sample(
i));
void linearize(const std::vector< HGCDataFrame< DetId, HGCSample >> &, std::vector< std::pair< DetId, uint32_t > > &)
const std::vector< double > & ThicknessCorrections() const
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 adcnBitsBH() const
uint32_t tdcnBits() const
uint32_t linnBits() const
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 triggerCellSums(const HGCalTriggerGeometryBase &, const std::vector< std::pair< DetId, uint32_t > > &, data_type &)
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_
double adcsaturationBH() const
void thresholdSelect(data_type &)
std::vector< bool > encodeImpl(const data_type &) const
char data[epos_bytes_allocation]
uint32_t adcnBits() const
void setDataPayloadImpl(const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCBHDigiCollection &bh)
const std::string & name() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
double tdcsaturation() const
double adcsaturation() const
double TCThresholdBH_MIP() const