CMS 3D CMS Logo

CaloTPGTranscoder.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_CALOTPG_CALOTPGTRANSCODER_H
2 #define CALIBFORMATS_CALOTPG_CALOTPGTRANSCODER_H 1
3 
8 #include <memory>
9 
10 class HcalTPGCompressor;
11 class EcalTPGCompressor;
12 
13 namespace edm {
14  class EventSetup;
15 }
16 
25 public:
27  virtual ~CaloTPGTranscoder();
28 
29  enum Mode { All = 0, RCT = 1, HcalTPG = 2, EcalTPG = 3 };
32  unsigned int sample,
33  int fineGrain) const = 0;
36  unsigned int sample,
37  bool fineGrain) const = 0;
39  virtual void rctEGammaUncompress(const HcalTrigTowerDetId& hid,
41  const EcalTrigTowerDetId& eid,
43  unsigned int& et,
44  bool& egVeto,
45  bool& activity) const = 0;
47  virtual void rctJetUncompress(const HcalTrigTowerDetId& hid,
49  const EcalTrigTowerDetId& eid,
51  unsigned int& et) const = 0;
52 
53  virtual double hcaletValue(const int& ieta, const int& iphi, const int& version, const int& compressedValue) const = 0;
54  virtual double hcaletValue(const HcalTrigTowerDetId& hid, const HcalTriggerPrimitiveSample& hc) const = 0;
55  std::shared_ptr<const HcalTPGCompressor> getHcalCompressor() const { return hccompress_; }
56  std::shared_ptr<const EcalTPGCompressor> getEcalCompressor() const { return eccompress_; }
57 
58 private:
59  std::shared_ptr<const HcalTPGCompressor> hccompress_;
60  std::shared_ptr<const EcalTPGCompressor> eccompress_;
61 };
62 
63 #endif
CaloTPGTranscoder
Definition: CaloTPGTranscoder.h:24
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
HcalTriggerPrimitiveSample
Definition: HcalTriggerPrimitiveSample.h:11
CaloTPGTranscoder::CaloTPGTranscoder
CaloTPGTranscoder()
Definition: CaloTPGTranscoder.cc:5
edm
HLT enums.
Definition: AlignableModifier.h:19
CaloTPGTranscoder::~CaloTPGTranscoder
virtual ~CaloTPGTranscoder()
Definition: CaloTPGTranscoder.cc:8
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
CaloTPGTranscoder::rctEGammaUncompress
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.
HcalTPGCompressor
Definition: HcalTPGCompressor.h:12
CaloTPGTranscoder::getHcalCompressor
std::shared_ptr< const HcalTPGCompressor > getHcalCompressor() const
Definition: CaloTPGTranscoder.h:55
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
CaloTPGTranscoder::eccompress_
std::shared_ptr< const EcalTPGCompressor > eccompress_
Definition: CaloTPGTranscoder.h:60
CaloTPGTranscoder::getEcalCompressor
std::shared_ptr< const EcalTPGCompressor > getEcalCompressor() const
Definition: CaloTPGTranscoder.h:56
CaloTPGTranscoder::hccompress_
std::shared_ptr< const HcalTPGCompressor > hccompress_
Definition: CaloTPGTranscoder.h:59
CaloTPGTranscoder::HcalTPG
Definition: CaloTPGTranscoder.h:29
EcalTrigTowerDetId.h
HcalTrigTowerDetId.h
EcalTPGCompressor
Definition: EcalTPGCompressor.h:12
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
CaloTPGTranscoder::RCT
Definition: CaloTPGTranscoder.h:29
CaloTPGTranscoder::EcalTPG
Definition: CaloTPGTranscoder.h:29
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
CaloTPGTranscoder::rctJetUncompress
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.
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
HcalTriggerPrimitiveSample.h
CaloTPGTranscoder::ecalCompress
virtual EcalTriggerPrimitiveSample ecalCompress(const EcalTrigTowerDetId &id, unsigned int sample, bool fineGrain) const =0
Compression from linear samples+fine grain in the ECAL.
CaloTPGTranscoder::Mode
Mode
Definition: CaloTPGTranscoder.h:29
CaloTPGTranscoder::All
Definition: CaloTPGTranscoder.h:29
EcalTriggerPrimitiveSample.h
CaloTPGTranscoder::hcaletValue
virtual double hcaletValue(const int &ieta, const int &iphi, const int &version, const int &compressedValue) const =0
EcalTriggerPrimitiveSample
Definition: EcalTriggerPrimitiveSample.h:12
CaloTPGTranscoder::hcalCompress
virtual HcalTriggerPrimitiveSample hcalCompress(const HcalTrigTowerDetId &id, unsigned int sample, int fineGrain) const =0
Compression from linear samples+fine grain in the HTR.
EventSetup
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14