#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 |
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 157 of file MTDGeomUtil.cc.
References BTLDetId::crystal().
float mtd::MTDGeomUtil::eta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
float mtd::MTDGeomUtil::eta | ( | const DetId & | id, |
const LocalPoint & | local_point, | ||
const float & | vertex_z = 0. |
||
) | const |
Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
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 globalPosition(), pixelInModule(), and position().
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 173 of file MTDGeomUtil.cc.
References position().
Referenced by Particle.Particle::__str__(), phi(), and ntupleDataFormat.Track::phiPull().
float MTDGeomUtil::phi | ( | const DetId & | id, |
const LocalPoint & | local_point | ||
) | const |
Definition at line 178 of file MTDGeomUtil.cc.
References globalPosition(), phi(), and position().
Referenced by Particle.Particle::__str__(), 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 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::pixel(), 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(), 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(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
void MTDGeomUtil::setGeometry | ( | MTDGeometry const * | geom | ) |
Definition at line 10 of file MTDGeomUtil.cc.
References relativeConstraints::geom, and geom_.
Referenced by MtdTruthAccumulator::initializeEvent().
void MTDGeomUtil::setTopology | ( | MTDTopology const * | topo | ) |
Definition at line 12 of file MTDGeomUtil.cc.
References topology_.
Referenced by MtdTruthAccumulator::initializeEvent().
|
inline |
int MTDGeomUtil::zside | ( | const DetId & | id | ) | const |
|
private |
Definition at line 57 of file MTDGeomUtil.h.
Referenced by geometry(), globalPosition(), pixelInModule(), position(), and setGeometry().
|
private |
Definition at line 61 of file MTDGeomUtil.h.
Referenced by globalPosition(), pixelInModule(), position(), setTopology(), and topology().