#include <FWGeometry.h>
Classes | |
struct | GeomDetInfo |
struct | Range |
Public Types | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5 } |
typedef std::vector < FWGeometry::GeomDetInfo > | IdToInfo |
typedef std::vector < FWGeometry::GeomDetInfo > ::const_iterator | IdToInfoItr |
enum | SubDetector { PixelBarrel = 1, PixelEndcap = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6, CSC = 7, DT = 8, RPCBarrel = 9, RPCEndcap = 10 } |
Public Member Functions | |
void | clear (void) |
bool | contains (unsigned int id) const |
IdToInfoItr | find (unsigned int) const |
FWGeometry (void) | |
const float * | getCorners (unsigned int id) const |
TEveGeoShape * | getEveShape (unsigned int id) const |
std::vector< unsigned int > | getMatchedIds (Detector det, SubDetector subdet) const |
const TGeoMatrix * | getMatrix (unsigned int id) const |
const float * | getParameters (unsigned int id) const |
TGeoShape * | getShape (unsigned int id) const |
const float * | getShapePars (unsigned int id) const |
void | initMap (const FWRecoGeom::InfoMap &map) |
void | loadMap (const char *fileName) |
void | localToGlobal (unsigned int id, const float *local, float *global) const |
void | localToGlobal (unsigned int id, const float *local1, float *global1, const float *local2, float *global2) const |
void | localToGlobal (const GeomDetInfo &info, const float *local, float *global) const |
bool | match_id (const GeomDetInfo &o, unsigned int mask) const |
~FWGeometry (void) | |
Static Public Member Functions | |
static TFile * | findFile (const char *fileName) |
Static Public Attributes | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
TGeoShape * | getShape (const GeomDetInfo &info) const |
Private Attributes | |
IdToInfo | m_idToInfo |
std::map< unsigned int, TGeoMatrix * > | m_idToMatrix |
Definition at line 23 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo> FWGeometry::IdToInfo |
Definition at line 95 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo>::const_iterator FWGeometry::IdToInfoItr |
Definition at line 96 of file FWGeometry.h.
enum FWGeometry::Detector |
Enumerator | |
---|---|
Tracker | |
Muon | |
Ecal | |
Hcal | |
Calo |
Definition at line 29 of file FWGeometry.h.
Enumerator | |
---|---|
PixelBarrel | |
PixelEndcap | |
TIB | |
TID | |
TOB | |
TEC | |
CSC | |
DT | |
RPCBarrel | |
RPCEndcap |
Definition at line 30 of file FWGeometry.h.
FWGeometry::FWGeometry | ( | void | ) |
Definition at line 18 of file FWGeometry.cc.
FWGeometry::~FWGeometry | ( | void | ) |
Definition at line 22 of file FWGeometry.cc.
|
inline |
Definition at line 102 of file FWGeometry.h.
References m_idToInfo, and m_idToMatrix.
Referenced by python.Vispa.Views.WidgetView.WidgetView::closeEvent(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.WidgetView.WidgetView::setDataObjects(), python.Vispa.Views.TreeView.TreeView::updateContent(), python.Vispa.Views.TableView.TableView::updateContent(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and python.Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
Definition at line 98 of file FWGeometry.h.
References find(), and m_idToInfo.
Referenced by LumiList.LumiList::__contains__(), fireworks::addSiStripClusters(), FWTrackTrackingRecHitProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWPSimHitProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWDTSegmentProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWDTRecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), fireworks::pushNearbyPixelHits(), and fireworks::pushPixelHits().
FWGeometry::IdToInfoItr FWGeometry::find | ( | unsigned int | id | ) | const |
Definition at line 355 of file FWGeometry.cc.
References begin, end, and m_idToInfo.
Referenced by BeautifulSoup.Tag::_invert(), FWCSCRecHitProxyBuilder::build(), FWRPCRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), contains(), getCorners(), getEveShape(), getMatrix(), getParameters(), getShape(), getShapePars(), BeautifulSoup.PageElement::insert(), localToGlobal(), and FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
static |
Definition at line 26 of file FWGeometry.cc.
References dbtoweb::file, convertXMLtoSQLite_cfg::fileName, i, path(), and EcalElecEmulTccFlatFileProducerFromTPG_cfg::tokens.
Referenced by loadMap().
const float * FWGeometry::getCorners | ( | unsigned int | id | ) | const |
Definition at line 278 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWPRCaloTowerProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWHORecHitProxyBuilder::build(), FWHFRecHitProxyBuilder::build(), FWCastorRecHitProxyBuilder::build(), FWZDCRecHitProxyBuilder::build(), FWHBHERecHitProxyBuilder::build(), FWPCaloHitProxyBuilder::build(), FWEcalRecHitProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), FWPhotonProxyBuilder::buildViewType(), FWECALDetailViewBuilder::fillData(), FWHFTowerSliceSelector::findBinFromId(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWHBHERecHitProxyBuilder::scaleProduct(), FWEcalRecHitProxyBuilder::scaleProduct(), and ValidateGeometry::validateCaloGeometry().
TEveGeoShape * FWGeometry::getEveShape | ( | unsigned int | id | ) | const |
Definition at line 251 of file FWGeometry.cc.
References find(), fwLog, getShape(), info, fwlog::kWarning, m_idToInfo, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
Referenced by FWConvTrackHitsDetailView::addModules(), FWTrackHitsDetailView::addModules(), FWSiStripClusterProxyBuilder::build(), FWTracksModulesProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWDTSegmentProxyBuilder::build(), FWRPCRecHitProxyBuilder::buildViewType(), FWRPZViewGeometry::makeMuonGeometryRhoPhi(), FW3DViewGeometry::showMuonBarrel(), FW3DViewGeometry::showMuonEndcap(), FW3DViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelEndcap(), FW3DViewGeometry::showTrackerBarrel(), and FW3DViewGeometry::showTrackerEndcap().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det, |
SubDetector | subdet | ||
) | const |
Definition at line 195 of file FWGeometry.cc.
References m_idToInfo, and match_id().
Referenced by FW3DViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelEndcap(), FW3DViewGeometry::showTrackerBarrel(), and FW3DViewGeometry::showTrackerEndcap().
const TGeoMatrix * FWGeometry::getMatrix | ( | unsigned int | id | ) | const |
Definition at line 167 of file FWGeometry.cc.
References find(), fwLog, ExpressReco_HICollisions_FallBack::id, info, fwlog::kWarning, m_idToInfo, m_idToMatrix, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
Referenced by FWTrackResidualDetailView::getSignedResidual(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), ValidateGeometry::validateDTChamberGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), and ValidateGeometry::validateTrackerGeometry().
const float * FWGeometry::getParameters | ( | unsigned int | id | ) | const |
Definition at line 294 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by fireworks::addSiStripClusters(), FWSiStripClusterProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWDTDigiProxyBuilder::buildViewType(), fireworks::pushNearbyPixelHits(), fireworks::pushPixelHits(), ValidateGeometry::validateCSCLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validatePixelTopology(), ValidateGeometry::validateRPCGeometry(), and ValidateGeometry::validateStripTopology().
TGeoShape * FWGeometry::getShape | ( | unsigned int | id | ) | const |
Definition at line 210 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by getEveShape().
|
private |
Definition at line 225 of file FWGeometry.cc.
References FWGeometry::GeomDetInfo::shape.
const float * FWGeometry::getShapePars | ( | unsigned int | id | ) | const |
Definition at line 310 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWCSCStripDigiProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), ValidateGeometry::validateDTChamberGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), and ValidateGeometry::validateTrackerGeometry().
void FWGeometry::initMap | ( | const FWRecoGeom::InfoMap & | map | ) |
Definition at line 141 of file FWGeometry.cc.
References begin, end, i, j, and m_idToInfo.
Referenced by FWFFLooper::beginRun(), and FWFFService::postBeginRun().
void FWGeometry::loadMap | ( | const char * | fileName | ) |
Definition at line 65 of file FWGeometry.cc.
References dbtoweb::file, findFile(), i, ExpressReco_HICollisions_FallBack::id, j, PhysicsTools::loadMatrix(), m_idToInfo, ExpressReco_HICollisions_FallBack::parameters, and diffTreeTool::tree.
Referenced by CmsShowMainBase::loadGeometry(), and ValidateGeometry::ValidateGeometry().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local, | ||
float * | global | ||
) | const |
Definition at line 326 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by fireworks::addSiStripClusters(), FWTrackTrackingRecHitProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWPSimHitProxyBuilder::build(), FWTrackingParticleProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWDTSegmentProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWDTRecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), FWRPZViewGeometry::estimateProjectionSizeCSC(), FWRPZViewGeometry::estimateProjectionSizeDT(), localToGlobal(), and fireworks::pushPixelCluster().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local1, | ||
float * | global1, | ||
const float * | local2, | ||
float * | global2 | ||
) | const |
Definition at line 340 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, localToGlobal(), and m_idToInfo.
void FWGeometry::localToGlobal | ( | const GeomDetInfo & | info, |
const float * | local, | ||
float * | global | ||
) | const |
Definition at line 363 of file FWGeometry.cc.
References i, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
|
inline |
Definition at line 90 of file FWGeometry.h.
References FWGeometry::GeomDetInfo::id, kDetOffset, and kSubdetOffset.
Referenced by getMatchedIds().
|
static |
Definition at line 26 of file FWGeometry.h.
Referenced by match_id().
|
static |
Definition at line 27 of file FWGeometry.h.
Referenced by match_id().
|
private |
Definition at line 109 of file FWGeometry.h.
Referenced by clear(), contains(), find(), getCorners(), getEveShape(), getMatchedIds(), getMatrix(), getParameters(), getShape(), getShapePars(), initMap(), loadMap(), and localToGlobal().
|
mutableprivate |
Definition at line 107 of file FWGeometry.h.
Referenced by clear(), and getMatrix().