#include <InterpolatorBuilder.h>
Definition at line 34 of file InterpolatorBuilder.h.
◆ InterpolatorBuilder() [1/2]
InterpolatorBuilder::InterpolatorBuilder |
( |
std::string |
iTableSet, |
|
|
bool |
useMergeFileIfAvailable = true |
|
) |
| |
◆ InterpolatorBuilder() [2/2]
◆ build()
Definition at line 63 of file InterpolatorBuilder.cc.
References MFGridFactory::build(), Exception, spr::find(), edm::FileInPath::findFile(), contentValuesFiles::fullPath, magneticfield::BaseVolumeHandle::magFile, magneticfield::BaseVolumeHandle::masterSector, offsets_, magneticfield::BaseVolumeHandle::placement(), GloballyPositioned< T >::position(), hcal_runs::rf, makeMuonMisalignmentScenario::rot, GloballyPositioned< T >::rotation(), stream_, and tableSet_.
Referenced by magneticfield::MagGeoBuilder::buildInterpolator().
64 if (
tableSet_ ==
"fake" || vol->magFile ==
"fake") {
65 return std::make_unique<magneticfield::FakeInterpolator>();
73 if (vol->masterSector != 1) {
77 double masterSectorPhi = (vol->masterSector - 1) * 1._pi / 6.;
80 Vector vpos(vol->placement()->position());
83 vol->placement()->rotation() *
rot);
100 throw cms::Exception(
"MissingMagFileEntry") << vol->magFile <<
" was not an entry in the index file";
104 throw cms::Exception(
"SeekMagFileEntry") <<
" failed seekg within merged binary file";
ROOT::Math::Plane3D::Vector Vector
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::optional< interpolation::binary_ifstream > stream_
static MFGrid * build(const std::string &name, const GloballyPositioned< float > &vol)
Build interpolator for a binary grid file.
Point3DBase< T, GlobalTag > PositionType
std::unordered_map< std::string, unsigned int > offsets_
static std::string findFile(std::string const &)
◆ operator=()
◆ offsets_
std::unordered_map<std::string, unsigned int> magneticfield::InterpolatorBuilder::offsets_ |
|
private |
◆ stream_
◆ tableSet_
std::string magneticfield::InterpolatorBuilder::tableSet_ |
|
private |