#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 8 of file PatternRecognition.h.
typedef std::array<int, 3> PatternRecognition::pattern_ref_t |
Definition at line 11 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 bx_, bxWindow_, configure_details(), makeMuonMisalignmentScenario::endcap, endcap_, maxRoadsPerZone_, pattDefinitions_, sector_, symPattDefinitions_, useSecondEarliest_, useSymPatterns_, verbose, and verbose_.
Referenced by SectorProcessor::process_single_bx().
void PatternRecognition::configure_details | ( | ) |
Definition at line 33 of file PatternRecognition.cc.
References gather_cfg::cout, mps_fire::i, pattDefinitions_, listBenchmarks::pattern, 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 285 of file PatternRecognition.cc.
References L1TMuon::TriggerPrimitive::kGEM, and L1TMuon::TriggerPrimitive::kRPC.
Referenced by process().
void PatternRecognition::make_zone_image | ( | int | zone, |
const std::deque< EMTFHitCollection > & | extended_conv_hits, | ||
PhiMemoryImage & | image | ||
) | const |
Definition at line 329 of file PatternRecognition.cc.
References L1TMuon::TriggerPrimitive::kGEM, L1TMuon::TriggerPrimitive::kRPC, 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 187 of file PatternRecognition.cc.
References gather_cfg::cout, is_zone_empty(), L1TMuon::TriggerPrimitive::kCSC, L1TMuon::TriggerPrimitive::kGEM, L1TMuon::TriggerPrimitive::kRPC, make_zone_image(), emtf::NUM_ZONES, process_single_zone(), sort_single_zone(), to_hex(), and verbose_.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), SectorProcessor::process_single_bx(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
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 359 of file PatternRecognition.cc.
References electrons_cff::bool, bx_, bxWindow_, endcap_, PhiMemoryImage::get_straightness(), cuy::ins, eostools::move(), emtf::NUM_ZONE_HITS, PhiMemoryImage::op_and(), patt, patterns_, 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 528 of file PatternRecognition.cc.
References maxRoadsPerZone_, and gen::n.
Referenced by process().
|
private |
Definition at line 51 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 53 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 51 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 56 of file PatternRecognition.h.
Referenced by configure(), and sort_single_zone().
|
private |
Definition at line 54 of file PatternRecognition.h.
Referenced by configure(), and configure_details().
|
private |
Definition at line 59 of file PatternRecognition.h.
Referenced by configure_details(), and process_single_zone().
|
private |
Definition at line 51 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 54 of file PatternRecognition.h.
Referenced by configure(), and configure_details().
|
private |
Definition at line 57 of file PatternRecognition.h.
Referenced by configure(), and process_single_zone().
|
private |
Definition at line 55 of file PatternRecognition.h.
Referenced by configure(), and configure_details().
|
private |
Definition at line 51 of file PatternRecognition.h.
Referenced by configure(), configure_details(), and process().