#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 |
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 |
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 12 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 87 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 >::phi(), emtf::rad_to_deg(), CSCDetId::ring(), 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_sim(), l1t::EMTFHit::set_quality(), 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::SetCSCDetId(), CSCDetId::station(), PV3DBase< T, PVType, FrameType >::theta(), tp_geom_, and CSCDetId::triggerSector().
Referenced by lut(), and process().
void PrimitiveConversion::convert_csc_details | ( | EMTFHit & | conv_hit | ) | const |
Definition at line 174 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_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 603 of file PrimitiveConversion.cc.
References bxShiftGEM_, emtf::calc_phi_loc_int(), emtf::calc_theta_int(), relativeConstraints::chamber, GEMDetId::chamber(), convert_gem_details(), L1TMuon::TriggerPrimitive::detId(), l1t::EMTFHit::Endcap(), endcap_, PV3DBase< T, PVType, FrameType >::eta(), L1TMuon::TriggerPrimitive::getGEMData(), L1TMuon::GeometryTranslator::getGlobalPoint(), runTauDisplay::gp, L1TMuon::TriggerPrimitive::kGEM, PV3DBase< T, PVType, FrameType >::phi(), emtf::rad_to_deg(), GEMDetId::region(), mps_fire::result, GEMDetId::ring(), relativeConstraints::ring, GEMDetId::roll(), sector_, 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_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::SetGEMDetId(), GEMDetId::station(), relativeConstraints::station, PV3DBase< T, PVType, FrameType >::theta(), and tp_geom_.
Referenced by lut(), and process().
void PrimitiveConversion::convert_gem_details | ( | EMTFHit & | conv_hit | ) | const |
Definition at line 758 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_segment(), l1t::EMTFHit::PC_station(), l1t::EMTFHit::Phi_fp(), l1t::EMTFHit::Phi_loc(), l1t::EMTFHit::Ring(), l1t::EMTFHit::Sector(), 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 434 of file PrimitiveConversion.cc.
References bxShiftRPC_, emtf::calc_phi_loc_int(), emtf::calc_theta_int(), 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, 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_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_valid(), l1t::EMTFHit::SetRPCDetId(), RPCDetId::station(), RPCDetId::subsector(), PV3DBase< T, PVType, FrameType >::theta(), and tp_geom_.
Referenced by lut(), and process().
void PrimitiveConversion::convert_rpc_details | ( | EMTFHit & | conv_hit | ) | const |
Definition at line 529 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(), get_fs_segment(), get_fs_zone_code(), get_zone_code(), l1t::EMTFHit::Neighbor(), l1t::EMTFHit::PC_chamber(), l1t::EMTFHit::PC_segment(), l1t::EMTFHit::PC_station(), l1t::EMTFHit::Phi_fp(), l1t::EMTFHit::Phi_loc(), l1t::EMTFHit::Ring(), l1t::EMTFHit::Sector(), 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_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 927 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 922 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 889 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 866 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 847 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 820 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(), and lut_.
Referenced by configure(), and convert_csc_details().
void PrimitiveConversion::process | ( | const std::map< int, TriggerPrimitiveCollection > & | selected_prim_map, |
EMTFHitCollection & | conv_hits | ||
) | const |
Definition at line 47 of file PrimitiveConversion.cc.
References convert_csc(), convert_gem(), convert_rpc(), L1TMuon::TriggerPrimitive::kCSC, L1TMuon::TriggerPrimitive::kGEM, L1TMuon::TriggerPrimitive::kRPC, and sector_.
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().
|
private |
Definition at line 81 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc_details().
|
private |
Definition at line 74 of file PrimitiveConversion.h.
Referenced by configure().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure(), and convert_gem().
|
private |
Definition at line 76 of file PrimitiveConversion.h.
Referenced by configure(), and convert_rpc().
|
private |
Definition at line 80 of file PrimitiveConversion.h.
Referenced by configure().
|
private |
Definition at line 74 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc(), convert_csc_details(), convert_gem(), and convert_rpc().
|
private |
Definition at line 80 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc_details().
|
private |
Definition at line 80 of file PrimitiveConversion.h.
Referenced by configure(), and convert_csc_details().
|
private |
Definition at line 72 of file PrimitiveConversion.h.
Referenced by configure(), and lut().
|
private |
Definition at line 74 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc(), convert_csc_details(), convert_gem(), convert_gem_details(), convert_rpc(), convert_rpc_details(), and process().
|
private |
Definition at line 70 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc(), convert_gem(), and convert_rpc().
|
private |
Definition at line 80 of file PrimitiveConversion.h.
Referenced by configure(), and get_fs_zone_code().
|
private |
Definition at line 74 of file PrimitiveConversion.h.
Referenced by configure(), convert_csc_details(), convert_gem_details(), and convert_rpc_details().
|
private |
Definition at line 78 of file PrimitiveConversion.h.
Referenced by configure(), and get_zone_code().
|
private |
Definition at line 79 of file PrimitiveConversion.h.
Referenced by configure(), and get_zone_code().