#include <FWGeometry.h>
Classes | |
struct | GeomDetInfo |
struct | Range |
class | VersionInfo |
Public Types | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, HGCalEE =8, HGCalHSi =9, HGCalHSc =10, HGCalTrigger =11 } |
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, GEM = 11, ME0 = 12 } |
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 |
TEveGeoShape * | getHGCScintillatorEveShape (unsigned int id) const |
TEveGeoShape * | getHGCSiliconEveShape (unsigned int id) const |
std::vector< unsigned int > | getMatchedIds (Detector det, SubDetector subdet) const |
std::vector< unsigned int > | getMatchedIds (Detector det) const |
const TGeoMatrix * | getMatrix (unsigned int id) const |
const float * | getParameters (unsigned int id) const |
int | getProducerVersion () const |
TGeoShape * | getShape (unsigned int id) const |
TGeoShape * | getShape (const GeomDetInfo &info) const |
const float * | getShapePars (unsigned int id) const |
const TrackerTopology * | getTrackerTopology () 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 |
IdToInfoItr | mapEnd () 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 Attributes | |
IdToInfo | m_idToInfo |
std::map< unsigned int, TGeoMatrix * > | m_idToMatrix |
std::string | m_prodTag |
int | m_producerVersion |
std::unique_ptr< TrackerTopology > | m_trackerTopology |
VersionInfo | m_versionInfo |
Definition at line 28 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo> FWGeometry::IdToInfo |
Definition at line 113 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo>::const_iterator FWGeometry::IdToInfoItr |
Definition at line 114 of file FWGeometry.h.
enum FWGeometry::Detector |
Enumerator | |
---|---|
Tracker | |
Muon | |
Ecal | |
Hcal | |
Calo | |
HGCalEE | |
HGCalHSi | |
HGCalHSc | |
HGCalTrigger |
Definition at line 34 of file FWGeometry.h.
Enumerator | |
---|---|
PixelBarrel | |
PixelEndcap | |
TIB | |
TID | |
TOB | |
TEC | |
CSC | |
DT | |
RPCBarrel | |
RPCEndcap | |
GEM | |
ME0 |
Definition at line 35 of file FWGeometry.h.
FWGeometry::FWGeometry | ( | void | ) |
FWGeometry::~FWGeometry | ( | void | ) |
Definition at line 26 of file FWGeometry.cc.
Referenced by FWGeometry::VersionInfo::VersionInfo().
|
inline |
Definition at line 123 of file FWGeometry.h.
References find(), info(), localToGlobal(), 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 117 of file FWGeometry.h.
References find(), and m_idToInfo.
Referenced by LumiList.LumiList::__contains__(), fireworks::addSiStripClusters(), FWTrackTrackingRecHitProxyBuilder::build(), FWME0DigiProxyBuilder::build(), FWME0SegmentProxyBuilder::build(), FWPhase2TrackerCluster1DDetProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWTrajectorySeedProxyBuilder::build(), FWGEMPadDigiProxyBuilder::build(), FWGEMSegmentProxyBuilder::buildViewType(), FWME0RecHitProxyBuilder::buildViewType(), FWPSimHitProxyBuilder::buildViewType(), FWDTRecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), FWHFTowerProxyBuilderBase::fillTowerForDetId(), FWHGTowerProxyBuilderBase::fillTowerForDetId(), fireworks::pushNearbyPixelHits(), and fireworks::pushPixelHits().
FWGeometry::IdToInfoItr FWGeometry::find | ( | unsigned int | id | ) | const |
Definition at line 508 of file FWGeometry.cc.
References begin, end, and m_idToInfo.
Referenced by FWSiStripClusterProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWME0RecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), clear(), contains(), getCorners(), getEveShape(), getHGCScintillatorEveShape(), getHGCSiliconEveShape(), getMatrix(), getParameters(), getShape(), getShapePars(), localToGlobal(), and FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
static |
Definition at line 30 of file FWGeometry.cc.
References MillePedeFileConverter_cfg::fileName, mps_fire::i, callgraph::path, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadMap(), FWGeometryTableViewManager::setGeoManagerFromFile(), and FWGeometry::VersionInfo::VersionInfo().
const float * FWGeometry::getCorners | ( | unsigned int | id | ) | const |
Definition at line 430 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWCaloRecHitDigitSetProxyBuilder::build(), FWPRCaloTowerProxyBuilder::build(), FWHGCalMultiClusterProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), FWPCaloHitProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), FWPhotonProxyBuilder::buildViewType(), FWECALCaloDataDetailViewBuilder::fillData(), FWECALDetailViewBuilder::fillEtaPhi(), FWHFTowerProxyBuilderBase::fillTowerForDetId(), FWHGTowerProxyBuilderBase::fillTowerForDetId(), FWHGTowerSliceSelector::findBinFromId(), FWHFTowerSliceSelector::findBinFromId(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FW3DViewBase::showEcalBarrel(), ValidateGeometry::validateCaloGeometry(), and FWGeometry::VersionInfo::VersionInfo().
TEveGeoShape * FWGeometry::getEveShape | ( | unsigned int | id | ) | const |
Definition at line 298 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, getShape(), info(), fwlog::kWarning, m_idToInfo, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
Referenced by FWTrackHitsDetailView::addModules(), FWConvTrackHitsDetailView::addModules(), FWME0SegmentProxyBuilder::build(), FWPhase2TrackerCluster1DDetProxyBuilder::build(), FWSiPixelClusterDetProxyBuilder::build(), FWTracksModulesProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWGEMSegmentProxyBuilder::buildViewType(), FWME0RecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), FWRPZViewGeometry::makeMuonGeometryRhoPhi(), FWRPZViewGeometry::makeMuonGeometryRhoZ(), FWRPZViewGeometry::showGEM(), FWRPZViewGeometry::showME0(), FW3DViewGeometry::showMuonBarrel(), FW3DViewGeometry::showMuonBarrelFull(), FW3DViewGeometry::showMuonEndcap(), FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelEndcap(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showRpcEndcap(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerEndcap(), FW3DViewGeometry::showTrackerEndcap(), and FWGeometry::VersionInfo::VersionInfo().
TEveGeoShape * FWGeometry::getHGCScintillatorEveShape | ( | unsigned int | id | ) | const |
Definition at line 391 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, info(), fwlog::kWarning, m_idToInfo, FWGeometry::GeomDetInfo::matrix, FWGeometry::GeomDetInfo::points, FWGeometry::GeomDetInfo::shape, FWGeometry::GeomDetInfo::translation, x, and y.
Referenced by FW3DViewGeometry::showHGCalHSc(), and FWGeometry::VersionInfo::VersionInfo().
TEveGeoShape * FWGeometry::getHGCSiliconEveShape | ( | unsigned int | id | ) | const |
Definition at line 325 of file FWGeometry.cc.
References mps_check::array, PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, f, find(), fwLog, info(), fwlog::kWarning, m_idToInfo, FWGeometry::GeomDetInfo::matrix, FWGeometry::GeomDetInfo::points, mathSSE::sqrt(), FWGeometry::GeomDetInfo::translation, x, globals_cff::x1, and y.
Referenced by FW3DViewGeometry::showHGCalEE(), FW3DViewGeometry::showHGCalHSi(), and FWGeometry::VersionInfo::VersionInfo().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det, |
SubDetector | subdet | ||
) | const |
Definition at line 214 of file FWGeometry.cc.
References photons_cff::ids, m_idToInfo, RecoTauDiscriminantConfiguration::mask, and match_id().
Referenced by FW3DViewBase::showEcalBarrel(), FW3DViewGeometry::showHGCalEE(), FW3DViewGeometry::showHGCalHSc(), FW3DViewGeometry::showHGCalHSi(), FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelEndcap(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerEndcap(), FW3DViewGeometry::showTrackerEndcap(), and FWGeometry::VersionInfo::VersionInfo().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det | ) | const |
Definition at line 229 of file FWGeometry.cc.
References RemoveAddSevLevel::flag, HGCalHSc, photons_cff::ids, kDetOffset, and m_idToInfo.
const TGeoMatrix * FWGeometry::getMatrix | ( | unsigned int | id | ) | const |
Definition at line 186 of file FWGeometry.cc.
References find(), fwLog, triggerObjects_cff::id, info(), fwlog::kWarning, m_idToInfo, m_idToMatrix, FWGeometry::GeomDetInfo::matrix, makeMuonMisalignmentScenario::matrix, idealTransformation::rotation, and FWGeometry::GeomDetInfo::translation.
Referenced by FWTrackResidualDetailView::getSignedResidual(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), DTGeometryValidate::validateDTChamberGeometry(), ValidateGeometry::validateDTChamberGeometry(), DTGeometryValidate::validateDTLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), ValidateGeometry::validateTrackerGeometry(), and FWGeometry::VersionInfo::VersionInfo().
const float * FWGeometry::getParameters | ( | unsigned int | id | ) | const |
Definition at line 446 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by fireworks::addSiStripClusters(), FWHGCalMultiClusterProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), FWTrajectorySeedProxyBuilder::build(), FWGEMPadDigiProxyBuilder::build(), FWDTDigiProxyBuilder::buildViewType(), fireworks::pushNearbyPixelHits(), fireworks::pushPixelHits(), ValidateGeometry::validateCSCLayerGeometry(), DTGeometryValidate::validateDTLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validatePixelTopology(), ValidateGeometry::validateRPCGeometry(), ValidateGeometry::validateStripTopology(), and FWGeometry::VersionInfo::VersionInfo().
|
inline |
TGeoShape * FWGeometry::getShape | ( | unsigned int | id | ) | const |
Definition at line 257 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWSiStripClusterProxyBuilder::build(), getEveShape(), getProducerVersion(), and FWGeometry::VersionInfo::VersionInfo().
TGeoShape * FWGeometry::getShape | ( | const GeomDetInfo & | info | ) | const |
Definition at line 272 of file FWGeometry.cc.
References FWGeometry::GeomDetInfo::shape.
const float * FWGeometry::getShapePars | ( | unsigned int | id | ) | const |
Definition at line 462 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWHGCalMultiClusterProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), DTGeometryValidate::validateDTChamberGeometry(), ValidateGeometry::validateDTChamberGeometry(), DTGeometryValidate::validateDTLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), ValidateGeometry::validateRPCGeometry(), ValidateGeometry::validateTrackerGeometry(), and FWGeometry::VersionInfo::VersionInfo().
|
inline |
Definition at line 133 of file FWGeometry.h.
References m_trackerTopology.
Referenced by FWTrackHitsDetailView::addModules(), fireworks::info(), FW3DViewGeometry::showPixelBarrel(), and FW3DViewGeometry::showPixelEndcap().
void FWGeometry::initMap | ( | const FWRecoGeom::InfoMap & | map | ) |
Definition at line 160 of file FWGeometry.cc.
References begin, end, mps_fire::i, m_idToInfo, makeMuonMisalignmentScenario::matrix, and hiPixelPairStep_cff::points.
Referenced by FWGeometry::VersionInfo::VersionInfo().
void FWGeometry::loadMap | ( | const char * | fileName | ) |
Definition at line 56 of file FWGeometry.cc.
References FWGeometry::VersionInfo::cmsswVersion, FWGeometry::VersionInfo::extraDetectors, FrontierConditions_GlobalTag_cff::file, findFile(), StandaloneTrackerTopology::fromTrackerParametersXMLString(), fwLog, mps_fire::i, triggerObjects_cff::id, fwlog::kInfo, PhysicsTools::loadMatrix(), m_idToInfo, m_producerVersion, m_trackerTopology, m_versionInfo, makeMuonMisalignmentScenario::matrix, callgraph::path, hiPixelPairStep_cff::points, FWGeometry::VersionInfo::productionTag, AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::topology().
Referenced by DTGeometryValidate::DTGeometryValidate(), CmsShowMainBase::loadGeometry(), ValidateGeometry::ValidateGeometry(), and FWGeometry::VersionInfo::VersionInfo().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local, | ||
float * | global, | ||
bool | translatep = true |
||
) | const |
Definition at line 478 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by fireworks::addSiStripClusters(), FWTrackTrackingRecHitProxyBuilder::build(), FWME0DigiProxyBuilder::build(), FWME0SegmentProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWCSCRecHitProxyBuilder::build(), FWCSCStripDigiProxyBuilder::build(), FWSiStripDigiProxyBuilder::build(), FWRPCDigiProxyBuilder::build(), FWPhase2TrackerCluster1DProxyBuilder::build(), FWCSCWireDigiProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWSiPixelDigiProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), FWSiPixelClusterProxyBuilder::build(), FWTrackingParticleProxyBuilderFullFramework::build(), FWTrajectorySeedProxyBuilder::build(), FWGEMPadDigiProxyBuilder::build(), FWGEMSegmentProxyBuilder::buildViewType(), FWME0RecHitProxyBuilder::buildViewType(), FWPSimHitProxyBuilder::buildViewType(), FWDTRecHitProxyBuilder::buildViewType(), FWRPCRecHitProxyBuilder::buildViewType(), FWGEMRecHitProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), clear(), FWRPZViewGeometry::estimateProjectionSizeDT(), localToGlobal(), fireworks::pushPixelCluster(), and FWGeometry::VersionInfo::VersionInfo().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local1, | ||
float * | global1, | ||
const float * | local2, | ||
float * | global2, | ||
bool | translatep = true |
||
) | const |
Definition at line 492 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 516 of file FWGeometry.cc.
References mps_fire::i, FWGeometry::GeomDetInfo::matrix, and FWGeometry::GeomDetInfo::translation.
|
inline |
Definition at line 121 of file FWGeometry.h.
References m_idToInfo.
Referenced by FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
inline |
Definition at line 108 of file FWGeometry.h.
References FWGeometry::GeomDetInfo::id.
Referenced by getMatchedIds().
|
inline |
Definition at line 127 of file FWGeometry.h.
References m_versionInfo.
Referenced by FWRPZView::populateController(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), and FWRPZViewGeometry::showRpcEndcap().
|
static |
Definition at line 31 of file FWGeometry.h.
Referenced by getMatchedIds().
|
static |
Definition at line 32 of file FWGeometry.h.
|
private |
Definition at line 138 of file FWGeometry.h.
Referenced by clear(), contains(), find(), getCorners(), getEveShape(), getHGCScintillatorEveShape(), getHGCSiliconEveShape(), getMatchedIds(), getMatrix(), getParameters(), getShape(), getShapePars(), initMap(), loadMap(), localToGlobal(), and mapEnd().
|
mutableprivate |
Definition at line 136 of file FWGeometry.h.
Referenced by clear(), and getMatrix().
|
private |
Definition at line 140 of file FWGeometry.h.
|
private |
Definition at line 144 of file FWGeometry.h.
Referenced by getProducerVersion(), and loadMap().
|
private |
Definition at line 146 of file FWGeometry.h.
Referenced by getTrackerTopology(), and loadMap().
|
private |
Definition at line 142 of file FWGeometry.h.
Referenced by loadMap(), and versionInfo().