CMS 3D CMS Logo

CaloTPGTranscoder Class Reference

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

#include <CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h>

Inheritance diagram for CaloTPGTranscoder:

CaloTPGTranscoderULUT

List of all members.

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.
boost::shared_ptr
< EcalTPGCompressor
getEcalCompressor () const
boost::shared_ptr
< HcalTPGCompressor
getHcalCompressor () const
virtual HcalTriggerPrimitiveSample hcalCompress (const HcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const =0
 Compression from linear samples+fine grain in the HTR.
virtual double hcaletValue (const int &ieta, const int &compET) 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.
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.
virtual void releaseSetup () const
 Release any objects obtained from the EventSetup.
virtual void setup (const edm::EventSetup &es, Mode mode=All) const
 Obtain any needed objects from the EventSetup. Note that any member variables which are changed must be mutable.
virtual ~CaloTPGTranscoder ()

Private Attributes

boost::shared_ptr
< EcalTPGCompressor
eccompress_
boost::shared_ptr
< HcalTPGCompressor
hccompress_


Detailed Description

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

Date
2006/12/13 18:11:22
Revision
1.5
Author:
J. Mans - Minnesota

Definition at line 26 of file CaloTPGTranscoder.h.


Member Enumeration Documentation

enum CaloTPGTranscoder::Mode

Enumerator:
All 
RCT 
HcalTPG 
EcalTPG 

Definition at line 31 of file CaloTPGTranscoder.h.

00031 { All=0, RCT=1, HcalTPG=2, EcalTPG=3 };


Constructor & Destructor Documentation

CaloTPGTranscoder::CaloTPGTranscoder (  ) 

Definition at line 5 of file CaloTPGTranscoder.cc.

00005                                      :
00006   hccompress_(new HcalTPGCompressor(this)),
00007   eccompress_(new EcalTPGCompressor(this)) {
00008 }

CaloTPGTranscoder::~CaloTPGTranscoder (  )  [virtual]

Definition at line 10 of file CaloTPGTranscoder.cc.

00010                                       {
00011 }


Member Function Documentation

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().

boost::shared_ptr<EcalTPGCompressor> CaloTPGTranscoder::getEcalCompressor (  )  const [inline]

Definition at line 53 of file CaloTPGTranscoder.h.

References eccompress_.

00053 { return eccompress_; }

boost::shared_ptr<HcalTPGCompressor> CaloTPGTranscoder::getHcalCompressor (  )  const [inline]

Definition at line 52 of file CaloTPGTranscoder.h.

References hccompress_.

00052 { return hccompress_; }

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

Compression from linear samples+fine grain in the HTR.

Implemented in CaloTPGTranscoderULUT.

Referenced by HcalTPGCompressor::compress(), and HcalLuttoDB::extractOutputLut().

virtual double CaloTPGTranscoder::hcaletValue ( const int ieta,
const int compET 
) const [pure virtual]

Implemented in CaloTPGTranscoderULUT.

Referenced by L1RCTLutWriter::analyze(), L1RCTSaveInput::analyze(), and L1RCTProducer::produce().

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.

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.

void CaloTPGTranscoder::releaseSetup (  )  const [virtual]

Release any objects obtained from the EventSetup.

Definition at line 16 of file CaloTPGTranscoder.cc.

00016                                            {
00017 }

void CaloTPGTranscoder::setup ( const edm::EventSetup es,
CaloTPGTranscoder::Mode  mode = All 
) const [virtual]

Obtain any needed objects from the EventSetup. Note that any member variables which are changed must be mutable.

Definition at line 13 of file CaloTPGTranscoder.cc.

00013                                                                                        {
00014 }


Member Data Documentation

boost::shared_ptr<EcalTPGCompressor> CaloTPGTranscoder::eccompress_ [private]

Definition at line 56 of file CaloTPGTranscoder.h.

Referenced by getEcalCompressor().

boost::shared_ptr<HcalTPGCompressor> CaloTPGTranscoder::hccompress_ [private]

Definition at line 55 of file CaloTPGTranscoder.h.

Referenced by getHcalCompressor().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:02 2009 for CMSSW by  doxygen 1.5.4