CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1ct::EGInputSelectorEmulator Class Reference

#include <pfeginput_ref.h>

Public Member Functions

 EGInputSelectorEmulator (const EGInputSelectorEmuConfig &config)
 
void select_eginput (const l1ct::HadCaloObjEmu &in, l1ct::EmCaloObjEmu &out, bool &valid_out) const
 
void select_eginputs (const std::vector< l1ct::HadCaloObjEmu > &hadcalo_in, std::vector< l1ct::EmCaloObjEmu > &emcalo_sel) const
 
void select_or_clear (const l1ct::HadCaloObjEmu &hadcalo_in, l1ct::EmCaloObjEmu &emcalo_out) const
 if the hadcalo passes the EM selection, do the conversion, otherwise zero-out the result More...
 
void select_or_clear (const std::vector< l1ct::HadCaloObjEmu > &hadcalo_in, std::vector< l1ct::EmCaloObjEmu > &emcalo_out) const
 apply select_or_clear on all elements of the input vector More...
 
void setDebug (int debug)
 
void toFirmware (const PFInputRegion &in, HadCaloObj hadcalo[]) const
 
void toFirmware (const std::vector< l1ct::EmCaloObjEmu > &emcalo_sel, l1ct::EmCaloObj emcalo[]) const
 
virtual ~EGInputSelectorEmulator ()
 

Private Attributes

EGInputSelectorEmuConfig cfg
 
int debug_
 

Detailed Description

Definition at line 29 of file pfeginput_ref.h.

Constructor & Destructor Documentation

◆ EGInputSelectorEmulator()

l1ct::EGInputSelectorEmulator::EGInputSelectorEmulator ( const EGInputSelectorEmuConfig config)
inline

Definition at line 31 of file pfeginput_ref.h.

◆ ~EGInputSelectorEmulator()

virtual l1ct::EGInputSelectorEmulator::~EGInputSelectorEmulator ( )
inlinevirtual

Definition at line 33 of file pfeginput_ref.h.

33 {}

Member Function Documentation

◆ select_eginput()

void l1ct::EGInputSelectorEmulator::select_eginput ( const l1ct::HadCaloObjEmu in,
l1ct::EmCaloObjEmu out,
bool &  valid_out 
) const

◆ select_eginputs()

void l1ct::EGInputSelectorEmulator::select_eginputs ( const std::vector< l1ct::HadCaloObjEmu > &  hadcalo_in,
std::vector< l1ct::EmCaloObjEmu > &  emcalo_sel 
) const

◆ select_or_clear() [1/2]

void l1ct::EGInputSelectorEmulator::select_or_clear ( const l1ct::HadCaloObjEmu hadcalo_in,
l1ct::EmCaloObjEmu emcalo_out 
) const

if the hadcalo passes the EM selection, do the conversion, otherwise zero-out the result

◆ select_or_clear() [2/2]

void l1ct::EGInputSelectorEmulator::select_or_clear ( const std::vector< l1ct::HadCaloObjEmu > &  hadcalo_in,
std::vector< l1ct::EmCaloObjEmu > &  emcalo_out 
) const

apply select_or_clear on all elements of the input vector

◆ setDebug()

void l1ct::EGInputSelectorEmulator::setDebug ( int  debug)
inline

Definition at line 51 of file pfeginput_ref.h.

References debug, and debug_.

51 { debug_ = debug; }
#define debug
Definition: HDRShower.cc:19

◆ toFirmware() [1/2]

void l1ct::EGInputSelectorEmulator::toFirmware ( const PFInputRegion in,
HadCaloObj  hadcalo[] 
) const

◆ toFirmware() [2/2]

void l1ct::EGInputSelectorEmulator::toFirmware ( const std::vector< l1ct::EmCaloObjEmu > &  emcalo_sel,
l1ct::EmCaloObj  emcalo[] 
) const

Member Data Documentation

◆ cfg

EGInputSelectorEmuConfig l1ct::EGInputSelectorEmulator::cfg
private

Definition at line 54 of file pfeginput_ref.h.

◆ debug_

int l1ct::EGInputSelectorEmulator::debug_
private

Definition at line 55 of file pfeginput_ref.h.

Referenced by setDebug().