#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, bool useMergeFileIfAvailable=true) | |
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 | |
MagProviderInterpol * | buildInterpolator (const volumeHandle *vol, InterpolatorBuilder &) const |
void | buildMagVolumes (const handles &volumes, const std::map< std::string, MagProviderInterpol *> &interpolators) const |
void | summary (handles &volumes) const |
void | testInside (handles &volumes) const |
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_ |
const bool | useMergeFileIfAvailable_ |
Definition at line 36 of file DD4hep_MagGeoBuilder.h.
MagGeoBuilder::MagGeoBuilder | ( | std::string | tableSet, |
int | geometryVersion, | ||
bool | debug = false , |
||
bool | useMergeFileIfAvailable = true |
||
) |
Definition at line 45 of file DD4hep_MagGeoBuilder.cc.
References LogTrace.
MagGeoBuilder::~MagGeoBuilder | ( | ) |
Definition at line 54 of file DD4hep_MagGeoBuilder.cc.
References bVolumes_, eVolumes_, and mps_fire::i.
vector< MagBLayer * > MagGeoBuilder::barrelLayers | ( | ) | const |
Get barrel layers.
Definition at line 532 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 536 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 105 of file DD4hep_MagGeoBuilder.cc.
References buildInterpolator(), buildMagVolumes(), bVolumes_, ClusterizingHistogram::clusterize(), ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), conv, debug_, eVolumes_, Exception, f, ClusterizingHistogram::fill(), dqmdumpme::first, mps_fire::i, l1ctLayer1_patternWriters_cff::isec, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, submitPVResolutionJobs::key, dqmdumpme::last, hgcalTBTopologyTester_cfi::layers, LogTrace, mBLayers_, mESectors_, mergeVDriftHistosByStation::name, cms::DDFilteredView::name(), magneticfield::newln, cms::DDFilteredView::next(), HLT_IsoTrack_cff::offset, precomputed_value_sort(), dttmaxenums::R, dtDQMClient_cfg::resolution, svgfig::rotate(), mergeVDriftHistosByStation::sectors, AlCaHLTBitMon_QueryRunRegistry::string, summary(), tableSet_, testInside(), theGridFiles_, useMergeFileIfAvailable_, 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 441 of file DD4hep_MagGeoBuilder.cc.
References funct::abs(), magneticfield::InterpolatorBuilder::build(), magneticfield::BaseVolumeHandle::center(), DMR_cfg::cerr, magneticfield::BaseVolumeHandle::copyno, Dimensions::d, debug_, dumpMFGeometry_cfg::delta, getRunAppsInfo::grid, Dimensions::h, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::caPixelDoublets::if(), dqmiolumiharvest::j, isotrackApplyRegressor::k, LogTrace, magneticfield::BaseVolumeHandle::magFile, magneticfield::BaseVolumeHandle::masterSector, PV3DBase< T, PVType, FrameType >::phi(), magneticfield::BaseVolumeHandle::placement(), GloballyPositioned< T >::position(), GloballyPositioned< T >::rotation(), magneticfield::volumeHandle::sides(), tolerance, magneticfield::BaseVolumeHandle::volumeno, Dimensions::w, MagException::what(), and cms::Exception::what().
Referenced by build().
|
private |
Definition at line 395 of file DD4hep_MagGeoBuilder.cc.
References newFWLiteAna::found, submitPVResolutionJobs::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 534 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 545 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 554 of file DD4hep_MagGeoBuilder.cc.
Referenced by magneticfield::DD4hep_VolumeBasedMagneticFieldESProducer::produce(), and magneticfield::DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce().
float MagGeoBuilder::maxZ | ( | ) | const |
Definition at line 559 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 579 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 569 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 63 of file DD4hep_MagGeoBuilder.cc.
References ddbox, ddcons, ddtrap, ddtubs, mps_fire::i, LogTrace, magneticfield::newln, edm::second(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::side(), and volumeBasedMagneticField_160812_cfi::volumes.
Referenced by build().
|
private |
Definition at line 507 of file DD4hep_MagGeoBuilder.cc.
References mps_fire::i, LogTrace, and volumeBasedMagneticField_160812_cfi::volumes.
Referenced by build().
|
private |
Definition at line 79 of file DD4hep_MagGeoBuilder.h.
Referenced by barrelVolumes(), build(), and ~MagGeoBuilder().
|
private |
Definition at line 91 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), and buildInterpolator().
|
private |
Definition at line 80 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), endcapVolumes(), and ~MagGeoBuilder().
|
private |
Definition at line 86 of file DD4hep_MagGeoBuilder.h.
Referenced by maxZ().
|
private |
Definition at line 82 of file DD4hep_MagGeoBuilder.h.
Referenced by barrelLayers(), and build().
|
private |
Definition at line 83 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), and endcapSectors().
|
private |
Definition at line 85 of file DD4hep_MagGeoBuilder.h.
Referenced by build().
|
private |
Definition at line 89 of file DD4hep_MagGeoBuilder.h.
Referenced by build(), and setGridFiles().
|
private |
Definition at line 88 of file DD4hep_MagGeoBuilder.h.
Referenced by buildMagVolumes(), and setScaling().
|
private |
Definition at line 92 of file DD4hep_MagGeoBuilder.h.
Referenced by build().