#include <PrimitiveConversion.h>
Public Member Functions | |
void | configure (const GeometryTranslator *tp_geom, const SectorProcessorLUT *lut, int verbose, int endcap, int sector, int bx, int bxShiftCSC, int bxShiftRPC, int bxShiftGEM, const std::vector< int > &zoneBoundaries, int zoneOverlap, bool duplicateTheta, bool fixZonePhi, bool useNewZones, bool fixME11Edges, bool bugME11Dupes) |
void | convert_csc (int pc_sector, int pc_station, int pc_chamber, int pc_segment, const TriggerPrimitive &muon_primitive, EMTFHit &conv_hit) const |
void | convert_csc_details (EMTFHit &conv_hit) const |
void | convert_gem (int pc_sector, int pc_station, int pc_chamber, int pc_segment, const TriggerPrimitive &muon_primitive, EMTFHit &conv_hit) const |
void | convert_gem_details (EMTFHit &conv_hit) const |
void | convert_rpc (int pc_sector, int pc_station, int pc_chamber, int pc_segment, const TriggerPrimitive &muon_primitive, EMTFHit &conv_hit) const |
void | convert_rpc_details (EMTFHit &conv_hit, const bool use_cppf_lut) const |
int | get_bt_segment (const EMTFHit &conv_hit, int fw_station, int fw_cscid, int pc_segment) const |
int | get_bt_station (const EMTFHit &conv_hit, int fw_station, int fw_cscid, int pc_segment) const |
int | get_fs_segment (const EMTFHit &conv_hit, int fw_station, int fw_cscid, int pc_segment) const |
int | get_fs_zone_code (const EMTFHit &conv_hit) const |
int | get_phzvl (const EMTFHit &conv_hit, int zone_code) const |
int | get_zone_code (const EMTFHit &conv_hit, int th) const |
bool | is_valid_for_run2 (const EMTFHit &conv_hit) const |
const SectorProcessorLUT & | lut () const |
void | process (const std::map< int, TriggerPrimitiveCollection > &selected_prim_map, EMTFHitCollection &conv_hits) const |
Private Attributes | |
bool | bugME11Dupes_ |
int | bx_ |
int | bxShiftCSC_ |
int | bxShiftGEM_ |
int | bxShiftRPC_ |
bool | duplicateTheta_ |
int | endcap_ |
bool | fixME11Edges_ |
bool | fixZonePhi_ |
const SectorProcessorLUT * | lut_ |
int | sector_ |
const GeometryTranslator * | tp_geom_ |
bool | useNewZones_ |
int | verbose_ |
std::vector< int > | zoneBoundaries_ |
int | zoneOverlap_ |
Definition at line 9 of file PrimitiveConversion.h.
void PrimitiveConversion::configure | ( | const GeometryTranslator * | tp_geom, |
const SectorProcessorLUT * | lut, | ||
int | verbose, | ||
int | endcap, | ||
int | sector, | ||
int | bx, | ||
int | bxShiftCSC, | ||
int | bxShiftRPC, | ||
int | bxShiftGEM, | ||
const std::vector< int > & | zoneBoundaries, | ||
int | zoneOverlap, | ||
bool | duplicateTheta, | ||
bool | fixZonePhi, | ||
bool | useNewZones, | ||
bool | fixME11Edges, | ||
bool | bugME11Dupes | ||
) |
Definition at line 14 of file PrimitiveConversion.cc.
References bugME11Dupes_, bx_, bxShiftCSC_, bxShiftGEM_, bxShiftRPC_, duplicateTheta_, makeMuonMisalignmentScenario::endcap, endcap_, fixME11Edges_, fixZonePhi_, lut(), lut_, sector_, tp_geom_, useNewZones_, verbose, verbose_, zoneBoundaries_, and zoneOverlap_.
Referenced by SectorProcessor::process_single_bx().
void PrimitiveConversion::convert_csc | ( | int | pc_sector, |
int | pc_station, | ||
int | pc_chamber, | ||
int | pc_segment, | ||
const TriggerPrimitive & | muon_primitive, | ||
EMTFHit & | conv_hit | ||
) | const |
Definition at line 89 of file PrimitiveConversion.cc.
References bxShiftCSC_, CSCDetId::chamber(), convert_csc_details(), L1TMuon::TriggerPrimitive::detId(), CSCDetId::endcap(), endcap_, PV3DBase< T, PVType, FrameType >::eta(), L1TMuon::TriggerPrimitive::getCSCData(), L1TMuon::GeometryTranslator::getGlobalPoint(), runTauDisplay::gp, L1TMuon::TriggerPrimitive::kCSC, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), emtf::rad_to_deg(), CSCDetId::ring(), sector_, l1t::EMTFHit::set_alct_quality(), l1t::EMTFHit::set_bend(), l1t::EMTFHit::set_bx(), l1t::EMTFHit::set_chamber(), l1t::EMTFHit::set_clct_quality(), l1t::EMTFHit::set_csc_ID(), l1t::EMTFHit::set_csc_nID(), l1t::EMTFHit::set_endcap(), l1t::EMTFHit::set_eta_sim(), l1t::EMTFHit::set_is_CSC(), l1t::EMTFHit::set_is_GEM(), l1t::EMTFHit::set_is_RPC(), l1t::EMTFHit::set_neighbor(), l1t::EMTFHit::set_pattern(), l1t::EMTFHit::set_pc_chamber(), l1t::EMTFHit::set_pc_sector(), l1t::EMTFHit::set_pc_segment(), l1t::EMTFHit::set_pc_station(), l1t::EMTFHit::set_phi_sim(), l1t::EMTFHit::set_quality(), l1t::EMTFHit::set_rho_sim(), l1t::EMTFHit::set_ring(), l1t::EMTFHit::set_sector(), l1t::EMTFHit::set_sector_idx(), l1t::EMTFHit::set_station(), l1t::EMTFHit::set_strip(), l1t::EMTFHit::set_subsector(), l1t::EMTFHit::set_subsystem(), l1t::EMTFHit::set_sync_err(), l1t::EMTFHit::set_theta_sim(), l1t::EMTFHit::set_track_num(), l1t::EMTFHit::set_valid(), l1t::EMTFHit::set_wire(), l1t::EMTFHit::set_z_sim(), l1t::EMTFHit::SetCSCDetId(), CSCDetId::station(), PV3DBase< T, PVType, FrameType >::theta(), tp_geom_, CSCDetId::triggerSector(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by lut(), and process().
void PrimitiveConversion::convert_csc_details | ( | EMTFHit & | conv_hit | ) | const |
Definition at line 188 of file PrimitiveConversion.cc.
References bugME11Dupes_, emtf::calc_eta_from_theta_deg(), emtf::calc_phi_glob_deg(), emtf::calc_phi_loc_deg(), emtf::calc_theta_deg_from_int(), gather_cfg::cout, l1t::EMTFHit::CSC_nID(), l1t::EMTFHit::Endcap(), endcap_, fixME11Edges_, fixZonePhi_, get_bt_segment(), get_bt_station(), get_fs_segment(), get_fs_zone_code(), SectorProcessorLUT::get_ph_disp(), SectorProcessorLUT::get_ph_init(), SectorProcessorLUT::get_ph_init_hard(), SectorProcessorLUT::get_ph_patt_corr(), SectorProcessorLUT::get_ph_patt_corr_sign(), SectorProcessorLUT::get_ph_zone_offset(), get_phzvl(), SectorProcessorLUT::get_th_corr_lut(), SectorProcessorLUT::get_th_disp(), SectorProcessorLUT::get_th_init(), SectorProcessorLUT::get_th_lut(), get_zone_code(), lut(), l1t::EMTFHit::Neighbor(), l1t::EMTFHit::Pattern(), l1t::EMTFHit::PC_chamber(), l1t::EMTFHit::PC_sector(), l1t::EMTFHit::PC_segment(), l1t::EMTFHit::PC_station(), l1t::EMTFHit::Phi_loc(), l1t::EMTFHit::Ring(), sector_, l1t::EMTFHit::set_bt_segment(), l1t::EMTFHit::set_bt_station(), l1t::EMTFHit::set_eta(), l1t::EMTFHit::set_fs_segment(), l1t::EMTFHit::set_fs_zone_code(), l1t::EMTFHit::set_ph_hit(), l1t::EMTFHit::set_phi_fp(), l1t::EMTFHit::set_phi_glob(), l1t::EMTFHit::set_phi_loc(), l1t::EMTFHit::set_phzvl(), l1t::EMTFHit::set_theta(), l1t::EMTFHit::set_theta_fp(), l1t::EMTFHit::set_zone_code(), l1t::EMTFHit::set_zone_hit(), l1t::EMTFHit::Station(), l1t::EMTFHit::Strip(), l1t::EMTFHit::Subsector(), l1t::EMTFHit::Theta(), verbose_, and l1t::EMTFHit::Wire().
Referenced by convert_csc(), and lut().
void PrimitiveConversion::convert_gem | ( | int | pc_sector, |
int | pc_station, | ||
int | pc_chamber, | ||
int | pc_segment, | ||
const TriggerPrimitive & | muon_primitive, | ||
EMTFHit & | conv_hit | ||
) | const |
Definition at line 666 of file PrimitiveConversion.cc.
References L1TMuon::TriggerPrimitive::GEMData::bend, L1TMuon::TriggerPrimitive::GEMData::bx, bxShiftGEM_, emtf::calc_phi_loc_int(), emtf::calc_theta_int(), EMTFGEMDetId::chamber(), relativeConstraints::chamber, emtf::construct_EMTFGEMDetId(), convert_gem_details(), l1t::EMTFHit::Endcap(), endcap_, PV3DBase< T, PVType, FrameType >::eta(), L1TMuon::TriggerPrimitive::getGEMData(), L1TMuon::GeometryTranslator::getGlobalPoint(), runTauDisplay::gp, L1TMuon::TriggerPrimitive::kGEM, L1TMuon::TriggerPrimitive::GEMData::pad_hi, L1TMuon::TriggerPrimitive::GEMData::pad_low, l1t::EMTFHit::PC_sector(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), emtf::rad_to_deg(), EMTFGEMDetId::region(), mps_fire::result, EMTFGEMDetId::ring(), relativeConstraints::ring, EMTFGEMDetId::roll(), sector_, l1t::EMTFHit::set_bend(), l1t::EMTFHit::set_bx(), l1t::EMTFHit::set_chamber(), l1t::EMTFHit::set_csc_ID(), l1t::EMTFHit::set_csc_nID(), l1t::EMTFHit::set_endcap(), l1t::EMTFHit::set_eta_sim(), l1t::EMTFHit::set_is_CSC(), l1t::EMTFHit::set_is_GEM(), l1t::EMTFHit::set_is_RPC(), l1t::EMTFHit::set_neighbor(), l1t::EMTFHit::set_pattern(), l1t::EMTFHit::set_pc_chamber(), l1t::EMTFHit::set_pc_sector(), l1t::EMTFHit::set_pc_segment(), l1t::EMTFHit::set_pc_station(), l1t::EMTFHit::set_phi_fp(), l1t::EMTFHit::set_phi_sim(), l1t::EMTFHit::set_rho_sim(), l1t::EMTFHit::set_ring(), l1t::EMTFHit::set_roll(), l1t::EMTFHit::set_sector(), l1t::EMTFHit::set_sector_idx(), l1t::EMTFHit::set_station(), l1t::EMTFHit::set_strip(), l1t::EMTFHit::set_strip_hi(), l1t::EMTFHit::set_strip_low(), l1t::EMTFHit::set_subsector(), l1t::EMTFHit::set_subsystem(), l1t::EMTFHit::set_theta_fp(), l1t::EMTFHit::set_theta_sim(), l1t::EMTFHit::set_valid(), l1t::EMTFHit::set_z_sim(), EMTFGEMDetId::station(), relativeConstraints::station, PV3DBase< T, PVType, FrameType >::theta(), tp_geom_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by lut(), and process().
void PrimitiveConversion::convert_gem_details | ( | EMTFHit & | conv_hit | ) | const |
Definition at line 831 of file PrimitiveConversion.cc.
References emtf::calc_eta_from_theta_deg(), emtf::calc_phi_glob_deg(), emtf::calc_phi_loc_deg(), emtf::calc_theta_deg_from_int(), gather_cfg::cout, l1t::EMTFHit::CSC_nID(), l1t::EMTFHit::Endcap(), get_bt_segment(), get_bt_station(), get_fs_segment(), get_fs_zone_code(), get_zone_code(), l1t::EMTFHit::Neighbor(), l1t::EMTFHit::PC_chamber(), l1t::EMTFHit::PC_sector(), l1t::EMTFHit::PC_segment(), l1t::EMTFHit::PC_station(), l1t::EMTFHit::Phi_fp(), l1t::EMTFHit::Phi_loc(), l1t::EMTFHit::Ring(), l1t::EMTFHit::Sector(), l1t::EMTFHit::set_bt_segment(), l1t::EMTFHit::set_bt_station(), l1t::EMTFHit::set_eta(), l1t::EMTFHit::set_fs_segment(), l1t::EMTFHit::set_fs_zone_code(), l1t::EMTFHit::set_phi_fp(), l1t::EMTFHit::set_phi_glob(), l1t::EMTFHit::set_phi_loc(), l1t::EMTFHit::set_theta(), l1t::EMTFHit::set_theta_fp(), l1t::EMTFHit::set_zone_code(), l1t::EMTFHit::set_zone_hit(), l1t::EMTFHit::Station(), l1t::EMTFHit::Subsector(), l1t::EMTFHit::Theta(), l1t::EMTFHit::Theta_fp(), and verbose_.
Referenced by convert_gem(), and lut().
void PrimitiveConversion::convert_rpc | ( | int | pc_sector, |
int | pc_station, | ||
int | pc_chamber, | ||
int | pc_segment, | ||
const TriggerPrimitive & | muon_primitive, | ||
EMTFHit & | conv_hit | ||
) | const |
Definition at line 449 of file PrimitiveConversion.cc.
References bxShiftRPC_, emtf::calc_phi_loc_int_rpc(), emtf::calc_theta_int_rpc(), convert_rpc_details(), L1TMuon::TriggerPrimitive::detId(), l1t::EMTFHit::Endcap(), endcap_, PV3DBase< T, PVType, FrameType >::eta(), L1TMuon::GeometryTranslator::getGlobalPoint(), L1TMuon::TriggerPrimitive::getRPCData(), runTauDisplay::gp, L1TMuon::TriggerPrimitive::kRPC, l1t::EMTFHit::PC_sector(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), emtf::rad_to_deg(), RPCDetId::region(), RPCDetId::ring(), RPCDetId::roll(), RPCDetId::sector(), sector_, l1t::EMTFHit::set_bx(), l1t::EMTFHit::set_chamber(), l1t::EMTFHit::set_endcap(), l1t::EMTFHit::set_eta_sim(), l1t::EMTFHit::set_is_CSC(), l1t::EMTFHit::set_is_GEM(), l1t::EMTFHit::set_is_RPC(), l1t::EMTFHit::set_neighbor(), l1t::EMTFHit::set_pattern(), l1t::EMTFHit::set_pc_chamber(), l1t::EMTFHit::set_pc_sector(), l1t::EMTFHit::set_pc_segment(), l1t::EMTFHit::set_pc_station(), l1t::EMTFHit::set_phi_fp(), l1t::EMTFHit::set_phi_sim(), l1t::EMTFHit::set_rho_sim(), l1t::EMTFHit::set_ring(), l1t::EMTFHit::set_roll(), l1t::EMTFHit::set_sector(), l1t::EMTFHit::set_sector_idx(), l1t::EMTFHit::set_sector_RPC(), l1t::EMTFHit::set_station(), l1t::EMTFHit::set_strip(), l1t::EMTFHit::set_strip_hi(), l1t::EMTFHit::set_strip_low(), l1t::EMTFHit::set_subsector(), l1t::EMTFHit::set_subsector_RPC(), l1t::EMTFHit::set_subsystem(), l1t::EMTFHit::set_theta_fp(), l1t::EMTFHit::set_theta_sim(), l1t::EMTFHit::set_time(), l1t::EMTFHit::set_valid(), l1t::EMTFHit::set_z_sim(), l1t::EMTFHit::SetRPCDetId(), RPCDetId::station(), RPCDetId::subsector(), PV3DBase< T, PVType, FrameType >::theta(), tp_geom_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by lut(), and process().
void PrimitiveConversion::convert_rpc_details | ( | EMTFHit & | conv_hit, |
const bool | use_cppf_lut | ||
) | const |
Definition at line 571 of file PrimitiveConversion.cc.
References emtf::calc_eta_from_theta_deg(), emtf::calc_phi_glob_deg(), emtf::calc_phi_loc_deg(), emtf::calc_theta_deg_from_int(), gather_cfg::cout, l1t::EMTFHit::Endcap(), get_bt_segment(), get_bt_station(), SectorProcessorLUT::get_cppf_ph_lut(), SectorProcessorLUT::get_cppf_th_lut(), get_fs_segment(), get_fs_zone_code(), get_zone_code(), lut(), l1t::EMTFHit::Neighbor(), l1t::EMTFHit::PC_chamber(), l1t::EMTFHit::PC_sector(), l1t::EMTFHit::PC_segment(), l1t::EMTFHit::PC_station(), l1t::EMTFHit::Phi_fp(), l1t::EMTFHit::Phi_loc(), l1t::EMTFHit::Ring(), l1t::EMTFHit::Roll(), l1t::EMTFHit::Sector_RPC(), l1t::EMTFHit::set_bt_segment(), l1t::EMTFHit::set_bt_station(), l1t::EMTFHit::set_eta(), l1t::EMTFHit::set_fs_segment(), l1t::EMTFHit::set_fs_zone_code(), l1t::EMTFHit::set_phi_fp(), l1t::EMTFHit::set_phi_glob(), l1t::EMTFHit::set_phi_loc(), l1t::EMTFHit::set_theta(), l1t::EMTFHit::set_theta_fp(), l1t::EMTFHit::set_zone_code(), l1t::EMTFHit::set_zone_hit(), l1t::EMTFHit::Station(), l1t::EMTFHit::Strip_hi(), l1t::EMTFHit::Strip_low(), l1t::EMTFHit::Subsector_RPC(), l1t::EMTFHit::Theta(), l1t::EMTFHit::Theta_fp(), and verbose_.
Referenced by convert_rpc(), and lut().
int PrimitiveConversion::get_bt_segment | ( | const EMTFHit & | conv_hit, |
int | fw_station, | ||
int | fw_cscid, | ||
int | pc_segment | ||
) | const |
Definition at line 1000 of file PrimitiveConversion.cc.
Referenced by convert_csc_details(), convert_gem_details(), convert_rpc_details(), and lut().
int PrimitiveConversion::get_bt_station | ( | const EMTFHit & | conv_hit, |
int | fw_station, | ||
int | fw_cscid, | ||
int | pc_segment | ||
) | const |
Definition at line 995 of file PrimitiveConversion.cc.
Referenced by convert_csc_details(), convert_gem_details(), convert_rpc_details(), and lut().
int PrimitiveConversion::get_fs_segment | ( | const EMTFHit & | conv_hit, |
int | fw_station, | ||
int | fw_cscid, | ||
int | pc_segment | ||
) | const |
Definition at line 962 of file PrimitiveConversion.cc.
References gen::n, l1t::EMTFHit::Neighbor(), and l1t::EMTFHit::Ring().
Referenced by convert_csc_details(), convert_gem_details(), convert_rpc_details(), and lut().
int PrimitiveConversion::get_fs_zone_code | ( | const EMTFHit & | conv_hit | ) | const |
Definition at line 939 of file PrimitiveConversion.cc.
References l1t::EMTFHit::Ring(), l1t::EMTFHit::Station(), and useNewZones_.
Referenced by convert_csc_details(), convert_gem_details(), convert_rpc_details(), get_zone_code(), and lut().
int PrimitiveConversion::get_phzvl | ( | const EMTFHit & | conv_hit, |
int | zone_code | ||
) | const |
Definition at line 920 of file PrimitiveConversion.cc.
References l1t::EMTFHit::Ring(), and l1t::EMTFHit::Station().
Referenced by convert_csc_details(), and lut().
int PrimitiveConversion::get_zone_code | ( | const EMTFHit & | conv_hit, |
int | th | ||
) | const |
Definition at line 893 of file PrimitiveConversion.cc.
References get_fs_zone_code(), L1TMuon::TriggerPrimitive::kCSC, emtf::NUM_ZONES, l1t::EMTFHit::Ring(), l1t::EMTFHit::Station(), l1t::EMTFHit::Subsystem(), zoneBoundaries_, and zoneOverlap_.
Referenced by convert_csc_details(), convert_gem_details(), convert_rpc_details(), and lut().
|
inline |
Definition at line 26 of file PrimitiveConversion.h.
References convert_csc(), convert_csc_details(), convert_gem(), convert_gem_details(), convert_rpc(), convert_rpc_details(), get_bt_segment(), get_bt_station(), get_fs_segment(), get_fs_zone_code(), get_phzvl(), get_zone_code(), is_valid_for_run2(), and lut_.
Referenced by configure(), convert_csc_details(), and convert_rpc_details().
void PrimitiveConversion::process | ( | const std::map< int, TriggerPrimitiveCollection > & | selected_prim_map, |
EMTFHitCollection & | conv_hits | ||
) | const |
Definition at line 49 of file PrimitiveConversion.cc.
References convert_csc(), convert_gem(), convert_rpc(), L1TMuon::TriggerPrimitive::kCSC, L1TMuon::TriggerPrimitive::kGEM, L1TMuon::TriggerPrimitive::kRPC, and sector_.
Referenced by SectorProcessor::process_single_bx().
|
private |
Definition at line 83 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc_details().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure().
|
private |
Definition at line 78 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc().
|
private |
Definition at line 78 of file PrimitiveConversion.h.
Referenced by configure(), and convert_gem().
|
private |
Definition at line 78 of file PrimitiveConversion.h.
Referenced by configure(), and convert_rpc().
|
private |
Definition at line 82 of file PrimitiveConversion.h.
Referenced by configure().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc(), convert_csc_details(), convert_gem(), and convert_rpc().
|
private |
Definition at line 82 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc_details().
|
private |
Definition at line 82 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc_details().
|
private |
Definition at line 74 of file PrimitiveConversion.h.
Referenced by configure(), and lut().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc(), convert_csc_details(), convert_gem(), convert_rpc(), and process().
|
private |
Definition at line 72 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc(), convert_gem(), and convert_rpc().
|
private |
Definition at line 82 of file PrimitiveConversion.h.
Referenced by configure(), and get_fs_zone_code().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc_details(), convert_gem_details(), and convert_rpc_details().
|
private |
Definition at line 80 of file PrimitiveConversion.h.
Referenced by configure(), and get_zone_code().
|
private |
Definition at line 81 of file PrimitiveConversion.h.
Referenced by configure(), and get_zone_code().