#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 | applyGlobalTag (const std::string >) |
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) 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 |
int | getProducerVersion () const |
TGeoShape * | getShape (const GeomDetInfo &info) const |
TGeoShape * | getShape (unsigned int id) const |
const float * | getShapePars (unsigned int id) const |
const TrackerTopology * | getTrackerTopology () const |
void | initMap (const FWRecoGeom::InfoMap &map) |
bool | isEmpty () const |
void | loadMap (const char *fileName) |
void | localToGlobal (const GeomDetInfo &info, const float *local, float *global, bool translatep=true) const |
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 |
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 | |
std::string | m_fileName |
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 27 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo> FWGeometry::IdToInfo |
Definition at line 136 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo>::const_iterator FWGeometry::IdToInfoItr |
Definition at line 137 of file FWGeometry.h.
enum FWGeometry::Detector |
Enumerator | |
---|---|
PixelBarrel | |
PixelEndcap | |
TIB | |
TID | |
TOB | |
TEC | |
CSC | |
DT | |
RPCBarrel | |
RPCEndcap | |
GEM | |
ME0 |
Definition at line 43 of file FWGeometry.h.
FWGeometry::FWGeometry | ( | void | ) |
Definition at line 24 of file FWGeometry.cc.
FWGeometry::~FWGeometry | ( | void | ) |
Definition at line 26 of file FWGeometry.cc.
void FWGeometry::applyGlobalTag | ( | const std::string & | gt | ) |
Definition at line 56 of file FWGeometry.cc.
References fwLog, download_sqlite_cfg::globalTag, fwlog::kInfo, fwlog::kWarning, loadMap(), m_fileName, alignCSCRings::r, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CmsShowMain::fileChangedSlot().
|
inline |
Definition at line 143 of file FWGeometry.h.
References m_idToInfo, and m_idToMatrix.
|
inline |
Definition at line 139 of file FWGeometry.h.
References find(), and m_idToInfo.
Referenced by LumiList.LumiList::__contains__().
FWGeometry::IdToInfoItr FWGeometry::find | ( | unsigned int | id | ) | const |
Definition at line 517 of file FWGeometry.cc.
References begin, end, cuda_std::lower_bound(), and m_idToInfo.
Referenced by FWSiStripClusterProxyBuilder::build(), contains(), getCorners(), getEveShape(), getHGCScintillatorEveShape(), getHGCSiliconEveShape(), getMatrix(), getParameters(), getShape(), getShapePars(), localToGlobal(), and FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
static |
Definition at line 35 of file FWGeometry.cc.
References MillePedeFileConverter_cfg::fileName, personalPlayback::fn, personalPlayback::fp, mps_fire::i, castor_dqm_sourceclient_file_cfg::path, Skims_PA_cff::paths, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadMap(), and FWGeometryTableViewManager::setGeoManagerFromFile().
const float * FWGeometry::getCorners | ( | unsigned int | id | ) | const |
Definition at line 464 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWCaloRecHitDigitSetProxyBuilder::build(), FWPRCaloTowerProxyBuilder::build(), FWHGCalMultiClusterProxyBuilder::build(), FWECaloParticleProxyBuilder::build(), FWHGCalTriggerCellProxyBuilder::build(), FWPCaloHitProxyBuilder::build(), FWHGCalTriggerClusterProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), FWECALCaloDataDetailViewBuilder::fillData(), FWECALDetailViewBuilder::fillEtaPhi(), FWHGTowerSliceSelector::findBinFromId(), FWHFTowerSliceSelector::findBinFromId(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FW3DViewBase::showEcalBarrel(), and ValidateGeometry::validateCaloGeometry().
TEveGeoShape * FWGeometry::getEveShape | ( | unsigned int | id | ) | const |
Definition at line 321 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, getShape(), info(), fwlog::kWarning, and m_idToInfo.
Referenced by FWTrackHitsDetailView::addModules(), FWConvTrackHitsDetailView::addModules(), FWME0SegmentProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWDTSegmentProxyBuilder::buildViewType(), FWRPZViewGeometry::makeMuonGeometryRhoPhi(), FWRPZViewGeometry::makeMuonGeometryRhoZ(), FWRPZViewGeometry::showGEM(), FWRPZViewGeometry::showME0(), FW3DViewGeometry::showMuonBarrel(), FW3DViewGeometry::showMuonBarrelFull(), FW3DViewGeometry::showMuonEndcap(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showRpcEndcap(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerEndcap(), and FWRPZViewGeometry::showTrackerEndcap().
TEveGeoShape * FWGeometry::getHGCScintillatorEveShape | ( | unsigned int | id | ) | const |
Definition at line 420 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, info(), fwlog::kWarning, m_idToInfo, x, and y.
Referenced by FW3DViewGeometry::showHGCalHSc().
TEveGeoShape * FWGeometry::getHGCSiliconEveShape | ( | unsigned int | id | ) | const |
Definition at line 354 of file FWGeometry.cc.
References mps_check::array, PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, f, find(), fwLog, info(), fwlog::kWarning, m_idToInfo, mathSSE::sqrt(), x, testProducerWithPsetDescEmpty_cfi::x1, and y.
Referenced by FW3DViewGeometry::showHGCalEE(), and FW3DViewGeometry::showHGCalHSi().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det | ) | const |
Definition at line 262 of file FWGeometry.cc.
References RemoveAddSevLevel::flag, HGCalHSc, kDetOffset, and m_idToInfo.
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det, |
SubDetector | subdet | ||
) | const |
Definition at line 251 of file FWGeometry.cc.
References m_idToInfo, and match_id().
Referenced by FW3DViewGeometry::showHGCalEE(), FW3DViewGeometry::showHGCalHSc(), FW3DViewGeometry::showHGCalHSi(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showPixelEndcap(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerEndcap(), and FWRPZViewGeometry::showTrackerEndcap().
const TGeoMatrix * FWGeometry::getMatrix | ( | unsigned int | id | ) | const |
Definition at line 222 of file FWGeometry.cc.
References find(), fwLog, triggerObjects_cff::id, info(), fwlog::kWarning, m_idToInfo, m_idToMatrix, makeMuonMisalignmentScenario::matrix, and idealTransformation::rotation.
Referenced by CSCGeometryValidate::validateCSCChamberGeometry(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), DTGeometryValidate::validateDTChamberGeometry(), ValidateGeometry::validateDTChamberGeometry(), DTGeometryValidate::validateDTLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), GEMGeometryValidate::validateGEMChamberGeometry(), ME0GeometryValidate::validateME0ChamberGeometry(), ME0GeometryValidate::validateME0EtaPartitionGeometry2(), RPCGeometryValidate::validateRPCChamberGeometry(), ValidateGeometry::validateRPCGeometry(), and ValidateGeometry::validateTrackerGeometry().
const float * FWGeometry::getParameters | ( | unsigned int | id | ) | const |
Definition at line 475 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWHGCalMultiClusterProxyBuilder::build(), FWHGCalTriggerCellProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWHGCalTriggerClusterProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), CSCGeometryValidate::validateCSCLayerGeometry(), ValidateGeometry::validateCSCLayerGeometry(), DTGeometryValidate::validateDTLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), GEMGeometryValidate::validateGEMEtaPartitionGeometry(), ME0GeometryValidate::validateME0EtaPartitionGeometry(), ValidateGeometry::validatePixelTopology(), ValidateGeometry::validateRPCGeometry(), RPCGeometryValidate::validateRPCStripsGeometry(), and ValidateGeometry::validateStripTopology().
|
inline |
TGeoShape * FWGeometry::getShape | ( | const GeomDetInfo & | info | ) | const |
TGeoShape * FWGeometry::getShape | ( | unsigned int | id | ) | const |
Definition at line 290 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWSiStripClusterProxyBuilder::build(), and getEveShape().
const float * FWGeometry::getShapePars | ( | unsigned int | id | ) | const |
Definition at line 486 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWHGCalMultiClusterProxyBuilder::build(), FWHGCalTriggerCellProxyBuilder::build(), FWHGCalTriggerClusterProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), CSCGeometryValidate::validateCSCChamberGeometry(), ValidateGeometry::validateCSChamberGeometry(), ValidateGeometry::validateCSCLayerGeometry(), DTGeometryValidate::validateDTChamberGeometry(), ValidateGeometry::validateDTChamberGeometry(), DTGeometryValidate::validateDTLayerGeometry(), ValidateGeometry::validateDTLayerGeometry(), GEMGeometryValidate::validateGEMChamberGeometry(), ME0GeometryValidate::validateME0ChamberGeometry(), ME0GeometryValidate::validateME0EtaPartitionGeometry2(), RPCGeometryValidate::validateRPCChamberGeometry(), ValidateGeometry::validateRPCGeometry(), and ValidateGeometry::validateTrackerGeometry().
|
inline |
Definition at line 156 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 200 of file FWGeometry.cc.
References begin, end, cms::cuda::for(), mps_fire::i, dqmiolumiharvest::j, m_idToInfo, genParticles_cff::map, makeMuonMisalignmentScenario::matrix, and HLT_2018_cff::points.
Referenced by FWFFLooper::beginRun(), and FWFFService::postBeginRun().
bool FWGeometry::isEmpty | ( | void | ) | const |
Definition at line 28 of file FWGeometry.cc.
References m_idToInfo.
Referenced by plotting.Plot::clone(), and FWRPZViewGeometry::initStdGeoElements().
void FWGeometry::loadMap | ( | const char * | fileName | ) |
Definition at line 100 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, dqmiolumiharvest::j, fwlog::kInfo, m_fileName, m_idToInfo, m_idToMatrix, m_producerVersion, m_trackerTopology, m_versionInfo, makeMuonMisalignmentScenario::matrix, AlCaHLTBitMon_ParallelJobs::p, castor_dqm_sourceclient_file_cfg::path, HLT_2018_cff::points, FWGeometry::VersionInfo::productionTag, AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::topology().
Referenced by applyGlobalTag(), CSCGeometryValidate::CSCGeometryValidate(), GEMGeometryValidate::GEMGeometryValidate(), CmsShowMainBase::loadGeometry(), ME0GeometryValidate::ME0GeometryValidate(), RPCGeometryValidate::RPCGeometryValidate(), and ValidateGeometry::ValidateGeometry().
void FWGeometry::localToGlobal | ( | const GeomDetInfo & | info, |
const float * | local, | ||
float * | global, | ||
bool | translatep = true |
||
) | const |
Definition at line 523 of file FWGeometry.cc.
References mps_fire::i, info(), and DTRecHitClients_cfi::local.
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local, | ||
float * | global, | ||
bool | translatep = true |
||
) | const |
Definition at line 497 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, DTRecHitClients_cfi::local, and m_idToInfo.
Referenced by FWSiStripClusterProxyBuilder::build(), FWRPZViewGeometry::estimateProjectionSizeDT(), and localToGlobal().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local1, | ||
float * | global1, | ||
const float * | local2, | ||
float * | global2, | ||
bool | translatep = true |
||
) | const |
Definition at line 506 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, localToGlobal(), and m_idToInfo.
|
inline |
Definition at line 141 of file FWGeometry.h.
References m_idToInfo.
Referenced by FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
inline |
Definition at line 131 of file FWGeometry.h.
References kDetOffset, kSubdetOffset, and EcalTangentSkim_cfg::o.
Referenced by getMatchedIds().
|
inline |
Definition at line 150 of file FWGeometry.h.
References m_versionInfo.
Referenced by FWRPZView::populateController(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), and FWRPZViewGeometry::showRpcEndcap().
|
static |
Definition at line 29 of file FWGeometry.h.
Referenced by getMatchedIds(), and match_id().
|
static |
Definition at line 30 of file FWGeometry.h.
Referenced by match_id().
|
private |
Definition at line 173 of file FWGeometry.h.
Referenced by applyGlobalTag(), and loadMap().
|
private |
Definition at line 165 of file FWGeometry.h.
Referenced by clear(), contains(), find(), getCorners(), getEveShape(), getHGCScintillatorEveShape(), getHGCSiliconEveShape(), getMatchedIds(), getMatrix(), getParameters(), getShape(), getShapePars(), initMap(), isEmpty(), loadMap(), localToGlobal(), and mapEnd().
|
mutableprivate |
Definition at line 163 of file FWGeometry.h.
Referenced by clear(), getMatrix(), and loadMap().
|
private |
Definition at line 167 of file FWGeometry.h.
|
private |
Definition at line 171 of file FWGeometry.h.
Referenced by getProducerVersion(), and loadMap().
|
private |
Definition at line 175 of file FWGeometry.h.
Referenced by getTrackerTopology(), and loadMap().
|
private |
Definition at line 169 of file FWGeometry.h.
Referenced by loadMap(), and versionInfo().