CMS 3D CMS Logo

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

#include <buffered_folded_multififo_regionizer_ref.h>

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

Public Types

enum  FoldMode { FoldMode::EndcapEta2 }
 
- Public Types inherited from l1ct::FoldedMultififoRegionizerEmulator
enum  FoldMode { FoldMode::EndcapEta2 }
 

Public Member Functions

 BufferedFoldedMultififoRegionizerEmulator (unsigned int nclocks, unsigned int ntk, unsigned int ncalo, unsigned int nem, unsigned int nmu, bool streaming, unsigned int outii, unsigned int pauseii, bool useAlsoVtxCoords)
 
void fillLinks (unsigned int iclock, std::vector< l1ct::TkObjEmu > &links, std::vector< bool > &valid)
 
void fillLinks (unsigned int iclock, std::vector< l1ct::HadCaloObjEmu > &links, std::vector< bool > &valid)
 
void fillLinks (unsigned int iclock, std::vector< l1ct::EmCaloObjEmu > &links, std::vector< bool > &valid)
 
void fillLinks (unsigned int iclock, std::vector< l1ct::MuObjEmu > &links, std::vector< bool > &valid)
 
void initSectorsAndRegions (const RegionizerDecodedInputs &in, const std::vector< PFInputRegion > &out) override
 
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 mux=true)
 
template<typename TEmu , typename TFw >
void toFirmware (const std::vector< TEmu > &emu, TFw fw[])
 
 ~BufferedFoldedMultififoRegionizerEmulator () override
 
- Public Member Functions inherited from l1ct::FoldedMultififoRegionizerEmulator
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

template<typename T >
void fillLinksPosNeg_ (unsigned int iclock, const std::vector< l1ct::DetectorSector< T >> &secNeg, const std::vector< l1ct::DetectorSector< T >> &secPos, std::vector< T > &links, std::vector< bool > &valid)
 
void findEtaBounds_ (const l1ct::PFRegionEmu &sec, const std::vector< PFInputRegion > &reg, l1ct::glbeta_t &etaMin, l1ct::glbeta_t &etaMax)
 
- Protected Member Functions inherited from l1ct::FoldedMultififoRegionizerEmulator
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

std::vector< l1ct::multififo_regionizer::EtaBuffer< l1ct::HadCaloObjEmu > > caloBuffers_
 
std::vector< l1ct::multififo_regionizer::EtaBuffer< l1ct::MuObjEmu > > muBuffers_
 
std::vector< l1ct::multififo_regionizer::EtaBuffer< l1ct::TkObjEmu > > tkBuffers_
 
- Protected Attributes inherited from l1ct::FoldedMultififoRegionizerEmulator
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_
 

Detailed Description

Definition at line 42 of file buffered_folded_multififo_regionizer_ref.h.

Member Enumeration Documentation

◆ FoldMode

Enumerator
EndcapEta2 

Definition at line 44 of file buffered_folded_multififo_regionizer_ref.h.

44 { EndcapEta2 };

Constructor & Destructor Documentation

◆ BufferedFoldedMultififoRegionizerEmulator()

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

◆ ~BufferedFoldedMultififoRegionizerEmulator()

l1ct::BufferedFoldedMultififoRegionizerEmulator::~BufferedFoldedMultififoRegionizerEmulator ( )
override

Member Function Documentation

◆ fillLinks() [1/4]

void l1ct::BufferedFoldedMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
std::vector< l1ct::TkObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinks() [2/4]

void l1ct::BufferedFoldedMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
std::vector< l1ct::HadCaloObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinks() [3/4]

void l1ct::BufferedFoldedMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
std::vector< l1ct::EmCaloObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinks() [4/4]

void l1ct::BufferedFoldedMultififoRegionizerEmulator::fillLinks ( unsigned int  iclock,
std::vector< l1ct::MuObjEmu > &  links,
std::vector< bool > &  valid 
)

◆ fillLinksPosNeg_()

template<typename T >
void l1ct::BufferedFoldedMultififoRegionizerEmulator::fillLinksPosNeg_ ( unsigned int  iclock,
const std::vector< l1ct::DetectorSector< T >> &  secNeg,
const std::vector< l1ct::DetectorSector< T >> &  secPos,
std::vector< T > &  links,
std::vector< bool > &  valid 
)
protected

◆ findEtaBounds_()

void l1ct::BufferedFoldedMultififoRegionizerEmulator::findEtaBounds_ ( const l1ct::PFRegionEmu sec,
const std::vector< PFInputRegion > &  reg,
l1ct::glbeta_t etaMin,
l1ct::glbeta_t etaMax 
)
protected

◆ initSectorsAndRegions()

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

Reimplemented from l1ct::RegionizerEmulator.

◆ run()

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

Reimplemented from l1ct::RegionizerEmulator.

◆ step()

bool l1ct::BufferedFoldedMultififoRegionizerEmulator::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::BufferedFoldedMultififoRegionizerEmulator::toFirmware ( const std::vector< TEmu > &  emu,
TFw  fw[] 
)
inline

Definition at line 80 of file buffered_folded_multififo_regionizer_ref.h.

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

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

Member Data Documentation

◆ caloBuffers_

std::vector<l1ct::multififo_regionizer::EtaBuffer<l1ct::HadCaloObjEmu> > l1ct::BufferedFoldedMultififoRegionizerEmulator::caloBuffers_
protected

Definition at line 88 of file buffered_folded_multififo_regionizer_ref.h.

◆ muBuffers_

std::vector<l1ct::multififo_regionizer::EtaBuffer<l1ct::MuObjEmu> > l1ct::BufferedFoldedMultififoRegionizerEmulator::muBuffers_
protected

Definition at line 89 of file buffered_folded_multififo_regionizer_ref.h.

◆ tkBuffers_

std::vector<l1ct::multififo_regionizer::EtaBuffer<l1ct::TkObjEmu> > l1ct::BufferedFoldedMultififoRegionizerEmulator::tkBuffers_
protected

Definition at line 87 of file buffered_folded_multififo_regionizer_ref.h.