CMS 3D CMS Logo

deregionizer_input.h
Go to the documentation of this file.
1 #ifndef L1Trigger_Phase2L1ParticleFlow_deregionizer_input_h
2 #define L1Trigger_Phase2L1ParticleFlow_deregionizer_input_h
3 
4 #include <vector>
6 
7 namespace l1ct {
8 
10  public:
11  static const unsigned int nEtaRegions =
12  6 /*7 with HF*/; // Fold ([-0.5,0.0] and [0.0,+0.5]) and ([+-0.5,+-1.0] and [+-1.0,+-1.5]) eta slices into phi
13  static const unsigned int nPhiRegions =
14  18; // 9 phi slices * 2 to account for the barrel having x2 PF regions per eta slice in the barrel
15 
16  DeregionizerInput(std::vector<float> &regionEtaCenter,
17  std::vector<float> &regionPhiCenter,
18  const std::vector<l1ct::OutputRegion> &inputRegions);
19 
20  void setDebug(bool debug = true) { debug_ = debug; }
21 
22  enum regionIndex {
24  negBarl = 1,
25  posBarl = 2,
26  negHGCal = 3,
27  posHGCal = 4,
28  forwardHGCal = 5 /*, HF = 6*/
29  };
30  void orderRegions(int order[nEtaRegions]);
31 
32  const std::vector<std::vector<std::vector<l1ct::PuppiObjEmu> > > &orderedInRegionsPuppis() const {
34  };
35 
36  private:
37  std::vector<float> regionEtaCenter_;
38  std::vector<float> regionPhiCenter_;
39  std::vector<std::vector<std::vector<l1ct::PuppiObjEmu> > > orderedInRegionsPuppis_;
40 
41  bool debug_ = false;
42 
43  unsigned int orderRegionsInPhi(const float eta, const float phi, const float etaComp) const;
44  void initRegions(const std::vector<l1ct::OutputRegion> &inputRegions);
45  };
46 
47 } // namespace l1ct
48 
49 #endif
static const unsigned int nEtaRegions
void setDebug(bool debug=true)
const std::vector< std::vector< std::vector< l1ct::PuppiObjEmu > > > & orderedInRegionsPuppis() const
std::vector< float > regionEtaCenter_
DeregionizerInput(std::vector< float > &regionEtaCenter, std::vector< float > &regionPhiCenter, const std::vector< l1ct::OutputRegion > &inputRegions)
std::vector< float > regionPhiCenter_
unsigned int orderRegionsInPhi(const float eta, const float phi, const float etaComp) const
void initRegions(const std::vector< l1ct::OutputRegion > &inputRegions)
static const unsigned int nPhiRegions
#define debug
Definition: HDRShower.cc:19
void orderRegions(int order[nEtaRegions])
std::vector< std::vector< std::vector< l1ct::PuppiObjEmu > > > orderedInRegionsPuppis_
Definition: datatypes.h:19