CMS 3D CMS Logo

HGCalTriggerCellThresholdCodec.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerCellThresholdCodec_h__
2 #define __L1Trigger_L1THGCal_HGCalTriggerCellThresholdCodec_h__
3 
6 
7 
8 inline std::ostream& operator<<(std::ostream& o, const HGCalTriggerCellThresholdDataPayload& data)
9 {
10  for(const auto& dat : data.payload)
11  {
12  o << "(" << std::hex << dat.detId()
13  << std::dec << " " << dat.hwPt() << ") ";
14  }
15  o << "\n";
16  return o;
17 }
18 
19 
20 class HGCalTriggerCellThresholdCodec : public HGCalTriggerFE::Codec<HGCalTriggerCellThresholdCodec,HGCalTriggerCellThresholdDataPayload>
21 {
22  public:
24 
26 
28  const HGCHEDigiCollection& fh,
29  const HGCBHDigiCollection& bh );
30 
31  void setDataPayloadImpl(const l1t::HGCFETriggerDigi& digi);
32 
33  std::vector<bool> encodeImpl(const data_type&) const ;
34  data_type decodeImpl(const std::vector<bool>&, const uint32_t) const;
35 
36  private:
38 };
39 
40 #endif
HGCalTriggerCellThresholdDataPayload data_type
HGCalTriggerCellThresholdCodecImpl codecImpl_
data_type decodeImpl(const std::vector< bool > &, const uint32_t) const
HGCalTriggerCellThresholdCodec(const edm::ParameterSet &conf)
std::vector< bool > encodeImpl(const data_type &) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setDataPayloadImpl(const HGCEEDigiCollection &ee, const HGCHEDigiCollection &fh, const HGCBHDigiCollection &bh)
std::ostream & operator<<(std::ostream &o, const HGCalTriggerCellThresholdDataPayload &data)