#include <GeometryTranslator.h>
Public Member Functions | |
double | calculateBendAngle (const TriggerPrimitive &) const |
double | calculateGlobalEta (const TriggerPrimitive &) const |
double | calculateGlobalPhi (const TriggerPrimitive &) const |
void | checkAndUpdateGeometry (const edm::EventSetup &) |
GeometryTranslator (edm::ConsumesCollector) | |
const CSCGeometry & | getCSCGeometry () const |
const DTGeometry & | getDTGeometry () const |
const GEMGeometry & | getGEMGeometry () const |
GlobalPoint | getGlobalPoint (const TriggerPrimitive &) const |
const MagneticField & | getMagneticField () const |
const ME0Geometry & | getME0Geometry () const |
const RPCGeometry & | getRPCGeometry () const |
~GeometryTranslator () | |
Private Attributes | |
edm::ESHandle< CSCGeometry > | _geocsc |
edm::ESHandle< DTGeometry > | _geodt |
edm::ESHandle< GEMGeometry > | _geogem |
unsigned long long | _geom_cache_id |
edm::ESHandle< ME0Geometry > | _geome0 |
edm::ESHandle< RPCGeometry > | _georpc |
edm::ESHandle< MagneticField > | _magfield |
unsigned long long | _magfield_cache_id |
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > | geocscToken_ |
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | geodtToken_ |
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > | geogemToken_ |
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > | geome0Token_ |
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > | georpcToken_ |
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | magfieldToken_ |
Definition at line 44 of file GeometryTranslator.h.
GeometryTranslator::GeometryTranslator | ( | edm::ConsumesCollector | iC | ) |
Definition at line 25 of file GeometryTranslator.cc.
GeometryTranslator::~GeometryTranslator | ( | ) |
Definition at line 35 of file GeometryTranslator.cc.
|
private |
Definition at line 331 of file GeometryTranslator.cc.
References cmsswSequenceInfo::tp.
Referenced by calculateBendAngle().
|
private |
Definition at line 323 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getCSCSpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 327 of file GeometryTranslator.cc.
References getCSCSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 379 of file GeometryTranslator.cc.
References cmsswSequenceInfo::tp.
Referenced by calculateBendAngle().
|
private |
Definition at line 374 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), PV3DBase< T, PVType, FrameType >::eta(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 376 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 342 of file GeometryTranslator.cc.
References _geodt, DTGeometry::chamber(), M_PI, PV3DBase< T, PVType, FrameType >::mag(), DTChamberId::station(), PV3DBase< T, PVType, FrameType >::theta(), and cmsswSequenceInfo::tp.
Referenced by calcDTSpecificEta(), calcDTSpecificPhi(), and getGlobalPoint().
|
private |
Definition at line 233 of file GeometryTranslator.cc.
Referenced by calculateBendAngle().
|
private |
Definition at line 225 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getGEMSpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 229 of file GeometryTranslator.cc.
References getGEMSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 207 of file GeometryTranslator.cc.
References cmsswSequenceInfo::tp.
Referenced by calculateBendAngle().
|
private |
Definition at line 199 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getME0SpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 203 of file GeometryTranslator.cc.
References getME0SpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 259 of file GeometryTranslator.cc.
Referenced by calculateBendAngle().
|
private |
Definition at line 249 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getRPCSpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 253 of file GeometryTranslator.cc.
References getRPCSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
double GeometryTranslator::calculateBendAngle | ( | const TriggerPrimitive & | tp | ) | const |
Definition at line 83 of file GeometryTranslator.cc.
References calcCSCSpecificBend(), calcDTSpecificBend(), calcGEMSpecificBend(), calcME0SpecificBend(), calcRPCSpecificBend(), L1TMuon::kCSC, L1TMuon::kDT, L1TMuon::kGEM, L1TMuon::kME0, L1TMuon::kRPC, dqmiodatasetharvest::nan, and cmsswSequenceInfo::tp.
double GeometryTranslator::calculateGlobalEta | ( | const TriggerPrimitive & | tp | ) | const |
Definition at line 37 of file GeometryTranslator.cc.
References calcCSCSpecificEta(), calcDTSpecificEta(), calcGEMSpecificEta(), calcME0SpecificEta(), calcRPCSpecificEta(), L1TMuon::kCSC, L1TMuon::kDT, L1TMuon::kGEM, L1TMuon::kME0, L1TMuon::kRPC, dqmiodatasetharvest::nan, and cmsswSequenceInfo::tp.
double GeometryTranslator::calculateGlobalPhi | ( | const TriggerPrimitive & | tp | ) | const |
Definition at line 60 of file GeometryTranslator.cc.
References calcCSCSpecificPhi(), calcDTSpecificPhi(), calcGEMSpecificPhi(), calcME0SpecificPhi(), calcRPCSpecificPhi(), L1TMuon::kCSC, L1TMuon::kDT, L1TMuon::kGEM, L1TMuon::kME0, L1TMuon::kRPC, dqmiodatasetharvest::nan, and cmsswSequenceInfo::tp.
void GeometryTranslator::checkAndUpdateGeometry | ( | const edm::EventSetup & | es | ) |
Definition at line 131 of file GeometryTranslator.cc.
References _geocsc, _geodt, _geogem, _geom_cache_id, _geome0, _georpc, _magfield, _magfield_cache_id, geocscToken_, geodtToken_, geogemToken_, relativeConstraints::geom, geome0Token_, georpcToken_, edm::EventSetup::get(), volumeBasedMagneticField_160812_cfi::magfield, and magfieldToken_.
Referenced by Phase2L1TGMTStubProducer::produce(), EMTFSetup::reload(), and emtf::phase2::EMTFContext::update().
|
inline |
Definition at line 58 of file GeometryTranslator.h.
References _geocsc.
|
private |
Definition at line 268 of file GeometryTranslator.cc.
References _geocsc, cms::cuda::assert(), CSCGeometry::chamber(), CSCPatternBank::getLegacyPosition(), l1ctLayer2EG_cff::id, isCSCCounterClockwise(), CSCConstants::KEY_ALCT_LAYER, PV3DBase< T, PVType, FrameType >::mag(), hltrates_dqm_sourceclient-live_cfg::offset, topSingleLeptonDQM_PU_cfi::pattern, PV3DBase< T, PVType, FrameType >::phi(), nano_mu_digi_cff::strip, PV3DBase< T, PVType, FrameType >::theta(), cmsswSequenceInfo::tp, and Geom::Phi< T1, Range >::value().
Referenced by calcCSCSpecificEta(), calcCSCSpecificPhi(), and getGlobalPoint().
|
inline |
Definition at line 57 of file GeometryTranslator.h.
References _geodt.
|
inline |
Definition at line 60 of file GeometryTranslator.h.
References _geogem.
|
private |
Definition at line 213 of file GeometryTranslator.cc.
References _geogem, cms::cuda::assert(), GEMGeometry::etaPartition(), l1ctLayer2EG_cff::id, nano_mu_digi_cff::roll, and cmsswSequenceInfo::tp.
Referenced by calcGEMSpecificEta(), calcGEMSpecificPhi(), and getGlobalPoint().
GlobalPoint GeometryTranslator::getGlobalPoint | ( | const TriggerPrimitive & | tp | ) | const |
Definition at line 106 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), getCSCSpecificPoint(), getGEMSpecificPoint(), getME0SpecificPoint(), getRPCSpecificPoint(), L1TMuon::kCSC, L1TMuon::kDT, L1TMuon::kGEM, L1TMuon::kME0, L1TMuon::kRPC, dqmiodatasetharvest::nan, runTheMatrix::ret, and cmsswSequenceInfo::tp.
Referenced by L1TPhase2GMTEndcapStubProcessor::buildCSCOnlyStub(), L1TPhase2GMTEndcapStubProcessor::buildRPCOnlyStub(), emtf::phase2::RPCTPConverter::convert(), emtf::phase2::GE0TPConverter::convert(), emtf::phase2::ME0TPConverter::convert(), emtf::phase2::GEMTPConverter::convert(), emtf::phase2::CSCTPConverter::convert(), PrimitiveConversion::convert_csc(), PrimitiveConversion::convert_dt(), PrimitiveConversion::convert_gem(), PrimitiveConversion::convert_me0(), and PrimitiveConversion::convert_rpc().
|
inline |
Definition at line 63 of file GeometryTranslator.h.
References _magfield.
|
inline |
Definition at line 61 of file GeometryTranslator.h.
References _geome0.
|
private |
Definition at line 153 of file GeometryTranslator.cc.
References _geogem, _geome0, ME0Geometry::chamber(), relativeConstraints::chamber, ME0Layer::etaPartition(), GEMChamber::etaPartition(), Exception, MuonSubdetId::GEM, l1ctLayer2EG_cff::id, l1ctLayer1_patternWriters_cff::partition, nano_mu_digi_cff::roll, DetId::subdetId(), GEMGeometry::superChamber(), and cmsswSequenceInfo::tp.
Referenced by calcME0SpecificEta(), calcME0SpecificPhi(), and getGlobalPoint().
|
inline |
Definition at line 59 of file GeometryTranslator.h.
References _georpc.
Referenced by emtf::phase2::RPCTPConverter::convert(), PrimitiveConversion::convert_rpc(), and EMTFSubsystemCollector::extractPrimitives().
|
private |
Definition at line 237 of file GeometryTranslator.cc.
References _georpc, cms::cuda::assert(), l1ctLayer2EG_cff::id, nano_mu_digi_cff::roll, RPCGeometry::roll(), nano_mu_digi_cff::strip, and cmsswSequenceInfo::tp.
Referenced by calcRPCSpecificEta(), calcRPCSpecificPhi(), and getGlobalPoint().
|
private |
Definition at line 333 of file GeometryTranslator.cc.
References funct::abs(), M_PI, and me0TriggerPseudoDigis_cff::nStrips.
Referenced by getCSCSpecificPoint().
|
private |
Definition at line 68 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry(), getCSCGeometry(), and getCSCSpecificPoint().
|
private |
Definition at line 67 of file GeometryTranslator.h.
Referenced by calcDTSpecificPoint(), checkAndUpdateGeometry(), and getDTGeometry().
|
private |
Definition at line 70 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry(), getGEMGeometry(), getGEMSpecificPoint(), and getME0SpecificPoint().
|
private |
Definition at line 66 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 71 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry(), getME0Geometry(), and getME0SpecificPoint().
|
private |
Definition at line 69 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry(), getRPCGeometry(), and getRPCSpecificPoint().
|
private |
Definition at line 80 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry(), and getMagneticField().
|
private |
Definition at line 79 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 74 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 73 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 76 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 77 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 75 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 81 of file GeometryTranslator.h.
Referenced by checkAndUpdateGeometry().