#include <RPCIntegrator.h>
Public Member Functions | |
L1Phase2MuDTPhDigi | createL1Phase2MuDTPhDigi (RPCDetId rpcDetId, int rpc_bx, double rpc_time, double rpc_global_phi, double phiB, int rpc_flag) |
void | finish () |
bool | hasPosRF_rpc (int wh, int sec) const |
void | initialise (const edm::EventSetup &iEventSetup, double shift_back_fromDT) |
void | makeRPCOnlySegments () |
RPCMetaprimitive * | matchDTwithRPC (cmsdt::metaPrimitive *dt_metaprimitive) |
void | matchWithDTAndUseRPCTime (std::vector< cmsdt::metaPrimitive > &dt_metaprimitives) |
double | phi_DT_MP_conv (double rpc_global_phi, int rpcSector) |
double | phiBending (RPCMetaprimitive *rpc_hit_1, RPCMetaprimitive *rpc_hit_2) |
int | phiInDTTPFormat (double rpc_global_phi, int rpcSector) |
void | prepareMetaPrimitives (edm::Handle< RPCRecHitCollection > rpcRecHits) |
void | removeRPCHitsUsed () |
GlobalPoint | RPCGlobalPosition (RPCDetId rpcId, const RPCRecHit &rpcIt) const |
RPCIntegrator (const edm::ParameterSet &pset, edm::ConsumesCollector &iC) | |
void | storeRPCSingleHits () |
~RPCIntegrator () | |
Public Attributes | |
std::vector< RPCMetaprimitive > | RPCMetaprimitives_ |
std::vector< L1Phase2MuDTPhDigi > | rpcRecHits_translated_ |
Private Attributes | |
DTGeometry const * | dtGeo_ |
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | dtGeomH_ |
int | m_bx_window_ |
const bool | m_debug_ |
int | m_max_quality_to_overwrite_t0_ |
double | m_phi_window_ |
bool | m_storeAllRPCHits_ |
RPCGeometry const * | rpcGeo_ |
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > | rpcGeomH_ |
double | shift_back_ |
Static Private Attributes | |
static constexpr double | distance_between_two_rpc_layers_ = 35 |
static constexpr double | R_ [2][2] = {{410.0, 444.8}, {492.7, 527.3}} |
Definition at line 55 of file RPCIntegrator.h.
RPCIntegrator::RPCIntegrator | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 13 of file RPCIntegrator.cc.
References dtGeomH_, edm::ConsumesCollector::esConsumes(), LogDebug, m_debug_, and rpcGeomH_.
RPCIntegrator::~RPCIntegrator | ( | ) |
L1Phase2MuDTPhDigi RPCIntegrator::createL1Phase2MuDTPhDigi | ( | RPCDetId | rpcDetId, |
int | rpc_bx, | ||
double | rpc_time, | ||
double | rpc_global_phi, | ||
double | phiB, | ||
int | rpc_flag | ||
) |
Definition at line 194 of file RPCIntegrator.cc.
References RPCDetId::layer(), LogDebug, m_debug_, cmsdt::PHIBRES_CONV, phiInDTTPFormat(), RPCDetId::ring(), RPCDetId::sector(), and RPCDetId::station().
Referenced by makeRPCOnlySegments(), and storeRPCSingleHits().
void RPCIntegrator::finish | ( | ) |
Definition at line 49 of file RPCIntegrator.cc.
Referenced by progressbar.ProgressBar::__next__().
bool RPCIntegrator::hasPosRF_rpc | ( | int | wh, |
int | sec | ||
) | const |
Definition at line 262 of file RPCIntegrator.cc.
References fileinputsource_cfi::sec.
Referenced by phiBending().
void RPCIntegrator::initialise | ( | const edm::EventSetup & | iEventSetup, |
double | shift_back_fromDT | ||
) |
Definition at line 31 of file RPCIntegrator.cc.
References dtGeo_, dtGeomH_, edm::EventSetup::getHandle(), patZpeak::handle, LogDebug, m_debug_, rpcGeo_, rpcGeomH_, and shift_back_.
void RPCIntegrator::makeRPCOnlySegments | ( | ) |
Definition at line 81 of file RPCIntegrator.cc.
References funct::abs(), RPCRecHit::BunchX(), createL1Phase2MuDTPhDigi(), RPCDetId::layer(), m_storeAllRPCHits_, SiStripPI::max, PV3DBase< T, PVType, FrameType >::phi(), phiBending(), RPCDetId::ring(), cmsdt::RPC_ASSOCIATE, RPCMetaprimitive::rpc_t0, RPCMetaprimitive::rpcFlag, RPCMetaprimitives_, rpcRecHits_translated_, RPCDetId::sector(), RPCDetId::station(), and FrontierCondition_GT_autoExpress_cfi::t0.
RPCMetaprimitive * RPCIntegrator::matchDTwithRPC | ( | cmsdt::metaPrimitive * | dt_metaprimitive | ) |
Definition at line 158 of file RPCIntegrator.cc.
References funct::abs(), HLT_2024v14_cff::delta_phi, createfilelist::int, m_bx_window_, m_phi_window_, SiStripPI::max, cmsdt::metaPrimitive::phi, phi_DT_MP_conv(), cmsdt::PHIBRES_CONV, cmsdt::metaPrimitive::rawId, RPCDetId::ring(), cmsdt::RPC_ASSOCIATE, RPCMetaprimitive::rpcFlag, RPCMetaprimitives_, DTChamberId::sector(), RPCDetId::sector(), shift_back_, DTChamberId::station(), RPCDetId::station(), cmsdt::metaPrimitive::t0, and DTChamberId::wheel().
Referenced by matchWithDTAndUseRPCTime().
void RPCIntegrator::matchWithDTAndUseRPCTime | ( | std::vector< cmsdt::metaPrimitive > & | dt_metaprimitives | ) |
Definition at line 67 of file RPCIntegrator.cc.
References m_max_quality_to_overwrite_t0_, matchDTwithRPC(), cmsdt::RPC_CONFIRM, RPCMetaprimitive::rpc_t0, cmsdt::RPC_TIME, and shift_back_.
double RPCIntegrator::phi_DT_MP_conv | ( | double | rpc_global_phi, |
int | rpcSector | ||
) |
Definition at line 240 of file RPCIntegrator.cc.
References edm::conversion(), and M_PI.
Referenced by matchDTwithRPC(), phiBending(), and phiInDTTPFormat().
double RPCIntegrator::phiBending | ( | RPCMetaprimitive * | rpc_hit_1, |
RPCMetaprimitive * | rpc_hit_2 | ||
) |
Definition at line 220 of file RPCIntegrator.cc.
References DTGeometry::chamber(), distance_between_two_rpc_layers_, dtGeo_, RPCMetaprimitive::global_position, hasPosRF_rpc(), PV3DBase< T, PVType, FrameType >::phi(), phi_DT_MP_conv(), RPCDetId::ring(), RPCMetaprimitive::rpc_id, RPCDetId::sector(), slope, RPCDetId::station(), GeomDet::toGlobal(), GeomDet::toLocal(), and PV3DBase< T, PVType, FrameType >::x().
Referenced by makeRPCOnlySegments().
int RPCIntegrator::phiInDTTPFormat | ( | double | rpc_global_phi, |
int | rpcSector | ||
) |
Definition at line 234 of file RPCIntegrator.cc.
References phi_DT_MP_conv(), and cmsdt::PHIBRES_CONV.
Referenced by createL1Phase2MuDTPhDigi().
void RPCIntegrator::prepareMetaPrimitives | ( | edm::Handle< RPCRecHitCollection > | rpcRecHits | ) |
Definition at line 51 of file RPCIntegrator.cc.
References cmsdt::BX_SHIFT, cmsdt::LHC_CLK_FREQ, RPCDetId::region(), cmsdt::RPC_HIT, RPCGlobalPosition(), RPCMetaprimitives_, dtTriggerPhase2PrimitiveDigis_cfi::rpcRecHits, and rpcRecHits_translated_.
void RPCIntegrator::removeRPCHitsUsed | ( | ) |
Definition at line 141 of file RPCIntegrator.cc.
References LogDebug, m_debug_, m_storeAllRPCHits_, cmsdt::RPC_ASSOCIATE, and rpcRecHits_translated_.
GlobalPoint RPCIntegrator::RPCGlobalPosition | ( | RPCDetId | rpcId, |
const RPCRecHit & | rpcIt | ||
) | const |
Definition at line 254 of file RPCIntegrator.cc.
References RPCGeometry::idToDet(), RPCRecHit::localPosition(), rpcGeo_, GeomDet::surface(), and Surface::toGlobal().
Referenced by prepareMetaPrimitives().
void RPCIntegrator::storeRPCSingleHits | ( | ) |
Definition at line 130 of file RPCIntegrator.cc.
References createL1Phase2MuDTPhDigi(), cmsdt::RPC_ASSOCIATE, RPCMetaprimitives_, and rpcRecHits_translated_.
|
staticprivate |
Definition at line 97 of file RPCIntegrator.h.
Referenced by phiBending().
|
private |
Definition at line 91 of file RPCIntegrator.h.
Referenced by initialise(), and phiBending().
|
private |
Definition at line 88 of file RPCIntegrator.h.
Referenced by initialise(), and RPCIntegrator().
|
private |
Definition at line 85 of file RPCIntegrator.h.
Referenced by matchDTwithRPC().
|
private |
Definition at line 83 of file RPCIntegrator.h.
Referenced by createL1Phase2MuDTPhDigi(), initialise(), removeRPCHitsUsed(), RPCIntegrator(), and ~RPCIntegrator().
|
private |
Definition at line 84 of file RPCIntegrator.h.
Referenced by matchWithDTAndUseRPCTime().
|
private |
Definition at line 86 of file RPCIntegrator.h.
Referenced by matchDTwithRPC().
|
private |
Definition at line 87 of file RPCIntegrator.h.
Referenced by makeRPCOnlySegments(), and removeRPCHitsUsed().
|
staticprivate |
Definition at line 96 of file RPCIntegrator.h.
|
private |
Definition at line 92 of file RPCIntegrator.h.
Referenced by initialise(), and RPCGlobalPosition().
|
private |
Definition at line 89 of file RPCIntegrator.h.
Referenced by initialise(), and RPCIntegrator().
std::vector<RPCMetaprimitive> RPCIntegrator::RPCMetaprimitives_ |
Definition at line 80 of file RPCIntegrator.h.
Referenced by makeRPCOnlySegments(), matchDTwithRPC(), prepareMetaPrimitives(), and storeRPCSingleHits().
std::vector<L1Phase2MuDTPhDigi> RPCIntegrator::rpcRecHits_translated_ |
Definition at line 79 of file RPCIntegrator.h.
Referenced by makeRPCOnlySegments(), prepareMetaPrimitives(), removeRPCHitsUsed(), and storeRPCSingleHits().
|
private |
Definition at line 99 of file RPCIntegrator.h.
Referenced by initialise(), matchDTwithRPC(), and matchWithDTAndUseRPCTime().