#include <DD4hep_MagGeoBuilder.h>
Public Member Functions | |
std::vector< MagBLayer * > | barrelLayers () const |
Get barrel layers. More... | |
std::vector< MagVolume6Faces * > | barrelVolumes () const |
void | build (const cms::DDDetector *det) |
std::vector< MagESector * > | endcapSectors () const |
Get endcap layers. More... | |
std::vector< MagVolume6Faces * > | endcapVolumes () const |
MagGeoBuilder (std::string tableSet, int geometryVersion, bool debug=false) | |
float | maxR () const |
float | maxZ () const |
void | setGridFiles (const TableFileMap &gridFiles) |
void | setScaling (const std::vector< int > &keys, const std::vector< double > &values) |
~MagGeoBuilder () | |
Private Member Functions | |
void | buildInterpolator (const volumeHandle *vol, std::map< std::string, MagProviderInterpol * > &interpolators) |
void | buildMagVolumes (const handles &volumes, std::map< std::string, MagProviderInterpol * > &interpolators) |
void | summary (handles &volumes) const |
void | testInside (handles &volumes) |
Private Attributes | |
handles | bVolumes_ |
const bool | debug_ |
handles | eVolumes_ |
int | geometryVersion_ |
std::vector< MagBLayer * > | mBLayers_ |
std::vector< MagESector * > | mESectors_ |
std::string | tableSet_ |
const TableFileMap * | theGridFiles_ |
std::map< int, double > | theScalingFactors_ |
Definition at line 35 of file DD4hep_MagGeoBuilder.h.
MagGeoBuilder::MagGeoBuilder | ( | std::string | tableSet, |
int | geometryVersion, | ||
bool | debug = false |
||
) |
Definition at line 48 of file DD4hep_MagGeoBuilder.cc.
References LogTrace.
MagGeoBuilder::~MagGeoBuilder | ( | ) |
vector< MagBLayer * > MagGeoBuilder::barrelLayers | ( | ) | const |
Get barrel layers.
Definition at line 555 of file DD4hep_MagGeoBuilder.cc.
References mBLayers_.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
vector< MagVolume6Faces * > MagGeoBuilder::barrelVolumes | ( | ) | const |
Definition at line 559 of file DD4hep_MagGeoBuilder.cc.
References bVolumes_, mps_fire::i, and findQualityFiles::v.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
void MagGeoBuilder::build | ( | const cms::DDDetector * | det | ) |
Definition at line 104 of file DD4hep_MagGeoBuilder.cc.
References buildInterpolator(), buildMagVolumes(), bVolumes_, ClusterizingHistogram::clusterize(), conv, debug_, eVolumes_, Exception, f, ClusterizingHistogram::fill(), dqmdumpme::first, mps_fire::i, crabWrapper::key, dqmdumpme::last, hgcalTopologyTester_cfi::layers, LogTrace, mBLayers_, mESectors_, Skims_PA_cff::name, cms::DDFilteredView::name(), magneticfield::newln, cms::DDFilteredView::next(), hltrates_dqm_sourceclient-live_cfg::offset, precomputed_value_sort(), dttmaxenums::R, L1TObjectsTimingClient_cff::resolution, svgfig::rotate(), volumeBasedMagneticField_160812_cfi::sectors, AlCaHLTBitMon_QueryRunRegistry::string, summary(), testInside(), theGridFiles_, findQualityFiles::v, cms::DDFilteredView::volume(), cms::DDDetector::worldVolume(), and BeamSpotPI::Z.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
|
private |
Definition at line 431 of file DD4hep_MagGeoBuilder.cc.
References funct::abs(), MFGridFactory::build(), magneticfield::BaseVolumeHandle::center(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, magneticfield::BaseVolumeHandle::copyno, Dimensions::d, debug_, dumpMFGeometry_cfg::delta, contentValuesFiles::fullPath, edm::FileInPath::fullPath(), runTauDisplay::gp, getRunAppsInfo::grid, Dimensions::h, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, LogTrace, magneticfield::BaseVolumeHandle::magFile, magneticfield::BaseVolumeHandle::masterSector, PV3DBase< T, PVType, FrameType >::phi(), magneticfield::BaseVolumeHandle::placement(), GloballyPositioned< T >::position(), hcal_runs::rf, makeMuonMisalignmentScenario::rot, GloballyPositioned< T >::rotation(), magneticfield::volumeHandle::sides(), tableSet_, magneticfield::BaseVolumeHandle::toExpand(), tolerance, magneticfield::BaseVolumeHandle::volumeno, Dimensions::w, MagException::what(), and cms::Exception::what().
Referenced by build().
|
private |
Definition at line 387 of file DD4hep_MagGeoBuilder.cc.
References crabWrapper::key, LogTrace, MagVolume::ownsFieldProvider(), GloballyPositioned< T >::position(), GloballyPositioned< T >::rotation(), theScalingFactors_, and volumeBasedMagneticField_160812_cfi::volumes.
Referenced by build().
vector< MagESector * > MagGeoBuilder::endcapSectors | ( | ) | const |
Get endcap layers.
Definition at line 557 of file DD4hep_MagGeoBuilder.cc.
References mESectors_.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
vector< MagVolume6Faces * > MagGeoBuilder::endcapVolumes | ( | ) | const |
Definition at line 568 of file DD4hep_MagGeoBuilder.cc.
References eVolumes_, mps_fire::i, and findQualityFiles::v.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
float MagGeoBuilder::maxR | ( | ) | const |
Definition at line 577 of file DD4hep_MagGeoBuilder.cc.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
float MagGeoBuilder::maxZ | ( | ) | const |
Definition at line 582 of file DD4hep_MagGeoBuilder.cc.
References geometryVersion_.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
void MagGeoBuilder::setGridFiles | ( | const TableFileMap & | gridFiles | ) |
Definition at line 602 of file DD4hep_MagGeoBuilder.cc.
References volumeBasedMagneticField_160812_cfi::gridFiles, and theGridFiles_.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
void MagGeoBuilder::setScaling | ( | const std::vector< int > & | keys, |
const std::vector< double > & | values | ||
) |
Set scaling factors for individual volumes. "keys" is a vector of 100*volume number + sector (sector 0 = all sectors) "values" are the corresponding scaling factors
Definition at line 592 of file DD4hep_MagGeoBuilder.cc.
References Exception, mps_fire::i, relativeConstraints::keys, theScalingFactors_, and contentValuesCheck::values.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
|
private |
Definition at line 62 of file DD4hep_MagGeoBuilder.cc.
References ddbox, ddcons, ddtrap, ddtubs, mps_fire::i, LogTrace, magneticfield::newln, edm::second(), and volumeBasedMagneticField_160812_cfi::volumes.
Referenced by build().
|
private |
Definition at line 530 of file DD4hep_MagGeoBuilder.cc.
References mps_fire::i, LogTrace, and volumeBasedMagneticField_160812_cfi::volumes.
Referenced by build().
|
private |
Definition at line 77 of file DD4hep_MagGeoBuilder.h.
Referenced by barrelVolumes(), build(), and ~MagGeoBuilder().
|
private |
Definition at line 89 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), and buildInterpolator().
|
private |
Definition at line 78 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), endcapVolumes(), and ~MagGeoBuilder().
|
private |
Definition at line 84 of file DD4hep_MagGeoBuilder.h.
Referenced by maxZ().
|
private |
Definition at line 80 of file DD4hep_MagGeoBuilder.h.
Referenced by barrelLayers(), and build().
|
private |
Definition at line 81 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), and endcapSectors().
|
private |
Definition at line 83 of file DD4hep_MagGeoBuilder.h.
Referenced by buildInterpolator().
|
private |
Definition at line 87 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), and setGridFiles().
|
private |
Definition at line 86 of file DD4hep_MagGeoBuilder.h.
Referenced by buildMagVolumes(), and setScaling().