#include <MTDGeomUtil.h>
Public Member Functions | |
int | crystalInModule (const DetId &) const |
float | eta (const GlobalPoint &position, const float &vertex_z=0.) const |
float | eta (const DetId &id, const LocalPoint &local_point, const float &vertex_z=0.) const |
const MTDGeometry * | geometry () const |
GlobalPoint | globalPosition (const DetId &id, const LocalPoint &local_point) const |
bool | isBTL (const DetId &) const |
bool | isETL (const DetId &) const |
unsigned int | layer (const DetId &) const |
int | module (const DetId &) const |
MTDGeomUtil () | |
float | phi (const GlobalPoint &position) const |
float | phi (const DetId &id, const LocalPoint &local_point) const |
std::pair< float, float > | pixelInModule (const DetId &id, const int row, const int column) const |
std::pair< uint8_t, uint8_t > | pixelInModule (const DetId &id, const LocalPoint &local_point) const |
std::pair< LocalPoint, GlobalPoint > | position (const DetId &id, int row=0, int column=0) const |
float | pt (const GlobalPoint &position, const float &hitEnergy, const float &vertex_z=0.) const |
float | pt (const DetId &id, const LocalPoint &local_point, const float &hitEnergy, const float &vertex_z=0.) const |
uint32_t | sensorModuleId (const DetId &id) const |
void | setGeometry (MTDGeometry const *geom) |
void | setTopology (MTDTopology const *topo) |
const MTDTopology * | topology () const |
int | zside (const DetId &id) const |
~MTDGeomUtil () | |
Private Attributes | |
const MTDGeometry * | geom_ |
const MTDTopology * | topology_ |
Definition at line 23 of file MTDGeomUtil.h.
|
inline |
Definition at line 25 of file MTDGeomUtil.h.
|
inline |
Definition at line 26 of file MTDGeomUtil.h.
int MTDGeomUtil::crystalInModule | ( | const DetId & | id | ) | const |
Definition at line 159 of file MTDGeomUtil.cc.
References BTLDetId::crystal().
float mtd::MTDGeomUtil::eta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
float mtd::MTDGeomUtil::eta | ( | const DetId & | id, |
const LocalPoint & | local_point, | ||
const float & | vertex_z = 0. |
||
) | const |
|
inline |
GlobalPoint MTDGeomUtil::globalPosition | ( | const DetId & | id, |
const LocalPoint & | local_point | ||
) | const |
Definition at line 58 of file MTDGeomUtil.cc.
References MTDTopologyMode::crysLayoutFromTopoMode(), TauDecayModes::dec, hcalRecHitTable_cff::detId, Exception, geom_, MTDTopology::getMTDTopologyMode(), MTDGeometry::idToDet(), isBTL(), RectangularMTDTopology::nrows(), RectangularMTDTopology::pixelToModuleLocalPoint(), DetId::rawId(), ProxyMTDTopology::specificTopology(), GeomDet::toGlobal(), GeomDet::topology(), and topology_.
Referenced by MtdTruthAccumulator::fillSimHits(), and phi().
bool MTDGeomUtil::isBTL | ( | const DetId & | id | ) | const |
Definition at line 24 of file MTDGeomUtil.cc.
References isETL().
Referenced by MtdTruthAccumulator::finalizeEvent(), globalPosition(), pixelInModule(), position(), and sensorModuleId().
bool MTDGeomUtil::isETL | ( | const DetId & | id | ) | const |
Definition at line 14 of file MTDGeomUtil.cc.
References Exception, and MTDDetId::mtdSubDetector().
Referenced by MtdTruthAccumulator::finalizeEvent(), isBTL(), layer(), module(), and pixelInModule().
unsigned int MTDGeomUtil::layer | ( | const DetId & | id | ) | const |
Definition at line 89 of file MTDGeomUtil.cc.
References isETL(), and ETLDetId::nDisc().
Referenced by MtdTruthAccumulator::fillSimHits(), MtdTruthAccumulator::finalizeEvent(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
int MTDGeomUtil::module | ( | const DetId & | id | ) | const |
Definition at line 98 of file MTDGeomUtil.cc.
References isETL(), BTLDetId::module(), and ETLDetId::module().
Referenced by MtdTruthAccumulator::fillSimHits(), and MtdTruthAccumulator::finalizeEvent().
float MTDGeomUtil::phi | ( | const GlobalPoint & | position | ) | const |
Definition at line 188 of file MTDGeomUtil.cc.
References position().
Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), datamodel.Object::p4(), phi(), and ntupleDataFormat.Track::phiPull().
float MTDGeomUtil::phi | ( | const DetId & | id, |
const LocalPoint & | local_point | ||
) | const |
Definition at line 193 of file MTDGeomUtil.cc.
References globalPosition(), phi(), and position().
Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), datamodel.Object::p4(), and ntupleDataFormat.Track::phiPull().
std::pair< float, float > MTDGeomUtil::pixelInModule | ( | const DetId & | id, |
const int | row, | ||
const int | column | ||
) | const |
Definition at line 111 of file MTDGeomUtil.cc.
References TauDecayModes::dec, hcalRecHitTable_cff::detId, Exception, geom_, MTDGeometry::idToDet(), isBTL(), RectangularMTDTopology::localX(), RectangularMTDTopology::localY(), RectangularMTDTopology::pixel(), DetId::rawId(), ProxyMTDTopology::specificTopology(), and GeomDet::topology().
Referenced by EtlSimHitsValidation::analyze(), EtlLocalRecoValidation::analyze(), and MtdTruthAccumulator::fillSimHits().
std::pair< uint8_t, uint8_t > MTDGeomUtil::pixelInModule | ( | const DetId & | id, |
const LocalPoint & | local_point | ||
) | const |
Definition at line 128 of file MTDGeomUtil.cc.
References cuy::col, MTDTopologyMode::crysLayoutFromTopoMode(), TauDecayModes::dec, hcalRecHitTable_cff::detId, Exception, geom_, MTDTopology::getMTDTopologyMode(), MTDGeometry::idToDet(), isETL(), RectangularMTDTopology::nrows(), RectangularMTDTopology::pixelIndex(), RectangularMTDTopology::pixelToModuleLocalPoint(), DetId::rawId(), ProxyMTDTopology::specificTopology(), GeomDet::topology(), and topology_.
std::pair< LocalPoint, GlobalPoint > MTDGeomUtil::position | ( | const DetId & | id, |
int | row = 0 , |
||
int | column = 0 |
||
) | const |
Definition at line 27 of file MTDGeomUtil.cc.
References MTDTopologyMode::crysLayoutFromTopoMode(), TauDecayModes::dec, hcalRecHitTable_cff::detId, Exception, geom_, MTDTopology::getMTDTopologyMode(), MTDGeometry::idToDet(), isBTL(), RectangularMTDTopology::localX(), RectangularMTDTopology::localY(), RectangularMTDTopology::nrows(), RectangularMTDTopology::pixelToModuleLocalPoint(), DetId::rawId(), ProxyMTDTopology::specificTopology(), GeomDet::toGlobal(), GeomDet::topology(), and topology_.
Referenced by MtdTruthAccumulator::finalizeEvent(), and phi().
float mtd::MTDGeomUtil::pt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), datamodel.Object::p4(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
float mtd::MTDGeomUtil::pt | ( | const DetId & | id, |
const LocalPoint & | local_point, | ||
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), datamodel.Object::p4(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
uint32_t MTDGeomUtil::sensorModuleId | ( | const DetId & | id | ) | const |
Definition at line 165 of file MTDGeomUtil.cc.
References MTDTopologyMode::crysLayoutFromTopoMode(), hcalRecHitTable_cff::detId, MTDTopology::getMTDTopologyMode(), isBTL(), DetId::rawId(), and topology_.
Referenced by MtdRecoClusterToSimLayerClusterAssociatorByHitsImpl::associateRecoToSim(), and MtdRecoClusterToSimLayerClusterAssociatorByHitsImpl::associateSimToReco().
void MTDGeomUtil::setGeometry | ( | MTDGeometry const * | geom | ) |
Definition at line 10 of file MTDGeomUtil.cc.
References relativeConstraints::geom, and geom_.
Referenced by EtlSimHitsValidation::analyze(), EtlLocalRecoValidation::analyze(), MtdTruthAccumulator::initializeEvent(), and MtdRecoClusterToSimLayerClusterAssociatorByHitsProducer::produce().
void MTDGeomUtil::setTopology | ( | MTDTopology const * | topo | ) |
Definition at line 12 of file MTDGeomUtil.cc.
References topology_.
Referenced by MtdTruthAccumulator::initializeEvent(), and MtdRecoClusterToSimLayerClusterAssociatorByHitsProducer::produce().
|
inline |
int MTDGeomUtil::zside | ( | const DetId & | id | ) | const |
|
private |
Definition at line 59 of file MTDGeomUtil.h.
Referenced by geometry(), globalPosition(), pixelInModule(), position(), and setGeometry().
|
private |
Definition at line 63 of file MTDGeomUtil.h.
Referenced by globalPosition(), pixelInModule(), position(), sensorModuleId(), setTopology(), and topology().