CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
CaloTPGTranscoder Class Referenceabstract

#include <CaloTPGTranscoder.h>

Inheritance diagram for CaloTPGTranscoder:
CaloTPGTranscoderULUT

Public Types

enum  Mode { All = 0, RCT = 1, HcalTPG = 2, EcalTPG = 3 }
 

Public Member Functions

 CaloTPGTranscoder ()
 
virtual EcalTriggerPrimitiveSample ecalCompress (const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const =0
 Compression from linear samples+fine grain in the ECAL. More...
 
std::shared_ptr< const EcalTPGCompressorgetEcalCompressor () const
 
std::shared_ptr< const HcalTPGCompressorgetHcalCompressor () const
 
virtual HcalTriggerPrimitiveSample hcalCompress (const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const =0
 Compression from linear samples+fine grain in the HTR. More...
 
virtual double hcaletValue (const int &ieta, const int &iphi, const int &version, const int &compressedValue) const =0
 
virtual double hcaletValue (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc) const =0
 
virtual void rctEGammaUncompress (const HcalTrigTowerDetId &hid, const HcalTriggerPrimitiveSample &hc, const EcalTrigTowerDetId &eid, const EcalTriggerPrimitiveSample &ec, unsigned int &et, bool &egVeto, bool &activity) const =0
 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 =0
 Uncompression for the JET path in the RCT. More...
 
virtual ~CaloTPGTranscoder ()
 

Private Attributes

std::shared_ptr< const EcalTPGCompressoreccompress_
 
std::shared_ptr< const HcalTPGCompressorhccompress_
 

Detailed Description

Abstract interface for the mutual transcoder required for compressing and uncompressing the ET stored in HCAL and ECAL Trigger Primitives

Author
J. Mans - Minnesota

Definition at line 24 of file CaloTPGTranscoder.h.

Member Enumeration Documentation

◆ Mode

Enumerator
All 
RCT 
HcalTPG 
EcalTPG 

Definition at line 29 of file CaloTPGTranscoder.h.

Constructor & Destructor Documentation

◆ CaloTPGTranscoder()

CaloTPGTranscoder::CaloTPGTranscoder ( )

Definition at line 5 of file CaloTPGTranscoder.cc.

std::shared_ptr< const HcalTPGCompressor > hccompress_
std::shared_ptr< const EcalTPGCompressor > eccompress_

◆ ~CaloTPGTranscoder()

CaloTPGTranscoder::~CaloTPGTranscoder ( )
virtual

Definition at line 8 of file CaloTPGTranscoder.cc.

8 {}

Member Function Documentation

◆ ecalCompress()

virtual EcalTriggerPrimitiveSample CaloTPGTranscoder::ecalCompress ( const EcalTrigTowerDetId id,
unsigned int  sample,
bool  fineGrain 
) const
pure virtual

Compression from linear samples+fine grain in the ECAL.

Implemented in CaloTPGTranscoderULUT.

Referenced by EcalTPGCompressor::compress().

◆ getEcalCompressor()

std::shared_ptr<const EcalTPGCompressor> CaloTPGTranscoder::getEcalCompressor ( ) const
inline

Definition at line 56 of file CaloTPGTranscoder.h.

References eccompress_.

56 { return eccompress_; }
std::shared_ptr< const EcalTPGCompressor > eccompress_

◆ getHcalCompressor()

std::shared_ptr<const HcalTPGCompressor> CaloTPGTranscoder::getHcalCompressor ( ) const
inline

Definition at line 55 of file CaloTPGTranscoder.h.

References hccompress_.

Referenced by HcalTrigPrimDigiProducer::produce().

55 { return hccompress_; }
std::shared_ptr< const HcalTPGCompressor > hccompress_

◆ hcalCompress()

virtual HcalTriggerPrimitiveSample CaloTPGTranscoder::hcalCompress ( const HcalTrigTowerDetId id,
unsigned int  sample,
int  fineGrain 
) const
pure virtual

Compression from linear samples+fine grain in the HTR.

Implemented in CaloTPGTranscoderULUT.

Referenced by HcalTPGCompressor::compress().

◆ hcaletValue() [1/2]

virtual double CaloTPGTranscoder::hcaletValue ( const int &  ieta,
const int &  iphi,
const int &  version,
const int &  compressedValue 
) const
pure virtual

◆ hcaletValue() [2/2]

virtual double CaloTPGTranscoder::hcaletValue ( const HcalTrigTowerDetId hid,
const HcalTriggerPrimitiveSample hc 
) const
pure virtual

Implemented in CaloTPGTranscoderULUT.

◆ rctEGammaUncompress()

virtual void CaloTPGTranscoder::rctEGammaUncompress ( const HcalTrigTowerDetId hid,
const HcalTriggerPrimitiveSample hc,
const EcalTrigTowerDetId eid,
const EcalTriggerPrimitiveSample ec,
unsigned int &  et,
bool &  egVeto,
bool &  activity 
) const
pure virtual

Uncompression for the Electron/Photon path in the RCT.

Implemented in CaloTPGTranscoderULUT.

◆ rctJetUncompress()

virtual void CaloTPGTranscoder::rctJetUncompress ( const HcalTrigTowerDetId hid,
const HcalTriggerPrimitiveSample hc,
const EcalTrigTowerDetId eid,
const EcalTriggerPrimitiveSample ec,
unsigned int &  et 
) const
pure virtual

Uncompression for the JET path in the RCT.

Implemented in CaloTPGTranscoderULUT.

Member Data Documentation

◆ eccompress_

std::shared_ptr<const EcalTPGCompressor> CaloTPGTranscoder::eccompress_
private

Definition at line 60 of file CaloTPGTranscoder.h.

Referenced by getEcalCompressor().

◆ hccompress_

std::shared_ptr<const HcalTPGCompressor> CaloTPGTranscoder::hccompress_
private

Definition at line 59 of file CaloTPGTranscoder.h.

Referenced by getHcalCompressor().