CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
l1ct::MiddleBufferMultififoRegionizerEmulator Class Reference

#include <middle_buffer_multififo_regionizer_ref.h>

Inheritance diagram for l1ct::MiddleBufferMultififoRegionizerEmulator:
l1ct::RegionizerEmulator

Public Member Functions

void destream (int iclock, const std::vector< l1ct::TkObjEmu > &tk_out, const std::vector< l1ct::EmCaloObjEmu > &em_out, const std::vector< l1ct::HadCaloObjEmu > &calo_out, const std::vector< l1ct::MuObjEmu > &mu_out, PFInputRegion &out)
 
void fillLinks (unsigned int iclock, const RegionizerDecodedInputs &in, std::vector< l1ct::TkObjEmu > &links, std::vector< bool > &valid)
 
void fillLinks (unsigned int iclock, const RegionizerDecodedInputs &in, std::vector< l1ct::HadCaloObjEmu > &links, std::vector< bool > &valid)
 
void fillLinks (unsigned int iclock, const RegionizerDecodedInputs &in, std::vector< l1ct::EmCaloObjEmu > &links, std::vector< bool > &valid)
 
void fillLinks (unsigned int iclock, const RegionizerDecodedInputs &in, std::vector< l1ct::MuObjEmu > &links, std::vector< bool > &valid)
 
template<typename T >
void fillLinks (unsigned int iclock, const RegionizerDecodedInputs &in, std::vector< T > &links)
 
void initSectorsAndRegions (const RegionizerDecodedInputs &in, const std::vector< PFInputRegion > &out) override
 
 MiddleBufferMultififoRegionizerEmulator (unsigned int nclocks, unsigned int nbuffers, unsigned int etabufferDepth, unsigned int ntklinks, unsigned int nHCalLinks, unsigned int nECalLinks, unsigned int ntk, unsigned int ncalo, unsigned int nem, unsigned int nmu, bool streaming, unsigned int outii, unsigned int pauseii, bool useAlsoVtxCoords)
 
 MiddleBufferMultififoRegionizerEmulator (const edm::ParameterSet &iConfig)
 
void reset ()
 
void run (const RegionizerDecodedInputs &in, std::vector< PFInputRegion > &out) override
 
bool step (bool newEvent, const std::vector< l1ct::TkObjEmu > &links_tk, const std::vector< l1ct::HadCaloObjEmu > &links_hadCalo, const std::vector< l1ct::EmCaloObjEmu > &links_emCalo, const std::vector< l1ct::MuObjEmu > &links_mu, std::vector< l1ct::TkObjEmu > &out_tk, std::vector< l1ct::HadCaloObjEmu > &out_hadCalo, std::vector< l1ct::EmCaloObjEmu > &out_emCalo, std::vector< l1ct::MuObjEmu > &out_mu, bool)
 
template<typename TEmu , typename TFw >
void toFirmware (const std::vector< TEmu > &emu, TFw fw[])
 
 ~MiddleBufferMultififoRegionizerEmulator () override
 
- Public Member Functions inherited from l1ct::RegionizerEmulator
 RegionizerEmulator (bool useAlsoVtxCoords=true)
 
 RegionizerEmulator (const edm::ParameterSet &iConfig)
 
void setDebug (bool debug=true)
 
virtual ~RegionizerEmulator ()
 

Static Public Member Functions

static void decode (l1ct::HadCaloObjEmu &had, l1ct::EmCaloObjEmu &em)
 
static void encode (const l1ct::EmCaloObjEmu &from, l1ct::HadCaloObjEmu &to)
 
static void encode (const l1ct::HadCaloObjEmu &from, l1ct::HadCaloObjEmu &to)
 
static edm::ParameterSetDescription getParameterSetDescription ()
 
- Static Public Member Functions inherited from l1ct::RegionizerEmulator
static edm::ParameterSetDescription getParameterSetDescription ()
 

Protected Member Functions

template<typename T >
void fillCaloLinks_ (unsigned int iclock, const std::vector< DetectorSector< T >> &in, std::vector< T > &links, std::vector< bool > &valid)
 
void fillSharedCaloLinks (unsigned int iclock, const std::vector< DetectorSector< l1ct::EmCaloObjEmu >> &em_in, const std::vector< DetectorSector< l1ct::HadCaloObjEmu >> &had_in, std::vector< l1ct::HadCaloObjEmu > &links, std::vector< bool > &valid)
 

Protected Attributes

std::vector< l1ct::multififo_regionizer::RoutecaloRoutes_
 
const unsigned int ECAL_LINKS
 
std::vector< l1ct::multififo_regionizer::EtaPhiBuffer< l1ct::EmCaloObjEmu > > emCaloBuffers_
 
multififo_regionizer::Regionizer< l1ct::EmCaloObjEmuemCaloRegionizerPost_
 
multififo_regionizer::Regionizer< l1ct::EmCaloObjEmuemCaloRegionizerPre_
 
std::vector< l1ct::multififo_regionizer::RouteemCaloRoutes_
 
unsigned int etabuffer_depth_
 
std::vector< l1ct::multififo_regionizer::EtaPhiBuffer< l1ct::HadCaloObjEmu > > hadCaloBuffers_
 
multififo_regionizer::Regionizer< l1ct::HadCaloObjEmuhadCaloRegionizerPost_
 
multififo_regionizer::Regionizer< l1ct::HadCaloObjEmuhadCaloRegionizerPre_
 
const unsigned int HCAL_LINKS
 
unsigned int iclock_
 
bool init_
 
std::vector< l1ct::PFRegionEmumergedRegions_
 
std::vector< l1ct::multififo_regionizer::EtaPhiBuffer< l1ct::MuObjEmu > > muBuffers_
 
multififo_regionizer::Regionizer< l1ct::MuObjEmumuRegionizerPost_
 
multififo_regionizer::Regionizer< l1ct::MuObjEmumuRegionizerPre_
 
std::vector< l1ct::multififo_regionizer::RoutemuRoutes_
 
unsigned int nbuffers_
 
unsigned int ncalo_
 
const unsigned int NCALO_SECTORS
 
unsigned int nclocks_
 
unsigned int nem_
 
unsigned int nmu_
 
const unsigned int NMU_LINKS
 
unsigned int nregions_post_
 
unsigned int nregions_pre_
 
unsigned int ntk_
 
const unsigned int NTK_LINKS
 
const unsigned int NTK_SECTORS
 
unsigned int outii_
 
std::vector< l1ct::PFRegionEmuoutputRegions_
 
unsigned int pauseii_
 
bool streaming_
 
std::vector< l1ct::multififo_regionizer::EtaPhiBuffer< l1ct::TkObjEmu > > tkBuffers_
 
multififo_regionizer::Regionizer< l1ct::TkObjEmutkRegionizerPost_
 
multififo_regionizer::Regionizer< l1ct::TkObjEmutkRegionizerPre_
 
std::vector< l1ct::multififo_regionizer::RoutetkRoutes_
 
- Protected Attributes inherited from l1ct::RegionizerEmulator
bool debug_
 
bool useAlsoVtxCoords_
 

Detailed Description

Definition at line 10 of file middle_buffer_multififo_regionizer_ref.h.

Constructor & Destructor Documentation

◆ MiddleBufferMultififoRegionizerEmulator() [1/2]

l1ct::MiddleBufferMultififoRegionizerEmulator::MiddleBufferMultififoRegionizerEmulator ( unsigned int  nclocks,
unsigned int  nbuffers,
unsigned int  etabufferDepth,
unsigned int  ntklinks,
unsigned int  nHCalLinks,
unsigned int  nECalLinks,
unsigned int  ntk,
unsigned int  ncalo,
unsigned int  nem,
unsigned int  nmu,
bool  streaming,
unsigned int  outii,
unsigned int  pauseii,
bool  useAlsoVtxCoords 
)

◆ MiddleBufferMultififoRegionizerEmulator() [2/2]

l1ct::MiddleBufferMultififoRegionizerEmulator::MiddleBufferMultififoRegionizerEmulator ( const edm::ParameterSet iConfig)

◆ ~MiddleBufferMultififoRegionizerEmulator()

l1ct::MiddleBufferMultififoRegionizerEmulator::~MiddleBufferMultififoRegionizerEmulator ( )
override

Member Function Documentation

◆ decode()

static void l1ct::MiddleBufferMultififoRegionizerEmulator::decode ( l1ct::HadCaloObjEmu had,
l1ct::EmCaloObjEmu em 
)
static

◆ destream()

void l1ct::MiddleBufferMultififoRegionizerEmulator::destream ( int  iclock,
const std::vector< l1ct::TkObjEmu > &  tk_out,
const std::vector< l1ct::EmCaloObjEmu > &  em_out,
const std::vector< l1ct::HadCaloObjEmu > &  calo_out,
const std::vector< l1ct::MuObjEmu > &  mu_out,
PFInputRegion out 
)

◆ encode() [1/2]

static void l1ct::MiddleBufferMultififoRegionizerEmulator::encode ( const l1ct::EmCaloObjEmu from,
l1ct::HadCaloObjEmu to 
)
static

◆ encode() [2/2]

static void l1ct::MiddleBufferMultififoRegionizerEmulator::encode ( const l1ct::HadCaloObjEmu from,
l1ct::HadCaloObjEmu to 
)
static

◆ fillCaloLinks_()

template<typename T >
void l1ct::MiddleBufferMultififoRegionizerEmulator::fillCaloLinks_ ( unsigned int  iclock,
const std::vector< DetectorSector< T >> &  in,
std::vector< T > &  links,
std::vector< bool > &  valid 
)
protected

◆ fillLinks() [1/5]

void l1ct::MiddleBufferMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
const RegionizerDecodedInputs in,
std::vector< l1ct::TkObjEmu > &  links,
std::vector< bool > &  valid 
)

Referenced by fillLinks().

◆ fillLinks() [2/5]

void l1ct::MiddleBufferMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
const RegionizerDecodedInputs in,
std::vector< l1ct::HadCaloObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinks() [3/5]

void l1ct::MiddleBufferMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
const RegionizerDecodedInputs in,
std::vector< l1ct::EmCaloObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinks() [4/5]

void l1ct::MiddleBufferMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
const RegionizerDecodedInputs in,
std::vector< l1ct::MuObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinks() [5/5]

template<typename T >
void l1ct::MiddleBufferMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
const RegionizerDecodedInputs in,
std::vector< T > &  links 
)
inline

Definition at line 55 of file middle_buffer_multififo_regionizer_ref.h.

References fillLinks(), recoMuon::in, and electronStore::links.

55  {
56  std::vector<bool> unused;
57  fillLinks(iclock, in, links, unused);
58  }
void fillLinks(unsigned int iclock, const RegionizerDecodedInputs &in, std::vector< l1ct::TkObjEmu > &links, std::vector< bool > &valid)

◆ fillSharedCaloLinks()

void l1ct::MiddleBufferMultififoRegionizerEmulator::fillSharedCaloLinks ( unsigned int  iclock,
const std::vector< DetectorSector< l1ct::EmCaloObjEmu >> &  em_in,
const std::vector< DetectorSector< l1ct::HadCaloObjEmu >> &  had_in,
std::vector< l1ct::HadCaloObjEmu > &  links,
std::vector< bool > &  valid 
)
protected

◆ getParameterSetDescription()

static edm::ParameterSetDescription l1ct::MiddleBufferMultififoRegionizerEmulator::getParameterSetDescription ( )
static

◆ initSectorsAndRegions()

void l1ct::MiddleBufferMultififoRegionizerEmulator::initSectorsAndRegions ( const RegionizerDecodedInputs in,
const std::vector< PFInputRegion > &  out 
)
overridevirtual

Reimplemented from l1ct::RegionizerEmulator.

◆ reset()

void l1ct::MiddleBufferMultififoRegionizerEmulator::reset ( )

◆ run()

void l1ct::MiddleBufferMultififoRegionizerEmulator::run ( const RegionizerDecodedInputs in,
std::vector< PFInputRegion > &  out 
)
overridevirtual

Reimplemented from l1ct::RegionizerEmulator.

◆ step()

bool l1ct::MiddleBufferMultififoRegionizerEmulator::step ( bool  newEvent,
const std::vector< l1ct::TkObjEmu > &  links_tk,
const std::vector< l1ct::HadCaloObjEmu > &  links_hadCalo,
const std::vector< l1ct::EmCaloObjEmu > &  links_emCalo,
const std::vector< l1ct::MuObjEmu > &  links_mu,
std::vector< l1ct::TkObjEmu > &  out_tk,
std::vector< l1ct::HadCaloObjEmu > &  out_hadCalo,
std::vector< l1ct::EmCaloObjEmu > &  out_emCalo,
std::vector< l1ct::MuObjEmu > &  out_mu,
bool   
)

◆ toFirmware()

template<typename TEmu , typename TFw >
void l1ct::MiddleBufferMultififoRegionizerEmulator::toFirmware ( const std::vector< TEmu > &  emu,
TFw  fw[] 
)
inline

Definition at line 80 of file middle_buffer_multififo_regionizer_ref.h.

References mps_fire::i, and create_idmaps::n.

80  {
81  for (unsigned int i = 0, n = emu.size(); i < n; ++i) {
82  fw[i] = emu[i];
83  }
84  }

Member Data Documentation

◆ caloRoutes_

std::vector<l1ct::multififo_regionizer::Route> l1ct::MiddleBufferMultififoRegionizerEmulator::caloRoutes_
protected

Definition at line 105 of file middle_buffer_multififo_regionizer_ref.h.

◆ ECAL_LINKS

const unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::ECAL_LINKS
protected

Definition at line 94 of file middle_buffer_multififo_regionizer_ref.h.

◆ emCaloBuffers_

std::vector<l1ct::multififo_regionizer::EtaPhiBuffer<l1ct::EmCaloObjEmu> > l1ct::MiddleBufferMultififoRegionizerEmulator::emCaloBuffers_
protected

Definition at line 108 of file middle_buffer_multififo_regionizer_ref.h.

◆ emCaloRegionizerPost_

multififo_regionizer::Regionizer<l1ct::EmCaloObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::emCaloRegionizerPost_
protected

Definition at line 103 of file middle_buffer_multififo_regionizer_ref.h.

◆ emCaloRegionizerPre_

multififo_regionizer::Regionizer<l1ct::EmCaloObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::emCaloRegionizerPre_
protected

Definition at line 103 of file middle_buffer_multififo_regionizer_ref.h.

◆ emCaloRoutes_

std::vector<l1ct::multififo_regionizer::Route> l1ct::MiddleBufferMultififoRegionizerEmulator::emCaloRoutes_
protected

Definition at line 105 of file middle_buffer_multififo_regionizer_ref.h.

◆ etabuffer_depth_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::etabuffer_depth_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ hadCaloBuffers_

std::vector<l1ct::multififo_regionizer::EtaPhiBuffer<l1ct::HadCaloObjEmu> > l1ct::MiddleBufferMultififoRegionizerEmulator::hadCaloBuffers_
protected

Definition at line 107 of file middle_buffer_multififo_regionizer_ref.h.

◆ hadCaloRegionizerPost_

multififo_regionizer::Regionizer<l1ct::HadCaloObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::hadCaloRegionizerPost_
protected

Definition at line 102 of file middle_buffer_multififo_regionizer_ref.h.

◆ hadCaloRegionizerPre_

multififo_regionizer::Regionizer<l1ct::HadCaloObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::hadCaloRegionizerPre_
protected

Definition at line 102 of file middle_buffer_multififo_regionizer_ref.h.

◆ HCAL_LINKS

const unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::HCAL_LINKS
protected

Definition at line 94 of file middle_buffer_multififo_regionizer_ref.h.

◆ iclock_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::iclock_
protected

Definition at line 99 of file middle_buffer_multififo_regionizer_ref.h.

◆ init_

bool l1ct::MiddleBufferMultififoRegionizerEmulator::init_
protected

Definition at line 98 of file middle_buffer_multififo_regionizer_ref.h.

◆ mergedRegions_

std::vector<l1ct::PFRegionEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::mergedRegions_
protected

Definition at line 100 of file middle_buffer_multififo_regionizer_ref.h.

◆ muBuffers_

std::vector<l1ct::multififo_regionizer::EtaPhiBuffer<l1ct::MuObjEmu> > l1ct::MiddleBufferMultififoRegionizerEmulator::muBuffers_
protected

Definition at line 109 of file middle_buffer_multififo_regionizer_ref.h.

◆ muRegionizerPost_

multififo_regionizer::Regionizer<l1ct::MuObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::muRegionizerPost_
protected

Definition at line 104 of file middle_buffer_multififo_regionizer_ref.h.

◆ muRegionizerPre_

multififo_regionizer::Regionizer<l1ct::MuObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::muRegionizerPre_
protected

Definition at line 104 of file middle_buffer_multififo_regionizer_ref.h.

◆ muRoutes_

std::vector<l1ct::multififo_regionizer::Route> l1ct::MiddleBufferMultififoRegionizerEmulator::muRoutes_
protected

Definition at line 105 of file middle_buffer_multififo_regionizer_ref.h.

◆ nbuffers_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::nbuffers_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ ncalo_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::ncalo_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ NCALO_SECTORS

const unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::NCALO_SECTORS
protected

Definition at line 93 of file middle_buffer_multififo_regionizer_ref.h.

◆ nclocks_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::nclocks_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ nem_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::nem_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ nmu_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::nmu_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ NMU_LINKS

const unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::NMU_LINKS
protected

Definition at line 94 of file middle_buffer_multififo_regionizer_ref.h.

◆ nregions_post_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::nregions_post_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ nregions_pre_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::nregions_pre_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ ntk_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::ntk_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ NTK_LINKS

const unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::NTK_LINKS
protected

Definition at line 94 of file middle_buffer_multififo_regionizer_ref.h.

◆ NTK_SECTORS

const unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::NTK_SECTORS
protected

Definition at line 93 of file middle_buffer_multififo_regionizer_ref.h.

◆ outii_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::outii_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ outputRegions_

std::vector<l1ct::PFRegionEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::outputRegions_
protected

Definition at line 100 of file middle_buffer_multififo_regionizer_ref.h.

◆ pauseii_

unsigned int l1ct::MiddleBufferMultififoRegionizerEmulator::pauseii_
protected

Definition at line 95 of file middle_buffer_multififo_regionizer_ref.h.

◆ streaming_

bool l1ct::MiddleBufferMultififoRegionizerEmulator::streaming_
protected

Definition at line 97 of file middle_buffer_multififo_regionizer_ref.h.

◆ tkBuffers_

std::vector<l1ct::multififo_regionizer::EtaPhiBuffer<l1ct::TkObjEmu> > l1ct::MiddleBufferMultififoRegionizerEmulator::tkBuffers_
protected

Definition at line 106 of file middle_buffer_multififo_regionizer_ref.h.

◆ tkRegionizerPost_

multififo_regionizer::Regionizer<l1ct::TkObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::tkRegionizerPost_
protected

Definition at line 101 of file middle_buffer_multififo_regionizer_ref.h.

◆ tkRegionizerPre_

multififo_regionizer::Regionizer<l1ct::TkObjEmu> l1ct::MiddleBufferMultififoRegionizerEmulator::tkRegionizerPre_
protected

Definition at line 101 of file middle_buffer_multififo_regionizer_ref.h.

◆ tkRoutes_

std::vector<l1ct::multififo_regionizer::Route> l1ct::MiddleBufferMultififoRegionizerEmulator::tkRoutes_
protected

Definition at line 105 of file middle_buffer_multififo_regionizer_ref.h.