CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
l1t::HGCFETriggerDigi Class Reference

#include <HGCFETriggerDigi.h>

Public Types

typedef std::vector< bool > data_payload
 
typedef uint32_t key_type
 

Public Member Functions

template<typename CODEC , typename DATA >
void decode (const CODEC &codec, DATA &data) const
 
template<typename CODEC , typename DATA >
void encode (const CODEC &codec, const DATA &data)
 
template<typename IDTYPE >
IDTYPE getDetId () const
 
unsigned char getWhichCodec () const
 
 HGCFETriggerDigi ()
 
uint32_t id () const
 
template<typename CODEC >
void print (const CODEC &codec, std::ostream &out) const
 
void print (std::ostream &out) const
 
template<typename IDTYPE >
void setDetId (const IDTYPE &id)
 
 ~HGCFETriggerDigi ()
 

Private Attributes

unsigned char codec_
 
data_payload data_
 
uint32_t detid_
 

Detailed Description

Definition at line 64 of file HGCFETriggerDigi.h.

Member Typedef Documentation

◆ data_payload

typedef std::vector<bool> l1t::HGCFETriggerDigi::data_payload

Definition at line 66 of file HGCFETriggerDigi.h.

◆ key_type

Definition at line 67 of file HGCFETriggerDigi.h.

Constructor & Destructor Documentation

◆ HGCFETriggerDigi()

l1t::HGCFETriggerDigi::HGCFETriggerDigi ( )
inline

Definition at line 69 of file HGCFETriggerDigi.h.

73 {

◆ ~HGCFETriggerDigi()

l1t::HGCFETriggerDigi::~HGCFETriggerDigi ( )
inline

Definition at line 70 of file HGCFETriggerDigi.h.

73 {

Member Function Documentation

◆ decode()

template<typename CODEC , typename DATA >
void l1t::HGCFETriggerDigi::decode ( const CODEC &  codec,
DATA &  data 
) const
inline

Definition at line 97 of file HGCFETriggerDigi.h.

99  : " << std::endl;
100  this->print(out);
101  }
102 } // namespace l1t
103 
104 #endif

Referenced by ztail.Decoder::follow(), and ztail.Decoder::initial_synchronize().

◆ encode()

template<typename CODEC , typename DATA >
void l1t::HGCFETriggerDigi::encode ( const CODEC &  codec,
const DATA &  data 
)
inline

Definition at line 87 of file HGCFETriggerDigi.h.

93  {
94  if (codec_ != codec.getCodecType()) {

◆ getDetId()

template<typename IDTYPE >
IDTYPE l1t::HGCFETriggerDigi::getDetId ( void  ) const
inline

Definition at line 75 of file HGCFETriggerDigi.h.

76  : " << std::hex << codec.getCodecType()
77  << " given to data encoded with HGC codec type: " << codec_ << std::dec;

◆ getWhichCodec()

unsigned char l1t::HGCFETriggerDigi::getWhichCodec ( ) const
inline

Definition at line 84 of file HGCFETriggerDigi.h.

86 :
87  uint32_t detid_; // save in the abstract form

◆ id()

uint32_t l1t::HGCFETriggerDigi::id ( ) const
inline

Definition at line 73 of file HGCFETriggerDigi.h.

73 {

References codec_.

◆ print() [1/2]

template<typename CODEC >
void l1t::HGCFETriggerDigi::print ( const CODEC &  codec,
std::ostream &  out 
) const

Definition at line 117 of file HGCFETriggerDigi.h.

◆ print() [2/2]

void HGCFETriggerDigi::print ( std::ostream &  out) const

Definition at line 5 of file HGCFETriggerDigi.cc.

5  {
6  out << "Codec type: " << static_cast<unsigned>(codec_) << std::endl;
7  out << "Raw data payload: ";
8  for (unsigned i = data_.size(); i > 0; --i) {
9  out << (unsigned)data_[i - 1];
10  }
11  out << std::endl;
12 }

References codec_, data_, mps_fire::i, and MillePedeFileConverter_cfg::out.

◆ setDetId()

template<typename IDTYPE >
void l1t::HGCFETriggerDigi::setDetId ( const IDTYPE &  id)
inline

Definition at line 79 of file HGCFETriggerDigi.h.

Member Data Documentation

◆ codec_

unsigned char l1t::HGCFETriggerDigi::codec_
private

Definition at line 112 of file HGCFETriggerDigi.h.

Referenced by id(), and print().

◆ data_

data_payload l1t::HGCFETriggerDigi::data_
private

Definition at line 113 of file HGCFETriggerDigi.h.

Referenced by print().

◆ detid_

uint32_t l1t::HGCFETriggerDigi::detid_
private

Definition at line 111 of file HGCFETriggerDigi.h.

mps_fire.i
i
Definition: mps_fire.py:428
to
l1t::HGCFETriggerDigi::detid_
uint32_t detid_
Definition: HGCFETriggerDigi.h:111
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
l1t::HGCFETriggerDigi::codec_
unsigned char codec_
Definition: HGCFETriggerDigi.h:112
l1t::HGCFETriggerDigi::data_
data_payload data_
Definition: HGCFETriggerDigi.h:113
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31