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;
10 }
11 
12 namespace l1ct {
13 
16  EGInputSelectorEmuConfig(unsigned int emIdMask, unsigned int nHADCALO_IN, unsigned int nEMCALO_OUT, int debug)
18 
20  unsigned int nHADCALO_IN;
21  unsigned int nEMCALO_OUT;
22 
23  int debug;
24  };
25 
27  public:
29 
31 
32  void toFirmware(const PFInputRegion &in, HadCaloObj hadcalo[/*nCALO*/]) const;
33  void toFirmware(const std::vector<l1ct::EmCaloObjEmu> &emcalo_sel, l1ct::EmCaloObj emcalo[]) const;
34 
35  void select_eginput(const l1ct::HadCaloObjEmu &in, l1ct::EmCaloObjEmu &out, bool &valid_out) const;
36  void select_eginputs(const std::vector<l1ct::HadCaloObjEmu> &hadcalo_in,
37  std::vector<l1ct::EmCaloObjEmu> &emcalo_sel) const;
38 
40  void select_or_clear(const l1ct::HadCaloObjEmu &hadcalo_in, l1ct::EmCaloObjEmu &emcalo_out) const;
41 
43  void select_or_clear(const std::vector<l1ct::HadCaloObjEmu> &hadcalo_in,
44  std::vector<l1ct::EmCaloObjEmu> &emcalo_out) const;
45 
46  // void run(const PFInputRegion &in, OutputRegion &out) const;
47 
48  void setDebug(int debug) { debug_ = debug; }
49 
50  private:
52  int debug_;
53  };
54 } // namespace l1ct
55 
56 #endif
void toFirmware(const PFInputRegion &in, HadCaloObj hadcalo[]) const
EGInputSelectorEmuConfig cfg
Definition: pfeginput_ref.h:51
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:16
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:36
EGInputSelectorEmulator(const EGInputSelectorEmuConfig &config)
Definition: pfeginput_ref.h:28
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:19