CMS 3D CMS Logo

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

#include <pfalgo3_ref.h>

Inheritance diagram for l1ct::PFAlgo3Emulator:
l1ct::PFAlgoEmulatorBase

Public Member Functions

void mergeNeutrals (OutputRegion &out) const override
 moves all objects from out.pfphoton to the beginning of out.pfneutral More...
 
 PFAlgo3Emulator (unsigned int nTrack, unsigned int nEmCalo, unsigned int nCalo, unsigned int nMu, unsigned int nPhoton, unsigned int nSelCalo, unsigned int nAllNeutral, unsigned int dR2Max_Tk_Mu, unsigned int dR2Max_Tk_Em, unsigned int dR2Max_Em_Calo, unsigned int dR2Max_Tk_Calo, pt_t tk_MaxInvPt_Loose, pt_t tk_MaxInvPt_Tight)
 
 PFAlgo3Emulator (const edm::ParameterSet &iConfig)
 
void run (const PFInputRegion &in, OutputRegion &out) const override
 
void toFirmware (const PFInputRegion &in, PFRegion &region, HadCaloObj calo[], EmCaloObj emcalo[], TkObj track[], MuObj mu[]) const
 
void toFirmware (const OutputRegion &out, PFChargedObj outch[], PFNeutralObj outpho[], PFNeutralObj outne[], PFChargedObj outmu[]) const
 
 ~PFAlgo3Emulator () override
 
- Public Member Functions inherited from l1ct::PFAlgoEmulatorBase
void loadPtErrBins (unsigned int nbins, const float absetas[], const float scales[], const float offs[], bool verbose=false)
 
void loadPtErrBins (const edm::ParameterSet &iConfig)
 
 PFAlgoEmulatorBase (unsigned int nTrack, unsigned int nCalo, unsigned int nMu, unsigned int nSelCalo, unsigned int dR2Max_Tk_Mu, unsigned int dR2Max_Tk_Calo, pt_t tk_MaxInvPt_Loose, pt_t tk_MaxInvPt_Tight)
 
void setDebug (bool debug=true)
 
virtual ~PFAlgoEmulatorBase ()
 

Protected Member Functions

int em_best_match_ref (unsigned int dR2MAX, const std::vector< l1ct::HadCaloObjEmu > &calo, const l1ct::EmCaloObjEmu &em) const
 
void pfalgo3_em_ref (const PFInputRegion &in, const std::vector< int > &iMu, std::vector< int > &iEle, OutputRegion &out, std::vector< HadCaloObjEmu > &hadcalo_out) const
 
int tk_best_match_ref (unsigned int dR2MAX, const std::vector< l1ct::EmCaloObjEmu > &calo, const l1ct::TkObjEmu &track) const
 
- Protected Member Functions inherited from l1ct::PFAlgoEmulatorBase
template<typename COV >
int best_match_with_pt_ref (int dR2MAX, const COV &calo, const TkObjEmu &track, const pt_t &trackCaloPtErr) const
 
void fillPFCand (const TkObjEmu &track, PFChargedObjEmu &pf, bool isMu, bool isEle) const
 
void fillPFCand (const HadCaloObjEmu &calo, PFNeutralObjEmu &pf, bool isPhoton=false) const
 
void fillPFCand (const EmCaloObjEmu &calo, PFNeutralObjEmu &pf, bool isPhoton=true) const
 
void pfalgo_mu_ref (const PFInputRegion &in, OutputRegion &out, std::vector< int > &iMu) const
 
pt_t ptErr_ref (const PFRegionEmu &region, const TkObjEmu &track) const
 
template<typename TV >
void ptsort_ref (int nIn, int nOut, const TV &in, TV &out) const
 

Protected Attributes

unsigned int dR2MAX_EM_CALO_
 
unsigned int dR2MAX_TK_EM_
 
unsigned int nALLNEUTRAL_
 
unsigned int nEMCALO_
 
unsigned int nPHOTON_
 
- Protected Attributes inherited from l1ct::PFAlgoEmulatorBase
bool debug_
 
unsigned int dR2MAX_TK_CALO_
 
unsigned int dR2MAX_TK_MU_
 
unsigned int nCALO_
 
unsigned int nMU_
 
unsigned int nSELCALO_
 
unsigned int nTRACK_
 
std::vector< ptErrBinptErrBins_
 
pt_t tk_MAXINVPT_LOOSE_
 
pt_t tk_MAXINVPT_TIGHT_
 

Detailed Description

Definition at line 12 of file pfalgo3_ref.h.

Constructor & Destructor Documentation

◆ PFAlgo3Emulator() [1/2]

l1ct::PFAlgo3Emulator::PFAlgo3Emulator ( unsigned int  nTrack,
unsigned int  nEmCalo,
unsigned int  nCalo,
unsigned int  nMu,
unsigned int  nPhoton,
unsigned int  nSelCalo,
unsigned int  nAllNeutral,
unsigned int  dR2Max_Tk_Mu,
unsigned int  dR2Max_Tk_Em,
unsigned int  dR2Max_Em_Calo,
unsigned int  dR2Max_Tk_Calo,
pt_t  tk_MaxInvPt_Loose,
pt_t  tk_MaxInvPt_Tight 
)
inline

Definition at line 14 of file pfalgo3_ref.h.

28  nTrack, nCalo, nMu, nSelCalo, dR2Max_Tk_Mu, dR2Max_Tk_Calo, tk_MaxInvPt_Loose, tk_MaxInvPt_Tight),
32  dR2MAX_TK_EM_(dR2Max_Tk_Em),
33  dR2MAX_EM_CALO_(dR2Max_Em_Calo) {}
unsigned int nALLNEUTRAL_
Definition: pfalgo3_ref.h:58
PFAlgoEmulatorBase(unsigned int nTrack, unsigned int nCalo, unsigned int nMu, unsigned int nSelCalo, unsigned int dR2Max_Tk_Mu, unsigned int dR2Max_Tk_Calo, pt_t tk_MaxInvPt_Loose, pt_t tk_MaxInvPt_Tight)
unsigned int nPHOTON_
Definition: pfalgo3_ref.h:58
unsigned int dR2MAX_EM_CALO_
Definition: pfalgo3_ref.h:60
unsigned int nEMCALO_
Definition: pfalgo3_ref.h:58
unsigned int dR2MAX_TK_EM_
Definition: pfalgo3_ref.h:59

◆ PFAlgo3Emulator() [2/2]

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

◆ ~PFAlgo3Emulator()

l1ct::PFAlgo3Emulator::~PFAlgo3Emulator ( )
inlineoverride

Definition at line 38 of file pfalgo3_ref.h.

38 {}

Member Function Documentation

◆ em_best_match_ref()

int l1ct::PFAlgo3Emulator::em_best_match_ref ( unsigned int  dR2MAX,
const std::vector< l1ct::HadCaloObjEmu > &  calo,
const l1ct::EmCaloObjEmu em 
) const
protected

◆ mergeNeutrals()

void l1ct::PFAlgo3Emulator::mergeNeutrals ( OutputRegion out) const
overridevirtual

moves all objects from out.pfphoton to the beginning of out.pfneutral

Implements l1ct::PFAlgoEmulatorBase.

◆ pfalgo3_em_ref()

void l1ct::PFAlgo3Emulator::pfalgo3_em_ref ( const PFInputRegion in,
const std::vector< int > &  iMu,
std::vector< int > &  iEle,
OutputRegion out,
std::vector< HadCaloObjEmu > &  hadcalo_out 
) const
protected

◆ run()

void l1ct::PFAlgo3Emulator::run ( const PFInputRegion in,
OutputRegion out 
) const
overridevirtual

◆ tk_best_match_ref()

int l1ct::PFAlgo3Emulator::tk_best_match_ref ( unsigned int  dR2MAX,
const std::vector< l1ct::EmCaloObjEmu > &  calo,
const l1ct::TkObjEmu track 
) const
protected

◆ toFirmware() [1/2]

void l1ct::PFAlgo3Emulator::toFirmware ( const PFInputRegion in,
PFRegion region,
HadCaloObj  calo[],
EmCaloObj  emcalo[],
TkObj  track[],
MuObj  mu[] 
) const

◆ toFirmware() [2/2]

void l1ct::PFAlgo3Emulator::toFirmware ( const OutputRegion out,
PFChargedObj  outch[],
PFNeutralObj  outpho[],
PFNeutralObj  outne[],
PFChargedObj  outmu[] 
) const

Member Data Documentation

◆ dR2MAX_EM_CALO_

unsigned int l1ct::PFAlgo3Emulator::dR2MAX_EM_CALO_
protected

Definition at line 60 of file pfalgo3_ref.h.

◆ dR2MAX_TK_EM_

unsigned int l1ct::PFAlgo3Emulator::dR2MAX_TK_EM_
protected

Definition at line 59 of file pfalgo3_ref.h.

◆ nALLNEUTRAL_

unsigned int l1ct::PFAlgo3Emulator::nALLNEUTRAL_
protected

Definition at line 58 of file pfalgo3_ref.h.

◆ nEMCALO_

unsigned int l1ct::PFAlgo3Emulator::nEMCALO_
protected

Definition at line 58 of file pfalgo3_ref.h.

◆ nPHOTON_

unsigned int l1ct::PFAlgo3Emulator::nPHOTON_
protected

Definition at line 58 of file pfalgo3_ref.h.