#include <PatternRecognition.h>
Public Types | |
typedef std::array< int, 3 > | pattern_ref_t |
Public Member Functions | |
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) |
void | configure_details () |
bool | is_zone_empty (int zone, const std::deque< EMTFHitCollection > &extended_conv_hits, const std::map< pattern_ref_t, int > &patt_lifetime_map) 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 |
void | process_single_zone (int zone, PhiMemoryImage cloned_image, std::map< pattern_ref_t, int > &patt_lifetime_map, EMTFRoadCollection &roads) const |
void | sort_single_zone (EMTFRoadCollection &roads) const |
Private Attributes | |
int | bx_ |
int | bxWindow_ |
int | endcap_ |
int | maxRoadsPerZone_ |
std::vector< std::string > | pattDefinitions_ |
std::vector< PhiMemoryImage > | patterns_ |
int | sector_ |
std::vector< std::string > | symPattDefinitions_ |
bool | useSecondEarliest_ |
bool | useSymPatterns_ |
int | verbose_ |
Definition at line 7 of file PatternRecognition.h.
typedef std::array<int, 3> PatternRecognition::pattern_ref_t |
Definition at line 10 of file PatternRecognition.h.
void PatternRecognition::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 | ||
) |
Definition at line 12 of file PatternRecognition.cc.
References makePileupJSON::bx, bx_, bxWindow_, configure_details(), Reference_intrackfit_cff::endcap, endcap_, maxRoadsPerZone_, pattDefinitions_, sector_, symPattDefinitions_, useSecondEarliest_, useSymPatterns_, verbose, and verbose_.
Referenced by SectorProcessor::process_single_bx().
void PatternRecognition::configure_details | ( | ) |
Definition at line 37 of file PatternRecognition.cc.
References bxWindow_, gather_cfg::cout, emtf_assert, mps_fire::i, pattDefinitions_, patterns_, PhiMemoryImage::rotr(), alignCSCRings::s, PhiMemoryImage::set_bit(), PhiMemoryImage::set_straightness(), symPattDefinitions_, useSymPatterns_, and verbose_.
Referenced by configure().
bool PatternRecognition::is_zone_empty | ( | int | zone, |
const std::deque< EMTFHitCollection > & | extended_conv_hits, | ||
const std::map< pattern_ref_t, int > & | patt_lifetime_map | ||
) | const |
Definition at line 270 of file PatternRecognition.cc.
References emtf_assert, L1TMuon::kGEM, and L1TMuon::kRPC.
Referenced by process().
void PatternRecognition::make_zone_image | ( | int | zone, |
const std::deque< EMTFHitCollection > & | extended_conv_hits, | ||
PhiMemoryImage & | image | ||
) | const |
Definition at line 312 of file PatternRecognition.cc.
References L1TMuon::kGEM, L1TMuon::kRPC, phase1PixelTopology::layer, and PhiMemoryImage::set_bit().
Referenced by process().
void PatternRecognition::process | ( | const std::deque< EMTFHitCollection > & | extended_conv_hits, |
std::map< pattern_ref_t, int > & | patt_lifetime_map, | ||
emtf::zone_array< EMTFRoadCollection > & | zone_roads | ||
) | const |
Definition at line 181 of file PatternRecognition.cc.
References gather_cfg::cout, is_zone_empty(), L1TMuon::kCSC, L1TMuon::kGEM, L1TMuon::kRPC, make_zone_image(), emtf::NUM_ZONES, process_single_zone(), sort_single_zone(), to_hex(), and verbose_.
Referenced by SectorProcessor::process_single_bx().
void PatternRecognition::process_single_zone | ( | int | zone, |
PhiMemoryImage | cloned_image, | ||
std::map< pattern_ref_t, int > & | patt_lifetime_map, | ||
EMTFRoadCollection & | roads | ||
) | const |
Definition at line 340 of file PatternRecognition.cc.
References bx_, bxWindow_, endcap_, PhiMemoryImage::get_straightness(), cuy::ins, emtf::NUM_ZONE_HITS, PhiMemoryImage::op_and(), patt, patterns_, l1t::EMTFRoad::Quality_code(), PhiMemoryImage::rotl(), PhiMemoryImage::rotr(), sector_, l1t::EMTFRoad::set_bx(), l1t::EMTFRoad::set_endcap(), l1t::EMTFRoad::set_key_zhit(), l1t::EMTFRoad::set_layer_code(), l1t::EMTFRoad::set_pattern(), l1t::EMTFRoad::set_quality_code(), l1t::EMTFRoad::set_sector(), l1t::EMTFRoad::set_sector_idx(), l1t::EMTFRoad::set_straightness(), l1t::EMTFRoad::set_zone(), useSecondEarliest_, and x.
Referenced by process().
void PatternRecognition::sort_single_zone | ( | EMTFRoadCollection & | roads | ) | const |
Definition at line 504 of file PatternRecognition.cc.
References emtf_assert, maxRoadsPerZone_, and dqmiodumpmetadata::n.
Referenced by process().
|
private |
Definition at line 43 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 45 of file PatternRecognition.h.
Referenced by configure(), configure_details(), and process_single_zone().
|
private |
Definition at line 43 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 48 of file PatternRecognition.h.
Referenced by configure(), and sort_single_zone().
|
private |
Definition at line 46 of file PatternRecognition.h.
Referenced by configure(), and configure_details().
|
private |
Definition at line 51 of file PatternRecognition.h.
Referenced by configure_details(), and process_single_zone().
|
private |
Definition at line 43 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 46 of file PatternRecognition.h.
Referenced by configure(), and configure_details().
|
private |
Definition at line 49 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 47 of file PatternRecognition.h.
Referenced by configure(), and configure_details().
|
private |
Definition at line 43 of file PatternRecognition.h.
Referenced by configure(), configure_details(), and process().