CMS 3D CMS Logo

pfeginput_ref.h
Go to the documentation of this file.
1 #ifndef PFEGINPUT_REF_H
2 #define PFEGINPUT_REF_H
3 
7 
8 namespace edm {
9  class ParameterSet;
11 } // namespace edm
12 
13 namespace l1ct {
14 
17  EGInputSelectorEmuConfig(unsigned int emIdMask, unsigned int nHADCALO_IN, unsigned int nEMCALO_OUT, int debug)
19 
21 
23  unsigned int nHADCALO_IN;
24  unsigned int nEMCALO_OUT;
25 
26  int debug;
27  };
28 
30  public:
32 
34 
35  void toFirmware(const PFInputRegion &in, HadCaloObj hadcalo[/*nCALO*/]) const;
36  void toFirmware(const std::vector<l1ct::EmCaloObjEmu> &emcalo_sel, l1ct::EmCaloObj emcalo[]) const;
37 
38  void select_eginput(const l1ct::HadCaloObjEmu &in, l1ct::EmCaloObjEmu &out, bool &valid_out) const;
39  void select_eginputs(const std::vector<l1ct::HadCaloObjEmu> &hadcalo_in,
40  std::vector<l1ct::EmCaloObjEmu> &emcalo_sel) const;
41 
43  void select_or_clear(const l1ct::HadCaloObjEmu &hadcalo_in, l1ct::EmCaloObjEmu &emcalo_out) const;
44 
46  void select_or_clear(const std::vector<l1ct::HadCaloObjEmu> &hadcalo_in,
47  std::vector<l1ct::EmCaloObjEmu> &emcalo_out) const;
48 
49  // void run(const PFInputRegion &in, OutputRegion &out) const;
50 
51  void setDebug(int debug) { debug_ = debug; }
52 
53  private:
55  int debug_;
56  };
57 } // namespace l1ct
58 
59 #endif
void toFirmware(const PFInputRegion &in, HadCaloObj hadcalo[]) const
EGInputSelectorEmuConfig cfg
Definition: pfeginput_ref.h:54
void select_eginput(const l1ct::HadCaloObjEmu &in, l1ct::EmCaloObjEmu &out, bool &valid_out) const
EGInputSelectorEmuConfig(unsigned int emIdMask, unsigned int nHADCALO_IN, unsigned int nEMCALO_OUT, int debug)
Definition: pfeginput_ref.h:17
void select_or_clear(const l1ct::HadCaloObjEmu &hadcalo_in, l1ct::EmCaloObjEmu &emcalo_out) const
if the hadcalo passes the EM selection, do the conversion, otherwise zero-out the result ...
Definition: config.py:1
ap_uint< 6 > emid_t
Definition: datatypes.h:25
static edm::ParameterSetDescription getParameterSetDescription()
EGInputSelectorEmulator(const EGInputSelectorEmuConfig &config)
Definition: pfeginput_ref.h:31
void select_eginputs(const std::vector< l1ct::HadCaloObjEmu > &hadcalo_in, std::vector< l1ct::EmCaloObjEmu > &emcalo_sel) const
EGInputSelectorEmuConfig(const edm::ParameterSet &iConfig)
#define debug
Definition: HDRShower.cc:19
HLT enums.
Definition: datatypes.h:8