#include <FWGeometry.h>
Classes | |
struct | GeomDetInfo |
struct | Range |
class | VersionInfo |
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, bool translatep=true) const |
void | localToGlobal (unsigned int id, const float *local1, float *global1, const float *local2, float *global2, bool translatep=true) const |
void | localToGlobal (const GeomDetInfo &info, const float *local, float *global, bool translatep=true) const |
bool | match_id (const GeomDetInfo &o, unsigned int mask) const |
const VersionInfo & | versionInfo () 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 |
std::string | m_prodTag |
VersionInfo | m_versionInfo |
Definition at line 24 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo> FWGeometry::IdToInfo |
Definition at line 106 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo>::const_iterator FWGeometry::IdToInfoItr |
Definition at line 107 of file FWGeometry.h.
enum FWGeometry::Detector |
Enumerator | |
---|---|
Tracker | |
Muon | |
Ecal | |
Hcal | |
Calo |
Definition at line 30 of file FWGeometry.h.
Enumerator | |
---|---|
PixelBarrel | |
PixelEndcap | |
TIB | |
TID | |
TOB | |
TEC | |
CSC | |
DT | |
RPCBarrel | |
RPCEndcap |
Definition at line 31 of file FWGeometry.h.
FWGeometry::FWGeometry | ( | void | ) |
Definition at line 19 of file FWGeometry.cc.
FWGeometry::~FWGeometry | ( | void | ) |
Definition at line 22 of file FWGeometry.cc.
|
inline |
Definition at line 113 of file FWGeometry.h.
References m_idToInfo, and m_idToMatrix.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
Definition at line 109 of file FWGeometry.h.
References find(), and m_idToInfo.
Referenced by LumiList.LumiList::__contains__(), fireworks::addSiStripClusters(), FWTrackTrackingRecHitProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWTrajectorySeedProxyBuilder::build(), FWGEMPadDigiProxyBuilder::build(), FWPSimHitProxyBuilder::buildViewType(), FWDTRecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), fireworks::pushNearbyPixelHits(), and fireworks::pushPixelHits().
FWGeometry::IdToInfoItr FWGeometry::find | ( | unsigned int | id | ) | const |
Definition at line 358 of file FWGeometry.cc.
References begin, end, and m_idToInfo.
Referenced by FWCSCRecHitProxyBuilder::build(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), contains(), getCorners(), getEveShape(), getMatrix(), getParameters(), getShape(), getShapePars(), localToGlobal(), and FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
static |
Definition at line 26 of file FWGeometry.cc.
References convertXMLtoSQLite_cfg::fileName, i, cmsHarvester::path, mergeAndRegister::paths, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadMap(), and FWGeometryTableViewManager::setGeoManagerFromFile().
const float * FWGeometry::getCorners | ( | unsigned int | id | ) | const |
Definition at line 280 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWCaloRecHitDigitSetProxyBuilder::build(), FWPRCaloTowerProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWPCaloHitProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), FWPhotonProxyBuilder::buildViewType(), FWECALDetailViewBuilder::fillData(), FWHFTowerSliceSelector::findBinFromId(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), and ValidateGeometry::validateCaloGeometry().
TEveGeoShape * FWGeometry::getEveShape | ( | unsigned int | id | ) | const |
Definition at line 253 of file FWGeometry.cc.
References find(), fwLog, getShape(), info(), fwlog::kWarning, m_idToInfo, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
Referenced by FWTrackHitsDetailView::addModules(), FWConvTrackHitsDetailView::addModules(), FWSiPixelClusterDetProxyBuilder::build(), FWTracksModulesProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), FWRPZViewGeometry::makeMuonGeometryRhoPhi(), FWRPZViewGeometry::makeMuonGeometryRhoZ(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonBarrel(), FW3DViewGeometry::showMuonBarrelFull(), FW3DViewGeometry::showMuonEndcap(), FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelEndcap(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showRpcEndcap(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerEndcap(), and FW3DViewGeometry::showTrackerEndcap().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det, |
SubDetector | subdet | ||
) | const |
Definition at line 197 of file FWGeometry.cc.
References m_idToInfo, and match_id().
Referenced by FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelEndcap(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerEndcap(), and FW3DViewGeometry::showTrackerEndcap().
const TGeoMatrix * FWGeometry::getMatrix | ( | unsigned int | id | ) | const |
Definition at line 169 of file FWGeometry.cc.
References find(), fwLog, info(), fwlog::kWarning, m_idToInfo, m_idToMatrix, FWGeometry::GeomDetInfo::matrix, makeMuonMisalignmentScenario::matrix, idealTransformation::rotation, edmStreamStallGrapher::trans, 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 296 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by fireworks::addSiStripClusters(), FWSiStripClusterProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWTrajectorySeedProxyBuilder::build(), FWGEMPadDigiProxyBuilder::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 212 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by getEveShape().
|
private |
Definition at line 227 of file FWGeometry.cc.
References FWGeometry::GeomDetInfo::shape.
const float * FWGeometry::getShapePars | ( | unsigned int | id | ) | const |
Definition at line 312 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 143 of file FWGeometry.cc.
References begin, end, i, j, m_idToInfo, and makeMuonMisalignmentScenario::matrix.
Referenced by FWFFLooper::beginRun(), and FWFFService::postBeginRun().
void FWGeometry::loadMap | ( | const char * | fileName | ) |
Definition at line 52 of file FWGeometry.cc.
References FWGeometry::VersionInfo::cmsswVersion, FWGeometry::VersionInfo::extraDetectors, mergeVDriftHistosByStation::file, findFile(), fwLog, i, j, fwlog::kInfo, PhysicsTools::loadMatrix(), m_idToInfo, m_versionInfo, makeMuonMisalignmentScenario::matrix, Parameters::parameters, cmsHarvester::path, FWGeometry::VersionInfo::productionTag, ecaldqm::topology(), and MainPageGenerator::tree.
Referenced by CmsShowMainBase::loadGeometry(), and ValidateGeometry::ValidateGeometry().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local, | ||
float * | global, | ||
bool | translatep = true |
||
) | const |
Definition at line 328 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by fireworks::addSiStripClusters(), FWTrackTrackingRecHitProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWTrackingParticleProxyBuilderFullFramework::build(), FWTrajectorySeedProxyBuilder::build(), FWGEMPadDigiProxyBuilder::build(), FWPSimHitProxyBuilder::buildViewType(), FWDTRecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), FWRPZViewGeometry::estimateProjectionSizeDT(), localToGlobal(), and fireworks::pushPixelCluster().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local1, | ||
float * | global1, | ||
const float * | local2, | ||
float * | global2, | ||
bool | translatep = true |
||
) | const |
Definition at line 342 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, localToGlobal(), and m_idToInfo.
void FWGeometry::localToGlobal | ( | const GeomDetInfo & | info, |
const float * | local, | ||
float * | global, | ||
bool | translatep = true |
||
) | const |
Definition at line 366 of file FWGeometry.cc.
References i, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
|
inline |
Definition at line 101 of file FWGeometry.h.
References FWGeometry::GeomDetInfo::id, kDetOffset, and kSubdetOffset.
Referenced by getMatchedIds().
|
inline |
Definition at line 117 of file FWGeometry.h.
References m_versionInfo.
Referenced by FWRPZView::populateController(), and FWRPZViewGeometry::showRpcEndcap().
|
static |
Definition at line 27 of file FWGeometry.h.
Referenced by match_id().
|
static |
Definition at line 28 of file FWGeometry.h.
Referenced by match_id().
|
private |
Definition at line 122 of file FWGeometry.h.
Referenced by clear(), contains(), find(), getCorners(), getEveShape(), getMatchedIds(), getMatrix(), getParameters(), getShape(), getShapePars(), initMap(), loadMap(), and localToGlobal().
|
mutableprivate |
Definition at line 120 of file FWGeometry.h.
Referenced by clear(), and getMatrix().
|
private |
Definition at line 124 of file FWGeometry.h.
|
private |
Definition at line 126 of file FWGeometry.h.
Referenced by loadMap(), and versionInfo().