#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 |
void | printDecompression () 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 (const edm::EventSetup &es, Mode) const |
Obtain any needed objects from the EventSetup. Note that any member variables which are changed must be mutable. More... | |
virtual | ~CaloTPGTranscoderULUT () |
Public Member Functions inherited from CaloTPGTranscoder | |
CaloTPGTranscoder () | |
boost::shared_ptr < EcalTPGCompressor > | getEcalCompressor () const |
boost::shared_ptr < HcalTPGCompressor > | getHcalCompressor () const |
virtual void | releaseSetup () const |
Release any objects obtained from the EventSetup. More... | |
virtual | ~CaloTPGTranscoder () |
Private Types | |
typedef unsigned int | LUT |
typedef std::vector< double > | RCTdecompression |
Private Member Functions | |
void | loadHCALCompress (void) const |
void | loadHCALCompress (const std::string &filename) const |
void | loadHCALUncompress (void) const |
void | loadHCALUncompress (const std::string &filename) const |
Private Attributes | |
std::string | compressionFile_ |
std::string | decompressionFile_ |
std::vector< RCTdecompression > | hcaluncomp_ |
std::vector< int > | ietah |
std::vector< int > | ietal |
bool | isLoaded_ |
std::vector< int > | LUTfactor |
edm::ESHandle< HcalLutMetadata > | lutMetadata_ |
double | nominal_gain_ |
LUT * | outputLUT_ [NOUTLUTS] |
double | rctlsb_factor_ |
edm::ESHandle < HcalTrigTowerGeometry > | theTrigTowerGeometry |
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 44 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 45 of file CaloTPGTranscoderULUT.h.
CaloTPGTranscoderULUT::CaloTPGTranscoderULUT | ( | const std::string & | compressionFile = "" , |
const std::string & | decompressionFile = "" |
||
) |
Definition at line 17 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 315 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception.
|
virtual |
Definition at line 357 of file CaloTPGTranscoderULUT.cc.
References getOutputLUTId(), i, lumiPlot::lut, OUTPUT_LUT_SIZE, and outputLUT_.
Referenced by HcalLutManager::getCompressionLutXmlFromCoder().
|
virtual |
Definition at line 343 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), HTvalid(), newHFphi, NOUTLUTS, and evf::evtn::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 249 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception, getOutputLUTId(), OUTPUT_LUT_SIZE, and outputLUT_.
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 278 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, decompressionFile_, getOutputLUTId(), hcaluncomp_, HTvalid(), and loadHCALUncompress().
Referenced by printDecompression().
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 265 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, decompressionFile_, getOutputLUTId(), hcaluncomp_, and loadHCALUncompress().
|
virtual |
Implements CaloTPGTranscoder.
Definition at line 304 of file CaloTPGTranscoderULUT.cc.
References HcalTriggerPrimitiveSample::compressedEt(), decompressionFile_, getOutputLUTId(), hcaluncomp_, HcalTrigTowerDetId::ieta(), HcalTrigTowerDetId::iphi(), and loadHCALUncompress().
|
virtual |
Definition at line 330 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 32 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), gather_cfg::cout, getOutputLUTId(), HcalLutMetadatum::getOutputLutThreshold(), HTvalid(), i, create_public_lumi_plots::log, lutMetadata_, bookConverter::min, OUTPUT_LUT_SIZE, outputLUT_, mathSSE::sqrt(), theTrigTowerGeometry, and dtDQMClient_cfg::threshold.
Referenced by loadHCALCompress(), and setup().
|
private |
Definition at line 71 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, edm::hlt::Exception, getOutputLUTId(), HTvalid(), i, getHLTprescales::index, j, loadHCALCompress(), NOUTLUTS, OUTPUT_LUT_SIZE, outputLUT_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 175 of file CaloTPGTranscoderULUT.cc.
References funct::abs(), HcalLutMetadatum::getLutGranularity(), getOutputLUTId(), hcaluncomp_, HTvalid(), i, lutMetadata_, nominal_gain_, NOUTLUTS, OUTPUT_LUT_SIZE, outputLUT_, rctlsb_factor_, theTrigTowerGeometry, and TPGMAX.
Referenced by hcaletValue(), and loadHCALUncompress().
|
private |
Definition at line 220 of file CaloTPGTranscoderULUT.cc.
References getOutputLUTId(), hcaluncomp_, i, j, loadHCALUncompress(), NOUTLUTS, and TPGMAX.
void CaloTPGTranscoderULUT::printDecompression | ( | ) | const |
Definition at line 390 of file CaloTPGTranscoderULUT.cc.
References gather_cfg::cout, hcaletValue(), i, j, and theTrigTowerGeometry.
|
virtual |
Uncompression for the Electron/Photon path in the RCT.
Implements CaloTPGTranscoder.
Definition at line 319 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception.
|
virtual |
Uncompression for the JET path in the RCT.
Implements CaloTPGTranscoder.
Definition at line 324 of file CaloTPGTranscoderULUT.cc.
References edm::hlt::Exception.
|
virtual |
Obtain any needed objects from the EventSetup. Note that any member variables which are changed must be mutable.
Reimplemented from CaloTPGTranscoder.
Definition at line 367 of file CaloTPGTranscoderULUT.cc.
References compressionFile_, gather_cfg::cout, decompressionFile_, edm::hlt::Exception, edm::EventSetup::get(), isLoaded_, loadHCALCompress(), lutMetadata_, nominal_gain_, rctlsb_factor_, and theTrigTowerGeometry.
|
private |
Definition at line 66 of file CaloTPGTranscoderULUT.h.
Referenced by setup().
|
private |
Definition at line 67 of file CaloTPGTranscoderULUT.h.
Referenced by hcaletValue(), and setup().
|
mutableprivate |
Definition at line 74 of file CaloTPGTranscoderULUT.h.
Referenced by hcaletValue(), and loadHCALUncompress().
|
private |
Definition at line 69 of file CaloTPGTranscoderULUT.h.
|
private |
Definition at line 68 of file CaloTPGTranscoderULUT.h.
|
mutableprivate |
Definition at line 63 of file CaloTPGTranscoderULUT.h.
Referenced by setup().
|
private |
Definition at line 71 of file CaloTPGTranscoderULUT.h.
|
mutableprivate |
Definition at line 75 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALCompress(), loadHCALUncompress(), and setup().
|
staticprivate |
Definition at line 52 of file CaloTPGTranscoderULUT.h.
Referenced by getOutputLUTId(), and HTvalid().
|
mutableprivate |
Definition at line 64 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALUncompress(), and setup().
|
staticprivate |
Definition at line 49 of file CaloTPGTranscoderULUT.h.
Referenced by CaloTPGTranscoderULUT(), getOutputLUTId(), loadHCALCompress(), loadHCALUncompress(), and ~CaloTPGTranscoderULUT().
|
staticprivate |
Definition at line 50 of file CaloTPGTranscoderULUT.h.
Referenced by getCompressionLUT(), hcalCompress(), loadHCALCompress(), and loadHCALUncompress().
Definition at line 73 of file CaloTPGTranscoderULUT.h.
Referenced by CaloTPGTranscoderULUT(), getCompressionLUT(), hcalCompress(), loadHCALCompress(), loadHCALUncompress(), and ~CaloTPGTranscoderULUT().
|
mutableprivate |
Definition at line 65 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALUncompress(), and setup().
|
mutableprivate |
Definition at line 76 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALCompress(), loadHCALUncompress(), printDecompression(), and setup().
|
staticprivate |
Definition at line 51 of file CaloTPGTranscoderULUT.h.
Referenced by loadHCALUncompress().
|
private |
Definition at line 70 of file CaloTPGTranscoderULUT.h.