#include <HGCalConcentratorAutoEncoderImpl.h>
Public Member Functions | |
HGCalConcentratorAutoEncoderImpl (const edm::ParameterSet &conf) | |
void | select (unsigned nLinks, const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalConcentratorData > &ae_EncodedOutput) |
void | setGeometry (const HGCalTriggerGeometryBase *const geom) |
Private Attributes | |
std::array< double, nEncodedLayerNodes_ > | ae_encodedLayer_ |
bool | bitShiftNormalization_ |
int | bitsPerInput_ |
std::vector< int > | cellRemap_ |
std::vector< int > | cellRemapNoDuplicates_ |
std::vector< uint > | decoderShape_ |
std::vector< uint > | encoderShape_ |
std::unique_ptr< tensorflow::GraphDef > | graphDef_decoder_ |
std::unique_ptr< tensorflow::GraphDef > | graphDef_encoder_ |
std::string | inputTensorName_decoder_ |
std::string | inputTensorName_encoder_ |
std::vector< unsigned int > | linkToGraphMap_ |
int | maxBitsPerOutput_ |
std::vector< edm::ParameterSet > | modelFilePaths_ |
unsigned int | nInputs_ |
std::vector< int > | outputBitsPerLink_ |
std::string | outputTensorName_decoder_ |
std::string | outputTensorName_encoder_ |
bool | preserveModuleSum_ |
bool | saveEncodedValues_ |
std::vector< std::unique_ptr< tensorflow::Session > > | session_decoder_ |
std::vector< std::unique_ptr< tensorflow::Session > > | session_encoder_ |
HGCalTriggerTools | triggerTools_ |
double | zeroSuppresionThreshold_ |
Static Private Attributes | |
static constexpr int | ae_outputCellU_ [nTriggerCells_] |
static constexpr int | ae_outputCellV_ [nTriggerCells_] |
static constexpr int | cellUVremap_ [cellUVSize_][cellUVSize_] |
static constexpr int | cellUVSize_ = 8 |
static constexpr int | decoderTensorDims_ = 2 |
static constexpr int | encoderTensorDims_ = 4 |
static constexpr int | maxAEInputSize_ = 192 |
static constexpr unsigned int | maxNumberOfLinks_ = 13 |
static constexpr int | nEncodedLayerNodes_ = 16 |
static constexpr int | nTriggerCells_ = 48 |
Definition at line 14 of file HGCalConcentratorAutoEncoderImpl.h.
HGCalConcentratorAutoEncoderImpl::HGCalConcentratorAutoEncoderImpl | ( | const edm::ParameterSet & | conf | ) |
Definition at line 8 of file HGCalConcentratorAutoEncoderImpl.cc.
References cellRemap_, cellRemapNoDuplicates_, tensorflow::createSession(), decoderShape_, decoderTensorDims_, encoderShape_, encoderTensorDims_, Exception, contentValuesFiles::fullPath, graphDef_decoder_, graphDef_encoder_, mps_fire::i, inputTensorName_decoder_, inputTensorName_encoder_, linkToGraphMap_, tensorflow::loadGraphDef(), maxNumberOfLinks_, modelFilePaths_, Skims_PA_cff::name, nInputs_, nTriggerCells_, outputTensorName_decoder_, outputTensorName_encoder_, session_decoder_, session_encoder_, tensorflow::setLogging(), and AlCaHLTBitMon_QueryRunRegistry::string.
void HGCalConcentratorAutoEncoderImpl::select | ( | unsigned | nLinks, |
const std::vector< l1t::HGCalTriggerCell > & | trigCellVecInput, | ||
std::vector< l1t::HGCalTriggerCell > & | trigCellVecOutput, | ||
std::vector< l1t::HGCalConcentratorData > & | ae_EncodedOutput | ||
) |
Definition at line 121 of file HGCalConcentratorAutoEncoderImpl.cc.
References gpuClustering::adc, ae_encodedLayer_, ae_outputCellU_, ae_outputCellV_, bitShiftNormalization_, bitsPerInput_, cellRemap_, cellRemapNoDuplicates_, cellUVremap_, ztail::d, data, decoderShape_, encoderShape_, EgHLTOffHistBins_cfi::et, PVValHelper::eta, Exception, HGCalTriggerTools::getTCPosition(), HGCalTriggerTools::getTriggerGeometry(), mps_fire::i, l1ctLayer2EG_cff::id, inputTensorName_decoder_, inputTensorName_encoder_, createfilelist::int, HGCalTriggerTools::isScintillator(), pixelTopology::layer, linkToGraphMap_, maxBitsPerOutput_, nEncodedLayerNodes_, nInputs_, PostProcessor_cff::normalization, nTriggerCells_, outputBitsPerLink_, outputTensorName_decoder_, outputTensorName_encoder_, point, funct::pow(), preserveModuleSum_, tensorflow::run(), saveEncodedValues_, session_decoder_, session_encoder_, l1t::HGCalTriggerCell::setCompressedCharge(), l1t::HGCalTriggerCell::setMipPt(), reco::LeafCandidate::setP4(), l1t::HGCalTriggerCell::setPosition(), l1t::HGCalTriggerCell::setUncompressedCharge(), triggerTools_, parallelization::uint, HGCalTriggerGeometryBase::validTriggerCell(), HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and zeroSuppresionThreshold_.
|
inline |
Definition at line 23 of file HGCalConcentratorAutoEncoderImpl.h.
References relativeConstraints::geom, HGCalTriggerTools::setGeometry(), and triggerTools_.
|
private |
Definition at line 83 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
staticprivate |
Definition at line 48 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
staticprivate |
Definition at line 51 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 79 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 60 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 56 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 57 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
staticprivate |
Definition at line 40 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
staticprivate |
Definition at line 34 of file HGCalConcentratorAutoEncoderImpl.h.
|
private |
Definition at line 59 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
staticprivate |
Definition at line 38 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl().
|
private |
Definition at line 58 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
staticprivate |
Definition at line 36 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl().
|
private |
Definition at line 73 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl().
|
private |
Definition at line 68 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl().
|
private |
Definition at line 71 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 66 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 76 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
staticprivate |
Definition at line 28 of file HGCalConcentratorAutoEncoderImpl.h.
|
private |
Definition at line 61 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
staticprivate |
Definition at line 32 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl().
|
private |
Definition at line 64 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl().
|
staticprivate |
Definition at line 30 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 55 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
staticprivate |
Definition at line 26 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 62 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 72 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 67 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 81 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 80 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().
|
private |
Definition at line 74 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 69 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by HGCalConcentratorAutoEncoderImpl(), and select().
|
private |
Definition at line 85 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select(), and setGeometry().
|
private |
Definition at line 78 of file HGCalConcentratorAutoEncoderImpl.h.
Referenced by select().