CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
l1ct::FoldedMultififoRegionizerEmulator Class Reference

#include <folded_multififo_regionizer_ref.h>

Inheritance diagram for l1ct::FoldedMultififoRegionizerEmulator:
l1ct::RegionizerEmulator l1ct::BufferedFoldedMultififoRegionizerEmulator

Classes

struct  Fold
 

Public Types

enum  FoldMode { FoldMode::EndcapEta2 }
 

Public Member Functions

void fillEvent (const RegionizerDecodedInputs &in)
 
template<typename T >
void fillLinks (unsigned int iclock, std::vector< T > &links, std::vector< bool > &valid)
 
 FoldedMultififoRegionizerEmulator (unsigned int nclocks, unsigned int ntklinks, unsigned int ncalolinks, unsigned int ntk, unsigned int ncalo, unsigned int nem, unsigned int nmu, bool streaming, unsigned int outii, unsigned int pauseii, bool useAlsoVtxCoords)
 
void initSectorsAndRegions (const RegionizerDecodedInputs &in, const std::vector< PFInputRegion > &out) override
 
void run (const RegionizerDecodedInputs &in, std::vector< PFInputRegion > &out) override
 
void setEgInterceptMode (bool afterFifo, const l1ct::EGInputSelectorEmuConfig &interceptorConfig)
 
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 mux=true)
 
template<typename TEmu , typename TFw >
void toFirmware (const std::vector< TEmu > &emu, TFw fw[])
 
 ~FoldedMultififoRegionizerEmulator () override
 
- Public Member Functions inherited from l1ct::RegionizerEmulator
 RegionizerEmulator (bool useAlsoVtxCoords=true)
 
 RegionizerEmulator (const edm::ParameterSet &iConfig)
 
void setDebug (bool debug=true)
 
virtual ~RegionizerEmulator ()
 

Protected Member Functions

bool inFold (const l1ct::PFRegion &reg, const Fold &fold)
 
void splitRegions (const std::vector< PFInputRegion > &out)
 
void splitSectors (const RegionizerDecodedInputs &in)
 
unsigned int whichFold (const l1ct::PFRegion &reg)
 
unsigned int whichFold (unsigned int iclock)
 

Protected Attributes

unsigned int clocksPerFold_
 
const unsigned int ECAL_LINKS
 
std::vector< Foldfold_
 
FoldMode foldMode_
 
const unsigned int HCAL_LINKS
 
unsigned int iclock_
 
bool init_
 
unsigned int ncalo_
 
const unsigned int NCALO_LINKS
 
const unsigned int NCALO_SECTORS
 
unsigned int nclocks_
 
unsigned int nem_
 
unsigned int nmu_
 
const unsigned int NMU_LINKS
 
unsigned int nregions_
 
unsigned int ntk_
 
const unsigned int NTK_LINKS
 
const unsigned int NTK_SECTORS
 
unsigned int outii_
 
unsigned int pauseii_
 
bool streaming_
 
- Protected Attributes inherited from l1ct::RegionizerEmulator
bool debug_
 
bool useAlsoVtxCoords_
 

Additional Inherited Members

- Static Public Member Functions inherited from l1ct::RegionizerEmulator
static edm::ParameterSetDescription getParameterSetDescription ()
 

Detailed Description

Definition at line 12 of file folded_multififo_regionizer_ref.h.

Member Enumeration Documentation

◆ FoldMode

Enumerator
EndcapEta2 

Definition at line 14 of file folded_multififo_regionizer_ref.h.

14 { EndcapEta2 };

Constructor & Destructor Documentation

◆ FoldedMultififoRegionizerEmulator()

l1ct::FoldedMultififoRegionizerEmulator::FoldedMultififoRegionizerEmulator ( unsigned int  nclocks,
unsigned int  ntklinks,
unsigned int  ncalolinks,
unsigned int  ntk,
unsigned int  ncalo,
unsigned int  nem,
unsigned int  nmu,
bool  streaming,
unsigned int  outii,
unsigned int  pauseii,
bool  useAlsoVtxCoords 
)

◆ ~FoldedMultififoRegionizerEmulator()

l1ct::FoldedMultififoRegionizerEmulator::~FoldedMultififoRegionizerEmulator ( )
override

Member Function Documentation

◆ fillEvent()

void l1ct::FoldedMultififoRegionizerEmulator::fillEvent ( const RegionizerDecodedInputs in)

◆ fillLinks()

template<typename T >
void l1ct::FoldedMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
std::vector< T > &  links,
std::vector< bool > &  valid 
)
inline

◆ inFold()

bool l1ct::FoldedMultififoRegionizerEmulator::inFold ( const l1ct::PFRegion reg,
const Fold fold 
)
protected

◆ initSectorsAndRegions()

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

Reimplemented from l1ct::RegionizerEmulator.

◆ run()

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

Reimplemented from l1ct::RegionizerEmulator.

◆ setEgInterceptMode()

void l1ct::FoldedMultififoRegionizerEmulator::setEgInterceptMode ( bool  afterFifo,
const l1ct::EGInputSelectorEmuConfig interceptorConfig 
)

◆ splitRegions()

void l1ct::FoldedMultififoRegionizerEmulator::splitRegions ( const std::vector< PFInputRegion > &  out)
protected

◆ splitSectors()

void l1ct::FoldedMultififoRegionizerEmulator::splitSectors ( const RegionizerDecodedInputs in)
protected

◆ step()

bool l1ct::FoldedMultififoRegionizerEmulator::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  mux = true 
)

◆ toFirmware()

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

Definition at line 58 of file folded_multififo_regionizer_ref.h.

References fold_.

58  {
59  fold_.front().regionizer->toFirmware(emu, fw);
60  }

◆ whichFold() [1/2]

unsigned int l1ct::FoldedMultififoRegionizerEmulator::whichFold ( const l1ct::PFRegion reg)
protected

Referenced by fillLinks().

◆ whichFold() [2/2]

unsigned int l1ct::FoldedMultififoRegionizerEmulator::whichFold ( unsigned int  iclock)
inlineprotected

Member Data Documentation

◆ clocksPerFold_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::clocksPerFold_
protected

Definition at line 78 of file folded_multififo_regionizer_ref.h.

Referenced by fillLinks(), and whichFold().

◆ ECAL_LINKS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::ECAL_LINKS
protected

Definition at line 64 of file folded_multififo_regionizer_ref.h.

◆ fold_

std::vector<Fold> l1ct::FoldedMultififoRegionizerEmulator::fold_
protected

Definition at line 77 of file folded_multififo_regionizer_ref.h.

Referenced by fillLinks(), and toFirmware().

◆ foldMode_

FoldMode l1ct::FoldedMultififoRegionizerEmulator::foldMode_
protected

Definition at line 67 of file folded_multififo_regionizer_ref.h.

◆ HCAL_LINKS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::HCAL_LINKS
protected

Definition at line 64 of file folded_multififo_regionizer_ref.h.

◆ iclock_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::iclock_
protected

Definition at line 79 of file folded_multififo_regionizer_ref.h.

◆ init_

bool l1ct::FoldedMultififoRegionizerEmulator::init_
protected

Definition at line 68 of file folded_multififo_regionizer_ref.h.

◆ ncalo_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::ncalo_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ NCALO_LINKS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::NCALO_LINKS
protected

Definition at line 64 of file folded_multififo_regionizer_ref.h.

◆ NCALO_SECTORS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::NCALO_SECTORS
protected

Definition at line 63 of file folded_multififo_regionizer_ref.h.

◆ nclocks_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::nclocks_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

Referenced by whichFold().

◆ nem_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::nem_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ nmu_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::nmu_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ NMU_LINKS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::NMU_LINKS
protected

Definition at line 64 of file folded_multififo_regionizer_ref.h.

◆ nregions_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::nregions_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ ntk_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::ntk_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ NTK_LINKS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::NTK_LINKS
protected

Definition at line 64 of file folded_multififo_regionizer_ref.h.

◆ NTK_SECTORS

const unsigned int l1ct::FoldedMultififoRegionizerEmulator::NTK_SECTORS
protected

Definition at line 63 of file folded_multififo_regionizer_ref.h.

◆ outii_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::outii_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ pauseii_

unsigned int l1ct::FoldedMultififoRegionizerEmulator::pauseii_
protected

Definition at line 65 of file folded_multififo_regionizer_ref.h.

◆ streaming_

bool l1ct::FoldedMultififoRegionizerEmulator::streaming_
protected

Definition at line 66 of file folded_multififo_regionizer_ref.h.