#include <CaloTPGTranscoderULUT.h>
Public Member Functions | |
CaloTPGTranscoderULUT (const std::string &compressionFile="", const std::string &decompressionFile="") | |
virtual EcalTriggerPrimitiveSample | ecalCompress (const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const |
Compression from linear samples+fine grain in the ECAL. More... | |
virtual std::vector< unsigned char > | getCompressionLUT (HcalTrigTowerDetId id) const |
virtual int | getOutputLUTId (const int ieta, const int iphi) const |
virtual HcalTriggerPrimitiveSample | hcalCompress (const HcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const |
Compression from linear samples+fine grain in the HTR. More... | |
virtual double | hcaletValue (const int &ieta, const int &compressedValue) const |
virtual double | hcaletValue (const int &ieta, const int &iphi, const int &compressedValue) const |
virtual double | hcaletValue (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc) const |
virtual bool | HTvalid (const int ieta, const int iphi) const |
virtual void | rctEGammaUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et, bool &egVecto, bool &activity) const |
Uncompression for the Electron/Photon path in the RCT. More... | |
virtual void | rctJetUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et) const |
Uncompression for the JET path in the RCT. More... | |
virtual void | setup (HcalLutMetadata const &, HcalTrigTowerGeometry const &) |
virtual | ~CaloTPGTranscoderULUT () |
Public Member Functions inherited from CaloTPGTranscoder | |
CaloTPGTranscoder () | |
boost::shared_ptr< const EcalTPGCompressor > | getEcalCompressor () const |
boost::shared_ptr< const HcalTPGCompressor > | getHcalCompressor () const |
virtual | ~CaloTPGTranscoder () |
Private Types | |
typedef unsigned int | LUT |
typedef std::vector< double > | RCTdecompression |
Private Member Functions | |
void | loadHCALCompress (HcalLutMetadata const &, HcalTrigTowerGeometry const &) |
void | loadHCALCompress (const std::string &filename, HcalLutMetadata const &, HcalTrigTowerGeometry const &) |
void | loadHCALUncompress (HcalLutMetadata const &, HcalTrigTowerGeometry const &) |
void | loadHCALUncompress (const std::string &filename, HcalLutMetadata const &, HcalTrigTowerGeometry const &) |
Private Attributes | |
std::string | compressionFile_ |
std::string | decompressionFile_ |
std::vector< RCTdecompression > | hcaluncomp_ |
std::vector< int > | ietah |
std::vector< int > | ietal |
std::vector< int > | LUTfactor |
double | nominal_gain_ |
LUT * | outputLUT_ [NOUTLUTS] |
double | rctlsb_factor_ |
std::vector< int > | ZS |
Static Private Attributes | |
static const bool | newHFphi = true |
static const int | NOUTLUTS = 4176 |
static const unsigned int | OUTPUT_LUT_SIZE = 1024 |
static const int | TPGMAX = 256 |
Additional Inherited Members | |
Public Types inherited from CaloTPGTranscoder | |
enum | Mode { All =0, RCT =1, HcalTPG =2, EcalTPG =3 } |
Definition at line 19 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 43 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 44 of file CaloTPGTranscoderULUT.h.
CaloTPGTranscoderULUT::CaloTPGTranscoderULUT | ( | const std::string & | compressionFile = "" , |
const std::string & | decompressionFile = "" |
||
) |
Definition at line 18 of file CaloTPGTranscoderULUT.cc.
References i, NOUTLUTS, and outputLUT_.
|
virtual |
|
virtual |
Compression from linear samples+fine grain in the ECAL.
Implements CaloTPGTranscoder.
Definition at line 308 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception.
|
virtual |
Definition at line 350 of file CaloTPGTranscoderULUT.cc.
References getOutputLUTId(), i, lumiPlot::lut, OUTPUT_LUT_SIZE, and outputLUT_.
Referenced by HcalLutManager::getCompressionLutXmlFromCoder().
|
virtual |
Definition at line 336 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), HTvalid(), newHFphi, NOUTLUTS, and hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by getCompressionLUT(), hcalCompress(), hcaletValue(), loadHCALCompress(), loadHCALUncompress(), and L1CaloHcalScaleConfigOnlineProd::newObject().
|
virtual |
Compression from linear samples+fine grain in the HTR.
Implements CaloTPGTranscoder.
Definition at line 252 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception, getOutputLUTId(), OUTPUT_LUT_SIZE, and outputLUT_.
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 277 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, getOutputLUTId(), hcaluncomp_, and HTvalid().
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 268 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, getOutputLUTId(), and hcaluncomp_.
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 298 of file CaloTPGTranscoderULUT.cc.
References HcalTriggerPrimitiveSample::compressedEt(), getOutputLUTId(), hcaluncomp_, HcalTrigTowerDetId::ieta(), and HcalTrigTowerDetId::iphi().
|
virtual |
Definition at line 323 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), and newHFphi.
Referenced by HcalLutManager::getCompressionLutXmlFromAsciiMaster(), HcalLutManager::getCompressionLutXmlFromCoder(), getOutputLUTId(), hcaletValue(), loadHCALCompress(), loadHCALUncompress(), and L1CaloHcalScaleConfigOnlineProd::newObject().
|
private |
Definition at line 33 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), gather_cfg::cout, HcalTrigTowerGeometry::firstHFTower(), getOutputLUTId(), HcalLutMetadatum::getOutputLutThreshold(), HcalCondObjectContainer< Item >::getValues(), HTvalid(), i, cmsBatch::log, min(), OUTPUT_LUT_SIZE, outputLUT_, mathSSE::sqrt(), and dtDQMClient_cfg::threshold.
Referenced by loadHCALCompress(), and setup().
|
private |
Definition at line 73 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, edm::hlt::Exception, getOutputLUTId(), HTvalid(), i, cmsHarvester::index, j, loadHCALCompress(), NOUTLUTS, OUTPUT_LUT_SIZE, outputLUT_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 177 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), HcalTrigTowerGeometry::firstHFTower(), HcalLutMetadatum::getLutGranularity(), getOutputLUTId(), HcalCondObjectContainer< Item >::getValues(), hcaluncomp_, HTvalid(), i, nominal_gain_, NOUTLUTS, OUTPUT_LUT_SIZE, outputLUT_, rctlsb_factor_, HcalTrigTowerGeometry::towerEtaBounds(), and TPGMAX.
Referenced by loadHCALUncompress(), and setup().
|
private |
Definition at line 223 of file CaloTPGTranscoderULUT.cc.
References getOutputLUTId(), hcaluncomp_, i, j, loadHCALUncompress(), NOUTLUTS, and TPGMAX.
|
virtual |
Uncompression for the Electron/Photon path in the RCT.
Implements CaloTPGTranscoder.
Definition at line 312 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception.
|
virtual |
Uncompression for the JET path in the RCT.
Implements CaloTPGTranscoder.
Definition at line 317 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception.
|
virtual |
Definition at line 360 of file CaloTPGTranscoderULUT.cc.
References compressionFile_, gather_cfg::cout, decompressionFile_, edm::hlt::Exception, HcalLutMetadata::getNominalGain(), HcalLutMetadata::getRctLsb(), loadHCALCompress(), loadHCALUncompress(), nominal_gain_, and rctlsb_factor_.
|
private |
Definition at line 64 of file CaloTPGTranscoderULUT.h.
Referenced by setup().
|
private |
Definition at line 65 of file CaloTPGTranscoderULUT.h.
Referenced by setup().
|
private |
Definition at line 72 of file CaloTPGTranscoderULUT.h.
Referenced by hcaletValue(), and loadHCALUncompress().
|
private |
Definition at line 67 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 66 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 69 of file CaloTPGTranscoderULUT.h.
|
staticprivate |
Definition at line 51 of file CaloTPGTranscoderULUT.h.
Referenced by getOutputLUTId(), and HTvalid().
|
private |
Definition at line 62 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALUncompress(), and setup().
|
staticprivate |
Definition at line 48 of file CaloTPGTranscoderULUT.h.
Referenced by CaloTPGTranscoderULUT(), getOutputLUTId(), loadHCALCompress(), loadHCALUncompress(), and ~CaloTPGTranscoderULUT().
|
staticprivate |
Definition at line 49 of file CaloTPGTranscoderULUT.h.
Referenced by getCompressionLUT(), hcalCompress(), loadHCALCompress(), and loadHCALUncompress().
Definition at line 71 of file CaloTPGTranscoderULUT.h.
Referenced by CaloTPGTranscoderULUT(), getCompressionLUT(), hcalCompress(), loadHCALCompress(), loadHCALUncompress(), and ~CaloTPGTranscoderULUT().
|
private |
Definition at line 63 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALUncompress(), and setup().
|
staticprivate |
Definition at line 50 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALUncompress().
|
private |
Definition at line 68 of file CaloTPGTranscoderULUT.h.