#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 303 of file GeometryTranslator.cc.
References cmsswSequenceInfo::tp.
Referenced by calculateBendAngle().
|
private |
Definition at line 295 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getCSCSpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 299 of file GeometryTranslator.cc.
References getCSCSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 351 of file GeometryTranslator.cc.
References cmsswSequenceInfo::tp.
Referenced by calculateBendAngle().
|
private |
Definition at line 346 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), PV3DBase< T, PVType, FrameType >::eta(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 348 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 314 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 205 of file GeometryTranslator.cc.
Referenced by calculateBendAngle().
|
private |
Definition at line 197 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getGEMSpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 201 of file GeometryTranslator.cc.
References getGEMSpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 179 of file GeometryTranslator.cc.
References cmsswSequenceInfo::tp.
Referenced by calculateBendAngle().
|
private |
Definition at line 171 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getME0SpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 175 of file GeometryTranslator.cc.
References getME0SpecificPoint(), PV3DBase< T, PVType, FrameType >::phi(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalPhi().
|
private |
Definition at line 231 of file GeometryTranslator.cc.
Referenced by calculateBendAngle().
|
private |
Definition at line 221 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getRPCSpecificPoint(), and cmsswSequenceInfo::tp.
Referenced by calculateGlobalEta().
|
private |
Definition at line 225 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(), and EMTFSetup::reload().
|
inline |
Definition at line 58 of file GeometryTranslator.h.
References _geocsc.
|
private |
Definition at line 240 of file GeometryTranslator.cc.
References _geocsc, cms::cuda::assert(), CSCGeometry::chamber(), CSCPatternBank::getLegacyPosition(), triggerObjects_cff::id, isCSCCounterClockwise(), CSCConstants::KEY_ALCT_LAYER, phase1PixelTopology::layer, PV3DBase< T, PVType, FrameType >::mag(), hltrates_dqm_sourceclient-live_cfg::offset, topSingleLeptonDQM_PU_cfi::pattern, PV3DBase< T, PVType, FrameType >::phi(), digitizers_cfi::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 185 of file GeometryTranslator.cc.
References _geogem, cms::cuda::assert(), GEMEtaPartition::centreOfPad(), GEMGeometry::etaPartition(), runTauDisplay::gp, triggerObjects_cff::id, GeomDet::surface(), Surface::toGlobal(), 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(), 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 _geome0, cms::cuda::assert(), ME0EtaPartition::centreOfStrip(), ME0Geometry::chamber(), relativeConstraints::chamber, ME0Layer::etaPartition(), runTauDisplay::gp, triggerObjects_cff::id, GeomDet::surface(), Surface::toGlobal(), and cmsswSequenceInfo::tp.
Referenced by calcME0SpecificEta(), calcME0SpecificPhi(), and getGlobalPoint().
|
inline |
Definition at line 59 of file GeometryTranslator.h.
References _georpc.
Referenced by PrimitiveConversion::convert_rpc(), and EMTFSubsystemCollector::extractPrimitives().
|
private |
Definition at line 209 of file GeometryTranslator.cc.
References _georpc, cms::cuda::assert(), RPCRoll::centreOfStrip(), runTauDisplay::gp, triggerObjects_cff::id, RPCGeometry::roll(), digitizers_cfi::strip, GeomDet::surface(), Surface::toGlobal(), and cmsswSequenceInfo::tp.
Referenced by calcRPCSpecificEta(), calcRPCSpecificPhi(), and getGlobalPoint().
|
private |
Definition at line 305 of file GeometryTranslator.cc.
References funct::abs(), phase1PixelTopology::layer, 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(), and getGEMSpecificPoint().
|
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().