#include <HGCalTriggerCellThresholdCodecImpl.h>
Public Types | |
typedef HGCalTriggerCellThresholdDataPayload | data_type |
Public Member Functions | |
uint32_t | adcnBits () const |
uint32_t | adcnBitsBH () const |
double | adcsaturation () const |
double | adcsaturationBH () const |
size_t | dataLength () const |
data_type | decode (const std::vector< bool > &, const uint32_t, const HGCalTriggerGeometryBase &) const |
std::vector< bool > | encode (const data_type &, const HGCalTriggerGeometryBase &) const |
HGCalTriggerCellThresholdCodecImpl (const edm::ParameterSet &conf) | |
void | linearize (const std::vector< HGCDataFrame< DetId, HGCSample >> &, std::vector< std::pair< DetId, uint32_t > > &) |
double | linLSB () const |
uint32_t | linnBits () const |
size_t | nCellsInModule () const |
int | TCThreshold_ADC () const |
double | TCThreshold_fC () const |
int | TCThresholdBH_ADC () const |
double | TCThresholdBH_MIP () const |
uint32_t | tdcnBits () const |
double | tdcOnsetfC () const |
double | tdcsaturation () const |
const std::vector< double > & | ThicknessCorrections () const |
void | thresholdSelect (data_type &) |
uint32_t | triggerCellSaturationBits () const |
void | triggerCellSums (const HGCalTriggerGeometryBase &, const std::vector< std::pair< DetId, uint32_t > > &, data_type &) |
uint32_t | triggerCellTruncationBits () const |
Private Attributes | |
double | adcLSB_ |
double | adcLSBBH_ |
uint32_t | adcnBits_ |
uint32_t | adcnBitsBH_ |
double | adcsaturation_ |
double | adcsaturationBH_ |
size_t | dataLength_ |
double | linLSB_ |
uint32_t | linMax_ |
uint32_t | linnBits_ |
size_t | nCellsInModule_ |
int | TCThreshold_ADC_ |
double | TCThreshold_fC_ |
int | TCThresholdBH_ADC_ |
double | TCThresholdBH_MIP_ |
double | tdcLSB_ |
uint32_t | tdcnBits_ |
double | tdcOnsetfC_ |
double | tdcsaturation_ |
std::vector< double > | thickness_corrections_ |
uint32_t | triggerCellSaturationBits_ |
uint32_t | triggerCellTruncationBits_ |
Definition at line 27 of file HGCalTriggerCellThresholdCodecImpl.h.
Definition at line 30 of file HGCalTriggerCellThresholdCodecImpl.h.
HGCalTriggerCellThresholdCodecImpl::HGCalTriggerCellThresholdCodecImpl | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file HGCalTriggerCellThresholdCodecImpl.cc.
References adcLSB_, adcLSBBH_, adcnBits_, adcnBitsBH_, adcsaturation_, adcsaturationBH_, dataLength_, encode(), createfilelist::int, linLSB_, linMax_, linnBits_, funct::pow(), TCThreshold_ADC_, TCThreshold_fC_, TCThresholdBH_ADC_, TCThresholdBH_MIP_, tdcLSB_, tdcnBits_, tdcsaturation_, triggerCellSaturationBits_, and triggerCellTruncationBits_.
|
inline |
Definition at line 51 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 56 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 50 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 55 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 47 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
HGCalTriggerCellThresholdCodecImpl::data_type HGCalTriggerCellThresholdCodecImpl::decode | ( | const std::vector< bool > & | data, |
const uint32_t | module, | ||
const HGCalTriggerGeometryBase & | geometry | ||
) | const |
Definition at line 98 of file HGCalTriggerCellThresholdCodecImpl.cc.
References dataLength_, PV3DBase< T, PVType, FrameType >::eta(), Exception, HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellPosition(), mps_fire::i, linearize(), nCellsInModule_, p4, HGCalTriggerCellThresholdDataPayload::payload, PV3DBase< T, PVType, FrameType >::phi(), point, HGCalTriggerCellThresholdDataPayload::reset(), and mps_fire::result.
Referenced by HGCalTriggerCellThresholdCodec::decodeImpl(), and encode().
std::vector< bool > HGCalTriggerCellThresholdCodecImpl::encode | ( | const data_type & | data, |
const HGCalTriggerGeometryBase & | geometry | ||
) | const |
Definition at line 36 of file HGCalTriggerCellThresholdCodecImpl.cc.
References dataLength_, decode(), Exception, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), mps_fire::i, nCellsInModule_, HGCalTriggerCellThresholdDataPayload::payload, mps_fire::result, findQualityFiles::size, triggerCellSaturationBits_, and triggerCellTruncationBits_.
Referenced by HGCalTriggerCellThresholdCodec::encodeImpl(), and HGCalTriggerCellThresholdCodecImpl().
void HGCalTriggerCellThresholdCodecImpl::linearize | ( | const std::vector< HGCDataFrame< DetId, HGCSample >> & | dataframes, |
std::vector< std::pair< DetId, uint32_t > > & | linearized_dataframes | ||
) |
Definition at line 144 of file HGCalTriggerCellThresholdCodecImpl.cc.
References adcLSB_, CustomPhysics_cfi::amplitude, data, DetId::Forward, DetId::Hcal, linLSB_, linMax_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, tdcLSB_, tdcOnsetfC_, and triggerCellSums().
Referenced by decode(), and HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 48 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 49 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 46 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 59 of file HGCalTriggerCellThresholdCodecImpl.h.
|
inline |
Definition at line 60 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 61 of file HGCalTriggerCellThresholdCodecImpl.h.
|
inline |
Definition at line 62 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 53 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 54 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 52 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 63 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
void HGCalTriggerCellThresholdCodecImpl::thresholdSelect | ( | data_type & | data | ) |
Definition at line 223 of file HGCalTriggerCellThresholdCodecImpl.cc.
References HGCHEB, mps_fire::i, HGCalTriggerCellThresholdDataPayload::payload, TCThreshold_ADC_, TCThresholdBH_ADC_, and electronIdCutBased_cfi::threshold.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl(), and triggerCellSums().
|
inline |
Definition at line 58 of file HGCalTriggerCellThresholdCodecImpl.h.
void HGCalTriggerCellThresholdCodecImpl::triggerCellSums | ( | const HGCalTriggerGeometryBase & | geometry, |
const std::vector< std::pair< DetId, uint32_t > > & | linearized_dataframes, | ||
data_type & | data | ||
) |
Definition at line 175 of file HGCalTriggerCellThresholdCodecImpl.cc.
References HGCalTopology::dddConstants(), DetId::det(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), DetId::Forward, HGCalTriggerGeometryBase::getModuleFromTriggerCell(), HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryBase::getTriggerCellFromCell(), HGCEE, HGCHEF, HGCalTriggerCellThresholdDataPayload::payload, jets_cff::payload, DetId::subdetId(), thickness_corrections_, thresholdSelect(), relativeConstraints::value, and HGCalDDDConstants::waferTypeL().
Referenced by linearize(), and HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
inline |
Definition at line 57 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodec::setDataPayloadImpl().
|
private |
Definition at line 78 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 80 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 72 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 77 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 71 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 76 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 66 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by decode(), encode(), and HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 68 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 70 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 69 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 67 of file HGCalTriggerCellThresholdCodecImpl.h.
|
private |
Definition at line 83 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and thresholdSelect().
|
private |
Definition at line 84 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 85 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and thresholdSelect().
|
private |
Definition at line 86 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 79 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl(), and linearize().
|
private |
Definition at line 74 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 75 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by linearize().
|
private |
Definition at line 73 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 87 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by triggerCellSums().
|
private |
Definition at line 82 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by encode(), and HGCalTriggerCellThresholdCodecImpl().
|
private |
Definition at line 81 of file HGCalTriggerCellThresholdCodecImpl.h.
Referenced by encode(), and HGCalTriggerCellThresholdCodecImpl().