CMS 3D CMS Logo

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

#include <linpuppi_ref.h>

Public Types

enum  SortAlgo {
  SortAlgo::Insertion, SortAlgo::BitonicRUFL, SortAlgo::BitonicHLS, SortAlgo::Hybrid,
  SortAlgo::FoldedHybrid
}
 

Public Member Functions

void fwdlinpuppi_flt (const PFRegionEmu &region, const std::vector< HadCaloObjEmu > &caloin, std::vector< PuppiObjEmu > &outallne_nocut, std::vector< PuppiObjEmu > &outallne, std::vector< PuppiObjEmu > &outselne) const
 
void fwdlinpuppi_ref (const PFRegionEmu &region, const std::vector< HadCaloObjEmu > &caloin, std::vector< PuppiObjEmu > &outallne_nocut, std::vector< PuppiObjEmu > &outallne, std::vector< PuppiObjEmu > &outselne) const
 
void linpuppi_chs_ref (const PFRegionEmu &region, const PVObjEmu &pv, const std::vector< PFChargedObjEmu > &pfch, std::vector< PuppiObjEmu > &outallch) const
 
void linpuppi_chs_ref (const PFRegionEmu &region, const std::vector< PVObjEmu > &pv, const std::vector< PFChargedObjEmu > &pfch, std::vector< PuppiObjEmu > &outallch) const
 
void linpuppi_flt (const PFRegionEmu &region, const std::vector< TkObjEmu > &track, const std::vector< PVObjEmu > &pv, const std::vector< PFNeutralObjEmu > &pfallne, std::vector< PuppiObjEmu > &outallne_nocut, std::vector< PuppiObjEmu > &outallne, std::vector< PuppiObjEmu > &outselne) const
 
void linpuppi_ref (const PFRegionEmu &region, const std::vector< TkObjEmu > &track, const std::vector< PVObjEmu > &pv, const std::vector< PFNeutralObjEmu > &pfallne, std::vector< PuppiObjEmu > &outallne_nocut, std::vector< PuppiObjEmu > &outallne, std::vector< PuppiObjEmu > &outselne) const
 
void linpuppi_ref (const PFRegionEmu &region, const std::vector< TkObjEmu > &track, const std::vector< PVObjEmu > &pv, const std::vector< PFNeutralObjEmu > &pfallne, std::vector< PuppiObjEmu > &outselne) const
 
 LinPuppiEmulator (unsigned int nTrack, unsigned int nIn, unsigned int nOut, unsigned int nVtx, unsigned int dR2Min, unsigned int dR2Max, unsigned int iptMax, unsigned int dzCut, double ptSlopeNe, double ptSlopePh, double ptZeroNe, double ptZeroPh, double alphaSlope, double alphaZero, double alphaCrop, double priorNe, double priorPh, pt_t ptCut, unsigned int nFinalSort=0, SortAlgo finalSortAlgo=SortAlgo::Insertion)
 
 LinPuppiEmulator (unsigned int nTrack, unsigned int nIn, unsigned int nOut, unsigned int nVtx, unsigned int dR2Min, unsigned int dR2Max, unsigned int iptMax, unsigned int dzCut, glbeta_t etaCut, double ptSlopeNe_0, double ptSlopeNe_1, double ptSlopePh_0, double ptSlopePh_1, double ptZeroNe_0, double ptZeroNe_1, double ptZeroPh_0, double ptZeroPh_1, double alphaSlope_0, double alphaSlope_1, double alphaZero_0, double alphaZero_1, double alphaCrop_0, double alphaCrop_1, double priorNe_0, double priorNe_1, double priorPh_0, double priorPh_1, pt_t ptCut_0, pt_t ptCut_1, unsigned int nFinalSort=0, SortAlgo finalSortAlgo=SortAlgo::Insertion)
 
 LinPuppiEmulator (unsigned int nTrack, unsigned int nIn, unsigned int nOut, unsigned int nVtx, unsigned int dR2Min, unsigned int dR2Max, unsigned int iptMax, unsigned int dzCut, const std::vector< glbeta_t > &absEtaBins, const std::vector< double > &ptSlopeNe, const std::vector< double > &ptSlopePh, const std::vector< double > &ptZeroNe, const std::vector< double > &ptZeroPh, const std::vector< double > &alphaSlope, const std::vector< double > &alphaZero, const std::vector< double > &alphaCrop, const std::vector< double > &priorNe, const std::vector< double > &priorPh, const std::vector< pt_t > &ptCut, unsigned int nFinalSort, SortAlgo finalSortAlgo)
 
 LinPuppiEmulator (const edm::ParameterSet &iConfig)
 
void run (const PFInputRegion &in, const std::vector< l1ct::PVObjEmu > &pvs, OutputRegion &out) const
 
void setDebug (bool debug=true)
 
void setFakePuppi (bool fakePuppi=true)
 

Static Public Member Functions

static edm::ParameterSetDescription getParameterSetDescription ()
 
static void puppisort_and_crop_ref (unsigned int nOutMax, const std::vector< PuppiObjEmu > &in, std::vector< PuppiObjEmu > &out, SortAlgo algo=SortAlgo::Insertion)
 

Protected Member Functions

unsigned int find_ieta (const PFRegionEmu &region, eta_t eta) const
 
std::pair< float, float > sum2puppiPt_flt (float sum, float pt, unsigned int ieta, bool isEM, int icand) const
 
std::pair< pt_t, puppiWgt_tsum2puppiPt_ref (uint64_t sum, pt_t pt, unsigned int ieta, bool isEM, int icand) const
 

Protected Attributes

std::vector< glbeta_tabsEtaBins_
 
std::vector< double > alphaCrop_
 
std::vector< double > alphaSlope_
 
std::vector< double > alphaZero_
 
bool debug_
 
unsigned int dR2Max_
 
unsigned int dR2Min_
 
unsigned int dzCut_
 
bool fakePuppi_
 
SortAlgo finalSortAlgo_
 
unsigned int iptMax_
 
unsigned int nFinalSort_
 
unsigned int nIn_
 
unsigned int nOut_
 
unsigned int nTrack_
 
unsigned int nVtx_
 
std::vector< double > priorNe_
 
std::vector< double > priorPh_
 
std::vector< pt_tptCut_
 
std::vector< double > ptSlopeNe_
 
std::vector< double > ptSlopePh_
 
std::vector< double > ptZeroNe_
 
std::vector< double > ptZeroPh_
 

Detailed Description

Definition at line 15 of file linpuppi_ref.h.

Member Enumeration Documentation

◆ SortAlgo

Enumerator
Insertion 
BitonicRUFL 
BitonicHLS 
Hybrid 
FoldedHybrid 

Definition at line 17 of file linpuppi_ref.h.

17 { Insertion, BitonicRUFL, BitonicHLS, Hybrid, FoldedHybrid };

Constructor & Destructor Documentation

◆ LinPuppiEmulator() [1/4]

l1ct::LinPuppiEmulator::LinPuppiEmulator ( unsigned int  nTrack,
unsigned int  nIn,
unsigned int  nOut,
unsigned int  nVtx,
unsigned int  dR2Min,
unsigned int  dR2Max,
unsigned int  iptMax,
unsigned int  dzCut,
double  ptSlopeNe,
double  ptSlopePh,
double  ptZeroNe,
double  ptZeroPh,
double  alphaSlope,
double  alphaZero,
double  alphaCrop,
double  priorNe,
double  priorPh,
pt_t  ptCut,
unsigned int  nFinalSort = 0,
SortAlgo  finalSortAlgo = SortAlgo::Insertion 
)
inline

Definition at line 19 of file linpuppi_ref.h.

39  : nTrack_(nTrack),
40  nIn_(nIn),
41  nOut_(nOut),
42  nVtx_(nVtx),
43  dR2Min_(dR2Min),
44  dR2Max_(dR2Max),
45  iptMax_(iptMax),
46  dzCut_(dzCut),
47  absEtaBins_(),
48  ptSlopeNe_(1, ptSlopeNe),
49  ptSlopePh_(1, ptSlopePh),
50  ptZeroNe_(1, ptZeroNe),
51  ptZeroPh_(1, ptZeroPh),
52  alphaSlope_(1, alphaSlope),
53  alphaZero_(1, alphaZero),
55  priorNe_(1, priorNe),
56  priorPh_(1, priorPh),
57  ptCut_(1, ptCut),
60  debug_(false),
61  fakePuppi_(false) {}
std::vector< pt_t > ptCut_
Definition: linpuppi_ref.h:212
const double dR2Max
std::vector< glbeta_t > absEtaBins_
Definition: linpuppi_ref.h:208
std::vector< double > ptZeroNe_
Definition: linpuppi_ref.h:209
unsigned int nFinalSort_
Definition: linpuppi_ref.h:213
std::vector< double > priorNe_
Definition: linpuppi_ref.h:211
std::vector< double > priorPh_
Definition: linpuppi_ref.h:211
std::vector< double > ptZeroPh_
Definition: linpuppi_ref.h:209
std::vector< double > alphaZero_
Definition: linpuppi_ref.h:210
std::vector< double > ptSlopePh_
Definition: linpuppi_ref.h:209
std::vector< double > ptSlopeNe_
Definition: linpuppi_ref.h:209
std::vector< double > alphaSlope_
Definition: linpuppi_ref.h:210
const double dR2Min
std::vector< double > alphaCrop_
Definition: linpuppi_ref.h:210

◆ LinPuppiEmulator() [2/4]

l1ct::LinPuppiEmulator::LinPuppiEmulator ( unsigned int  nTrack,
unsigned int  nIn,
unsigned int  nOut,
unsigned int  nVtx,
unsigned int  dR2Min,
unsigned int  dR2Max,
unsigned int  iptMax,
unsigned int  dzCut,
glbeta_t  etaCut,
double  ptSlopeNe_0,
double  ptSlopeNe_1,
double  ptSlopePh_0,
double  ptSlopePh_1,
double  ptZeroNe_0,
double  ptZeroNe_1,
double  ptZeroPh_0,
double  ptZeroPh_1,
double  alphaSlope_0,
double  alphaSlope_1,
double  alphaZero_0,
double  alphaZero_1,
double  alphaCrop_0,
double  alphaCrop_1,
double  priorNe_0,
double  priorNe_1,
double  priorPh_0,
double  priorPh_1,
pt_t  ptCut_0,
pt_t  ptCut_1,
unsigned int  nFinalSort = 0,
SortAlgo  finalSortAlgo = SortAlgo::Insertion 
)

◆ LinPuppiEmulator() [3/4]

l1ct::LinPuppiEmulator::LinPuppiEmulator ( unsigned int  nTrack,
unsigned int  nIn,
unsigned int  nOut,
unsigned int  nVtx,
unsigned int  dR2Min,
unsigned int  dR2Max,
unsigned int  iptMax,
unsigned int  dzCut,
const std::vector< glbeta_t > &  absEtaBins,
const std::vector< double > &  ptSlopeNe,
const std::vector< double > &  ptSlopePh,
const std::vector< double > &  ptZeroNe,
const std::vector< double > &  ptZeroPh,
const std::vector< double > &  alphaSlope,
const std::vector< double > &  alphaZero,
const std::vector< double > &  alphaCrop,
const std::vector< double > &  priorNe,
const std::vector< double > &  priorPh,
const std::vector< pt_t > &  ptCut,
unsigned int  nFinalSort,
SortAlgo  finalSortAlgo 
)
inline

Definition at line 95 of file linpuppi_ref.h.

116  : nTrack_(nTrack),
117  nIn_(nIn),
118  nOut_(nOut),
119  nVtx_(nVtx),
120  dR2Min_(dR2Min),
121  dR2Max_(dR2Max),
122  iptMax_(iptMax),
123  dzCut_(dzCut),
124  absEtaBins_(absEtaBins),
125  ptSlopeNe_(ptSlopeNe),
126  ptSlopePh_(ptSlopePh),
127  ptZeroNe_(ptZeroNe),
128  ptZeroPh_(ptZeroPh),
129  alphaSlope_(alphaSlope),
130  alphaZero_(alphaZero),
132  priorNe_(priorNe),
133  priorPh_(priorPh),
134  ptCut_(ptCut),
137  debug_(false),
138  fakePuppi_(false) {}
std::vector< pt_t > ptCut_
Definition: linpuppi_ref.h:212
const double dR2Max
std::vector< glbeta_t > absEtaBins_
Definition: linpuppi_ref.h:208
std::vector< double > ptZeroNe_
Definition: linpuppi_ref.h:209
unsigned int nFinalSort_
Definition: linpuppi_ref.h:213
std::vector< double > priorNe_
Definition: linpuppi_ref.h:211
std::vector< double > priorPh_
Definition: linpuppi_ref.h:211
std::vector< double > ptZeroPh_
Definition: linpuppi_ref.h:209
std::vector< double > alphaZero_
Definition: linpuppi_ref.h:210
std::vector< double > ptSlopePh_
Definition: linpuppi_ref.h:209
std::vector< double > ptSlopeNe_
Definition: linpuppi_ref.h:209
std::vector< double > alphaSlope_
Definition: linpuppi_ref.h:210
const double dR2Min
std::vector< double > alphaCrop_
Definition: linpuppi_ref.h:210

◆ LinPuppiEmulator() [4/4]

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

Member Function Documentation

◆ find_ieta()

unsigned int l1ct::LinPuppiEmulator::find_ieta ( const PFRegionEmu region,
eta_t  eta 
) const
protected

◆ fwdlinpuppi_flt()

void l1ct::LinPuppiEmulator::fwdlinpuppi_flt ( const PFRegionEmu region,
const std::vector< HadCaloObjEmu > &  caloin,
std::vector< PuppiObjEmu > &  outallne_nocut,
std::vector< PuppiObjEmu > &  outallne,
std::vector< PuppiObjEmu > &  outselne 
) const

◆ fwdlinpuppi_ref()

void l1ct::LinPuppiEmulator::fwdlinpuppi_ref ( const PFRegionEmu region,
const std::vector< HadCaloObjEmu > &  caloin,
std::vector< PuppiObjEmu > &  outallne_nocut,
std::vector< PuppiObjEmu > &  outallne,
std::vector< PuppiObjEmu > &  outselne 
) const

◆ getParameterSetDescription()

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

◆ linpuppi_chs_ref() [1/2]

void l1ct::LinPuppiEmulator::linpuppi_chs_ref ( const PFRegionEmu region,
const PVObjEmu pv,
const std::vector< PFChargedObjEmu > &  pfch,
std::vector< PuppiObjEmu > &  outallch 
) const

◆ linpuppi_chs_ref() [2/2]

void l1ct::LinPuppiEmulator::linpuppi_chs_ref ( const PFRegionEmu region,
const std::vector< PVObjEmu > &  pv,
const std::vector< PFChargedObjEmu > &  pfch,
std::vector< PuppiObjEmu > &  outallch 
) const

◆ linpuppi_flt()

void l1ct::LinPuppiEmulator::linpuppi_flt ( const PFRegionEmu region,
const std::vector< TkObjEmu > &  track,
const std::vector< PVObjEmu > &  pv,
const std::vector< PFNeutralObjEmu > &  pfallne,
std::vector< PuppiObjEmu > &  outallne_nocut,
std::vector< PuppiObjEmu > &  outallne,
std::vector< PuppiObjEmu > &  outselne 
) const

◆ linpuppi_ref() [1/2]

void l1ct::LinPuppiEmulator::linpuppi_ref ( const PFRegionEmu region,
const std::vector< TkObjEmu > &  track,
const std::vector< PVObjEmu > &  pv,
const std::vector< PFNeutralObjEmu > &  pfallne,
std::vector< PuppiObjEmu > &  outallne_nocut,
std::vector< PuppiObjEmu > &  outallne,
std::vector< PuppiObjEmu > &  outselne 
) const

Referenced by linpuppi_ref().

◆ linpuppi_ref() [2/2]

void l1ct::LinPuppiEmulator::linpuppi_ref ( const PFRegionEmu region,
const std::vector< TkObjEmu > &  track,
const std::vector< PVObjEmu > &  pv,
const std::vector< PFNeutralObjEmu > &  pfallne,
std::vector< PuppiObjEmu > &  outselne 
) const
inline

Definition at line 170 of file linpuppi_ref.h.

References linpuppi_ref(), nano_mu_digi_cff::region, and HLT_2024v10_cff::track.

174  {
175  std::vector<PuppiObjEmu> outallne_nocut, outallne;
176  linpuppi_ref(region, track, pv, pfallne, outallne_nocut, outallne, outselne);
177  }
void linpuppi_ref(const PFRegionEmu &region, const std::vector< TkObjEmu > &track, const std::vector< PVObjEmu > &pv, const std::vector< PFNeutralObjEmu > &pfallne, std::vector< PuppiObjEmu > &outallne_nocut, std::vector< PuppiObjEmu > &outallne, std::vector< PuppiObjEmu > &outselne) const

◆ puppisort_and_crop_ref()

static void l1ct::LinPuppiEmulator::puppisort_and_crop_ref ( unsigned int  nOutMax,
const std::vector< PuppiObjEmu > &  in,
std::vector< PuppiObjEmu > &  out,
SortAlgo  algo = SortAlgo::Insertion 
)
static

◆ run()

void l1ct::LinPuppiEmulator::run ( const PFInputRegion in,
const std::vector< l1ct::PVObjEmu > &  pvs,
OutputRegion out 
) const

◆ setDebug()

void l1ct::LinPuppiEmulator::setDebug ( bool  debug = true)
inline

Definition at line 199 of file linpuppi_ref.h.

References debug, and debug_.

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

◆ setFakePuppi()

void l1ct::LinPuppiEmulator::setFakePuppi ( bool  fakePuppi = true)
inline

Definition at line 202 of file linpuppi_ref.h.

References fakePuppi_.

202 { fakePuppi_ = fakePuppi; }

◆ sum2puppiPt_flt()

std::pair<float, float> l1ct::LinPuppiEmulator::sum2puppiPt_flt ( float  sum,
float  pt,
unsigned int  ieta,
bool  isEM,
int  icand 
) const
protected

◆ sum2puppiPt_ref()

std::pair<pt_t, puppiWgt_t> l1ct::LinPuppiEmulator::sum2puppiPt_ref ( uint64_t  sum,
pt_t  pt,
unsigned int  ieta,
bool  isEM,
int  icand 
) const
protected

Member Data Documentation

◆ absEtaBins_

std::vector<glbeta_t> l1ct::LinPuppiEmulator::absEtaBins_
protected

Definition at line 208 of file linpuppi_ref.h.

◆ alphaCrop_

std::vector<double> l1ct::LinPuppiEmulator::alphaCrop_
protected

Definition at line 210 of file linpuppi_ref.h.

◆ alphaSlope_

std::vector<double> l1ct::LinPuppiEmulator::alphaSlope_
protected

Definition at line 210 of file linpuppi_ref.h.

◆ alphaZero_

std::vector<double> l1ct::LinPuppiEmulator::alphaZero_
protected

Definition at line 210 of file linpuppi_ref.h.

◆ debug_

bool l1ct::LinPuppiEmulator::debug_
protected

Definition at line 216 of file linpuppi_ref.h.

Referenced by setDebug().

◆ dR2Max_

unsigned int l1ct::LinPuppiEmulator::dR2Max_
protected

Definition at line 207 of file linpuppi_ref.h.

◆ dR2Min_

unsigned int l1ct::LinPuppiEmulator::dR2Min_
protected

Definition at line 207 of file linpuppi_ref.h.

◆ dzCut_

unsigned int l1ct::LinPuppiEmulator::dzCut_
protected

Definition at line 207 of file linpuppi_ref.h.

◆ fakePuppi_

bool l1ct::LinPuppiEmulator::fakePuppi_
protected

Definition at line 217 of file linpuppi_ref.h.

Referenced by setFakePuppi().

◆ finalSortAlgo_

SortAlgo l1ct::LinPuppiEmulator::finalSortAlgo_
protected

Definition at line 214 of file linpuppi_ref.h.

◆ iptMax_

unsigned int l1ct::LinPuppiEmulator::iptMax_
protected

Definition at line 207 of file linpuppi_ref.h.

◆ nFinalSort_

unsigned int l1ct::LinPuppiEmulator::nFinalSort_
protected

Definition at line 213 of file linpuppi_ref.h.

◆ nIn_

unsigned int l1ct::LinPuppiEmulator::nIn_
protected

Definition at line 205 of file linpuppi_ref.h.

◆ nOut_

unsigned int l1ct::LinPuppiEmulator::nOut_
protected

Definition at line 205 of file linpuppi_ref.h.

◆ nTrack_

unsigned int l1ct::LinPuppiEmulator::nTrack_
protected

Definition at line 205 of file linpuppi_ref.h.

◆ nVtx_

unsigned int l1ct::LinPuppiEmulator::nVtx_
protected

Definition at line 205 of file linpuppi_ref.h.

◆ priorNe_

std::vector<double> l1ct::LinPuppiEmulator::priorNe_
protected

Definition at line 211 of file linpuppi_ref.h.

◆ priorPh_

std::vector<double> l1ct::LinPuppiEmulator::priorPh_
protected

Definition at line 211 of file linpuppi_ref.h.

◆ ptCut_

std::vector<pt_t> l1ct::LinPuppiEmulator::ptCut_
protected

◆ ptSlopeNe_

std::vector<double> l1ct::LinPuppiEmulator::ptSlopeNe_
protected

Definition at line 209 of file linpuppi_ref.h.

◆ ptSlopePh_

std::vector<double> l1ct::LinPuppiEmulator::ptSlopePh_
protected

Definition at line 209 of file linpuppi_ref.h.

◆ ptZeroNe_

std::vector<double> l1ct::LinPuppiEmulator::ptZeroNe_
protected

Definition at line 209 of file linpuppi_ref.h.

◆ ptZeroPh_

std::vector<double> l1ct::LinPuppiEmulator::ptZeroPh_
protected

Definition at line 209 of file linpuppi_ref.h.