CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PatternRecognition.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_PatternRecognition_h
2 #define L1TMuonEndCap_PatternRecognition_h
3 
6 
8 public:
9  // Pattern detector ID: [zone, keystrip, pattern]
10  typedef std::array<int, 3> pattern_ref_t;
11 
12  void configure(int verbose,
13  int endcap,
14  int sector,
15  int bx,
16  int bxWindow,
17  const std::vector<std::string>& pattDefinitions,
18  const std::vector<std::string>& symPattDefinitions,
19  bool useSymPatterns,
20  int maxRoadsPerZone,
21  bool useSecondEarliest);
22 
23  void configure_details();
24 
25  void process(const std::deque<EMTFHitCollection>& extended_conv_hits,
26  std::map<pattern_ref_t, int>& patt_lifetime_map,
27  emtf::zone_array<EMTFRoadCollection>& zone_roads) const;
28 
29  bool is_zone_empty(int zone,
30  const std::deque<EMTFHitCollection>& extended_conv_hits,
31  const std::map<pattern_ref_t, int>& patt_lifetime_map) const;
32 
33  void make_zone_image(int zone, const std::deque<EMTFHitCollection>& extended_conv_hits, PhiMemoryImage& image) const;
34 
35  void process_single_zone(int zone,
36  PhiMemoryImage cloned_image,
37  std::map<pattern_ref_t, int>& patt_lifetime_map,
38  EMTFRoadCollection& roads) const;
39 
40  void sort_single_zone(EMTFRoadCollection& roads) const;
41 
42 private:
44 
45  int bxWindow_;
46  std::vector<std::string> pattDefinitions_, symPattDefinitions_;
50 
51  std::vector<PhiMemoryImage> patterns_;
52 };
53 
54 #endif
std::vector< PhiMemoryImage > patterns_
std::vector< std::string > pattDefinitions_
void sort_single_zone(EMTFRoadCollection &roads) const
void process_single_zone(int zone, PhiMemoryImage cloned_image, std::map< pattern_ref_t, int > &patt_lifetime_map, EMTFRoadCollection &roads) const
void make_zone_image(int zone, const std::deque< EMTFHitCollection > &extended_conv_hits, PhiMemoryImage &image) const
void process(const std::deque< EMTFHitCollection > &extended_conv_hits, std::map< pattern_ref_t, int > &patt_lifetime_map, emtf::zone_array< EMTFRoadCollection > &zone_roads) const
static constexpr int verbose
l1t::EMTFRoadCollection EMTFRoadCollection
Definition: Common.h:25
std::vector< std::string > symPattDefinitions_
std::array< T, NUM_ZONES > zone_array
Definition: Common.h:65
void configure(int verbose, int endcap, int sector, int bx, int bxWindow, const std::vector< std::string > &pattDefinitions, const std::vector< std::string > &symPattDefinitions, bool useSymPatterns, int maxRoadsPerZone, bool useSecondEarliest)
bool is_zone_empty(int zone, const std::deque< EMTFHitCollection > &extended_conv_hits, const std::map< pattern_ref_t, int > &patt_lifetime_map) const
std::array< int, 3 > pattern_ref_t