#include <AngleConverter.h>
Public Member Functions | |
AngleConverter () | |
void | checkAndUpdateGeometry (const edm::EventSetup &) |
Update the Geometry with current Event Setup. More... | |
int | getGlobalEta (unsigned int rawid, const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis) |
Convert local eta coordinate to global digital microGMT scale. More... | |
int | getGlobalEta (unsigned int rawid, const CSCCorrelatedLCTDigi &aDigi) |
Convert local eta coordinate to global digital microGMT scale. More... | |
int | getGlobalEta (unsigned int rawid, const RPCDigi &aDigi) |
Convert local eta coordinate to global digital microGMT scale. More... | |
int | getGlobalPhi (unsigned int rawid, const L1MuDTChambPhDigi &aDigi) |
Convert local phi coordinate to global digital OMTF scale. More... | |
int | getGlobalPhi (unsigned int rawid, const CSCCorrelatedLCTDigi &aDigi) |
Convert local phi coordinate to global digital OMTF scale. More... | |
float | getGlobalPhi (unsigned int rawid, const RPCDigi &aDigi) |
~AngleConverter () | |
Private Member Functions | |
const int | findBTIgroup (const L1MuDTChambPhDigi &aDigi, const L1MuDTChambThContainer *dtThDigis) |
Find BTI group. More... | |
bool | isCSCCounterClockwise (const std::unique_ptr< const CSCLayer > &layer) const |
Check orientation of strips in given CSC chamber. More... | |
Private Attributes | |
edm::ESHandle< CSCGeometry > | _geocsc |
edm::ESHandle< DTGeometry > | _geodt |
unsigned long long | _geom_cache_id |
edm::ESHandle< RPCGeometry > | _georpc |
Definition at line 22 of file AngleConverter.h.
AngleConverter::AngleConverter | ( | ) |
Definition at line 23 of file AngleConverter.cc.
AngleConverter::~AngleConverter | ( | ) |
Definition at line 26 of file AngleConverter.cc.
void AngleConverter::checkAndUpdateGeometry | ( | const edm::EventSetup & | es | ) |
Update the Geometry with current Event Setup.
Definition at line 29 of file AngleConverter.cc.
References _geocsc, _geodt, _geom_cache_id, _georpc, edm::eventsetup::EventSetupRecord::cacheIdentifier(), relativeConstraints::geom, edm::EventSetup::get(), and edm::eventsetup::EventSetupRecord::get().
|
private |
Find BTI group.
If there are more than one theta digi we do not take is due to unresolvet ambiguity. In this case we take eta of the middle of the chamber.
Definition at line 276 of file AngleConverter.cc.
References L1MuDTChambPhDigi::bxNum(), L1MuDTChambThContainer::chThetaSegm(), i, L1MuDTChambThDigi::position(), L1MuDTChambPhDigi::scNum(), L1MuDTChambPhDigi::stNum(), and L1MuDTChambPhDigi::whNum().
Referenced by getGlobalEta().
int AngleConverter::getGlobalEta | ( | unsigned int | rawid, |
const L1MuDTChambPhDigi & | aDigi, | ||
const L1MuDTChambThContainer * | dtThDigis | ||
) |
Convert local eta coordinate to global digital microGMT scale.
Definition at line 145 of file AngleConverter.cc.
References _geodt, PV3DBase< T, PVType, FrameType >::eta(), findBTIgroup(), L1MuDTChambPhDigi::scNum(), L1MuDTChambPhDigi::stNum(), and L1MuDTChambPhDigi::whNum().
int AngleConverter::getGlobalEta | ( | unsigned int | rawid, |
const CSCCorrelatedLCTDigi & | aDigi | ||
) |
Convert local eta coordinate to global digital microGMT scale.
Code taken from GeometryTranslator.
Will be replaced by direct CSC phi local to global scale transformation as used in FPGA implementation
Definition at line 181 of file AngleConverter.cc.
References _geocsc, PV3DBase< T, PVType, FrameType >::eta(), CSCPatternLUT::get2007Position(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getStrip(), isCSCCounterClockwise(), CSCConstants::KEY_ALCT_LAYER, PV3DBase< T, PVType, FrameType >::mag(), hltrates_dqm_sourceclient-live_cfg::offset, listBenchmarks::pattern, PV3DBase< T, PVType, FrameType >::phi(), PV3DBase< T, PVType, FrameType >::theta(), and Geom::Phi< T >::value().
int AngleConverter::getGlobalEta | ( | unsigned int | rawid, |
const RPCDigi & | aDigi | ||
) |
Convert local eta coordinate to global digital microGMT scale.
Definition at line 250 of file AngleConverter.cc.
References _georpc, PV3DBase< T, PVType, FrameType >::eta(), and RPCDigi::strip().
int AngleConverter::getGlobalPhi | ( | unsigned int | rawid, |
const L1MuDTChambPhDigi & | aDigi | ||
) |
Convert local phi coordinate to global digital OMTF scale.
Definition at line 60 of file AngleConverter.cc.
References M_PI, OMTFConfiguration::nPhiBins, phi, L1MuDTChambPhDigi::phi(), and L1MuDTChambPhDigi::scNum().
int AngleConverter::getGlobalPhi | ( | unsigned int | rawid, |
const CSCCorrelatedLCTDigi & | aDigi | ||
) |
Convert local phi coordinate to global digital OMTF scale.
Code taken from GeometryTranslator. Will be replaced by direct CSC phi local to global scale transformation as used in FPGA implementation
Definition at line 74 of file AngleConverter.cc.
References _geocsc, CSCPatternLUT::get2007Position(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getStrip(), isCSCCounterClockwise(), CSCConstants::KEY_ALCT_LAYER, M_PI, PV3DBase< T, PVType, FrameType >::mag(), OMTFConfiguration::nPhiBins, hltrates_dqm_sourceclient-live_cfg::offset, listBenchmarks::pattern, phi, PV3DBase< T, PVType, FrameType >::phi(), PV3DBase< T, PVType, FrameType >::theta(), and Geom::Phi< T >::value().
float AngleConverter::getGlobalPhi | ( | unsigned int | rawid, |
const RPCDigi & | aDigi | ||
) |
Convert local phi coordinate to global digital OMTF scale. To maintain backward comtability return float value fo global phi. Later whewn LUT will be used will return int as other methods.
Will be replaced by LUT based transformation as used in FPGA implementation
Definition at line 41 of file AngleConverter.cc.
References _georpc, PV3DBase< T, PVType, FrameType >::phi(), and RPCDigi::strip().
|
private |
Check orientation of strips in given CSC chamber.
Definition at line 267 of file AngleConverter.cc.
References funct::abs(), and M_PI.
Referenced by getGlobalEta(), and getGlobalPhi().
|
private |
Definition at line 64 of file AngleConverter.h.
Referenced by checkAndUpdateGeometry(), getGlobalEta(), and getGlobalPhi().
|
private |
Definition at line 65 of file AngleConverter.h.
Referenced by checkAndUpdateGeometry(), and getGlobalEta().
|
private |
Definition at line 62 of file AngleConverter.h.
Referenced by checkAndUpdateGeometry().
|
private |
Definition at line 63 of file AngleConverter.h.
Referenced by checkAndUpdateGeometry(), getGlobalEta(), and getGlobalPhi().