#include <FWGeometry.h>
Classes | |
struct | GeomDetInfo |
struct | Range |
class | VersionInfo |
Public Types | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, 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, 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) |
bool | isEmpty () const |
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 | |
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 137 of file FWGeometry.h.
typedef std::vector<FWGeometry::GeomDetInfo>::const_iterator FWGeometry::IdToInfoItr |
Definition at line 138 of file FWGeometry.h.
enum FWGeometry::Detector |
Enumerator | |
---|---|
Tracker | |
Muon | |
Ecal | |
Hcal | |
Calo | |
Forward | |
HGCalEE | |
HGCalHSi | |
HGCalHSc | |
HGCalTrigger |
Definition at line 32 of file FWGeometry.h.
Enumerator | |
---|---|
PixelBarrel | |
PixelEndcap | |
TIB | |
TID | |
TOB | |
TEC | |
CSC | |
DT | |
RPCBarrel | |
RPCEndcap | |
GEM | |
ME0 |
Definition at line 44 of file FWGeometry.h.
FWGeometry::FWGeometry | ( | void | ) |
Definition at line 27 of file FWGeometry.cc.
FWGeometry::~FWGeometry | ( | void | ) |
Definition at line 29 of file FWGeometry.cc.
void FWGeometry::applyGlobalTag | ( | const std::string & | gt | ) |
Definition at line 59 of file FWGeometry.cc.
References fwLog, download_sqlite_cfg::globalTag, fwlog::kInfo, fwlog::kWarning, loadMap(), m_fileName, alignCSCRings::r, AlCaHLTBitMon_QueryRunRegistry::string, and HLT_2022v15_cff::year.
Referenced by CmsShowMain::fileChangedSlot().
|
inline |
Definition at line 144 of file FWGeometry.h.
References m_idToInfo, and m_idToMatrix.
|
inline |
Definition at line 140 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 492 of file FWGeometry.cc.
References mps_fire::end, pfDeepBoostedJetPreprocessParams_cfi::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 38 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 439 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(), FWTracksterHitsProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), FWECALCaloDataDetailViewBuilder::fillData(), FWECALDetailViewBuilder::fillEtaPhi(), FWHFTowerSliceSelector::findBinFromId(), FWHGTowerSliceSelector::findBinFromId(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FW3DViewBase::showEcalBarrel(), and ValidateGeometry::validateCaloGeometry().
TEveGeoShape * FWGeometry::getEveShape | ( | unsigned int | id | ) | const |
Definition at line 317 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, getShape(), info(), fwlog::kWarning, m_idToInfo, and l1trig_cff::shape.
Referenced by FWConvTrackHitsDetailView::addModules(), FWTrackHitsDetailView::addModules(), FWME0SegmentProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWDTSegmentProxyBuilder::buildViewType(), FWRPZViewGeometry::makeMuonGeometryRhoPhi(), FWRPZViewGeometry::makeMuonGeometryRhoZ(), FWRPZViewGeometry::showGEM(), FWRPZViewGeometry::showME0(), FWRPZViewGeometry::showMtdBarrel(), FW3DViewGeometry::showMtdBarrel(), FW3DViewGeometry::showMtdEndcap(), 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 395 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, info(), fwlog::kWarning, m_idToInfo, l1trig_cff::shape, x, and y.
Referenced by FW3DViewGeometry::showHGCalHSc().
TEveGeoShape * FWGeometry::getHGCSiliconEveShape | ( | unsigned int | id | ) | const |
Definition at line 350 of file FWGeometry.cc.
References mps_check::array, find(), fwLog, mps_fire::i, info(), fwlog::kWarning, m_idToInfo, l1trig_cff::shape, x, and y.
Referenced by FW3DViewGeometry::showHGCalEE(), and FW3DViewGeometry::showHGCalHSi().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det, |
SubDetector | subdet | ||
) | const |
Definition at line 254 of file FWGeometry.cc.
References m_idToInfo, gpuClustering::pixelStatus::mask, and match_id().
Referenced by FW3DViewGeometry::showHGCalEE(), FW3DViewGeometry::showHGCalHSc(), FW3DViewGeometry::showHGCalHSi(), FWRPZViewGeometry::showMtdBarrel(), FW3DViewGeometry::showMtdBarrel(), FW3DViewGeometry::showMtdEndcap(), FW3DViewGeometry::showPixelBarrel(), FWRPZViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelEndcap(), FWRPZViewGeometry::showPixelEndcap(), FW3DViewGeometry::showTrackerBarrel(), FWRPZViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerEndcap(), and FWRPZViewGeometry::showTrackerEndcap().
std::vector< unsigned int > FWGeometry::getMatchedIds | ( | Detector | det | ) | const |
Definition at line 265 of file FWGeometry.cc.
References HGCalHSc, kDetOffset, crabWrapper::key, and m_idToInfo.
const TGeoMatrix * FWGeometry::getMatrix | ( | unsigned int | id | ) | const |
Definition at line 225 of file FWGeometry.cc.
References find(), fwLog, l1ctLayer2EG_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 450 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWHGCalMultiClusterProxyBuilder::build(), FWHGCalTriggerCellProxyBuilder::build(), FWHGCalTriggerClusterProxyBuilder::build(), FWSiStripClusterProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWTracksterHitsProxyBuilder::build(), FWTracksterLayersProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), FW3DViewGeometry::showHGCalEE(), FW3DViewGeometry::showHGCalHSc(), FW3DViewGeometry::showHGCalHSi(), 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 | ( | unsigned int | id | ) | const |
Definition at line 286 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWSiStripClusterProxyBuilder::build(), and getEveShape().
TGeoShape * FWGeometry::getShape | ( | const GeomDetInfo & | info | ) | const |
Definition at line 296 of file FWGeometry.cc.
References info().
const float * FWGeometry::getShapePars | ( | unsigned int | id | ) | const |
Definition at line 461 of file FWGeometry.cc.
References find(), fwLog, fwlog::kWarning, and m_idToInfo.
Referenced by FWHGCalMultiClusterProxyBuilder::build(), FWHGCalTriggerCellProxyBuilder::build(), FWHGCalTriggerClusterProxyBuilder::build(), FWCaloParticleProxyBuilder::build(), FWCaloClusterProxyBuilder::build(), FWTracksterHitsProxyBuilder::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 157 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 203 of file FWGeometry.cc.
References mps_fire::end, cms::cuda::for(), mps_fire::i, dqmiolumiharvest::j, m_idToInfo, genParticles_cff::map, makeMuonMisalignmentScenario::matrix, hiPixelPairStep_cff::points, and l1trig_cff::shape.
Referenced by FWFFLooper::beginRun().
bool FWGeometry::isEmpty | ( | void | ) | const |
Definition at line 31 of file FWGeometry.cc.
References m_idToInfo.
Referenced by plotting.Plot::clone(), and FWRPZViewGeometry::initStdGeoElements().
void FWGeometry::loadMap | ( | const char * | fileName | ) |
Definition at line 103 of file FWGeometry.cc.
References FWGeometry::VersionInfo::cmsswVersion, FWGeometry::VersionInfo::extraDetectors, geometryDiff::file, findFile(), StandaloneTrackerTopology::fromTrackerParametersXMLString(), fwLog, mps_fire::i, l1ctLayer2EG_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, hiPixelPairStep_cff::points, FWGeometry::VersionInfo::productionTag, l1trig_cff::shape, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by applyGlobalTag(), CmsShowMainBase::loadGeometry(), and ValidateGeometry::ValidateGeometry().
void FWGeometry::localToGlobal | ( | unsigned int | id, |
const float * | local, | ||
float * | global, | ||
bool | translatep = true |
||
) | const |
Definition at line 472 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 481 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 498 of file FWGeometry.cc.
References mps_fire::i, info(), and DTRecHitClients_cfi::local.
|
inline |
Definition at line 142 of file FWGeometry.h.
References m_idToInfo.
Referenced by FWRPZViewGeometry::makeMuonGeometryRhoZ().
|
inline |
Definition at line 132 of file FWGeometry.h.
References kDetOffset, kSubdetOffset, gpuClustering::pixelStatus::mask, and EcalTangentSkim_cfg::o.
Referenced by getMatchedIds().
|
inline |
Definition at line 151 of file FWGeometry.h.
References m_versionInfo.
Referenced by FWRPZView::populateController(), 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 174 of file FWGeometry.h.
Referenced by applyGlobalTag(), and loadMap().
|
private |
Definition at line 166 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 164 of file FWGeometry.h.
Referenced by clear(), getMatrix(), and loadMap().
|
private |
Definition at line 168 of file FWGeometry.h.
|
private |
Definition at line 172 of file FWGeometry.h.
Referenced by getProducerVersion(), and loadMap().
|
private |
Definition at line 176 of file FWGeometry.h.
Referenced by getTrackerTopology(), and loadMap().
|
private |
Definition at line 170 of file FWGeometry.h.
Referenced by loadMap(), and versionInfo().