CMS 3D CMS Logo

pfalgo3_ref.h
Go to the documentation of this file.
1 #ifndef L1Trigger_Phase2L1ParticleFlow_PFALGO3_REF_H
2 #define L1Trigger_Phase2L1ParticleFlow_PFALGO3_REF_H
3 
4 #include "../firmware/pfalgo3.h"
5 #include "pfalgo_common_ref.h"
6 
7 struct pfalgo3_config : public pfalgo_config {
8  unsigned int nEMCALO, nPHOTON, nALLNEUTRAL;
9  unsigned int dR2MAX_TK_EM;
10  unsigned int dR2MAX_EM_CALO;
11 
12  pfalgo3_config(unsigned int nTrack,
13  unsigned int nEmCalo,
14  unsigned int nCalo,
15  unsigned int nMu,
16  unsigned int nPhoton,
17  unsigned int nSelCalo,
18  unsigned int nAllNeutral,
19  unsigned int dR2Max_Tk_Mu,
20  unsigned int dR2Max_Tk_Em,
21  unsigned int dR2Max_Em_Calo,
22  unsigned int dR2Max_Tk_Calo,
23  unsigned int tk_MaxInvPt_Loose,
24  unsigned int tk_MaxInvPt_Tight)
25  : pfalgo_config(nTrack, nCalo, nMu, nSelCalo, dR2Max_Tk_Mu, dR2Max_Tk_Calo, tk_MaxInvPt_Loose, tk_MaxInvPt_Tight),
26  nEMCALO(nEmCalo),
27  nPHOTON(nPhoton),
28  nALLNEUTRAL(nAllNeutral),
29  dR2MAX_TK_EM(dR2Max_Tk_Em),
30  dR2MAX_EM_CALO(dR2Max_Em_Calo) {}
31  ~pfalgo3_config() override {}
32 };
33 
35 
37  const EmCaloObj emcalo[/*cfg.nEMCALO*/],
38  const HadCaloObj hadcalo[/*cfg.nCALO*/],
39  const TkObj track[/*cfg.nTRACK*/],
40  const bool isMu[/*cfg.nTRACK*/],
41  bool isEle[/*cfg.nTRACK*/],
42  PFNeutralObj outpho[/*cfg.nPHOTON*/],
43  HadCaloObj hadcalo_out[/*cfg.nCALO*/]);
44 void pfalgo3_ref(const pfalgo3_config &cfg,
45  const EmCaloObj emcalo[/*cfg.nEMCALO*/],
46  const HadCaloObj hadcalo[/*cfg.nCALO*/],
47  const TkObj track[/*cfg.nTRACK*/],
48  const MuObj mu[/*cfg.nMU*/],
49  PFChargedObj outch[/*cfg.nTRACK*/],
50  PFNeutralObj outpho[/*cfg.nPHOTON*/],
51  PFNeutralObj outne[/*cfg.nSELCALO*/],
52  PFChargedObj outmu[/*cfg.nMU*/]);
53 
55  const PFNeutralObj pho[/*cfg.nPHOTON*/],
56  const PFNeutralObj ne[/*cfg.nSELCALO*/],
57  PFNeutralObj allne[/*cfg.nALLNEUTRALS*/]);
58 #endif
pfalgo3_config
Definition: pfalgo3_ref.h:7
amptDefaultParameters_cff.mu
mu
Definition: amptDefaultParameters_cff.py:16
pfalgo_common_ref.h
pfalgo3_ref_set_debug
void pfalgo3_ref_set_debug(int debug)
pfalgo3_config::pfalgo3_config
pfalgo3_config(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, unsigned int tk_MaxInvPt_Loose, unsigned int tk_MaxInvPt_Tight)
Definition: pfalgo3_ref.h:12
jets_cff.isEle
isEle
Definition: jets_cff.py:289
pfalgo_config
Definition: pfalgo_common_ref.h:19
pfalgo3_ref
void pfalgo3_ref(const pfalgo3_config &cfg, const EmCaloObj emcalo[], const HadCaloObj hadcalo[], const TkObj track[], const MuObj mu[], PFChargedObj outch[], PFNeutralObj outpho[], PFNeutralObj outne[], PFChargedObj outmu[])
debug
#define debug
Definition: HDRShower.cc:19
pfalgo3_config::dR2MAX_TK_EM
unsigned int dR2MAX_TK_EM
Definition: pfalgo3_ref.h:9
pfalgo3_config::dR2MAX_EM_CALO
unsigned int dR2MAX_EM_CALO
Definition: pfalgo3_ref.h:10
pfalgo3_config::nEMCALO
unsigned int nEMCALO
Definition: pfalgo3_ref.h:8
EmCaloObj
Definition: data.h:132
PFChargedObj
Definition: data.h:169
PFNeutralObj
Definition: data.h:183
TkObj
Definition: data.h:143
pfalgo3_config::nALLNEUTRAL
unsigned int nALLNEUTRAL
Definition: pfalgo3_ref.h:8
MuObj
Definition: data.h:158
looper.cfg
cfg
Definition: looper.py:297
pfalgo3_merge_neutrals_ref
void pfalgo3_merge_neutrals_ref(const pfalgo3_config &cfg, const PFNeutralObj pho[], const PFNeutralObj ne[], PFNeutralObj allne[])
pfalgo3_config::~pfalgo3_config
~pfalgo3_config() override
Definition: pfalgo3_ref.h:31
HadCaloObj
Definition: data.h:120
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
jets_cff.isMu
isMu
Definition: jets_cff.py:288
pfalgo3_config::nPHOTON
unsigned int nPHOTON
Definition: pfalgo3_ref.h:8
pfalgo3_em_ref
void pfalgo3_em_ref(const pfalgo3_config &cfg, const EmCaloObj emcalo[], const HadCaloObj hadcalo[], const TkObj track[], const bool isMu[], bool isEle[], PFNeutralObj outpho[], HadCaloObj hadcalo_out[])