#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 L1TMuon::TriggerPrimitive::CSCData::bend, and L1TMuon::TriggerPrimitive::getCSCData().
Referenced by calculateBendAngle().
|
private |
Definition at line 295 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), and getCSCSpecificPoint().
Referenced by calculateGlobalEta().
|
private |
Definition at line 299 of file GeometryTranslator.cc.
References getCSCSpecificPoint(), and PV3DBase< T, PVType, FrameType >::phi().
Referenced by calculateGlobalPhi().
|
private |
Definition at line 351 of file GeometryTranslator.cc.
References L1TMuon::TriggerPrimitive::DTData::bendingAngle, and L1TMuon::TriggerPrimitive::getDTData().
Referenced by calculateBendAngle().
|
private |
Definition at line 346 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), and PV3DBase< T, PVType, FrameType >::eta().
Referenced by calculateGlobalEta().
|
private |
Definition at line 348 of file GeometryTranslator.cc.
References calcDTSpecificPoint(), and PV3DBase< T, PVType, FrameType >::phi().
Referenced by calculateGlobalPhi().
|
private |
Definition at line 314 of file GeometryTranslator.cc.
References _geodt, L1TMuon::TriggerPrimitive::detId(), L1TMuon::TriggerPrimitive::getDTData(), M_PI, PV3DBase< T, PVType, FrameType >::mag(), L1TMuon::TriggerPrimitive::DTData::radialAngle, L1TMuon::TriggerPrimitive::DTData::sector, DTChamberId::station(), PV3DBase< T, PVType, FrameType >::theta(), and L1TMuon::TriggerPrimitive::DTData::theta_bti_group.
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(), and getGEMSpecificPoint().
Referenced by calculateGlobalEta().
|
private |
Definition at line 201 of file GeometryTranslator.cc.
References getGEMSpecificPoint(), and PV3DBase< T, PVType, FrameType >::phi().
Referenced by calculateGlobalPhi().
|
private |
Definition at line 179 of file GeometryTranslator.cc.
References L1TMuon::TriggerPrimitive::ME0Data::bend, L1TMuon::TriggerPrimitive::ME0Data::deltaphi, and L1TMuon::TriggerPrimitive::getME0Data().
Referenced by calculateBendAngle().
|
private |
Definition at line 171 of file GeometryTranslator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), and getME0SpecificPoint().
Referenced by calculateGlobalEta().
|
private |
Definition at line 175 of file GeometryTranslator.cc.
References getME0SpecificPoint(), and PV3DBase< T, PVType, FrameType >::phi().
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(), and getRPCSpecificPoint().
Referenced by calculateGlobalEta().
|
private |
Definition at line 225 of file GeometryTranslator.cc.
References getRPCSpecificPoint(), and PV3DBase< T, PVType, FrameType >::phi().
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 L1TMuon::TriggerPrimitive::subsystem().
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 L1TMuon::TriggerPrimitive::subsystem().
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 L1TMuon::TriggerPrimitive::subsystem().
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, edm::eventsetup::EventSetupRecord::cacheIdentifier(), geocscToken_, geodtToken_, geogemToken_, relativeConstraints::geom, geome0Token_, georpcToken_, edm::EventSetup::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getHandle(), volumeBasedMagneticField_160812_cfi::magfield, and magfieldToken_.
Referenced by 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(), L1TMuon::TriggerPrimitive::detId(), L1TMuon::TriggerPrimitive::getCSCData(), CSCPatternBank::getLegacyPosition(), gpuClustering::id, isCSCCounterClockwise(), CSCConstants::KEY_ALCT_LAYER, L1TMuon::TriggerPrimitive::CSCData::keywire, phase1PixelTopology::layer, PV3DBase< T, PVType, FrameType >::mag(), hltrates_dqm_sourceclient-live_cfg::offset, L1TMuon::TriggerPrimitive::CSCData::pattern, PV3DBase< T, PVType, FrameType >::phi(), digitizers_cfi::strip, L1TMuon::TriggerPrimitive::CSCData::strip, PV3DBase< T, PVType, FrameType >::theta(), 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(), L1TMuon::TriggerPrimitive::detId(), L1TMuon::TriggerPrimitive::getGEMData(), runTauDisplay::gp, gpuClustering::id, L1TMuon::TriggerPrimitive::GEMData::pad_hi, L1TMuon::TriggerPrimitive::GEMData::pad_low, GeomDet::surface(), and Surface::toGlobal().
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 L1TMuon::TriggerPrimitive::subsystem().
Referenced by 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(), L1TMuon::TriggerPrimitive::detId(), ME0Layer::etaPartition(), L1TMuon::TriggerPrimitive::getME0Data(), runTauDisplay::gp, gpuClustering::id, ME0Chamber::layer(), L1TMuon::TriggerPrimitive::ME0Data::partition, L1TMuon::TriggerPrimitive::ME0Data::phiposition, GeomDet::surface(), and Surface::toGlobal().
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(), L1TMuon::TriggerPrimitive::detId(), L1TMuon::TriggerPrimitive::getRPCData(), runTauDisplay::gp, gpuClustering::id, digitizers_cfi::strip, L1TMuon::TriggerPrimitive::RPCData::strip_hi, L1TMuon::TriggerPrimitive::RPCData::strip_low, GeomDet::surface(), and Surface::toGlobal().
Referenced by calcRPCSpecificEta(), calcRPCSpecificPhi(), and getGlobalPoint().
|
private |
Definition at line 305 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(), 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().